OSDN Git Service

* gcc.c: Remove ancient comment about a bug in Sun cc.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-11-06  Ben Elliston  <bje@au.ibm.com>
2
3         * gcc.c: Remove ancient comment about a bug in Sun cc.
4
5 2008-11-05  Janis Johnson  <janis187@us.ibm.com>
6
7         * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
8
9 2008-11-06  Ben Elliston  <bje@au.ibm.com>      
10
11         * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
12
13 2008-11-06  Ben Elliston  <bje@au.ibm.com>
14
15         * config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
16         description.
17
18 2008-11-05  Hans-Peter Nilsson  <hp@axis.com>
19
20         PR target/38016
21         * config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
22         just MEM_P.
23
24 2008-11-05  Martin Jambor  <mjambor@suse.cz>
25
26         PR middle-end/37861
27         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
28         pointer arithmetics into array_ref if the array is accessed
29         through an indirect_ref.
30
31 2008-11-05  Richard Guenther  <rguenther@suse.de>
32
33         PR middle-end/37742
34         * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
35         qualified pointer conversion before stripping qualifiers.
36         * gimplify.c (create_tmp_from_val): Use correctly qualified type.
37         * tree-flow.h (may_propagate_address_into_dereference): Declare.
38         * tree-ssa-ccp.c (may_propagate_address_into_dereference): New function.
39         (ccp_fold): Use it.
40         * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
41         properly canonicalize binary ops.
42         (forward_propagate_addr_expr_1): Use
43         may_propagate_address_into_dereference.
44
45 2008-11-05  Uros Bizjak  <ubizjak@gmail.com>
46
47         PR middle-end/37286
48         * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
49         Initialize uninitialized input registers with a NaN.
50
51 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
52
53         PR middle-end/37833
54
55         * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
56
57 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
58
59         PR middle-end/37943
60
61         * graphite.c (scopdet_basic_block_info): Fix loops with multiple
62         exits and conditions.
63         * testsuite/gcc.dg/graphite/pr37943.c: New.
64
65 2008-11-04  Jakub Jelinek  <jakub@redhat.com>
66             Andrew Pinski  <andrew_pinski@playstation.sony.com>
67
68         PR c/35430
69         * c-common.c (warn_for_sign_compare): For complex result_type
70         use component's type.
71
72 2008-11-04  Jakub Jelinek  <jakuB@redhat.com>
73
74         * print-tree.c (print_node): Use code instead of TREE_CODE (node).
75
76         * print-tree.c (print_node): Don't print DECL_INITIAL
77         for PARM_DECL.
78
79         PR c/37106
80         * c-common.c (parse_optimize_options): Save and restore
81         flag_strict_aliasing around decode_options call.
82
83 2008-11-04  Uros Bizjak  <ubizjak@gmail.com>
84
85         * config/i386/driver-i386.c (enum vendor_signatures): New enum.
86         (host_detect_local_cpu): Use it instead of casted strings to
87         compare vendor signatures.
88
89 2008-11-03  Mikael Pettersson  <mikpe@it.uu.se>
90
91         PR target/37989
92         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
93         or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
94
95 2008-11-03  Catherine Moore  <clm@codesourcery.com>
96
97         * config/mips.c (mips_conditional_register_usage):  Handle the
98         DSP control register.
99         * doc/extend.texi: Document the DSP control register.
100
101 2008-11-03  Steve Ellcey <sje@cup.hp.com>
102             Jakub Jelinek  <jakub@redhat.com>
103
104         * omp-low.c (expand_omp_for_generic): If iter_type has different
105         precision than type and type is a pointer type, cast n1 and n2
106         first to an integer type with the same precision as pointers
107         and only afterwards to iter_type.
108
109 2008-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
110
111         * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
112         (UNSPEC_GOTSYM_OFF): New unspec.
113         (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
114         (pic_add_dot_plus_eight): Likewise.
115         (tls_load_dot_plus_eight): Likewise.  Update peephole2.
116         * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
117         UNSPEC_PIC_BASE operands.
118         * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
119         (arm_output_addr_const_extra): Handle it.
120
121 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
122
123         * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
124         integer class to full integer class if the offset is not word-aligned.
125
126 2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
127
128         PR rtl-opt/37782
129         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
130         mode count is in.
131         (doloop_optimize): Update call to doloop_modify.
132
133 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
134
135         * tree-sra.c (bitfield_overlaps_p): Fix oversight.
136
137 2008-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
138
139         PR other/37463
140         * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
141         gcc_cv_as_cfi_directive.
142         (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
143         merging read-only and read-write sections or assembler emits
144         read-write .eh_frame sections.
145         * configure: Regenerate.
146         
147 2008-11-03  Nathan Froyd  <froydnj@codesourcery.com>
148
149         Revert:
150         2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
151
152         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
153         problem.
154         (rs6000_emit_prologue): Invert logic.
155         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
156         (reg:P 11) instead of match_operand.
157         (*save_fpregs_<mode>): Likewise.
158         (*restore_gpregs_<mode>): Likewise.
159         (*return_and_restore_gpregs_<mode>): Likewise.
160         (*return_and_restore_fpregs_<mode>): Likewise.
161         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
162         (reg:P 11) insted of match_operand.
163         (*restore_gpregs_spe): Likewise.
164         (*return_and_restore_gpregs_spe): Likewise.
165
166 2008-11-03  Harsha Jagasia  <harsha.jagasia@amd.com>
167
168         PR tree-optimization/37684
169         * gcc.dg/graphite/pr37684.c: New.
170         * graphite.c (exclude_component_ref): New.
171         (is_simple_operand): Call exclude_component_ref.
172
173 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
174
175         PR tree-optimization/36908
176         * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
177         * tree-loop-distribution.c (number_of_rw_in_rdg): New.
178         (number_of_rw_in_partition): New.
179         (partition_contains_all_rw): New.
180         (ldist_gen): Do not distribute when one of the partitions
181         contains all the memory operations.
182
183 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
184
185         * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
186         EDGE_IRREDUCIBLE_LOOP.
187
188 2008-11-03  Bernd Schmidt  <bernd.schmidt@analog.com>
189
190         * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
191         where we have one entry point in the loop which isn't the head.
192
193 2008-11-03  Richard Guenther  <rguenther@suse.de>
194
195         PR middle-end/37573
196         * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
197
198 2008-11-03  Jakub Jelinek  <jakub@redhat.com>
199
200         PR middle-end/37858
201         * passes.c (execute_one_pass): Don't look at cfun->curr_properties
202         for ipa and simple ipa passes.
203
204 2008-11-02  Richard Guenther  <rguenther@suse.de>
205
206         PR tree-optimization/37542
207         * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
208         * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
209         (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
210         (vn_nary_op_insert_stmt): Likewise.
211         (visit_use): Likewise.
212
213 2008-11-02  Anatoly Sokolov  <aesok@post.ru>
214
215         * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
216         (*swap): Remove.
217         (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
218         rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
219         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
220         ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
221         lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
222         peephole2's): Replace unspec with rotate.
223         * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
224
225 2008-11-02  Richard Guenther  <rguenther@suse.de>
226
227         PR tree-optimization/37991
228         * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
229         * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
230         (set_ssa_val_to): Print if the value changed.
231         (simplify_binary_expression): Strip useless conversions.
232
233 2008-11-01  Hans-Peter Nilsson  <hp@axis.com>
234
235         PR target/37939
236         * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
237         operand.
238
239 2008-11-01  Richard Guenther  <rguenther@suse.de>
240
241         PR middle-end/37976
242         * builtins.c (fold_builtin_strspn): Return a size_t.
243         (fold_builtin_strcspn): Likewise.
244
245 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
246
247         * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
248         attribute for struct return convention.
249
250 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
251
252         * config/rs6000/crtsavres.asm: Really, really delete.
253
254 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
255
256         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
257         problem.
258         (rs6000_emit_prologue): Invert logic.
259         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
260         (reg:P 11) instead of match_operand.
261         (*save_fpregs_<mode>): Likewise.
262         (*restore_gpregs_<mode>): Likewise.
263         (*return_and_restore_gpregs_<mode>): Likewise.
264         (*return_and_restore_fpregs_<mode>): Likewise.
265         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
266         (reg:P 11) insted of match_operand.
267         (*restore_gpregs_spe): Likewise.
268         (*return_and_restore_gpregs_spe): Likewise.
269
270 2008-10-28  Luis Machado  <luisgpm@br.ibm.com>
271
272         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
273         list of word switches that take args.
274
275 2008-10-30  Jakub Jelinek  <jakub@redhat.com>
276
277         * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
278         (s390_output_pool_entry): Call it through for_each_rtx.
279
280         PR middle-end/37730
281         * expr.c (store_constructor): For vectors, if target is a MEM, use
282         target's MEM_ALIAS_SET instead of elttype alias set.
283
284 2008-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
285
286         PR target/37909
287         * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
288         no address.
289
290 2008-10-29  David Edelsohn  <edelsohn@gnu.org>
291
292         PR target/37878
293         * config/rs6000/predicates.md (word_offset_memref_operand):
294         Restructure code and look inside auto-inc/dec addresses.
295         
296 2008-10-29  Steve Ellcey  <sje@cup.hp.com>
297
298         PR target/32277
299         * libgcov.c ( __gcov_indirect_call_profiler): Check
300         TARGET_VTABLE_USES_DESCRIPTORS.
301
302 2008-10-29  Stefan Schulze Frielinghaus  <xxschulz@de.ibm.com>
303
304         * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
305         (INITIAL_FRAME_POINTER_OFFSET): Remove.
306         * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
307         offset if eliminating soft frame pointer.
308         * config/spu/spu.md (stack_protect_set, stack_protect_test)
309         (stack_protect_test_si): Add initial machine description
310         for Stack Smashing Protector
311
312 2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
313
314         PR 11492
315         * c-common.c (min_precision): Move to...
316         * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
317         * tree.h (tree_int_cst_min_precision): Declare.
318         * c-common.h (min_precision): Delete declaration.
319         * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
320         multiplication of non-negative integer constants.
321         * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
322         tree_int_cst_min_precision.
323         (finish_enum): Likewise.
324
325 2008-10-29  Joseph Myers  <joseph@codesourcery.com>
326
327         PR middle-end/36578
328         * convert.c (convert_to_real): Do not optimize conversions of
329         binary arithmetic operations between binary and decimal
330         floating-point types.  Consider mode of target type in determining
331         decimal type for arithmetic.  Unless
332         flag_unsafe_math_optimizations, do not optimize binary conversions
333         where this may change rounding behavior.
334         * real.c (real_can_shorten_arithmetic): New.
335         * real.h (real_can_shorten_arithmetic): Declare.
336
337 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
338         
339         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
340         ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
341         * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
342         appropriate.
343         (must_save_p): For some workarounds, interrupts need to clobber a
344         P register.
345         (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
346         and LC1 for WA_05000257.
347         (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
348         WA_05000283 and WA_05000315.
349         * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
350         (movbi): Add alternative to set CC to 1; improve code for setting
351         CC to 0.
352         (dummy_load): New pattern.
353
354 2008-10-29  Jakub Jelinek  <jakub@redhat.com>
355
356         PR middle-end/37870
357         * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
358         BLKmode for non-memory, convert using a wider MODE_INT mode
359         or through memory.
360
361         PR middle-end/37913
362         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
363         that haven't been removed yet.
364
365 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
366
367         * config/bfin/bfin.c (struct machine_function): New member
368         has_loopreg_clobber.
369         (bfin_expand_movmem): Set it when generating memcpy insns.
370         (n_regs_saved_by_prologue, expand_prologue_reg_save,
371         expand_epilogue_reg_restore): If we have hardware loops,
372         memcpy insns (indicated by has_loopreg_clobber) or function
373         calls, we need to save the loop registers.
374
375 2008-10-28  H.J. Lu  <hongjiu.lu@intel.com>
376
377         * config/i386/i386.c (core2_cost): Fix typos in comments.
378
379 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
380
381         PR c/37924
382         * combine.c (make_compound_operation): Don't call make_extraction with
383         non-positive length.
384         (simplify_shift_const_1): Canonicalize count even if complement_p.
385
386 2008-10-28  Joseph Myers  <joseph@codesourcery.com>
387
388         * convert.c (strip_float_extensions): Do not remove or introduce
389         conversions between binary and decimal floating-point types.
390
391 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
392
393         PR middle-end/37931
394         * fold-const.c (distribute_bit_expr): Convert common, left and
395         right arguments to type.
396
397 2008-10-28  Nick Clifton  <nickc@redhat.com>
398
399         * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
400         * config/mn10300/mn10300.c (fp_regs_to_save): Test the
401         call_really_used_regs array rather than the call_used_regs array.
402         (mn10300_get_live_callee_saved_regs, expand_prologue,
403         expand_epilogue, output_tst): Likewise.
404
405 2008-10-27  Jakub Jelinek  <jakub@redhat.com>
406
407         PR target/37378
408         * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
409         (df_get_entry_block_def_set): Neither here.
410         (df_get_regular_block_artificial_uses): Add EH_USES registers.
411
412         PR tree-optimization/37879
413         * predict.c (tree_estimate_probability): Check if last_stmt is
414         non-NULL before dereferencing it.
415
416 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
417
418         * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
419         (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
420         (ira_fast_allocation): Remove the prototype.
421         
422         * ira-color.c (update_copy_costs, allocno_cost_compare_func,
423         assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
424         (color_pass): Modify the updated costs.
425         (ira_color): Rename to color.  Make it static.
426         (ira_fast_allocation): Rename to fast_allocation.  Make it static.
427         (ira_color): New function.
428         
429         * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
430         change.
431
432         * ira-lives.c (last_call_num, allocno_saved_at_call): New
433         variables.
434         (set_allocno_live, clear_allocno_live, mark_ref_live,
435         mark_ref_dead): Invalidate corresponding element of
436         allocno_saved_at_call.
437         (process_bb_node_lives): Increment last_call_num.  Setup
438         allocno_saved_at_call.  Don't increase ALLOCNO_CALL_FREQ if the
439         allocno was already saved.
440         (ira_create_allocno_live_ranges): Initiate last_call_num and
441         allocno_saved_at_call.
442
443         * ira-build.c (ira_create_allocno): Initiate
444         ALLOCNO_UPDATED_COVER_CLASS_COST.
445         (create_cap_allocno, propagate_allocno_info,
446         remove_unnecessary_allocnos): Remove setting updated costs.
447         (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
448
449         * ira.c (ira):  Don't call ira_fast_allocation.
450
451         * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
452         updated costs.
453         
454 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
455
456         PR middle-end/37813
457         * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
458
459         * ira-int.h (ira_hard_regno_cover_class): New.
460
461         * ira-lives.c (mark_reg_live, mark_reg_dead,
462         process_bb_node_lives): Use ira_hard_regno_cover_class.
463
464         * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
465         (setup_hard_regno_cover_class): New function.
466         (ira_init): Call setup_hard_regno_cover_class.
467
468         * ira-costs.c (cost_class_nums): Add comment.
469         (find_allocno_class_costs): Initiate cost_class_nums.
470         (setup_allocno_cover_class_and_costs): Check cost_class_nums.
471
472 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
473
474         PR middle-end/37884
475         * ira-build.c (copy_live_ranges_to_removed_store_destinations):
476         Rename to copy_info_to_removed_store_destinations.  Propagate
477         conflict hard regs and register stack attribute.
478
479 2008-10-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
480
481         PR middle-end/37316
482         * pa.c (function_arg_padding):  Pad complex and vector types
483         upward in 64-bit runtime.
484         (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
485
486 2008-10-26  Matthias Klose  <doko@ubuntu.com>
487
488         * doc/install.texi: Document requirements on antlr.
489
490 2008-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
491
492         * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
493         first.
494
495 2008-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
496
497         PR target/37841
498         * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
499         is defined, use it to modify the constant offset.
500
501         * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
502
503         * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
504         and short arguments to the correct location as mandated by the ABI.
505
506 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
507
508         PR rtl-optimization/37769
509         * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
510
511 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
512
513         * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
514         unwind-dw2-Os-4-200.o.
515
516 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
517
518         * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
519         (convert_for_assignment): Remove ic_argpass_nonproto cases.
520
521 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
522
523         PR tree-optimization/36038
524         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
525         add sizetype IV with initial value zero instead of pointer type.
526
527 2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
528
529         PR c/7543
530         * value-prof.c (gimple_stringop_fixed_value): Use parentheses
531         around bit operation.
532         * profile.c (is_edge_inconsistent): Likewise.
533         * fold-const.c (truth_value_p): Move from here...
534         * tree.h (truth_value_p): ... to here.
535         * c-tree.h (c_expr): Update description of original_code.
536         * c-typeck.c (parser_build_unary_op): Set original_code.
537         (parser_build_binary_op): Update call to warn_about_parentheses.
538         * c-common.c (warn_about_parentheses): Take two additional
539         arguments of the operands. Use a switch. Quote operators
540         appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
541         Add warning about !x | y and !x & y.
542         * c-common.h (warn_about_parentheses): Update declaration.
543
544 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
545
546         * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
547         check_p_tool, check_p_vars, check_p_subno, check_p_comma,
548         check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
549         New variables.
550         (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
551         (check-%): For test targets listed in lang_checks_parallelized
552         if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
553         run the testing in multiple make goals, possibly parallel, and
554         afterwards run dg-extract-results.sh to merge the sum and log files.
555
556 2008-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
557
558         * config/mips/mips.c (mips_canonicalize_move_class): New function.
559         (mips_move_to_gpr_cost): Likewise.
560         (mips_move_from_gpr_cost): Likewise.
561         (mips_register_move_cost): Make more fine-grained.
562
563 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
564
565         * graphite.c (graphite_apply_transformations): Check for
566         -fgraphite-identity.
567         * toplev.c (process_options): Add graphite_identity.
568         * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
569
570 2008-10-23  Bernd Schmidt  <bernd.schmidt@analog.com>
571
572         * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
573         mulhisihl and mulhisihh builtins.
574
575         From Jie Zhang  <jie.zhang@analog.com>
576         * config/bfin/bfin.md (composev2hi): Put operands into vector
577         with correct order.
578         
579 2008-10-22  Chao-ying Fu  <fu@mips.com>
580
581         * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
582
583 2008-10-22  Bernd Schmidt  <bernd.schmidt@analog.com>
584
585         From Mike Frysinger  <michael.frysinger@analog.com>
586         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
587         BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
588         * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
589         and bf518.  Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
590         Add 0.6 for bf533, bf532, and bf531.  Add 0.5 for bf538 and bf539.
591         Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
592         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
593         for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
594         for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518.  Define
595         __ADSPBF51x__ for all of them.
596         * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
597         -mcpu bf512, bf514, bf516, and bf518.
598         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
599         bf512-none, bf514-none, bf516-none, and bf518-none.
600         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
601         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
602         * doc/invoke.texi (Blackfin Options): Document that
603         -mcpu now accepts bf512, bf514, bf516, and bf518.
604
605 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
606
607         PR middle-end/37882
608         * fold-const.c (build_range_type): For 1 .. signed_max
609         range call build_nonstandard_inter_type if signed_type_for
610         returned a type with bigger precision.
611
612 2008-10-22  Richard Guenther  <rguenther@suse.de>
613
614         * tree.def (COMPLEX_TYPE): Constrain element type.
615         * tree.c (build_complex_type): Assert that.
616         * tree-ssa-structalias.c (could_have_pointers): Complex types
617         cannot have pointers.
618
619 2008-10-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
620
621         PR c/30949
622         * c-typeck.c (convert_for_assignment): Do not give declaration's
623         location for builtins. Spell out which type was expected and which
624         was given.
625
626 2008-10-22  Nick Clifton  <nickc@redhat.com>
627
628         * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define.  Do not allow
629         the fdpic register to be a target when running in fdpic mode.
630
631 2008-10-22 Rafael Espindola  <espindola@google.com>
632
633         * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
634         newly created statements.
635
636 2008-10-22  Kaz Kojima  <kkojima@gcc.gnu.org>
637
638         PR target/37633
639         * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
640         * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
641         * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
642
643 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
644
645         PR target/37880
646         * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
647         Adjust -mcmodel=medium description for 2005-07-31 changes.
648
649 2008-10-22  Jan Hubicka  <jh@suse.cz>
650             Jakub Jelinek  <jakub@redhat.com>
651
652         PR middle-end/35853
653         * doc/invoke.texi: Remove references to obsoleted -d dumps.
654
655 2008-10-21  Richard Henderson  <rth@redhat.com>
656
657         PR 37815
658         * emit-rtl.c (get_spill_slot_decl): Export.
659         * emit-rtl.h (get_spill_slot_decl): Declare.
660         * var-tracking.c (vt_add_function_parameters): Relax assertion
661         on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
662
663 2008-10-21  Bob Wilson  <bob.wilson@acm.org>
664
665         * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
666         REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
667         of from insn.
668
669 2008-10-21  Adam Nemet  <anemet@caviumnetworks.com>
670
671         PR middle-end/37669
672         * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
673         processed by get_maxval_strlen.
674
675 2008-10-21  David Edelsohn  <edelsohn@gnu.org>
676
677         PR target/35485
678         * tree.c (get_file_function_name): Copy first_global_object_name.
679         Centralize call to clean_symbol_name.
680
681 2008-10-21  Sandra Loosemore  <sandra@codesourcery.com>
682
683         * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
684         * config/svr4.h (SVR4_ASM_SPEC): New.
685         (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
686         * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
687
688         * doc/invoke.texi (Option Summary): Add -T to linker options.
689         (Link Options): Document -T.
690         
691 2008-10-21  Jakub Jelinek  <jakub@redhat.com>
692
693         * tree-inline.c (tree_inlinable_function_p): Remove tuples
694         debugging hack.
695
696         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
697
698         PR debug/37020
699         * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
700
701 2008-10-20  Daniel Berlin  <dberlin@dberlin.org>
702
703         * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
704         part of expression.
705
706 2008-10-20  Tobias Schlüter  <tobi@gcc.gnu.org>
707
708         * doc/install.texi: Fix typos in previous patch.
709
710 2008-10-19  Tobias Schlüter  <tobi@gcc.gnu.org>
711
712         * doc/install.texi: Document in-tree building of gcc and mpfr.
713
714 2008-10-19  Richard Guenther  <rguenther@suse.de>
715
716         * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
717
718 2008-10-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
719
720         PR c/30260
721         * c-decl.c (finish_enum): Convert non-integer enumerators to enum
722         type.
723         (build_enumerator): Convert enumerators that fit in integer to
724         integer type.
725
726 2008-10-18  Uros Bizjak  <ubizjak@gmail.com>
727
728         * config/i386/i386.md (unnamed peephole2): Do not force memory
729         operands of arith or logical instructions into registers for
730         non-TARGET_READ_MODIFY targets.
731
732         (ffs_cmove): Change operand 0 predicate to register_operand.
733         Change operand 1 predicate to nonimmediate_operand.
734         (ffsdi2): Ditto.
735         (*ffs_no_cmove): Change operand 0 predicate to register_operand.
736
737 2008-10-18  Richard Guenther  <rguenther@suse.de>
738
739         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
740         VIEW_CONVERT_EXPR case against invalid gimple.
741
742 2008-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>
743
744         * c-parser.c (c_parser_binary_expression): Silence the
745         uninitialized variable warning emitted for binary_loc.
746
747 2008-10-16  Daniel Berlin  <dberlin@dberlin.org>
748
749         * tree-ssa-pre.c (phi_translate_set): Add constants to phi
750         translation cache.
751
752 2008-10-16  Joseph Myers  <joseph@codesourcery.com>
753
754         PR c/33192
755         * c-typeck.c (build_unary_op): Use omit_one_operand for
756         IMAGPART_EXPR of real argument.
757
758 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
759
760         PR tree-optimization/37664
761         * fold-const.c (fold_binary): When optimizing comparison with
762         highest or lowest type's value, don't consider TREE_OVERFLOW.
763
764 2008-10-16  David Edelsohn  <edelsohn@gnu.org>
765
766         PR target/35483
767         * Makefile.in (coverage.o): Depend on $(TM_P_H).
768         * coverage.c: Include tm_p.h.
769         * config/rs6000/x-aix (jc1): Override LDFLAGS.
770         * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
771         dollar signs from PREFIX.
772         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
773         instead of manual strip_name_encoding.
774
775 2008-10-16  Richard Guenther  <rguenther@suse.de>
776
777         PR middle-end/37418
778         * tree-ssa.c (useless_type_conversion_p_1): Do not treat
779         volatile qualified functions or methods as relevant.
780
781 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
782
783         PR tree-optimization/37525
784         * tree.c (int_fits_type_p): Rewrite using double_int.  Zero extend
785         sizetype unsigned constants, both in the case of C and bounds.
786
787 2008-10-15  Jan Hubicka  <jh@suse.cz>
788
789         * ira-emit.c (change_regs): Return false when replacing reg by itself.
790
791 2008-10-14  Vladimir Makarov  <vmakarov@redhat.com>
792
793         PR target/37633
794         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
795         HARD_REGNO_CALL_PART_CLOBBERED.
796
797 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
798
799         PR middle-end/37535
800         * ira-lives.c (mark_early_clobbers): Remove.
801         (make_pseudo_conflict, check_and_make_def_use_conflicts,
802         check_and_make_def_conflicts,
803         make_early_clobber_and_input_conflicts,
804         mark_hard_reg_early_clobbers): New functions.
805         (process_bb_node_lives): Call
806         make_early_clobber_and_input_conflicts and
807         mark_hard_reg_early_clobbers.  Make hard register inputs live again.
808
809         * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
810         early clobbers of pseudo-registers.
811         
812 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
813
814         PR middle-end/37674
815         * ira-build.c (ira_flattening): Recalculate
816         ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
817         from the scratch instead of the propagation.
818         
819 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
820
821         * doc/rtl.texi (const_double): Remove the "addr" operand.
822         Describe CONST_DOUBLE_* macros under const_double rather
823         than const_vector.
824         (const_fixed): Fix the operand description.
825         (const): Add an @findex directive.
826         (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
827         after the constant rtl table.
828         (fix): Combine floating-point and fixed-point descriptions.
829         Fix hyphenation.
830         * sched-deps.c (sched_analyze_2): Remove reference to
831         CONST_DOUBLE_CHAIN.
832
833 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
834
835         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
836         UNSPEC_GOTSYM_OFFs.
837         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
838         for UNSPEC_GOTSYM_OFFs.
839         * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
840         (add_GOT_to_pic_reg): Use it.
841         * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
842
843 2008-10-15  Jan Sjodin  <jan.sjodin@amd.com>
844             Harsha Jagasia  <harsha.jagasia@amd.com>
845
846         PR tree-optimization/37485
847         * graphite.c (gmp_cst_to_tree): Moved.
848         (iv_stack_entry_is_constant): New.
849         (iv_stack_entry_is_iv): New.
850         (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
851         (loop_iv_stack_insert_constant): New.
852         (loop_iv_stack_pop): Use new datatpype.
853         (loop_iv_stack_get_iv): Same.
854         (loop_iv_stack_get_iv_from_name): Same.
855         (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
856         (loop_iv_stack_patch_for_consts): New.
857         (loop_iv_stack_remove_constants): New.
858         (graphite_create_new_loop): Use loop_iv_stack_push_iv.
859         (translate_clast): Call loop_iv_stack_patch_for_consts and
860         loop_iv_stack_remove_constants.
861         (gloog): Use new datatype.  Redirect construction edge to end
862         block to avoid accidental deletion.
863         * graphite.h (enum iv_stack_entry_kind): New.  Tag for data in
864         iv stack entry.
865         (union iv_stack_entry_data): New.  Data in iv stack entry.
866         (struct iv_stack_entry): New.  Datatype for iv stack entries.
867
868 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
869
870         * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
871         * graphite.c (free_scop): Same.
872         (build_scops): Same.
873         (free_scattering): New.
874         (build_cloog_prog): Call free_scattering.
875         (patch_phis_for_virtual_defs): Fix memleak.
876         (graphite_trans_bb_strip_mine): Same.
877         (limit_scops): Same.
878
879 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
880             Harsha Jagasia  <harsha.jagasia@amd.com>
881
882         PR tree-optimization/37828
883         * graphite.c (graphite_trans_loop_block): Do not loop block
884         single nested loops.
885
886 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
887
888         PR tree-optimization/37686
889         * tree-loop-linear.c (linear_transform_loops): Build a
890         loop nest vector.  Pass it to lambda_compute_access_matrices.
891         * tree-data-ref.h (struct access_matrix): Store the loop nest
892         relative to which it encodes the information.
893         (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
894         (am_vector_index_for_loop): Reimplemented: iterate over the
895         loop nest for finding the loop index in the access matrix.
896         (lambda_compute_access_matrices): Update declaration.
897         * lambda-code.c (build_access_matrix): Pass the loop nest and
898         record it.
899         (lambda_compute_access_matrices): Same.
900
901 2008-10-15  Andreas Krebbel  <krebbel1@de.ibm.com>
902
903         * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
904         * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
905         TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
906         already implies hard float.  Also fix several insn condition
907         with TARGET_DFP which shall require TARGET_HARD_DFP instead.
908
909 2008-10-15  David Edelsohn  <edelsohn@gnu.org>
910
911         PR target/35483
912         Based on patches by Laurent Vivier.
913         * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
914         * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
915         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
916         dollar sign to underscore.
917         (ASM_OUTPUT_EXTERNAL): Same.
918         (ASM_OUTPUT_LABELREF): New.
919         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
920
921         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
922         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
923         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
924         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
925
926 2008-10-15  Jakub Jelinek  <jakub@redhat.com>
927
928         PR tree-optimization/36881
929         * tree-switch-conversion.c (check_final_bb): For flag_pic, check
930         that each value doesn't need runtime relocations, for !flag_pic
931         check that each value is just a valid initializer constant.
932
933 2008-10-14  Richard Sandiford  <rdsandiford@googlemail.com>
934
935         * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
936         LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
937         COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
938         Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
939         GR_AND_ACC_REGS.
940         (REG_CLASS_NAMES): Update accordingly.
941         (REG_CLASS_CONTENTS): Likewise.  Use the class name in the comments,
942         rather than an unpredictable descriptive string.
943         * config/mips/mips.c (mips_register_move_cost): Remove comment.
944         (mips_register_move_cost): Check for specific COP*_REGS classes,
945         instead of ALL_COP_AND_GR_REGS.
946         (mips_ira_cover_classes): New function.
947         (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
948         (TARGET_IRA_COVER_CLASSES): Define.
949
950 2008-10-14  Douglas Gregor  <doug.gregor@gmail.com>
951
952         PR c++/37553
953         * tree.c (build_type_attribute_qual_variant): Hash on the
954         unqualified type, and don't overwrite an existing
955         (type_hash_eq): Make the TYPE_NAME of the types significant, to
956         allow distinguishing between wchar_t and its underlying type. This
957         also means that we'll retain a little more typedef information.
958
959 2008-10-14  Andrey Belevantsev  <abel@ispras.ru>
960             Dmitry Melnik  <dm@ispras.ru>
961             Dmitry Zhurikhin  <zhur@ispras.ru>
962             Alexander Monakov  <amonakov@ispras.ru>
963             Maxim Kuvyrkov  <maxim@codesourcery.com>
964
965         * target.h (struct gcc_target): Update prototypes of needs_block_p
966         and gen_spec_check.
967         * haifa-sched.c (create_check_block_twin): Update calls to the above.
968         * sel-sched.c (create_speculation_check): Likewise.
969         * doc/tm.texi: Provide documentation for new target hooks.
970                 
971         * config/ia64/ia64.c: Include sel-sched.h.  Rewrite speculation hooks.
972         (ia64_gen_spec_insn): Removed.
973         (get_spec_check_gen_function, insn_can_be_in_speculative_p,
974         ia64_gen_spec_check): New static functions.
975         (ia64_alloc_sched_context, ia64_init_sched_context,
976         ia64_set_sched_context, ia64_clear_sched_context,
977         ia64_free_sched_context, ia64_get_insn_spec_ds,
978         ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
979         (ia64_needs_block_p): Change prototype.
980         (ia64_gen_check): Rename to ia64_gen_spec_check.
981         (ia64_adjust_cost): Rename to ia64_adjust_cost_2.  Add new parameter
982         into declaration, add special memory dependencies handling.
983         (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
984         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
985         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
986         TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
987         Define new target hooks.
988         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
989         (ia64_optimization_options): Turn on selective scheduling with -O3,
990         disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
991         default with selective scheduling.
992         (ia64_override_options): Initialize align_loops and align_functions
993         to 32 and 64, respectively.  Set global selective scheduling flags
994         according to target-dependent flags.
995         (rtx_needs_barrier): Support UNSPEC_LDS_A.
996         (group_barrier_needed): Use new mstop-bit-before-check flag.
997         Add heuristic.
998         (dfa_state_size): Make global.
999         (spec_check_no, max_uid): Remove.
1000         (mem_ops_in_group, current_cycle): New variables.
1001         (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
1002         Initialize new variables.
1003         (is_load_p, record_memory_reference): New functions.
1004         (ia64_dfa_sched_reorder): Lower priority of loads when limit is
1005         reached.
1006         (ia64_variable_issue): Change use of current_sched_info to
1007         sched_deps_info.  Update comment.  Note if a load or a store is issued.
1008         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
1009         advance if maximal number of loads or stores was issued on current
1010         cycle.
1011         (scheduled_good_insn): New static helper function.
1012         (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
1013         a group barrier is needed.  Fix vertical spacing.  Guard the code
1014         doing state transition with last_scheduled_insn check.
1015         Mark that a stop bit should be before current insn if there was a 
1016         cycle advance.  Update current_cycle and mem_ops_in_group.
1017         (ia64_h_i_d_extended): Change use of current_sched_info to
1018         sched_deps_info. Reallocate stops_p by larger chunks.
1019         (struct _ia64_sched_context): New structure.
1020         (ia64_sched_context_t): New typedef.
1021         (ia64_alloc_sched_context, ia64_init_sched_context,
1022         ia64_set_sched_context, ia64_clear_sched_context,
1023         ia64_free_sched_context): New static functions.
1024         (gen_func_t): New typedef.
1025         (get_spec_load_gen_function): New function.
1026         (SPEC_GEN_EXTEND_OFFSET): Declare.      
1027         (ia64_set_sched_flags): Check common_sched_info instead of *flags.
1028         (get_mode_no_for_insn): Change the condition that prevents use of
1029         special hardware registers so it can now handle pseudos.
1030         (get_spec_unspec_code): New function.
1031         (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
1032         ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
1033         (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
1034         during selective scheduling.
1035         (ia64_speculate_insn): Use ds_get_speculation_types when
1036         determining whether we need to change the pattern.
1037         (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
1038         (ia64_spec_check_src_p): Support new speculation/check codes.
1039         (struct bundle_state): New field.
1040         (issue_nops_and_insn): Initialize it.
1041         (insert_bundle_state): Minimize mid-bundle stop bits.
1042         (important_for_bundling_p): New function.
1043         (get_next_important_insn): Use important_for_bundling_p.
1044         (bundling): When shifting TImode from unimportant insns, ignore
1045         also group barriers.  Assert that best state is found before
1046         the backward bundling pass.  Print number of mid-bundle stop bits.
1047         Minimize mid-bundle stop bits.  Check correct calculation of
1048         mid-bundle stop bits.
1049         (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
1050         (final_emit_insn_group_barriers): Emit stop bits before insns starting
1051         a new cycle.
1052         (sel2_run): New variable.
1053         (ia64_reorg): When flag_selective_scheduling2 is set, run the
1054         selective scheduling pass instead of schedule_ebbs.
1055         
1056         * config/ia64/ia64.md (speculable1, speculable2): New attributes.
1057         (UNSPEC_LDS_A): New UNSPEC.
1058         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
1059         movti_internal, movsf_internal, movdf_internal,
1060         movxf_internal): Make visible.  Add speculable* attributes.
1061         (output_c_nc): New mode attribute.
1062         (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
1063         mov<mode>_nc, zero_extend<mode>di2_nc,
1064         advanced_load_check_nc_<mode>): New insns.
1065         (zero_extend*): Add speculable* attributes.
1066
1067         * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
1068         (msched-stop-bits-after-every-cycle): Likewise.
1069         (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
1070         Likewise.
1071         (msched-spec-verbose): Remove.
1072         (msched-prefer-non-data-spec-insns,
1073         msched-prefer-non-control-spec-insns,
1074         msched-count-spec-in-critical-path,
1075         msel-sched-dont-check-control-spec): Use Target  Report Var
1076         instead of Common Report Var.
1077
1078         * config/ia64/itanium2.md: Remove incorrect bypass.
1079         
1080         * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
1081
1082 2008-10-14  Jakub Jelinek  <jakub@redhat.com>
1083
1084         PR middle-end/37805
1085         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
1086         and -fhelp=separate.
1087
1088 2008-10-14  Ben Elliston  <bje@au.ibm.com>
1089
1090         * config/rs6000/rs6000.md (cell_micro): Fix formatting.
1091
1092 2008-10-13  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
1095         non-integer modes.
1096
1097 2008-10-13  Matthias Klose  <doko@ubuntu.com>
1098
1099         * config/pa/linux-atomic.c: Work around missing header file
1100         for hppa64-linux-gnu targets.
1101
1102 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1103             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
1104             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
1105             Grace Cao  <grace_cao@playstation.sony.com>
1106
1107         * doc/invoke.texi (-mgen-cell-microcode): Document.
1108         (-mwarn-cell-microcode): Document.
1109         * cfglayout.c (locator_location): Export.
1110         * rtl.h (locator_location): Define prototype.
1111         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
1112         New predicate.
1113         * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
1114         * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
1115         (mwarn-cell-microcode): New option.
1116         * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
1117         (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
1118         cell and not already set.
1119         Turn off string instructions if not generating cell microcode.
1120         (rs6000_final_prescan_insn): New function that warns about microcoded
1121         instructions.
1122         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
1123         * config/rs6000/rs6000.md
1124         Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
1125         the instruction would have been microcoded on the Cell.  Set
1126         cell_micro to always on unnamed patterns for the string instructions.
1127         (cell_micro): Update definition, remove load/store conditional
1128         microcoded.
1129         (sign_extend:DI): Define new pattern for non microcoded version.
1130         (sign_extend:SI): Likewise.
1131         (compare (div:P)): Set cell_micro to not.
1132         (andsi3): Define as an expand.
1133         (andsi3_mc): New pattern.
1134         (andsi3_nomc): New pattern.
1135         (andsi3_internal0_nomc): New pattern.
1136         (andsi3_internal2): Rename to ...
1137         (andsi3_internal2_mc): this and enable iff generating microcode.
1138         (andsi3_internal3): Rename to ...
1139         (andsi3_internal3_mc): this and enable iff generating microcode.
1140         (andsi3_internal4): Enable iif generating microcode.
1141         (andsi3_internal5): Rename to ..
1142         (andsi3_internal5_mc): this and enable iff generating microcode.
1143         (andsi3_internal5_nomc): New pattern.
1144         (extzvdi_internal1): Enable iff generating microcode.
1145         (extzvdi_internal2): Likewise.
1146         (rotlsi3_internal7): Set cell_micro to always if non immediate form.
1147         (anddi3): Change to expand.
1148         (anddi3_mc): Rename from anddi3.
1149         (anddi3_no_mc): New pattern.
1150         (anddi3_internal2): Rename to ..
1151         (anddi3_internal2_mc): this and enable iff generating microcode.
1152         (anddi3_internal2_nomc): New pattern.
1153         (anddi3_internal3): Rename to ..
1154         (anddi3_internal3_mc): this and enable iff generating microcode.
1155         (anddi3_internal3_nomc): New pattern.
1156         (movti_string): Set cell_micro to always if TARGET_STRING.
1157         (stmsi8): Set cell_micro to always.
1158         (stmsi7): Likewise.
1159         (stmsi6): Likewise.
1160         (stmsi5): Likewise.
1161         (stmsi4): Likewise.
1162         (stmsi3): Likewise.
1163         (stmsi8_power): Likewise.
1164         (stmsi7_power): Likewise.
1165         (stmsi6_power): Likewise.
1166         (stmsi5_power): Likewise.
1167         (stmsi4_power): Likewise.
1168         (stmsi3_power): Likewise.
1169         (movsi_update2): Enable iff generating microcode.
1170         (movhi_update3): Likewise.
1171         (lmw): Set cell_micro to always.
1172
1173 2008-10-13  Richard Sandiford  <rdsandiford@googlemail.com>
1174
1175         * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
1176         * config/s390/s390.c (machine_function): Remove
1177         decomposed_literal_pool_addresses_ok_p.
1178         (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
1179         the difference of two labels.
1180         (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
1181         (s390_pool_offset): New function.
1182         (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
1183         (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
1184
1185 2008-10-13  Nathan Froyd  <froydnj@codesourcery.com>
1186
1187         * doc/install.texi (powerpc-*-*): Require binutils 2.15.
1188         (powerpc*-*-linux-gnu*): Describe.
1189         * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
1190         * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1191         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1192         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1193         config/rs6000/e500crtres32gpr.asm,
1194         config/rs6000/e500crtres64gpr.asm,
1195         config/rs6000/e500crtres64gprctr.asm,
1196         config/rs6000/e500crtrest32gpr.asm,
1197         config/rs6000/e500crtrest64gpr.asm,
1198         config/rs6000/e500crtresx32gpr.asm,
1199         config/rs6000/e500crtresx64gpr.asm,
1200         config/rs6000/e500crtsav32gpr.asm,
1201         config/rs6000/e500crtsav64gpr.asm,
1202         config/rs6000/e500crtsav64gprctr.asm,
1203         config/rs6000/e500crtsavg32gpr.asm,
1204         config/rs6000/e500crtsavg64gpr.asm,
1205         config/rs6000/e500crtsavg64gprctr.asm: Use it.
1206         * config/rs6000/crtsavres.asm: Really remove.
1207
1208 2008-10-13  Kai Tietz  <kai.tietz@onevision.com>
1209
1210         Fix PR/25502
1211         * c-format.c (convert_format_name_to_system_name): Use
1212         TARGET_OVERRIDES_FORMAT_INIT.
1213         * config.gcc (extra_options): Add for mingw targets mingw.opt.
1214         * config/i386/mingw.opt: New.
1215         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
1216         * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
1217         (ms_printf_length_specs): Removed const specifier.
1218         * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
1219         * doc/invoke.texi (Wno-pedantic-ms-format): New.
1220
1221 2008-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1222
1223         * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
1224         * doc/install.texi: Bump recommended MPFR to 2.3.2.
1225
1226 2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>
1227
1228         PR middle-end/37808
1229         * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
1230         sure that ref has valid bb.
1231         
1232 2008-10-12  Richard Henderson  <rth@redhat.com>
1233
1234         PR middle-end/37447
1235         * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
1236         * alias.c (value_addr_p, stack_addr_p): Remove.
1237         (nonoverlapping_memrefs_p): Remove IRA special case.
1238         * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
1239         * emit-rtl.h (set_mem_attrs_for_spill): Declare.
1240         * reload1.c (alter_reg): Use it.
1241
1242 2008-10-12  Uros Bizjak  <ubizjak@gmail.com>
1243
1244         * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
1245         of registers instead of eax, ebx, ecx and edx.  Use for loop
1246         and check register for non-zero value before the call
1247         to decode_caches_intel.
1248
1249 2008-10-11  Kenneth Zadeck <zadeck@naturalbridge.com>
1250
1251         PR rtl-optimization/37448
1252         * df.h: (df_ref_class): New enum.
1253         (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
1254         (struct df_ref): Replaced with union df_ref_d.
1255         (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
1256         New members of df_ref_d union.
1257         (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
1258         DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
1259         DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
1260         DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
1261         DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
1262         DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
1263         (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
1264         (df_scan_bb_info, df_bb_regno_first_def_find,
1265         df_bb_regno_last_def_find, df_find_def, df_find_use,
1266         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
1267         debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
1268         df_ref_create, df_ref_remove, df_compute_accessed_bytes,
1269         df_get_artificial_defs, df_get_artificial_uses, union_defs)
1270         Replaced struct df_ref * with df_ref.
1271         * df-scan.c (df_collection_rec, df_null_ref_rec,
1272         df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
1273         df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
1274         df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
1275         df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
1276         df_reorganize_refs_by_reg_by_reg,
1277         df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
1278         df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
1279         df_sort_and_compress_refs, df_install_ref, df_install_refs,
1280         df_ref_record, df_get_conditional_uses, df_get_call_refs,
1281         df_bb_refs_record, df_exit_block_uses_collect,
1282         df_record_exit_block_uses, df_reg_chain_mark,
1283         df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
1284         df_ref * with df_ref.
1285         (df_ref_record, df_uses_record, df_ref_create_structure): Added
1286         df_ref_class parameter.
1287         (df_scan_problem_data): Added new pools for different types of refs.
1288         (df_scan_free_internal, df_scan_alloc, df_free_ref,
1289         df_ref_create_structure): Processed new ref pools.
1290         (df_scan_start_dump): Added counts of refs and insns.
1291         (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
1292         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1293         df_entry_block_defs_collect, df_exit_block_uses_collect): Added
1294         code to pass df_ref_class down to ref creation functions.
1295         (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
1296         df_reg_chain_mark): Use macros to hide references to df_refs.
1297         (df_ref_chain_change_bb): Removed.
1298         (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
1299         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
1300         Enhanced to understand df_ref union structure.
1301         * fwprop.c (local_ref_killed_between_p, use_killed_between,
1302         all_uses_available_at, update_df, try_fwprop_subst,
1303         forward_propagate_subreg, forward_propagate_and_simplify,
1304         forward_propagate_into, fwprop, fwprop_addr): Replaced struct
1305         df_ref * with df_ref.
1306         (use_killed_between, all_uses_available_at): Use macros to hide
1307         references to df_refs.
1308         * regstat.c (regstat_bb_compute_ri,
1309         regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
1310         df_ref.
1311         * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
1312         see_handle_relevant_refs, see_analyze_one_def,
1313         see_update_relevancy, see_propagate_extensions_to_uses): Replaced
1314         struct df_ref * with df_ref.
1315         * ra-conflict.c (record_one_conflict, clear_reg_in_live,
1316         global_conflicts): Replaced struct df_ref * with df_ref.
1317         * ddg.c (create_ddg_dep_from_intra_loop_link,
1318         add_cross_iteration_register_deps, build_inter_loop_deps):
1319         Replaced struct df_ref * with df_ref.
1320         (create_ddg_dep_from_intra_loop_link,
1321         add_cross_iteration_register_deps): Use macros to hide references
1322         to df_refs.
1323         * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
1324         df_ref * with df_ref.
1325         * df-core.c (df_bb_regno_first_def_find,
1326         df_bb_regno_last_def_find, df_find_def, df_find_use,
1327         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
1328         debug_df_ref): Replaced struct df_ref * with df_ref.
1329         (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
1330         * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
1331         df_ref.
1332         * web.c (union_defs, entry_register, replace_ref, web_main):
1333         Replaced struct df_ref * with df_ref.
1334         (union_defs, replace_ref): Use macros to hide references to df_refs.
1335         * global.c (compute_regs_asm_clobbered, build_insn_chain):
1336         Replaced struct df_ref * with df_ref.
1337         * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
1338         * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
1339         Replaced struct df_ref * with df_ref.
1340         * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
1341         mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
1342         with df_ref.
1343         * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
1344         * df-byte-scan.c (df_compute_accessed_bytes_extract,
1345         df_compute_accessed_bytes_strict_low_part,
1346         df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
1347         Replaced struct df_ref * with df_ref.
1348         (df_compute_accessed_bytes): Use macros to hide references to df_refs.
1349         * init-regs.c (initialize_uninitialized_regs): Replaced struct
1350         df_ref * with df_ref.
1351         * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
1352         check_dependency, check_dependencies, record_uses): Replaced
1353         struct df_ref * with df_ref.
1354         (invariant_for_use, check_dependency): Use macros to hide
1355         references to df_refs.
1356         * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
1357         get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
1358         iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
1359         (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
1360         references to df_refs.
1361         * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
1362         with df_ref.
1363         * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
1364         * df-problems.c (df_rd_bb_local_compute_process_def,
1365         df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
1366         df_chain_unlink_1, df_chain_unlink, df_chain_copy,
1367         df_chain_remove_problem, df_chain_create_bb_process_use,
1368         df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
1369         df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
1370         df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
1371         df_byte_lr_simulate_artificial_refs_at_top,
1372         df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
1373         df_note_bb_compute, df_note_add_problem, df_simulate_defs,
1374         df_simulate_uses, df_simulate_artificial_refs_at_end,
1375         df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
1376         df_ref.
1377         (df_chain_dump): Use macros to hide references to df_refs.
1378         * config/mips/mips.c (r10k_simplify_address): Replaced struct
1379         df_ref * with df_ref.
1380         * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
1381         mark_artificial_uses, mark_reg_dependencies,
1382         byte_dce_process_block): Replaced struct df_ref * with df_ref.
1383
1384 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1385
1386         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
1387         head comment.
1388         (array_ref_element_size): Likewise.
1389         (array_ref_low_bound): Likewise.
1390         (array_ref_up_bound): Likewise.
1391         * expr.c (contains_packed_reference): Likewise.
1392         (array_ref_element_size): Likewise.
1393         (array_ref_low_bound): Likewise.
1394         (array_ref_up_bound): Likewise.
1395         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
1396         with ARRAY_RANGE_REF.
1397         (idx_find_step): Likewise.
1398         (idx_record_use): Likewise.
1399         (strip_offset_1): Likewise.
1400         (idx_remove_ssa_names): Likewise.
1401
1402 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
1403             Andi Kleen  <ak@linux.intel.com>
1404
1405         * config/i386/cpuid.h (__cpuid_count): New defines.
1406         * config/i386/driver-i386.c (struct cache_desc): New structure.
1407         (describe_cache): Use struct cache_desc to pass cache descriptions.
1408         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
1409         (detect_caches_amd): Use struct cache_desc to describe caches.
1410         (decode_caches_intel): Use struct cache_desc to pass cache
1411         descriptions.  Update descriptions to match latest (rev -032,
1412         December 2007) CPUID documentation.  Do not check valid bit here.
1413         Check for Xeon MP value 0x49 problems.
1414         (detect_caches_cpuid2): New function, split from detect_caches_intel.
1415         Check valid bit before calling decode_caches_intel.  Detect number
1416         of times to repeat CPUID instruction.
1417         (detect_caches_cpuid4): New function.
1418         (detect_caches_intel): Depending on max_level, call
1419         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
1420         only when other methods fail to provide valid L2 cache description.
1421
1422 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1423
1424         PR middle-end/37608
1425         * pa.md (call, call_value): Generate an rtx for register r4 and pass
1426         it to PIC call patterns.
1427         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
1428         code generation and attributes from pattern.  Change peephole2 to
1429         split for noreturn case.  Revise split pattern for non noreturn case.
1430         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
1431         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
1432         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
1433         asserts.
1434
1435 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
1436
1437         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
1438         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
1439         and fp_type.
1440         (divdf3): Reformat long line.
1441
1442 2008-10-11  Michael J. Eager  <eager@eagercon.com>
1443
1444         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
1445         -mfpu options.
1446         (rs6000_handle_option): Process -mfpu options.
1447         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
1448         (enum fpu_type_t): New.
1449         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
1450         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
1451         fp_type.
1452         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
1453         (floatdidf2): Add TARGET_SINGLE_FPU condition.
1454         * config/rs6000/rs6000.opt (-mfpu): New.
1455         (-mxilinx-fpu): New.
1456         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
1457         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
1458         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
1459         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
1460         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
1461
1462 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
1463
1464         PR target/35760
1465         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
1466         LO_SUM on Darwin if mode has just one unit.
1467
1468 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
1469
1470         PR debug/37002
1471         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
1472         has been optimized out.
1473
1474 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
1475
1476         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
1477         instead of PIC_DIRECT_ADDR_P.
1478         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
1479         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
1480         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
1481         (PIC_OFFSET_P): Rename to...
1482         (PCREL_SYMOFF_P): ...this.
1483         (PIC_DIRECT_ADDR_P): Delete.
1484         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
1485         PIC_OFFSET_P.
1486         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
1487         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
1488         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
1489         * config/sh/sh.c (print_operand): Remove CONST handling.
1490         (unspec_caller_rtx_p): Rewrite to use split_const and check
1491         the operands of UNSPEC bases.
1492         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
1493         with (unspec [A B] UNSPEC_SYMOFF).
1494         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
1495         UNSPEC_PCREL_SYMOFF.
1496         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
1497         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
1498         (UNSPEC_EXTRACT_U16): Likewise.
1499         (UNSPEC_SYMOFF): Likewise.
1500         (UNSPEC_PCREL_SYMOFF): Likewise.
1501         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
1502         of constants.
1503         (movsi_const_16bit): Likewise.
1504         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
1505         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
1506         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
1507         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
1508         with (unspec [A B] UNSPEC_SYMOFF).
1509         (symPLT_label2reg): Replace (minus A (minus B pc)) with
1510          (unspec [A B] PCREL_UNSPEC_SYMOFF).
1511         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
1512         (Csu): Likewise UNSPEC_EXTRACT_U16.
1513         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
1514         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
1515
1516 2008-10-10  Stepan Kasal  <skasal@redhat.com>
1517
1518         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
1519         for loop strip mining and loop blocking.
1520
1521 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
1522
1523         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
1524         vary types depending on debug info.
1525
1526 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
1527
1528         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
1529         before ensuring it's already computed.
1530
1531 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
1532
1533         * rtl.h (locator_eq): New decl.
1534         * cfglayout.c (locator_scope): New function.
1535         (insn_scope): Use it.
1536         (locator_eq): New function.
1537         (fixup_reorder_chain): Search for last insn in src bb
1538         that has locator set or first insn in dest bb.  Use
1539         locator_eq instead of == to compare locators.
1540         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1541         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
1542         == to compare locators.
1543
1544         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
1545         as used.
1546         * gimple-low.c (lower_function_body, lower_gimple_return,
1547         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
1548         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
1549         goto_block on edges if goto_locus is known.
1550
1551         PR middle-end/37774
1552         * tree.h (get_object_alignment): Declare.
1553         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
1554         get_object_alignment if needed.
1555         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
1556         handling to ...
1557         (get_object_alignment): ... here.  New function.  Try harder to
1558         determine alignment from get_inner_reference returned offset.
1559
1560 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
1561
1562         * graphite.c (gloog): Don't call find_unreachable_blocks
1563         before delte_unreachable_blocks.
1564
1565         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
1566         goto_locus of true_edge into RTL locator.
1567
1568 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
1569
1570         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
1571         (*jcc_btdi_mask_rex64): Ditto.
1572         (*jcc_btsi): Ditto.
1573         (*jcc_btsi_mask): Ditto.
1574         (*jcc_btsi_1): Ditto.
1575         (*jcc_btsi_mask_1): Ditto.
1576
1577 2008-10-08  Paul Brook  <paul@codesourcery.com>
1578
1579         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
1580         compatible profiler (__gnu_mcount_nc).
1581         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1582
1583 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         * config/i386/i386.c (initial_ix86_tune_features): Add
1586         X86_TUNE_USE_VECTOR_FP_CONVERTS.
1587         * config/i386/i386.h (ix86_tune_indices): Likewise.
1588         (TARGET_USE_VECTOR_FP_CONVERTS): New.
1589
1590         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
1591         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
1592         for FP to FP splitters.
1593
1594 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1595
1596         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
1597         splitter.
1598
1599 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
1600
1601         PR target/36635
1602         PR target/37290
1603         PR rtl-optimization/37341
1604         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
1605         to ORIG_BB, pass through ORIG_BB recursively.
1606         (cse_condition_code_reg): Adjust caller.
1607
1608 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
1609
1610         * sdbout.c (sdbout_one_type): Treat the value type
1611         CONST_DECL for enumerals.
1612
1613 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1614
1615         * config/i386/i386.md: Remove trailing white spaces.
1616
1617 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
1618
1619         PR rtl-optimization/37448
1620         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
1621         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
1622         Make unsigned long.
1623         (struct output_info) [count]: Renamed total_created and made
1624         unsigned long.
1625         (struct output_info) [size]: Renamed total_allocated and made
1626         unsigned long.
1627         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
1628         Properly keep track of desc->size.
1629         (print_statistics, dump_alloc_pool_statistics): Enhance the
1630         printing of statistics to print the number of elements and to use
1631         unsigned longs.
1632         
1633 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1634
1635         PR middle-end/37576
1636         * opts.h (CL_SAVE): Move up to flags range.
1637         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
1638         CL_COMMON): Renumber.
1639         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
1640         * opts.c (common_handle_option): Revert last change.
1641
1642 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1643
1644         * config/i386/i386-protos.h (ix86_schedule): New.
1645
1646         * config/i386/i386.c (ix86_schedule): New.
1647         (override_options): Add schedule to processor_alias_table.  Set
1648         ix86_schedule from the schedule field in processor_alias_table.
1649         (ix86_function_specific_save): Save ix86_schedule.
1650         (ix86_function_specific_restore): Restore ix86_schedule.
1651
1652         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
1653         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
1654         and generic32.
1655
1656         * config/i386/i386.opt: Add schedule.
1657
1658         * config/i386/ppro.md: Remove generic32.
1659
1660 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
1661
1662         PR c/35437
1663         * expr.c (count_type_elements): Handle ERROR_MARK.
1664
1665 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1666
1667         PR debug/29609
1668         PR debug/36690
1669         PR debug/37616
1670         * basic-block.h (struct edge_def): Add goto_block field.
1671         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
1672         one insn with locus corresponding to edge's goto_locus if !optimize.
1673         * profile.c (branch_prob): Copy edge's goto_block.
1674         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
1675         emitted jumps.
1676         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
1677         locator in between the merged basic blocks if !optimize and needed.
1678         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
1679         goto_locus into RTL locator.  For unconditional jump use that
1680         locator for the jump insn.
1681         (expand_gimple_cond): Convert goto_block and goto_locus into
1682         RTL locator for all remaining edges.  For unconditional jump
1683         use that locator for the jump insn.
1684         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
1685         there is more than one edge or insn locator along the forwarding
1686         edges and !optimize.  If there is just one, set e->goto_locus.
1687         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
1688         edge's goto_block.
1689         (move_block_to_fn): Adjust edge's goto_block.
1690
1691 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1692
1693         PR middle-end/37731
1694         * expmed.c (expand_mult): Properly check DImode constant in
1695         CONST_DOUBLE.
1696
1697 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1698
1699         PR debug/37738
1700         * dwarf2out.c (common_block_die_table): New variable.
1701         (common_block_die_table_hash, common_block_die_table_eq): New
1702         functions.
1703         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
1704         COMMON block in the current scope rather than globally.  Optimize
1705         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
1706         DW_OP_addr SYMBOL_REF+off.
1707
1708 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1709
1710         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
1711         Return true for non-addressable GIMPLE operands.
1712
1713 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1714
1715         PR target/24765
1716         * config/i386/i386.c (initial_ix86_tune_features): Remove
1717         X86_TUNE_USE_BIT_TEST.
1718         * config/i386/i386.h (ix86_tune_indices): Likewise.
1719         (TARGET_USE_BIT_TEST): Removed.
1720
1721 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1722
1723         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
1724
1725 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
1726
1727         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
1728         (mul<mode>3_mul3): ... into this new template.
1729
1730 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
1731
1732         * gimplify.c (gimplify_arg): Add location argument.  Use it.
1733         (gimplify_call_expr): Pass location to gimplify_arg.
1734         (gimplify_modify_expr_to_memcpy): Same.
1735         (gimplify_modify_expr_to_memset): Same.
1736
1737 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1738
1739         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1740         Update calls to build_unary_op and build_indirect_ref for location
1741         changes.
1742
1743 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
1744
1745         build_modify_expr.
1746         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
1747         * c-typeck.c (array_to_pointer_conversion): Pass location to
1748         build_unary_op.
1749         (function_to_pointer_conversion): Use error_at and warning_at.
1750         (build_indirect_ref): Same.
1751         (build_array_ref): Pass location to build_binary_op.
1752         (parser_build_unary_op): Do not set location after calling
1753         build_unary_op.
1754         (build_unary_op): Add location argument.  Use it throughout.  Set
1755         EXPR_LOCATION before returning new tree.
1756         (build_modify_expr): Same.
1757         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
1758         returning node.
1759         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
1760         build_indirect_ref, build_modify_expr.
1761         (c_finish_omp_for): Same.  Use error_at instead of error.
1762         * c-common.c (c_common_truthvalue_conversion): Pass location to
1763         build_unary_op.
1764         (warn_for_div_by_zero): Add location argument.
1765         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
1766         build_unary_op, warn_for_div_by_zero.
1767         * c-parser.c (c_parser_typeof_specifier): Use
1768         protected_set_expr_location.
1769         (c_parser_statement_after_labels): Same.
1770         (c_parser_condition): Same.
1771         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
1772         (c_parser_conditional_expression): Use protected_set_expr_location.
1773         (c_parser_unary_expression): Pass location to build_indirect_ref.
1774         (c_parser_postfix_expression_after_primary): Pass location to
1775         build_indirect_ref, build_unary_op.
1776         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
1777
1778 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
1779
1780         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
1781         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
1782         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
1783         r14000 and r16000.
1784         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
1785         (mips_issue_rate): Handle PROCESSOR_R10000.
1786         * config/mips/mips.md (cpu): Add r10000.
1787         Include r10000.md.
1788         * config/mips/10000.md: New file.
1789
1790 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1791
1792         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
1793         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
1794         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
1795
1796 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1797
1798         * config/darwin-protos.h (machopic_function_base_name): Delete.
1799         (machopic_function_base_sym): Likewise.
1800         (machopic_gen_offset): Declare.
1801         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
1802         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
1803         * config/darwin.c (machopic_function_base_name): Delete.
1804         (machopic_function_base_sym): Likewise.
1805         (gen_pic_offset): Rename to...
1806         (machopic_gen_offset): ...this and remove the pic_base argument.
1807         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
1808         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
1809         crtl->uses_pic_offset_table.
1810         (machopic_indirect_data_reference): Use new machopic_gen_offset
1811         interface.
1812         (machopic_legitimize_pic_address): Likewise.
1813         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
1814
1815         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
1816         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
1817         * config/i386/i386.c (output_set_got): Likewise.
1818         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
1819         instead of a MINUS.
1820         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
1821         (legitimate_address_p): Likewise.
1822         (output_pic_addr_const): Likewise.
1823         (output_addr_const_extra): Likewise.
1824         (ix86_delegitimize_address): Expect darwin_local_data_pic to
1825         match an UNSPEC rather than a MINUS.
1826         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
1827         (builtin_setjmp_receiver): Use machopic_gen_offset.
1828         * config/i386/predicates.md (pic_symbolic_operand): Handle
1829         UNSPEC_MACHOPIC_OFFSET.
1830
1831         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1832         Use machopic_gen_offset and machopic_operand_p.
1833         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
1834         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
1835         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
1836         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
1837         Set crtl->uses_pic_offset_table.
1838
1839 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1840
1841         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1842         Declare.
1843         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
1844         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
1845         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
1846         (constant_pool_expr_p): Use split_const and check the base.
1847         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
1848         instead of a MINUS.
1849         (legitimate_constant_pool_address_p): Check toc_relative_p
1850         instead of constant_pool_expr_p.
1851         (print_operand_address): Always use output_addr_const for
1852         constant pool addresses.
1853         (rs6000_output_addr_const_extra): New function.
1854         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
1855
1856 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
1857
1858         PR middle-end/37535
1859
1860         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
1861         (mark_ref_live, mark_ref_dead): Use them.
1862         (def_conflicts_with_inputs_p): Remove.
1863         (mark_early_clobbers): New function.
1864         (process_bb_node_lives): Call preprocess_constraints and
1865         mark_early_clobbers.
1866
1867         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
1868
1869 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
1870
1871         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
1872         lib with -mthread switch.
1873
1874 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
1875
1876         PR c++/37410
1877         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
1878         function in two, making it call a new and reusable
1879         dwarf2out_imported_module_or_decl() that takes the containing
1880         BLOCK of the declaration in argument.
1881         (dwarf2out_imported_module_or_decl_real): New function.
1882         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
1883         IMPORTED_DECL in account.
1884         * tree.def: Added IMPORTED_DECL node type.
1885         * tree.h: Added accessors for IMPORTED_DECL nodes.
1886         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
1887
1888 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889
1890         * doc/gimple.texi: Fix some typos, wrap some long lines,
1891         fix some broken wraps with continuations.
1892         * tree-ssa-reassoc.c: Fix comment typos.
1893
1894 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1895
1896         PR target/37603
1897         * pa.c (legitimize_pic_address): Force function labels to memory in
1898         word mode.
1899
1900 2008-10-04  Anton Blanchard  <anton@samba.org>
1901
1902         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
1903         (rs6000_split_atomic_op): Same.
1904         (rs6000_split_compare_and_swap): Same.
1905         (rs6000_split_compare_and_swapqhi): Same.
1906
1907 2008-10-04  Richard Guenther  <rguenther@suse.de>
1908
1909         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
1910         instead of pointer equality.
1911         (vn_nary_op_eq): Likewise.
1912
1913 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1914
1915         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT 
1916         condition.
1917         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
1918         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
1919
1920 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
1921
1922         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
1923         Revert previous change.
1924
1925 2008-10-03  Tom Tromey  <tromey@redhat.com>
1926
1927         * stringpool.c (ggc_alloc_string): Terminate string.
1928
1929 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
1930
1931         * gimplify.c (gimplify_function_tree): For -finstrument-functions
1932         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
1933         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
1934
1935         PR debug/37726
1936         * gimplify.c (declare_vars): Use gimple_bind_block instead of
1937         gimple_block.
1938
1939 2008-10-03  Pascal Obry  <obry@adacore.com>
1940
1941         * gcov.c (create_file_names): Properly handle UNIX and DOS
1942         directory separators.
1943         (make_gcov_file_name): Likewise + convert the ':' DOS drive
1944         separator to '~' to ensure clean filenames on Windows.
1945
1946 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
1947
1948         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
1949         Add a null terminator to the stripped name.
1950
1951 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
1952
1953         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
1954         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1955         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
1956         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
1957         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1958         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
1959         TARGET_SINGLE_FLOAT.
1960
1961 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
1962
1963         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
1964
1965 2008-10-02  Richard Guenther  <rguenther@suse.de>
1966
1967         PR middle-end/37713
1968         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
1969         and VECTOR_TYPE recurse with useless_type_conversion_p which
1970         properly handles void pointer conversion.
1971
1972 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>  
1973
1974         PR target/37528
1975         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
1976         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
1977
1978 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1979
1980         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1981         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
1982         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
1983         they translate to non builtins.
1984         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
1985         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
1986         __builtin_vec_promote, __builtin_vec_extract, and
1987         __builtin_vec_insert.
1988         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
1989         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
1990         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
1991         * config/rs6000/altivec.h (vec_extract): Define
1992         (vec_insert): Define.
1993         (vec_splats): Define.
1994         (vec_promote): Define.
1995
1996 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1997             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
1998             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
1999
2000         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
2001         Altivec intrinsics.
2002         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
2003         prototype.  Add new parameter, blk.
2004         Use BLKmode for the MEM if blk is true.
2005         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
2006         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
2007         ALTIVEC_BUILTIN_STVRXL.
2008         Update usage of altivec_expand_lv_builtin.
2009         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
2010         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
2011         (altivec_init_builtins): If compiling for the Cell, also define the
2012         cell VMX builtins.
2013         * config/rs6000/rs6000.h (rs6000_builtins): Define
2014         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
2015         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
2016         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
2017         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
2018         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
2019         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
2020         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
2021         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
2022         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
2023         UNSPEC_STVRX, and UNSPEC_STVRXL.
2024         (altivec_lvlx): New pattern.
2025         (altivec_lvlxl): New pattern.
2026         (altivec_lvrx): New pattern.
2027         (altivec_lvrxl): New pattern.
2028         (altivec_stvlx): New pattern.
2029         (altivec_stvlxl): New pattern.
2030         (altivec_stvrx): New pattern.
2031         (altivec_stvrxl): New pattern.
2032         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
2033         (vec_lvlxl): Likewise.
2034         (vec_lvrx): Define if PPU is defined.
2035         (vec_lvrxl): Likewise.
2036         (vec_stvlx): Define if PPU is defined.
2037         (vec_stvlxl): Likewise.
2038         (vec_stvrx): Define if PPU is defined.
2039         (vec_stvrxl): Likewise.
2040
2041 2008-10-01  Geert Bosch  <bosch@adacore.com>
2042
2043         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
2044
2045 2008-10-01  Richard Guenther  <rguenther@suse.de>
2046
2047         PR tree-optimization/37617
2048         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
2049         do not add to the NEW_SETS.
2050
2051 2008-10-01  Richard Guenther  <rguenther@suse.de>
2052
2053         PR middle-end/37285
2054         * tree-vrp.c (execute_vrp): If we optimized away the default
2055         case make sure to promote the label that got in place of it
2056         to a default case label.
2057
2058 2008-10-01  Richard Henderson  <rth@redhat.com>
2059
2060         PR tree-opt/35737
2061         * tree-complex.c (set_component_ssa_name): Don't optimize
2062         is_gimple_min_invariant values with ssa_names in abnormal phis.
2063
2064 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
2065
2066         PR tree-optimization/37662
2067         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
2068         commutative binary operation if they are in the wrong order and
2069         fold_build2 produces non-GIMPLE.
2070
2071 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
2072
2073         PR tree-optimization/37662
2074         PR tree-optimization/37663
2075         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
2076         get_value_range with non-SSA_NAME.  Don't assert operands have been
2077         folded, instead just bail out.
2078
2079 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2080
2081         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
2082
2083 2008-09-30  Richard Guenther  <rguenther@suse.de>
2084
2085         PR middle-end/37491
2086         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
2087         build restrict-qualified pointers.
2088         (vectorizable_store): Move alias check later.
2089         (vectorizable_load): Likewise.
2090
2091 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
2092
2093         * c-common.c (empty_if_body_warning): Remove.
2094         * c-common.h (empty_if_body_warning): Remove.
2095         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
2096         here the -Wempty-body warning for `if' and `else' statements.
2097         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
2098
2099 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2100
2101         * config/i386/i386.opt: Add msse2avx.
2102
2103         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
2104         * config/i386/linux64.h (ASM_SPEC): Likewise.
2105
2106         * doc/invoke.texi: Document -msse2avx.
2107
2108 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2109
2110         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
2111
2112 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
2113
2114         * ifcvt.c (noce_emit_store_flag): If using condition from original
2115         jump, reverse it if if_info->cond was reversed.
2116
2117 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2118
2119         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2120         non-constant memory if it cannot be forced to constant memory.
2121         Overhaul surrounding code and factor out common condition.
2122
2123 2008-09-29  Jeff Law <law@redhat.com>
2124
2125         * reload1.c (alter_reg): Add missing curly braces.
2126
2127 2008-09-29  Michael J. Eager  <eager@eagercon.com>
2128
2129         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
2130         are easy.
2131         * config/rs6000/rs6000.c (rs6000_override_options): Move
2132         rs6000_init_hard_regno_mode_ok after all options changed.
2133         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
2134         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
2135         -msimple-fpu flags.  Add warning messages if single FP not configured.
2136         (rs6000_file_start): Output gnu_attribute for single-float.
2137         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
2138         (rs6000_legitimize_address): Likewise.
2139         (rs6000_legitimize_reload_address): Likewise.
2140         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
2141         TARGET_SINGLE_FLOAT.
2142         (function_arg_advance): Likewise (partial conversion).
2143         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
2144         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
2145         TARGET_SINGLE_FLOAT.
2146         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
2147         (rs6000_emit_prologue): Likewise.
2148         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
2149         TARGET_SINGLE_FLOAT.
2150         (rs6000_libcall_value): Likewise.
2151         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
2152         (TARGET_DOUBLE_FLOAT): New default to 1
2153         (TARGET_SIMPLE_FPU): New default to 0
2154         (TARGET_SINGLE_FPU): New default to 0
2155         (TARGET_SINGLE_FLOAT_MODE): New.
2156         (TARGET_DOUBLE_FLOAT_MODE): New.
2157         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
2158         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
2159         UNITS_PER_FP_WORD
2160         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
2161         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
2162         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
2163         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
2164         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
2165         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
2166         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
2167         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
2168         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2169         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
2170         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
2171         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
2172         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
2173         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
2174         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
2175         cmptf_internal1, *cmptf_internal2): Condition on
2176         TARGET_DOUBLE_FLOAT.
2177         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
2178         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
2179         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
2180         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
2181         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
2182         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
2183         TARGET_SINGLE_FLOAT.
2184         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
2185         * config/rs6000/rs6000.opt (-msingle-float): New.
2186         (-mdouble-float): New.
2187         (-msimple-fpu): New.
2188         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
2189         -msingle-float, -mdouble-float, -msimple-fpu options.
2190         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
2191         _SOFT_DOUBLE for -msingle-float.
2192         * config.gcc: New config for target=powerpc-xilinx-eabi.
2193
2194 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
2195
2196         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
2197         have exit and entry.
2198         (new_scop): Take entry and exit edge to define new SCoP.
2199         (sd_region_p): New structure used during SCoP detection.
2200         (move_scops): Delete.
2201         (move_sd_regions): New.
2202         (scopdet_info): Change the definition from edges back to basic_blocks.
2203         (scopdet_edge_info):  Work on basic_blocks and rename to
2204         scopdet_basic_block_info.
2205         (split_difficult_bb): At the moment removed. We should later
2206         add it at another place.
2207         (build_scops_1): Work on basic_blocks.
2208         (bb_in_sd_region): New.
2209         (find_single_entry_edge): New.
2210         (find_single_exit_edge): New.
2211         (create_single_entry_edge): New.
2212         (sd_region_without_exit): New.
2213         (create_single_exit_edge): New.
2214         (unmark_exit_edges): New.
2215         (mark_exit_edges): New.
2216         (create_sese_edges): New.
2217         (build_graphite_scops): New.
2218         (build_scops): Make SCoPs SESE.
2219         (limit_scops): Use the new functions.
2220
2221 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
2222
2223         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
2224
2225 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2226
2227         PR target/37640
2228         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
2229         address to a register before taking the lower part.
2230
2231 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2232
2233         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
2234         for SHmedia.
2235
2236 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2237             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
2238
2239         PR tree-opt/36891
2240         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
2241         the newly created variable.
2242         Create a VECTOR_CST of all 1s for vector types.
2243
2244 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
2245
2246         PR middle-end/36575
2247         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
2248
2249 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
2250
2251         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
2252         order to convert between modes.
2253         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
2254
2255 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2256
2257         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
2258         if needed.
2259
2260 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
2261
2262         Revert:
2263         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2264         * ira-lives.c:...
2265         * doc/rtl.texi:...
2266
2267 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
2268
2269         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
2270         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
2271         them to yield false with MIPS16.
2272
2273 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
2274
2275         PR middle-end/37275
2276         * dwarf2out.c (tls_mem_loc_descriptor): New function.
2277         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
2278         mem_loc_descriptor failed.  Accept UNSPEC.
2279         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
2280         fail if one of the loc_descriptor calls for pieces failed.
2281         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
2282         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
2283         if loc_descriptor_from_tree_1 on offset failed.
2284
2285         PR middle-end/37576
2286         * opts.c (common_handle_option): Don't call print_specific_help with
2287         CL_SAVE as first argument.
2288
2289 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2290             Steve Ellcey  <sje@cup.hp.com>
2291
2292         * configure: Regenerate for new libtool.
2293         * aclocal.m4: Ditto.
2294
2295 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
2296
2297         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
2298         alias set on MEM when saving stack pointer.
2299         * config/rs6000/rs6000.md (allocate_stack): Likewise
2300
2301 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
2302
2303         PR tree-optimization/37574
2304         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
2305         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
2306         instead of vector_type for constants. Take computation out of loop.
2307         (vect_get_vec_def_for_operand): Use only vectype for constant case,
2308         and use only vector_type for invariant case.
2309         (get_initial_def_for_reduction): Use vectype instead of vector_type.
2310
2311 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
2312
2313         PR c/37645
2314         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
2315         the decl is a VAR_DECL or FUNCTION_DECL.
2316
2317 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2318
2319         PR middle-end/37535
2320         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
2321         (mark_ref_live, mark_ref_dead): Use them.
2322         (def_conflicts_with_inputs_p): Remove.
2323         (mark_early_clobbers): New function.
2324         (process_bb_node_lives): Call preprocess_constraints and
2325         mark_early_clobbers.
2326
2327         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
2328
2329 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2330
2331         PR middle-end/37448
2332         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
2333         (ira_compress_allocno_live_ranges): New prototype.
2334
2335         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
2336         (coalesced_allocnos_living_at_program_points): New.
2337         (coalesced_allocnos_live_at_points_p,
2338         set_coalesced_allocnos_live_points): New functions.
2339         (coalesce_spill_slots): Rewrite.
2340         
2341         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
2342         ira_compress_allocno_live_ranges): New functions.
2343
2344         * ira-build.c (ira_flattening): Call
2345         ira_compress_allocno_live_ranges.
2346         (ira_build): Ditto.
2347
2348 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2349
2350         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
2351         optimization.
2352
2353 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
2354
2355         * combine.c (make_compound_operation): Handle the 'E' format.
2356         (count_rtxs): Likewise.
2357         (update_table_tick): Likewise.
2358         (get_last_value_validate): Likewise.
2359
2360 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2361
2362         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
2363
2364 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
2365
2366         * matrix-reorg.c (transform_allocation_sites): Initializers 
2367         added to avoid the warning.
2368
2369 2008-09-25  Martin Jambor  <mjambor@suse.cz>
2370
2371         * cgraph.c (free_nodes): New variable.
2372         (NEXT_FREE_NODE): New macro.
2373         (cgraph_create_node): Reuse nodes from the free list.  Do not
2374         update uid if doing so.
2375         (cgraph_remove_node): Add the node to the free list.
2376
2377 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
2378
2379         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2380
2381 2008-09-24  Richard Henderson  <rth@redhat.com>
2382
2383         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
2384         * unwind-dw2.c (execute_stack_op): Handle it.
2385
2386 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
2387
2388         Revert:
2389         2008-09-24  Michael J. Eager  <eager@eagercon.com>
2390
2391 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
2392
2393         * c-common.c (fname_decl): New location argument.
2394         * c-common.h (fname_decl): Same.
2395         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
2396         {warning,error}.
2397         (c_parser_typeof_specifier): Same.
2398         (c_parser_parms_list_declarator): Same.
2399         (c_parser_asm_string_literal): Same.
2400         (c_parser_compound_statement_nostart): Same.
2401         (c_parser_label): Same.
2402         (c_parser_do_statement): Same.
2403         (c_parser_asm_statement): Same.
2404         (c_parser_unary_expression): Same.
2405         (c_parser_sizeof_expression): Same.
2406         (c_parser_postfix_expression): Same.
2407         (c_parser_pragma): Same.
2408         (c_parser_omp_clause_collapse): Same.
2409         (c_parser_omp_clause_num_threads): Same.
2410         (c_parser_omp_clause_schedule): Same.
2411         (c_parser_omp_all_clauses): Same.
2412         (c_parser_omp_sections_scope): Same.
2413         (c_parser_omp_for_loop): Same.  Pass condition's location to
2414         c_objc_common_truthvalue_conversion.
2415         (c_parser_enum_specifier): Remove comment.
2416
2417 2008-09-24  Michael J. Eager  <eager@eagercon.com>
2418
2419         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
2420         are easy.
2421         * config/rs6000/rs6000.c (rs6000_override_options): Move
2422         rs6000_init_hard_regno_mode_ok after all options changed.
2423         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
2424         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
2425         -msimple-fpu flags.  Add warning messages if single FP not configured.
2426         (rs6000_file_start): Output gnu_attribute for single-float.
2427         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
2428         (rs6000_legitimize_address): Likewise.
2429         (rs6000_legitimize_reload_address): Likewise.
2430         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
2431         TARGET_SINGLE_FLOAT.
2432         (function_arg_advance): Likewise.
2433         (function_arg): Likewise.
2434         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
2435         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
2436         TARGET_SINGLE_FLOAT.
2437         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
2438         (rs6000_emit_prologue): Likewise.
2439         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
2440         TARGET_SINGLE_FLOAT.
2441         (rs6000_libcall_value): Likewise.
2442         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
2443         (TARGET_DOUBLE_FLOAT): New default to 1
2444         (TARGET_SIMPLE_FPU): New default to 0
2445         (TARGET_SINGLE_FPU): New default to 0
2446         (TARGET_SINGLE_FLOAT_MODE): New.
2447         (TARGET_DOUBLE_FLOAT_MODE): New.
2448         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
2449         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
2450         UNITS_PER_FP_WORD
2451         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
2452         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
2453         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
2454         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
2455         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
2456         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
2457         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
2458         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
2459         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2460         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
2461         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
2462         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
2463         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
2464         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
2465         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
2466         cmptf_internal1, *cmptf_internal2): Condition on
2467         TARGET_DOUBLE_FLOAT.
2468         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
2469         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
2470         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
2471         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
2472         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
2473         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
2474         TARGET_SINGLE_FLOAT.
2475         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
2476         * config/rs6000/rs6000.opt (-msingle-float): New.
2477         (-mdouble-float): New.
2478         (-msimple-fpu): New.
2479         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
2480         -msingle-float, -mdouble-float, -msimple-fpu options.
2481         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
2482         _SOFT_DOUBLE for -msingle-float.
2483         * config.gcc: New config for target=powerpc-xilinx-eabi.
2484
2485 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
2486
2487         * config/sparc/constraints.md: New file.
2488         * config/sparc/sparc.md: Include it.
2489         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
2490         (sparc_extra_constraint_check): Delete.
2491         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
2492         (memory_ok_for_ldd): New predicate.
2493         (sparc_extra_constraint_check): Delete.
2494         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
2495         (CONST_OK_FOR_LETTER_P): Likewise.
2496         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2497         (EXTRA_CONSTRAINT): Likewise.
2498
2499 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
2500
2501         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
2502
2503 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2504
2505         * alias.c (find_base_value): Use FIND_BASE_TERM.
2506         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
2507
2508 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2509
2510         * config/i386/i386.c: Include cselib.h.
2511         (ix86_pic_register_p): New function.
2512         (ix86_delegitimize_address): Use it to check for the PIC register.
2513
2514 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2515
2516         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
2517         * config/i386/i386.c (ix86_find_base_term): Don't check for
2518         SYMBOL_REF and LABEL_REF.
2519
2520 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2521
2522         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
2523         constant PLUS in a CONST.
2524
2525 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
2526
2527         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
2528         check for sibcall support for w64.
2529
2530 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
2531
2532         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
2533
2534 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
2535
2536         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
2537         parser_build_binary_op.
2538         * c-decl.c (build_enumerator): Pass location to build_binary_op.
2539         * c-typeck.c (build_array_ref): Same.
2540         (parser_build_unary_op): New location argument.
2541         (pointer_diff): Pass location to build_binary_op,
2542         c_objc_common_truthvalue_conversion.
2543         (build_modify_expr): Same.
2544         (build_unary_op): New location argument.
2545         (build_binary_op): New location argument.
2546         (c_objc_common_truthvalue_conversion): Pass location to
2547         c_*common_truthvalue_conversion.
2548         * c-convert.c (convert): Same.
2549         * c-common.c (binary_op_error): New location argument.
2550         (pointer_int_sum): Pass location to build_binary_op.
2551         (c_common_truthvalue_conversion): New location argument.
2552         (warn_for_sign_compare): Same.
2553         * c-common.h: Add location argument to c_common_truthvalue_conversion,
2554         binary_op_error, build_binary_op, warn_for_sign_compare.
2555         * c-parser.c (c_parser_condition): Pass location to
2556         c_*common_truthvalue_conversion.
2557         (c_parser_conditional_expression): Save condition's location and pass
2558         it on down.
2559         (c_parser_binary_expression): Same, but for the binary operator's
2560         location.
2561         (c_parser_omp_for_loop): Pass location to
2562         c_objc_common_truthvalue_conversion.
2563
2564 2008-09-23  Martin Jambor  <mjambor@suse.cz>
2565
2566         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
2567         (cgraph_node_remove_callees): New temporary f.  Hold the next item
2568         in f when looping.
2569         (cgraph_node_remove_callers): Likewise.
2570
2571         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
2572         (ipa_node_removal_hook): Likewise.
2573
2574         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
2575         gimple_call_copy_skip_args and moved to the gimple_call section.
2576         * gimple.c (gimple_copy_call_skip_args): Renamed to
2577         gimple_call_copy_skip_args.  Changed al users.
2578
2579 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
2580
2581         * ira-color.c (start_allocno_priorities): Rename to
2582         setup_allocno_priorities.  Use costs and
2583         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
2584         range lengths.  Get rid off doubles.
2585         (ira_fast_allocations): Call start_allocno_priorities.
2586         
2587 2008-09-22  David Daney  <ddaney@avtrex.com>
2588
2589         PR target/37593
2590         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
2591         register if TARGET_LONG_CALLS.
2592
2593 2008-09-22  Richard Guenther  <rguenther@suse.de>
2594
2595         PR tree-optimization/37145
2596         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
2597         value-numbering union accesses with their offset and size only.
2598         (visit_reference_op_load): Fix simplification of inserted conversions.
2599         * tree-ssa-pre.c (find_or_generate_expression): Do not
2600         recursively generate expressions if running FRE.
2601
2602 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
2603
2604         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
2605         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
2606         New patterns.
2607
2608 2008-09-22  Richard Guenther  <rguenther@suse.de>
2609
2610         PR tree-optimization/37145
2611         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
2612         (phi_translate_1): Constant fold references.
2613
2614 2008-09-22  Ira Rosen  <irar@il.ibm.com>
2615
2616         PR tree-optimization/37482
2617         * tree-vectorizer.h (struct _slp_instance): Add new field.
2618         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
2619         (get_earlier_stmt): New function.
2620         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
2621         function.
2622         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
2623         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
2624         asserts that GSI points to the scalar statement being vectorized.
2625         Set new statement location according to GSI.
2626         (vect_schedule_slp_instance): Use GSI of
2627         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
2628
2629 2008-09-21  Jan Hubicka  <jh@suse.cz>
2630
2631         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
2632         (ipcp_insert_stage): Update dead_nodes bitmap.
2633
2634 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
2635
2636         PR target/37528 
2637         * config/i386/t-cygming (SHLIB_LC): Remove.
2638         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
2639         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
2640
2641 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
2642
2643         PR middle-end/37170
2644         PR middle-end/37280
2645         * final.c (mark_symbol_ref_as_used): New helper function.
2646         (output_operand): Instead of just looking inside MEMs for
2647         SYMBOL_REFs, use new helper function and for_each_rtx.
2648         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
2649         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
2650         Make head comment more general.
2651         * config/darwin.c (machopic_output_indirection): Handle weak
2652         references here, like in assemble_external.
2653
2654 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2655
2656         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
2657         (sparc_emit_float_lib_cmp): Change return type.
2658         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
2659         (gen_compare_operator): New function.
2660         (sparc_emit_float_lib_cmp): Return the new operator to be used in
2661         the comparison sequence.  Minor tweaks.
2662         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
2663         that the final operator and the result of sparc_emit_float_lib_cmp
2664         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
2665         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
2666         buneq, bunge, bunle, bltgt): Assert that the final operator and the
2667         result of sparc_emit_float_lib_cmp match for software TFmode.
2668         (movqicc, movhicc, movsicc, movdicc): Merge into...
2669         (mov<I:mode>cc): ...this.
2670         (movsfcc, movdfcc, movtfcc): Merge into...
2671         (mov<F:mode>cc): ...this.
2672         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
2673         into...
2674         (mov<I:mode>_cc_v9): ...this.
2675         (movdi_cc_sp64_trunc): Delete.
2676         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
2677         movdi_cc_reg_sp64): Merge into...
2678         (mov<I:mode>_cc_reg_sp64): ...this.
2679         (movsf_cc_sp64): Rename into...
2680         (movsf_cc_v9): ...this.
2681         (movdf_cc_sp64): Rename into...
2682         (movdf_cc_v9): ...this.
2683         (movtf_cc_hq_sp64): Rename into...
2684         (movtf_cc_hq_v9): ...this.
2685         (movtf_cc_sp64): Rename into...
2686         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
2687
2688 2008-09-21  Diego Novillo  <dnovillo@google.com>
2689
2690         * doc/gccint.texi: Include generic.texi and gimple.texi.
2691         Re-order index.
2692         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
2693         (GIMPLE): Move to gimple.texi.
2694         (Annotations): Remove references to to stmt_ann_t and
2695         ssa_name_ann_t.
2696         (SSA Operands): Rename from 'Statement Operands'.
2697         * doc/generic.texi: New.
2698         * doc/gimple.texi: New.
2699         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
2700         * Makefile.in (TEXI_GCCINT_FILES):
2701         * gimple.c (gimple_copy_call_skip_args): Rename from
2702         giple_copy_call_skip_args.  Update all users.
2703         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
2704
2705 2008-09-21  Ira Rosen  <irar@il.ibm.com>
2706
2707         PR tree-optimization/37539
2708         * tree-vect-transform.c (vect_transform_strided_load): Save vector
2709         statement in related statement field only for the first load of the
2710         group of loads with the same data reference.
2711
2712 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
2713
2714         * config/mips/mips.h (TUNE_OCTEON): New macro.
2715         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
2716         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
2717         * config/mips/octeon.md: New file.
2718         * config/mips/mips.md: Include octeon.md.  Restore
2719         semi-alphabetical order of include files.
2720
2721 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2722
2723         PR target/37571
2724         * config/i386/i386.md (*jcc_fused_1): Removed.
2725         (*jcc_fused_2): Likewise.
2726         (*jcc_fused_3): Likewise.
2727         (*jcc_fused_4): Likewise.
2728
2729 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2730
2731         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
2732         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
2733         * target.h (gcc_target): Add ira_cover_classes.
2734         * ira.c: Remove IRA_COVER_CLASSES guards.
2735         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
2736         instead of IRA_COVER_CLASSES.
2737         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
2738         (setup_class_translate): Likewise.
2739         (setup_reg_class_intersect_union): Likewise.
2740         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
2741         test of targetm.ira_cover_classes.
2742         * opts.c (decode_options): Use targetm.ira_cover_classes instead
2743         of IRA_COVER_CLASSES.
2744         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
2745         (TARGET_INITIALIZER): Include it.
2746         * targhooks.h (default_ira_cover_classes): Declare.
2747         * targhooks.c (default_ira_cover_classes): New function.
2748
2749 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
2750         
2751         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
2752         
2753 2008-09-19  Ian Lance Taylor  <iant@google.com>
2754
2755         * varasm.c (narrowing_initializer_constant_valid_p): Return
2756         NULL_TREE if ENDTYPE is not an integer.
2757
2758 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2759
2760         PR tree-opt/30930
2761         * tree-ssa.c (execute_update_addresses_taken): Also update
2762         DECL_GIMPLE_REG_P for vector and complex types.
2763
2764 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
2765             Jan Hubicka  <jh@suse.cz>
2766
2767         PR middle-end/37567
2768         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
2769         empty before freeing them.
2770         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
2771
2772 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
2773
2774         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
2775         * config/xtensa/predicates.md (tls_symbol_operand): New.
2776         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
2777         (TARGET_CANNOT_FORCE_MEM): Define.
2778         (xtensa_tls_symbol_p): New.
2779         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
2780         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
2781         (xtensa_tls_module_base): New.
2782         (xtensa_call_tls_desc): New.
2783         (xtensa_legitimize_tls_address): New.
2784         (xtensa_legitimize_address): Handle TLS symbols.
2785         (xtensa_tls_referenced_p_1): New.
2786         (xtensa_tls_referenced_p): New.
2787         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
2788         UNSPEC_DTPOFF.
2789         (XTENSA_BUILTIN_THREAD_POINTER): New.
2790         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
2791         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
2792         builtin.  Add declarations for __builtin_thread_pointer and
2793         __builtin_set_thread_pointer.
2794         (xtensa_fold_builtin): Recognize new builtins.
2795         (xtensa_expand_builtin): Expand new builtins.
2796         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
2797         (TARGET_THREADPTR): Define.
2798         (HAVE_AS_TLS): Define default value.
2799         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
2800         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
2801         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
2802         (UNSPECV_SET_TP): New.
2803         (sym_TPOFF, sym_DTPOFF): New.
2804         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
2805         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
2806         * configure: Regenerated.
2807         
2808 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2809
2810         PR target/37394
2811         * config/ia64/ia64.c (ia64_optimization_options): Move
2812         checking and setting flag_schedule_insns_after_reload and
2813         ia64_flag_schedule_insns2 back to ...
2814         (ia64_override_options): Here.
2815
2816 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2817
2818         PR rtl-opt/37451
2819         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
2820         zero extend count after the correction to it is done.
2821         (doloop_optimize): Update call to doloop_modify, don't zero extend
2822         count before call.
2823
2824 2008-09-18  Martin Jambor  <mjambor@suse.cz>
2825
2826         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
2827
2828         * ipa-prop.c: Correct comments.
2829         * ipa-prop.h: Likewise.
2830
2831 2008-09-18  Jan Hubicka  <jh@suse.cz>
2832
2833         PR middle-end/37448
2834         * ipa-reference.c (ipa_reference_local_vars_info_d,
2835         ipa_reference_global_vars_info_d,
2836         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
2837         ipa_reference_vars_info_t): Move here from ipa-reference.h
2838         (node_duplication_hook_holder, node_removal_hook_holder): New.
2839         (get_reference_vars_info_from_cgraph): Rename to ...
2840         (get_reference_vars_info): ... this one, use cgraph uids.
2841         (get_local_reference_vars_info, get_global_reference_vars_info):
2842         Use cgraph instead of decl.
2843         (ipa_reference_get_read_local, ipa_reference_get_written_local):
2844         Remove.
2845         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
2846         ipa_reference_get_written_global,
2847         ipa_reference_get_not_written_global): Use cgraph argument.
2848         (check_call): Simplify avail check.
2849         (scan_stmt_for_static_refs): Update.
2850         (propagate_bits): Update.
2851         (merge_callee_local_info): Remove.
2852         (init_function_info): Use cgraph nodes.
2853         (clean_function_local_data): Break out from ...
2854         (clean_function): ... here.
2855         (copy_local_bitmap, copy_global_bitmap): New functions.
2856         (duplicate_node_data, remove_node_data): New functions.
2857         (generate_summary): Register hooks; use visibility instead of
2858         master clones.
2859         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
2860         * ipa-reference.h (ipa_reference_local_vars_info_d,
2861         ipa_reference_global_vars_info_d,
2862         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
2863         ipa_reference_vars_info_t): Move to ipa-reference.c
2864         (ipa_reference_get_read_local, ipa_reference_get_written_local):
2865         Remove.
2866         (ipa_reference_get_read_global, ipa_reference_get_written_global,
2867         ipa_reference_get_not_read_global,
2868         ipa_reference_get_not_written_global): Update prototype.
2869         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
2870         (init_state): Remove.
2871         (node_duplication_hook_holder, node_removal_hook_holder): New.
2872         (get_function_state, set_function_state): Use VECtor.
2873         (analyze_function): Check body availability.
2874         (add_new_function): Likewise.
2875         (duplicate_node_data, remove_node_data): New.
2876         (generate_summary): Register hooks; do not care about clones.
2877         (propafate): Do not care about clones; recursive functions are
2878         not looping.
2879         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
2880         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
2881         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
2882         static.
2883         * tree-flow.h (function_ann_d): Remove reference_vars_info.
2884         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
2885         Update call of ipa-reference accesors.
2886
2887 2008-09-18  Simon Baldwin  <simonb@google.com>
2888
2889         * c-opts.c (c_common_handle_option): Add handling for
2890         -Wbuiltin-macro-redefined command line option.
2891         * c.opt: Added builtin-macro-redefined option.
2892         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
2893         documentation.
2894
2895 2008-09-18  Richard Guenther  <rguenther@suse.de>
2896
2897         PR tree-optimization/37258
2898         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
2899         and signedness for integral types.
2900         (vn_phi_eq): Require compatible types.
2901
2902 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
2903
2904         PR debug/34037
2905         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
2906         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
2907         VAR_DECL.
2908         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
2909         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
2910         ggc_free other TREE_LIST nodes from that chain.
2911         * function.c (instantiate_decls): Instantiate also DECL_RTL
2912         of vars in cfun->local_decls, free that list afterwards.
2913
2914 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2915
2916         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
2917         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
2918
2919 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
2920
2921         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
2922         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
2923
2924 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
2925
2926         PR tree-optimization/37102
2927         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
2928         from a node. Check to see if another PHI is dead.
2929         (eliminate_useless_phis): Rename from eliminate_virtual_phis and 
2930         remove real PHIs which have no uses.
2931         (rewrite_out_of_ssa): Call eliminate_useless_phis.
2932
2933 2008-09-18  Richard Guenther  <rguenther@suse.de>
2934
2935         PR middle-end/37284
2936         * tree-cfg.c (remove_useless_stmts_1): Remove
2937         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
2938
2939 2008-09-18  Nick Clifton  <nickc@redhat.com>
2940
2941         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
2942         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
2943         to frv_secondary_reload_class.
2944         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2945         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
2946         (frv_secondary_reload_class): Omit unused parameter.
2947         (frv_secondary_reload): New function.  Handle the case when
2948         secondary_reload_class() is called before the reload_(in|out)
2949         _optabs have been initialised.
2950         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
2951         unused parameter.
2952         * config/frv/frv.md: Define an exclusion set between fr550_m0
2953         and fr550_f0.
2954
2955 2008-09-18  Richard Guenther  <rguenther@suse.de>
2956
2957         PR tree-optimization/37456
2958         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
2959         want to insert after ends a BB insert on the single fallthru
2960         outgoing edge.
2961
2962 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
2963
2964         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
2965         Mention -march=z9-109, z9-ec and z10.
2966
2967 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
2968
2969         PR rtl-optimization/37544
2970         * regrename.c (maybe_mode_change): Exit early when copy_mode
2971         is narrower than orig_mode and narrower than new_mode.
2972
2973 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
2974
2975         PR middle-end/37499
2976         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
2977
2978         * sched-rgn.c (ref_counts): Remove.
2979         (insn_referenced): New static variable.
2980         (INSN_REF_COUNT): Remove.
2981         (sched_run_compute_dependencies): Use insn_referenced instead of
2982         INSN_REF_COUNT.
2983         (add_branch_dependences): Likewise.  Delete dead assignment.
2984
2985 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
2986
2987         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
2988         consumer is an asm.  Add comment why this is important.
2989         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
2990         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
2991
2992 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
2993
2994         * expr.c (emit_group_store): Do not shift before moving via a
2995         stack slot.
2996
2997 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2998
2999         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
3000         from aggregate to non-aggregate type if the bit pattern is not fully
3001         preserved afterwards.
3002
3003 2008-09-17  Richard Guenther  <rguenther@suse.de>
3004
3005         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
3006         (verify_gimple_assign): ... this.  Split into ...
3007         (verify_gimple_assign_unary): ... this,
3008         (verify_gimple_assign_binary): ... that,
3009         (verify_gimple_assign_single): ... and this.
3010         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
3011         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
3012         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
3013         (verify_types_in_gimple_reference): Be forgiving with
3014         VIEW_CONVERT_EXPRs.
3015         (verify_gimple_phi): Deal with virtual operands.
3016
3017         * tree.def (PREDICT_EXPR): Change to tcc_expression.
3018
3019 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3020
3021         * tree.c (get_callee_fndecl): Don't call the language hook.
3022         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
3023         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
3024         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
3025
3026 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
3027
3028         * tree.c (protected_set_expr_location): Don't unnecessarily
3029         check for error_mark_node.
3030
3031 2008-09-17  Art Haas  <ahaas@impactweather.com>
3032
3033         * ipa-reference.c (analyze_function): Declare step only if
3034         ENABLE_CHECKING is defined.
3035
3036 2008-09-17  Jan Hubicka  <jh@suse.cz>
3037
3038         PR c++/18071
3039         * tree.h (DECL_INLINE): remove.
3040         (DECL_DECLARED_INLINE_P): Update docs.
3041         (DECL_NO_INLINE_WARNING_P): new.
3042         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
3043         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
3044
3045 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
3046             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3047
3048         PR bootstrap/37441
3049         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
3050         false.
3051
3052 2008-09-17  Jan Hubicka  <jh@suse.cz>
3053
3054         * ipa-reference.c (ipa_obstack): Remove.
3055         (local_info_obstack, global_info_obstack): New.
3056         (add_static_var): We now handle variables only.
3057         (mark_address_taken, mark_load, mark_store): New functions based on ...
3058         (check_operand): ... remove.
3059         (get_asm_stmt_operands): Rename to ...
3060         (check_asm_memory_clobber): ... this. Look only for memory clobber.
3061         (scan_stmt_for_static_refs): Rewrite.
3062         (scan_op_for_static_refs): Rename to ...
3063         (scan_initializer_for_static_refs): do not look for VAR_DECL
3064         initializers; stop recursion on types and decls.
3065         (ipa_init): Use proper obstacks.
3066         (analyze_variable): Use scan_initializer_for_static_refs.
3067         (init_function_info): Use local obstack.
3068         (analyze_function): Simplify.
3069         (add_new_function): We don't need visited_nodes obstack.
3070         (generate_summary): Use proper obstacks; cleanup after propagation.
3071
3072 2008-09-17  Richard Guenther  <rguenther@suse.de>
3073
3074         PR middle-end/37385
3075         PR tree-optimization/37491
3076         * alias.c (get_alias_set): Use the canonical type.
3077         * tree-vect-transform.c (vectorizable_store): Use the type of
3078         the lhs for the vector type.  Adjust checking.
3079         (vectorizable_load): Adjust checking.
3080
3081 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
3082             Adam Nemet  <anemet@caviumnetworks.com>
3083
3084         PR rtl-optimization/37483
3085         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
3086         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
3087         Rearrange code to better match the original comment.  Check
3088         t_unconditional first.  Improve comment.
3089
3090 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
3091
3092         PR c/37529
3093         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
3094         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
3095
3096         PR c++/37530
3097         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
3098         GIMPLE_TRY if cleanup sequence is empty.
3099
3100 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3101
3102         PR middle-end/37263
3103         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
3104         eliminate IV if the cost are the same.
3105
3106 2008-09-16  Richard Guenther  <rguenther@suse.de>
3107
3108         PR middle-end/37380
3109         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
3110         if not necessary.
3111
3112 2008-09-16  Richard Guenther  <rguenther@suse.de>
3113
3114         PR tree-optimization/37508
3115         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
3116
3117 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3118
3119         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
3120
3121 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3122
3123         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
3124         use gen_floatdidf2 directly.
3125         (floatunssidf2): Likewise.
3126         (floatsidf_ppc64_mfpgpr): Remove.
3127         (floatsidf_ppc64): Remove.
3128         (floatunssidf_ppc64): Remove.
3129
3130 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
3131
3132         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
3133         rather than update_cost_queue.
3134
3135         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
3136         in every call starting with the second one, instead of only when
3137         alias_bitmap_obstack.elements != NULL.
3138
3139         * tree-predcom.c (filter_suitable_components): Free all refs in
3140         act->refs vector before calling release_component.
3141         (add_ref_to_chain): Free ref if not adding it to chain->refs.
3142
3143         * tree-data-ref.c (free_subscripts): Free all subscript objects.
3144
3145         * tree-loop-linear.c (linear_transform_loops): Initialize
3146         lambda_obstack only after calling perfect_loop_nest_depth.
3147         Goto free_and_continue instead of just continue for later failures.
3148
3149         PR middle-end/37479
3150         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
3151
3152         PR libmudflap/36397
3153         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
3154
3155 2008-09-14  Andreas Schwab  <schwab@suse.de>
3156
3157         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
3158
3159 2008-09-14  Jan Hubicka  <jh@suse.cz>
3160
3161         * invoke.texi (-fconserve-stack): Document.
3162         * opts.c (decode_options): Handle conserve_stack.
3163         * common.opt (fconvserve_stack): New.
3164
3165 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
3166
3167         * config.host: Add x-aix to host_xmake_file.
3168         * config/rs6000/t-aix52: Do not override LDFLAGS.
3169         * config/rs6000/x-aix: New file.
3170
3171 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
3172
3173         PR target/19636
3174         PR target/24894
3175         PR target/31644
3176         PR target/31786
3177         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
3178         is not recognized as a valid register usage. Allow REG_X to be used
3179         as a base pointer.
3180         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
3181         forces a reload when using a base register.
3182
3183 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
3184
3185         * config/i386/cygming-crtend.c (register_frame_ctor): If
3186         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
3187         directly with atexit.
3188         (deregister_frame_ctor): Rename to ...
3189         (deregister_frame_dtor): Use to call __gcc_deregister_frame
3190         if !DEFAULT_USE_CXA_ATEXIT.
3191
3192 2008-09-13  Jan Hubicka  <jh@suse.cz>
3193
3194         * cgraph.c: Include value-prof.h
3195         * Makefile.in (cgraph.o): Add value-prof.h dependency.
3196
3197 2008-09-13  Jan Hubicka  <jh@suse.cz>
3198
3199         PR middle-end/32581
3200         * tree-profile.c (add_abnormal_goto_call_edges): New function.
3201         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
3202         tree_gen_one_value_profiler, tree_gen_average_profiler,
3203         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
3204
3205 2008-09-13  Jan Hubicka  <jh@suse.cz>
3206
3207         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
3208         too many bytes on misalligned blocks.
3209
3210 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3211
3212         * doc/cfg.texi: Fix some typos.
3213         * doc/extend.texi: Likewise.
3214         * doc/install.texi: Likewise.
3215         * doc/invoke.texi: Likewise.
3216         * doc/rtl.texi: Likewise.
3217         * doc/tree-ssa.texi: Likewise.
3218
3219 2008-09-13  Richard Guenther  <rguenther@suse.de>
3220
3221         PR middle-end/30141
3222         * tree-nested.c (finalize_nesting_tree_1): Generate valid
3223         gimple stores for memory rhs.
3224
3225 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3226
3227         PR rtl-optimization/37489
3228         * cse.c (fold_rtx): Don't return const_true_rtx for float
3229         compare if FLOAT_STORE_FLAG_VALUE is undefined.
3230
3231 2008-09-13  Jan Hubicka  <jh@suse.cz>
3232
3233         PR tree-optimization/37392
3234         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
3235
3236 2008-09-13  Martin Jambor  <mjambor@suse.cz>
3237             Jan Hubicka  <jh@suse.cz>
3238
3239         * cgraph.c (free_edges): New variable.
3240         (NEXT_FREE_EDGE): New macro.
3241         (cgraph_free_edge): New function.
3242         (cgraph_remove_edge): Call cgraph_remove_edge_1.
3243         (cgraph_node_remove_callees): Likewise.
3244         (cgraph_node_remove_callers): Likewise.
3245         (cgraph_create_edge): Reuse edges from the free list.  Do not
3246         update uid if doing so.
3247         (cgraph_remove_*_hook): Add free call.
3248
3249 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3250
3251         * ira-color.c (conflict_allocno_vec): Delete.
3252         (update_cost_queue_elem): New structure.
3253         (update_cost_queue): New variable.
3254         (update_cost_queue_tail): Likewise.
3255         (update_cost_queue_elems): Likewise.
3256         (allocno_update_cost_check): Delete.
3257         (initiate_cost_update): Allocate update_cost_queue_elems
3258         instead of allocno_update_cost_check.
3259         (finish_cost_update): Update the free()s accordingly.
3260         (start_update_cost): New function.
3261         (queue_update_cost): Likewise.
3262         (get_next_update_cost): Likewise.
3263         (update_copy_costs_1): Inline into...
3264         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
3265         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
3266         once we've established they are equal.  Don't allocate update
3267         costs if there is nothing to add to them.
3268         (update_conflict_hard_regno_costs): Remove ALLOCNO and
3269         DIVISOR arguments.  Use a queue instead of recursive calls;
3270         process all the allocnos in the initial queue, rather than
3271         a single allocno.
3272         (assign_hard_reg): Use queue_update_cost instead of
3273         conflict_allocno_vec.  Queue coalesced allocnos instead
3274         of calling update_conflict_hard_regno_costs for each one.
3275         Just call update_conflict_hard_regno_costs once for the
3276         entire queue.
3277         (ira_color): Remove conflict_allocno_vec handling.
3278
3279 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
3280
3281         PR tree-optimization/37484
3282         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
3283         (save_var_name): Same.
3284         (initialize_cloog_names): Same.
3285         (initialize_cloog_names): Same.
3286
3287 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
3288
3289         * tree-scalar-evolution.c (set_instantiated_value): Set
3290         instantiated_below.
3291
3292 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
3293
3294         PR rtl-opt/37377
3295
3296         * ira-build.c (common_loop_tree_node_dominator): Remove.
3297         (copy_live_ranges_to_removed_store_destinations): New function.
3298         (regno_top_level_allocno_map): Move to top level from ...
3299         (ira_flattening): ... here.  Use
3300         copy_live_ranges_to_removed_store_destinations.
3301
3302         * ira-emit.c (generate_edge_moves): Fix a comment.
3303
3304 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
3305
3306         PR target/37466
3307         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
3308         scratch register after 'set' pattern.
3309
3310 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3311
3312         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
3313         information passed to mark_reg_pointer.
3314         * explow.c (force_reg): Likewise.
3315
3316 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3317
3318         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
3319         when building for the celledp architecture.
3320
3321 2008-09-12  Richard Guenther  <rguenther@suse.de>
3322
3323         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
3324
3325 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
3326
3327         PR rtl-optimization/37424
3328         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
3329         the regnos instead of the addresses.
3330
3331 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
3332
3333         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
3334
3335 2008-09-11  Richard Guenther  <rguenther@suse.de>
3336
3337         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
3338         entering the weaker equivalence recording.
3339
3340         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
3341
3342 2008-09-11  Jeff Law <law@redhat.com>
3343
3344         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
3345         by assign_stack_local on the IRA path for stack slot sharing
3346         as well as the non-IRA path.
3347
3348 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
3349
3350         * config/i386/i386.h: Fix whitespace issues.
3351
3352 2008-09-11  Martin Jambor  <mjambor@suse.cz>
3353
3354         * ipa-prop.h (struct ipa_param_flags): Removed.
3355         (struct ipa_param_descriptor): New structure.
3356         (struct ipa_node_params): ipcp_lattices, param_decls and
3357         param_flags moved to ipa_param_description.
3358         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
3359         descriptors.  Renamed all users.
3360         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
3361         changed to access descriptors.  Renamed all users.
3362         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
3363         to access descriptors. Renamed all users.
3364         * ipa-cp.c (ipcp_init_cloned_node): Call
3365         ipa_initialize_node_params instead of ipa_count_formal_params and
3366         ipa_create_param_decls_array.
3367         (ipcp_analyze_node): Likewise.
3368         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
3369         descriptors.  Renamed all users.
3370         (ipcp_initialize_node_lattices): Remove allocation.
3371         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3372         ipa_initialize_node_params instead of ipa_count_formal_params and
3373         ipa_create_param_decls_array.
3374         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
3375         ipa_populate_param_decls, made static, added parameter info,
3376         renamed mt to node, removed allocation, changed to use
3377         descriptors.
3378         (ipa_count_formal_params): Made static, added parameter info,
3379         renamed mt to node.
3380         (ipa_initialize_node_params): New function.
3381         (ipa_check_stmt_modifications): Changed to use descriptors.
3382         (ipa_detect_param_modifications): Removed allocation, changed to
3383         use descriptors.
3384         (ipa_note_param_call): Changed to use descriptors.
3385         (ipa_analyze_params_uses): Removed allocation.
3386         (ipa_free_node_params_substructures): Changed to use descriptors.
3387         (ipa_edge_duplication_hook): Use the unused attribute.
3388         (ipa_node_duplication_hook): Use the unused attribute, changed to
3389         use descriptors, changed to duplicate descriptors.
3390
3391         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
3392         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
3393         indirect inlining.  Made static.
3394         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
3395         functions called only once.
3396         (cgraph_decide_recursive_inlining): Don't call
3397         ipa_propagate_indirect_call_infos, pass new_edges to
3398         cgraph_mark_inline_edge instead.
3399         (cgraph_decide_inlining_of_small_functions): Don't call
3400         ipa_propagate_indirect_call_infos, pass new_edges to
3401         cgraph_mark_inline_edge instead.
3402         (cgraph_decide_inlining): Don't call
3403         ipa_propagate_indirect_call_infos.
3404         * ipa-prop.c: Check that vectors are allocated.
3405
3406         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
3407         iff a new cgraph edges have been created.
3408         (cgraph_decide_inlining): New variable redo_always_inline.
3409         Flattening and always_inlining loop until callgraph stabilizes.
3410         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
3411         true iff new cgraph edges have been created.
3412         (propagate_info_to_inlined_callees): Likewise.
3413         (ipa_propagate_indirect_call_infos): Likewise.
3414
3415 2008-09-11  Richard Guenther  <rguenther@suse.de>
3416
3417         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
3418         (set_prologue_iterations): Likewise.
3419         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
3420         Likewise.
3421         (vect_update_init_of_dr): Likewise.
3422         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
3423         type verification.
3424         * fold-const.c (fold_unary): Do not generate calculations
3425         in sub-types.
3426
3427 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
3428
3429         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
3430         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
3431         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
3432
3433         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
3434         a bool.
3435         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
3436         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
3437         before finalizing the changes.
3438         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
3439         for BIT_IOR_EXPR.
3440         (simplify_truth_ops_using_ranges): New.
3441         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
3442         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
3443         whether a simplification was made.
3444         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
3445         use a switch statement and also call simplify_truth_ops_using_ranges.
3446
3447 2008-09-11  Jan Hubicka  <jh@suse.cz>
3448
3449         * ggc-common.c (loc_array): Make static.
3450         * dce.c (rest_of_handle_ud_dce): Free worklist.
3451
3452 2008-09-11  Jan Hubicka  <jh@suse.cz>
3453
3454         * cgraph.c (cgraph_release_function_body): Plug memory leak on
3455         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
3456         function so we are sure we do not dangle it forever.
3457         * function.c (outer_function_chain, find_function_data): Remove.
3458         (function_context_stack): New.
3459         (push_function_context, pop_function_context): Update.
3460         * function.h (struct function): Remove pointer outer.
3461         (outer_function_chain, find_function_data): Remove.
3462         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
3463
3464 2008-09-11  Jan Hubicka  <jh@suse.cz>
3465
3466         PR middle-end/37448
3467         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
3468
3469 2008-09-11  Jan Hubicka  <jh@suse.cz>
3470
3471         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
3472
3473 2008-09-11  Jan Hubicka  <jh@suse.cz>
3474
3475         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
3476         (free_var_map_entry): New function.
3477         (redirect_edge_var_map_destroy): Use it.
3478
3479 2008-09-11  Jan Hubicka  <jh@suse.cz>
3480
3481         PR middle-end/37448
3482         * tree-inline.c (add_lexical_block): Replace with ...
3483         (prepend_lexical_block): ... prepend at begginig.
3484         (remap_blocks): Use it and reverse later.
3485         (expand_call_inline): Use prepend_lexical_block.
3486
3487 2008-09-11  Jan Hubicka  <jh@suse.cz>
3488
3489         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
3490
3491 2008-09-11  Jan Hubicka  <jh@suse.cz>
3492
3493         * function.c (free_after_compilation): Call insn_locators_free.
3494         * cfglayout.c (insn_locators_free): New function.
3495         * rtl.h (insn_locators_free): Declare.
3496
3497 2008-09-11  Jan Hubicka  <jh@suse.cz>
3498
3499         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
3500         vector pointer.
3501         (cond_move_process_if_block): Update call.
3502
3503 2008-09-11  Jan Hubicka  <jh@suse.cz>
3504
3505         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
3506         * vec.c: Include hashtab.h
3507         (vec_descriptor, ptr_hash_entry): New structures.
3508         (vec_desc_hash, vec_ptr_map): New static variables.
3509         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
3510         register_overhead, free_overhead, vec_heap_free): New functions.
3511         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
3512         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
3513         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
3514         New functions.
3515
3516 2008-09-11  Ira Rosen  <irar@il.ibm.com>
3517
3518         PR tree-optimization/37474
3519         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
3520         length of load permutation.
3521
3522 2008-09-11  Andreas Schwab  <schwab@suse.de>
3523
3524         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
3525
3526 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
3527
3528         PR target/37382
3529         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
3530         * dse.c (find_shift_sequence): Use extract_low_bits instead of
3531         simplify_gen_subreg.
3532
3533 2008-09-11  Ira Rosen  <irar@il.ibm.com>
3534
3535         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
3536         for alias check.
3537
3538 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3539
3540         PR middle-end/37338
3541         * gimplify.c (gimplify_body): Call default_rtl_profile.
3542
3543         PR target/36904
3544         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
3545         instead of tok->val.node if not expanding to something else.  Handle
3546         intervening CPP_PADDING tokens.
3547         (altivec_categorize_keyword): Remove unneeded comparisons.
3548
3549 2008-09-10  Richard Guenther  <rguenther@suse.de>
3550
3551         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
3552
3553 2008-09-10  Richard Guenther  <rguenther@suse.de>
3554
3555         PR middle-end/37432
3556         * tree-inline.c (insert_init_stmt): Make sure to not
3557         insert invalid gimple stores.
3558
3559 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
3560
3561         PR tree-optimization/37388
3562         * toplev.c (process_options): Fail and warn when graphite
3563         flags are used, but the compiler has not been configured
3564         with graphite libraries.
3565         * graphite.c (graphite_transform_loops): Remove printfs
3566         to dump_file for the case when graphite is not available.
3567
3568 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3569
3570         PR target/37434:
3571         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
3572         the even element into register.
3573         (ix86_expand_vector_init_general): Don't use
3574         ix86_expand_vector_init_interleave on V16QImode and V8HImode
3575         if we can't move from GPR to SSE register directly.
3576
3577 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
3578
3579         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
3580         not lose track of the number of NOPs needed.  Number of NOPs needed
3581         for sync vs. loads workaround was switched; corrected.  Run second
3582         pass for all workarounds.  No NOPs needed after call insns.  Change
3583         second pass to use find_next_insn_start and find_load helpers in order
3584         to properly detect parallel insns.
3585         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
3586
3587 2008-09-10  Jan Hubicka  <jh@suse.cz>
3588
3589         * value-prof.c (gimple_ic): Fix tuplification bug.
3590         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
3591         var warning.
3592
3593 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3594
3595         PR tree-optimization/37353
3596         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
3597         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
3598         calls instead of cond_dead_built_in_calls.
3599         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
3600         initalize the vector only before adding first entry.  Use VEC_safe_push
3601         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
3602         shrink_wrap_conditional_dead_built_in_calls call.
3603
3604 2008-09-10  Ira Rosen  <irar@il.ibm.com>
3605
3606         PR tree-optimization/37385
3607         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
3608         argument, and use it as a vector type if not NULL.
3609         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
3610         vectorized rhs.
3611         (vect_setup_realignment): Call vect_create_data_ref_ptr with
3612         additional argument.
3613         (vectorizable_load): Likewise.
3614
3615 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3616
3617         * config/i386/i386.md (SWI32): New mode iterator.
3618         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
3619         of SWI.
3620
3621 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3622
3623         PR rtl-optimization/37435
3624         * caller-save.c (insert_restore, insert_save): Check the mode by
3625         reg_save_code.
3626
3627 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3628
3629         PR other/37265
3630         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
3631         splay tree lookup.
3632         (dw2_output_indirect_constant_1): Use unstripped name in symbol
3633         reference.
3634
3635 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
3636
3637         * doc/invoke.texi (ARM Options): Correct errors in discussion
3638         of -mfloat-abi, -mhard-float, and -msoft-float.
3639
3640 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
3641             Jan Hubicka  <jh@suse.cz>
3642
3643         PR middle-end/37356
3644         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
3645         calling gimple_regimplify_operands on it.  Iterate over all newly
3646         added statements, not just the last one.
3647         (insert_init_stmt): Insert stmt into seq first, then call
3648         gimple_regimplify_operands on it.  Don't create new gimplification
3649         context, nor find referenced vars.
3650
3651 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
3652
3653         PR other/37419
3654         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
3655         to pointer to vector pointer.
3656         * ipa-prop.c (ipa_propagate_indirect_call_infos,
3657         propagate_info_to_inlined_callees): Likewise.
3658         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
3659         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
3660         ipa_check_create_edge_args.
3661         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
3662         argument to pointer to vector pointer.
3663         (cgraph_decide_inlining_of_small_function): Adjust
3664         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
3665         calls.
3666
3667         PR target/37438
3668         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
3669         optimizing for size, not speed.
3670
3671         PR rtl-optimization/37408
3672         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
3673         if parm is promoted.
3674
3675 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
3676
3677         PR tree-optimization/37375
3678         * tree-scalar-evolution.c (scev_info_str): Add field
3679         instantiated_below.
3680         (new_scev_info_str, eq_scev_info, find_var_scev_info,
3681         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
3682         set_instantiated_value): Pass instantiated_below.
3683         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
3684         to above functions.
3685         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
3686         the definitions are not instantiated.
3687
3688         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
3689         (block_before_loop): New.
3690         * tree-data-ref.c (dr_analyze_indices): Update uses of
3691         instantiate_scev.
3692         * graphite.c (block_before_scop): New.
3693         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
3694         basic block, not a loop for determining the parameters.
3695         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
3696         scop.
3697         (idx_record_params, find_params_in_bb, find_scop_parameters,
3698         build_loop_iteration_domains, add_conditions_to_domain): Update calls
3699         to instantiate_scev.
3700
3701         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
3702
3703 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3704
3705         PR rtl-opt/37333
3706
3707         * ira-build.c (ira_create_allocno): Setup frequency to 0.
3708
3709         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
3710         Check zero freq and increase if necessary.
3711
3712 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3713
3714         * ira-conflicts.c (process_regs_for_copy): Check that the hard
3715         regno is in the right range.  Add comments.
3716
3717 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3718
3719         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
3720         warnings.
3721         * mips-tfile.c (copy_object): Cast alloca result to int *.
3722         * mips-tdump.c (print_symbol): Cast xmalloc return values to
3723         proper types.
3724         Rename class to sclass.
3725         (read_tfile): Cast read_seek return values to proper types.
3726         Cast xcalloc return value to proper type.
3727
3728 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3729
3730         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
3731         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
3732         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
3733
3734 2008-09-09  Jan Hubicka  <jh@suse.cz>
3735
3736         * profile.c (is_edge_inconsistent): Add debug output; ignore
3737         negative count on fake edges.
3738         (is_inconsistent): Add debug output.
3739
3740 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3741
3742         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
3743         dump message.
3744         (choose_ready): When first insn is chosen from the ready list, also
3745         dump it.
3746
3747 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3748
3749         PR rtl-optimization/37360
3750         * haifa-sched.c (max_issue): Do not assert that we never issue more
3751         insns than issue_rate.  Add comment.
3752
3753 2008-09-09  Richard Guenther  <rguenther@suse.de>
3754
3755         * tree-cfg.c (verify_types_in_gimple_op): Remove.
3756         (verify_types_in_gimple_call): Rename to ...
3757         (verify_gimple_call): ... this.  Enhance.
3758         (verify_types_in_gimple_cond): Remove.
3759         (verify_gimple_comparison): New function ...
3760         (verify_types_in_gimple_assign): ... split out from here.
3761         (verify_types_in_gimple_return): Rename to ...
3762         (verify_gimple_return): ... this.  Enhance.
3763         (verify_types_in_gimple_switch): Rename to ...
3764         (verify_gimple_switch): ... this.  Enhance.
3765         (verify_gimple_goto): New function.
3766         (verify_types_in_gimple_phi): Rename to ...
3767         (verify_gimple_phi): ... this.  Enhance.
3768         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
3769         Fold in single-statement cases from verify_types_in_gimple_seq_2.
3770         (verify_types_in_gimple_seq_2): Remove cases handled in
3771         verify_types_in_gimple_stmt.
3772
3773 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
3774
3775         * config/bfin/bfin.c (n_regs_to_save): New static variable.
3776         (push_multiple_operation, pop_multiple_operation): Set it.
3777         (workaround_rts_anomaly): New function.
3778         (workaround_speculation): New function, broken out of bfin_reorg.
3779         (bfin_reorg): Call the new functions.
3780
3781 2008-09-09  Richard Guenther  <rguenther@suse.de>
3782
3783         PR middle-end/37354
3784         PR middle-end/30165
3785         * gimplify.c (gimplify_conversion): Change conversions of
3786         non-register type to VIEW_CONVERT_EXPRs.
3787         (gimplify_addr_expr): If we need to make the operand
3788         addressable make sure to use a properly initialized
3789         temporary for that so it gets a valid gimple store.
3790
3791 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
3792
3793         * function.h (struct function): Add function_start_locus.
3794         * cfgexpand.c (gimple_expand_cfg): Use it.
3795         * c-parser.c (c_parser_declaration_or_fndef): Set it.
3796
3797 2008-09-09  Richard Guenther  <rguenther@suse.de>
3798
3799         PR tree-optimization/37433
3800         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
3801         function calls.
3802
3803 2008-09-09  Richard Guenther  <rguenther@suse.de>
3804
3805         PR tree-optimization/37387
3806         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
3807         and bits to a common type.
3808
3809 2008-09-09  Nick Clifton  <nickc@redhat.com>
3810
3811         * config/v850/v850.md (return): Restore frame size restriction.
3812
3813 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
3814
3815         * c-common.c (c_expand_decl): Remove.
3816         * c-common.h (anon_aggr_type_p): Remove prototype.
3817         (DECL_ANON_UNION_ELEMS): Remove.
3818         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
3819         * c-decl.c (anon_aggr_type_p): Remove.
3820         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
3821         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
3822         * langhooks.h (struct lang_hooks): Remove expand_decl.
3823         * langhooks.c (lhd_expand_decl): Remove.
3824         * stmt.c (expand_anon_union_decl): Remove.
3825         * tree.h (expand_anon_union_decl): Remove prototype.
3826
3827 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3828
3829         PR target/36609
3830         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
3831         zero.
3832         * config/avr/avr.md  (QISI) : Define mode iterator.
3833         (negated_tst<mode>) : Redefine as split using mode macro.
3834         (reversed_tstqi): Define insn as reversed compare with zero.
3835         (reversed_tsthi): Ditto.
3836         (reversed_tstsi): Ditto.
3837
3838 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3839
3840         PR middle-end/37393
3841         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
3842         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
3843
3844         PR middle-end/37414
3845         * predict.c (optimize_function_for_size_p): Don't segfault if
3846         FUN is NULL.
3847         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
3848         tree_swap_operands_p): Don't test cfun != NULL before calling
3849         optimize_function_for_s*_p.
3850
3851 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
3852
3853         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
3854         end of the search.
3855
3856 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
3857
3858         * crx/crx.h (IRA_COVER_CLASSES): Define.
3859
3860 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3861
3862         PR middle-end/37337
3863         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
3864         even when a stmt has been gimple_modified_p, but after fold_stmt is
3865         not any longer.  Remove unneeded may_have_exposed_new_symbols
3866         initializations.
3867
3868 2008-09-08  Richard Guenther  <rguenther@suse.de>
3869
3870         PR tree-optimization/37421
3871         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
3872         valueize the RHS.
3873
3874 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3875
3876         PR middle-end/37415
3877         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
3878
3879 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3880
3881         PR driver/37409
3882         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
3883         * pa-hpux10.h (LINK_SPEC): Likewise.
3884         * pa-hpux11.h (LINK_SPEC): Likewise.
3885
3886 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3887
3888         * pa32-regs.h (IRA_COVER_CLASSES): Define.
3889         * pa64-regs.h (IRA_COVER_CLASSES): Define.
3890
3891 2008-09-07  Helge Deller  <deller@gmx.de>
3892
3893         * pa/linux-atomic.c: New file.
3894         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
3895         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
3896
3897 2008-09-07  Richard Guenther  <rguenther@suse.de>
3898             Ira Rosen  <irar@il.ibm.com>
3899
3900         PR tree-optimization/36630
3901         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
3902         Call STRIP_NOPS before calling evolution_part_in_loop_num.
3903
3904 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
3905             Ira Rosen  <irar@il.ibm.com>
3906
3907         PR tree-optimization/35642
3908         * config/rs6000/altivec.md (mulv8hi3): Implement.
3909
3910 2008-09-06  Jeff Law <law@redhat.com>
3911
3912         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
3913
3914 2008-09-06  Jan Hubicka  <jh@suse.cz>
3915
3916         PR tree-optimization/14703
3917         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
3918         declarations.
3919         * passes.c (init_optimization_passes): Recompute inline parameters.
3920
3921 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
3922
3923         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
3924         DECL being null.
3925
3926 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
3927             Peter Fuerst  <post@pfrst.de>
3928
3929         * doc/invoke.texi: Document -mr10k-cache-barrier=.
3930         * doc/extend.texi: Document __builtin_mips_cache.
3931         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
3932         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
3933         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
3934         __GCC_HAVE_BUILTIN_MIPS_CACHE.
3935         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
3936         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
3937         (set_push_mips_isas): New variable.
3938         (mips_r10k_cache_barrier): New variable.
3939         (cache): New availability predicate.
3940         (mips_builtins): Add an entry for __builtin_mips_cache.
3941         (mips_build_cvpointer_type): New function.
3942         (MIPS_ATYPE_CVPOINTER): New macro.
3943         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
3944         mode is VOIDmode.
3945         (r10k_simplified_address_p, r10k_simplify_address)
3946         (r10k_uncached_address_p, r10k_safe_address_p)
3947         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
3948         (r10k_needs_protection_p_call, r10k_needs_protection_p)
3949         (r10k_insert_cache_barriers): New functions.
3950         (mips_reorg_process_insns): Delete cache barriers after a
3951         branch-likely instruction.
3952         (mips_reorg): Call r10k_insert_cache_barriers.
3953         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
3954         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
3955         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
3956         (mips_cache, r10k_cache_barrier): New define_insns.
3957
3958 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
3959
3960         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
3961         * ira-color.c (setup_allocno_left_conflicts_num): Use
3962         hard_reg_set_equal_p instead of a comparison with
3963         ira_zero_hard_reg_set.
3964         * ira.c (setup_reg_subclasses): Likewise.
3965         (setup_cover_and_important_classes): Likewise.
3966         (setup_class_translate): Likewise.
3967         (setup_reg_class_intersect_union): Likewise.
3968         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
3969         (ira_init_once): Don't initialize them.
3970
3971 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
3972
3973         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
3974
3975 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
3976
3977         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
3978
3979 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3980
3981         Improved branch hints, safe hints, and scheduling.
3982
3983         * haifa-sched.c (sched_emit_insn) : Define.
3984         * sched-int.h (sched_emit_insn) : Add prototype.
3985         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
3986         -mhint-max-distance -msafe-hints) : Document.
3987         * config/spu/spu.c (spu_flag_var_tracking): New.
3988         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
3989         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
3990         TARGET_ASM_FILE_START): Define.
3991         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
3992         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
3993         (spu_emit_branch_hint): Add blocks argument.
3994         (insert_branch_hints, insert_nops): Remove.
3995         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
3996         uses_ls_unit, spu_sched_init_global, spu_sched_init,
3997         spu_sched_reorder, asm_file_start): New functions.
3998         (clock_var, spu_sched_length, pipe0_clock,
3999         pipe1_clock, prev_clock_var, prev_priority,
4000         spu_ls_first, prev_ls_clock): New static variables.
4001         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
4002         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
4003         (nopn_nv): Add a non-volatile version of nop.
4004         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
4005         -mhint-max-distance, -msafe-hints): New options.
4006
4007 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
4008             Samuel Tardieu  <sam@rfc1149.net>
4009
4010         * opts.c (decode_options): Combine nested if statements.
4011
4012         PR target/37283
4013         * opts.c (decode_options): Handle more relationships among
4014         unit-at-a-time, toplevel-reorder, and section-anchors.
4015
4016 2008-09-05  David Daney  <ddaney@avtrex.com>
4017
4018         * doc/install.texi (--enable-reduced-reflection): Document new option.
4019
4020 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
4021
4022         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
4023         constantpool_mem_p.
4024         (constantpool_operand): New.
4025         (move_operand): Disallow sub-word modes for the constant pool.
4026         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
4027         (xtensa_secondary_reload_class): Replace with....
4028         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
4029         Set icode for sub-word reloads from the constant pool.
4030         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
4031         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4032         * config/xtensa/xtensa.md (reload<mode>_literal): New.
4033         * config/xtensa/xtensa-protos.h: Update prototypes.
4034
4035 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
4036
4037         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
4038         (REG_CLASS_NAMES): Update.
4039         (REG_CLASS_CONTENTS): Update.
4040         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
4041         of ALL_REGS for regs 77 and 78.
4042         * function.c (instantiate_virtual_regs_in_insn): Assert that
4043         return value of simplify_gen_subreg is not NULL.
4044
4045 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
4046
4047         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
4048         (gen_rtvec_v): Fix coding standards.
4049
4050 2008-09-04  Jan Hubicka  <jh@suse.cz>
4051
4052         * i386.c (decide_alg): Be more conservative about optimizing for size.
4053
4054 2008-09-04  Ian Lance Taylor  <iant@google.com>
4055
4056         * varasm.c (narrowing_initializer_constant_valid_p): New
4057         static function.
4058         (initializer_constant_valid_p): Call it.
4059
4060 2008-09-04  Jeff Law  <law@redhat.com>
4061
4062         * fold-const.c (native_encode_real): Fix computation of WORDS.
4063         (native_interpret_real): Likewise.
4064
4065 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
4066
4067         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
4068
4069 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4070
4071         * ira-conflicts.c (process_regs_for_copy): Check insn to check
4072         that the cost is already taken into account in ira-costs.c
4073
4074         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
4075
4076         * ira-build.c (print_copy, print_copies, ira_debug_copy,
4077         ira_debug_copies): New.
4078         (ira_bulid): Call print_copies.
4079
4080         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
4081
4082 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
4083
4084         PR target/32783
4085         * config/rs6000/rs6000.c (optimization_options): Remove check of
4086         flag_toplevel_order.
4087
4088 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4089
4090         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
4091         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
4092         second operand is a reg_imm10_operand.
4093         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
4094         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
4095         (*seq_<GPR:mode><GPR2:mode>): Rename to
4096         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
4097         ISA_HAS_SEQ_SNE.
4098         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
4099         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
4100         ISA_HAS_SEQ_SNE.
4101         (*sne_<GPR:mode><GPR2:mode>): Rename to
4102         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
4103         ISA_HAS_SEQ_SNE.
4104
4105 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4106
4107         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
4108         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
4109         combining an arithmetic right shift by more than 31 and a
4110         trunction.  Don't match for out-of-range shift amounts.  Set
4111         attribute mode to <MODE>.
4112         (*lshr32_trunc<mode>): Name the pattern combining a logical right
4113         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
4114         (*<optab>_trunc<mode>_exts): New pattern for truncated right
4115         shifts by less than 32.
4116         (extv): Change predicate on first operand to accept registers.
4117         Change predicate of the other operands from immediate_operand to
4118         const_int_operand.  Expand exts when source is a register.
4119         (extzv): Change predicate of the constant operands from
4120         immediate_operand to const_int_operand.
4121         (extzv<mode>): Change predicate of the constant operands from
4122         immediate_operand to const_int_operand and no constraint. Also
4123         remove mode.
4124         (*extzv_trunc<mode>_exts): New pattern.
4125
4126 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4127
4128         * config/mips/mips.h (ISA_HAS_CINS): New macro.
4129         * config/mips/mips-protos.h (mask_low_and_shift_p,
4130         mask_low_and_shift_len): Declare.
4131         * config/mips/mips.c (mask_low_and_shift_p,
4132         mask_low_and_shift_len): New functions.
4133         (mips_print_operand): Handle new operand prefix "m".
4134         * config/mips/mips.md (*cins<mode>): New pattern.
4135
4136 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4137
4138         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
4139         optimizing for size.
4140
4141 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
4142
4143         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
4144         regardless of epilogue_completed.
4145
4146 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4147
4148         PR middle-end/37359
4149         * ira-lives.c (process_bb_node_lives): Check setjmp.
4150
4151 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
4152
4153         PR middle-end/37243
4154         * ira-build.c (form_loop_tree): Reverse BB walk.
4155         (create_bb_allocnos): Likewise.
4156         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
4157         (mark_reg_store): Rename to...
4158         (mark_ref_live): ...this and take a df_ref argument instead of
4159         note_stores arguments.  Assert that we have a register.
4160         (mark_reg_clobber): Delete.
4161         (def_conflicts_with_inputs_p): New function.
4162         (mark_reg_conflicts): Delete.
4163         (mark_reg_death): Rename to...
4164         (mark_ref_dead): ...this and take a df_ref argument instead of
4165         a register.  Assert that we have a register.
4166         (process_bb_node_lives): Hoist frequency calculation out of
4167         instruction walk.  Convert from a forwards scan to a backwards scan.
4168         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
4169         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
4170         (create_allocno_live_ranges): Don't create regs_set.
4171
4172 2008-09-04  Ian Lance Taylor  <iant@google.com>
4173
4174         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
4175         or REG_LABEL_TARGET.
4176         * calls.c (emit_library_call_value_1): Use MEM_P rather than
4177         comparing MODE with MEM.
4178         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
4179         comparing with GF_PREDICT_TAKEN.
4180         (gimple_get_lhs): Change code to enum gimple_code.
4181         (gimple_set_lhs): Likewise.
4182         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
4183         * omp-low.c (find_omp_clause): Change kind parameter to enum
4184         omp_clause_code.
4185         * tree-flow.h (find_omp_clause): Update declaration.
4186         * regrename.c (clear_dead_regs): Change kind parameter to enum
4187         reg_note.
4188         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
4189         GET_MODE.
4190         * see.c (see_get_extension_data): Change return type to enum
4191         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
4192         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
4193         (see_gen_normalized_extension): Change extension_code parameter to
4194         enum entry_type.
4195         (see_seek_pre_extension_expr): Change extension_code to enum
4196         entry_type.
4197         (see_merge_one_def_extension): Likewise.
4198         (see_handle_relevant_defs): Likewise.
4199         (see_handle_relevant_uses): Likewise.
4200         (see_analyze_one_def): Likewise.
4201         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
4202         GIMPLE_ASM rather than ASM_EXPR.
4203         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
4204         GIMPLE_RETURN rather than RETURN_EXPR.
4205         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
4206         (evaluate_stmt): Likewise.
4207         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
4208         to enum vect_relevant.
4209         (vect_mark_stmts_to_be_vectorized): Change assertion to not
4210         compare gimple codes with tree codes.
4211
4212 2008-09-04  Paul Brook  <paul@codesourcery.com>
4213
4214         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
4215
4216 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4217
4218         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
4219         pointer check lost in the recent no-unit-at-a-time patch.
4220
4221 2008-09-04  Jan Hubicka  <jh@suse.cz>
4222
4223         PR middle-end/37343
4224         * tree-switch-conversion.c (check_final_bb): Accept only IP
4225         invariants.
4226
4227 2008-09-04  Jan Hubicka  <jh@suse.cz>
4228
4229         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4230         Break out from ...
4231         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
4232         using_ranges argument.
4233         (vrp_evaluate_conditional): Avoid bogus warning for type range.
4234         (vrp_visit_cond_stmt): Update call of
4235         vrp_evaluate_conditional_warnv_with_ops
4236
4237 2008-09-04  Jan Hubicka  <jh@suse.cz>
4238
4239         PR tree-optimization/37345
4240         PR tree-optimization/37358
4241         PR tree-optimization/37357
4242         * tree.c (build_function_type_skip_args): Build distinct type copy;
4243         set TYPE_CONTEXT.
4244         (build_function_decl_skip_args): Set type of new decl not orig decl;
4245         clear DECL_VINDEX for methods turned into functions.
4246
4247 2008-09-04  Nick Clifton  <nickc@redhat.com>
4248
4249         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
4250         * configure: Regenerate.
4251         * config.in: Regenerate.
4252         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
4253         alignment field, if it is supported.
4254
4255 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
4256
4257         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
4258         libraries.
4259
4260 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
4261
4262         * config/rs6000/rs6000.c (processor_target_table): Do not
4263         enable VMX for POWER6.
4264
4265 2008-09-03  Anton Blanchard  <anton@samba.org>
4266
4267         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
4268         emit memory barrier before operation.
4269
4270 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
4271
4272         PR testsuite/37325
4273         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
4274         default_elf_asm_output_external.
4275
4276 2008-09-03  Jeff Law  <law@redhat.com>
4277
4278         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
4279
4280 2008-09-03  Richard Henderson  <rth@redhat.com>
4281
4282         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
4283         memory barrier to below the test-and-set.
4284         (alpha_split_lock_test_and_set_12): Likewise.
4285
4286 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4287
4288         PR rtl-opt/37243
4289
4290         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
4291         all_allocnos.
4292
4293         * ira-color.c (print_loop_title): Use all_allocnos.
4294         (color_pass): Ditto.  Don't add border_allocnos.  Check that
4295         subloop allocno in the correspdoning bitmap all_allocnos.
4296
4297         * ira-emit.c (change_loop): Use all_allocnos.
4298
4299         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
4300         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
4301         (create_cap_allocno): Remove setting mentioned_allocnos.
4302         (create_insn_allocnos): Ditto.
4303         (remove_unnecessary_allocnos): Use all_allocnos.
4304         (check_allocno_creation): Check that allocnos are in the
4305         corresponding bitmap all_allocnos.
4306
4307 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4308
4309         PR rtl-opt/37243
4310
4311         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
4312         (process_regs_for_copy): Process subregs.  Refine check when cost
4313         is taken into account in ira-costs.c.
4314         (process_reg_shuffles): Use REG_SUBREG_P.
4315         (add_insn_allocno_copies): Ditto.  Ignore modes.
4316
4317         * ira-color.c (conflict_allocno_vec): New.
4318         (COST_HOP_DIVISOR): New macro.
4319         (update_copy_costs_1): Use it.
4320         (update_conflict_hard_regno_costs): New function.
4321         (assign_hard_reg): Use it.
4322         (ira_color): Allocate and free conflict_allocno_vec.
4323
4324 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4325
4326         PR rtl-opt/37296
4327
4328         * ira-int.h (ira_sort_insn_chain): Remove.
4329
4330         * ira.c (basic_block_order_nums, chain_insn_order,
4331         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
4332         (ira): Don't call ira_sort_insn_chain.
4333
4334         * reload1.c (reload): Don't call ira_sort_insn_chain.
4335
4336 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4337
4338         PR middle-end/37293
4339         * cgraphunit.c (update_call_expr): Remove eh regions from statements
4340         which become non throw.
4341         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
4342         update_call_expr after updating the flags on the decl.
4343
4344 2008-09-03  Jan Hubicka  <jh@suse.cz>
4345
4346         PR tree-optimization/37315
4347         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
4348         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
4349         (cgraph_analyze_functions): Use node->analyzed
4350         (cgraph_mark_functions_to_output): Likewise.
4351         (cgraph_expand_function): All functions can be released after
4352         expanding.
4353         (cgraph_optimize): Use gimple_has_body_p.
4354         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
4355         (cgraph_decide_inlining_incrementally): Likewise.
4356         (inline_transform): Inline transform.
4357         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
4358         copy fields needed.
4359         (inlinable_function_p): Drop gimple_body check.
4360         (expand_call_inline): Use gimple_has_body_p.
4361         * gimple.c (gimple_has_body_p): New.
4362         * gimple.h (gimple_has_body_p): Add prototype.
4363         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
4364         (dump_function_to_file): Use gimple_has_body_p check.
4365
4366 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
4367
4368         PR c++/37346
4369         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
4370         substatements.
4371         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
4372
4373 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4374
4375         From Michael Frysinger  <michael.frysinger@analog.com>
4376         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
4377         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
4378         for bf538.
4379
4380 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
4381
4382         Add picoChip port.
4383         * doc/extend.texi: Document picoChip builtin functions.
4384         * doc/invoke.texi: Document picoChip options.
4385         * doc/contrib.texi: Add picoChip contribution.
4386         * doc/md.texi: Document picoChip constraints.
4387         * config.gcc: Add picochip-*-*.
4388         * config/picochip/: Add new port.
4389
4390 2008-09-03  Richard Guenther  <rguenther@suse.de>
4391
4392         PR tree-optimization/37328
4393         * tree-sra.c (sra_build_assignment): Gimplify properly.
4394         (generate_copy_inout): Take the correct stmt as definition,
4395         remove bogus assert.
4396
4397 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4398
4399         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
4400         attributes.
4401
4402         From Michael Frysinger  <michael.frysinger@analog.com>
4403         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
4404
4405 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
4406
4407         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
4408         (__gthread_setspecific): Revert 2008-08-31 change to
4409         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
4410
4411 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
4412
4413         * diagnostic.c (error_at): New.
4414         * toplev.h (error_at): New prototype.
4415         * c-typeck.c (build_array_ref): Call error_at instead of error.
4416         Pass location to pedwarn.
4417
4418 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
4419
4420         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
4421
4422 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4423
4424         * dwarf2out.c (tree_add_const_value_attribute): Only handle
4425         VAR_DECL and CONST_DECL.
4426
4427 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4428             Jakub Jelinek  <jakub@redhat.com>
4429
4430         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
4431         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
4432         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
4433         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
4434         Don't set ix86_save_varrargs_registers.
4435         (ix86_setup_incoming_varargs): Assume cum != NULL.
4436         (ix86_va_start): Check ix86_varargs_gpr_size and
4437         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
4438         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
4439         from frame pointer if ix86_varargs_gpr_size == 0.
4440         (ix86_compute_frame_layout): Updated.
4441         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
4442         (ix86_varargs_gpr_size): Define.
4443         (ix86_varargs_fpr_size): Likewise.
4444         (machine_function): Remove save_varrargs_registers.
4445         Add varargs_gpr_size and varargs_fpr_size.
4446
4447 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4448
4449         * config/alpha/alpha.c (va_list_skip_additions,
4450         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
4451         (alpha_gimplify_va_arg): Call unshare_expr on second use of
4452         offset_field.
4453
4454         PR tree-optimization/36766
4455         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
4456         for already removed basic blocks.
4457
4458         PR target/36332
4459         * real.c (real_maxval): Clear a lower bit to make real_maxval
4460         match get_max_float for IBM long double format.
4461
4462 2008-09-02  Andreas Schwab  <schwab@suse.de>
4463
4464         * configure.ac: Use m4_quote to quote the expansion of m4_do.
4465         * configure: Regenerate.
4466
4467 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
4468
4469         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
4470         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
4471         checking for a non-VOID CONSTANT_P.
4472
4473 2008-09-02  Jan Hubicka  <jh@suse.cz>
4474
4475         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
4476         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
4477         sdiv_pow2_cheap
4478
4479 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         * expr.c (emit_group_store): Don't assert stack temp mode size.
4482
4483 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
4484             Tobias Grosser  <grosser@fim.uni-passau.de>
4485             Jan Sjodin  <jan.sjodin@amd.com>
4486             Harsha Jagasia  <harsha.jagasia@amd.com>
4487             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4488             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4489             Adrien Eliche  <aeliche@isty.uvsq.fr>
4490
4491         Merge from graphite branch.
4492         * graphite.c: New.
4493         * graphite.h: New.
4494         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
4495         * doc/invoke.texi (-floop-block, -floop-interchange,
4496         -floop-strip-mine): Document new flags.
4497         * tree-into-ssa.c (gimple_vec): Moved...
4498         * tree-loop-distribution.c (rdg_component): Moved...
4499         * cfgloopmanip.c: Include tree-flow.h.
4500         (update_dominators_in_loop): New.
4501         (create_empty_if_region_on_edge): New.
4502         (create_empty_loop_on_edge): New.
4503         (loopify): Use update_dominators_in_loop.
4504         * tree-pass.h (pass_graphite_transforms): Declared.
4505         * configure: Regenerate.
4506         * tree-phinodes.c (make_phi_node): Export.
4507         (add_phi_node_to_bb): New, split from create_phi_node.
4508         * tree-chrec.c (for_each_scev_op): New.
4509         * tree-chrec.h (for_each_scev_op): Declared.
4510         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
4511         (remove_statement): Call get_phi_with_result.
4512         * config.in (HAVE_cloog): Undef.
4513         * gdbinit.in (pgg): New.
4514         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
4515         * tree-ssa-loop.c (graphite_transforms): New.
4516         (gate_graphite_transforms): New.
4517         (pass_graphite_transforms): New.
4518         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
4519         HAVE_cloog): Defined.
4520         * tree-vectorizer.c (rename_variables_in_bb): Export.
4521         * tree-data-ref.c (dr_may_alias_p): Export.
4522         (stmt_simple_memref_p): New.
4523         (find_data_references_in_stmt): Export.
4524         (find_data_references_in_loop): Export.
4525         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
4526         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
4527         (create_rdg_vertices): Export.
4528         (build_empty_rdg): New.
4529         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
4530         * tree-data-ref.h (rdg_component): ... here.
4531         (scop_p): New.
4532         (struct data_reference): Add a field scop.
4533         (DR_SCOP): New.
4534         (find_data_references_in_loop): Declared.
4535         (find_data_references_in_stmt): Declared.
4536         (create_rdg_vertices): Declared.
4537         (dr_may_alias_p): Declared.
4538         (stmt_simple_memref_p): Declared.
4539         (struct rdg_edge): Add a field ddr_p relation.
4540         (build_empty_rdg): Declared.
4541         * lambda.h (lambda_matrix): Declare a VEC of.
4542         (find_induction_var_from_exit_cond): Declared.
4543         (lambda_vector_compare): New.
4544         * common.opt (fgraphite, floop-strip-mine,
4545         floop-interchange, floop-block): New flags.
4546         * lambda-code.c (find_induction_var_from_exit_cond): Export.
4547         * cfgloop.c (is_loop_exit): New.
4548         * cfgloop.h (is_loop_exit): Declared.
4549         (create_empty_if_region_on_edge): Declared.
4550         (create_empty_loop_on_edge): Declared.
4551         * tree-flow.h (add_phi_node_to_bb): Declared.
4552         (make_phi_node): Declared.
4553         (rename_variables_in_bb): Declared.
4554         (perfect_loop_nest_depth): Declared.
4555         (graphite_transform_loops): Declared.
4556         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
4557         (graphite.o-warn): Add -Wno-error.
4558         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
4559         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
4560         (INCLUDES): Add PPLINC, CLOOGINC.
4561         (OBJS-common): Add graphite.o.
4562         (graphite.o): Add rule.
4563         * gimple.h (gimple_vec): ... here.
4564         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
4565         * passes.c (init_optimization_passes): Schedule
4566         pass_graphite_transforms.
4567
4568 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
4569
4570         PR target/37283
4571         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
4572         and -fno-toplevel-reorder after handle_options.
4573
4574 2008-09-02  Paul Brook  <paul@codesourcery.com>
4575
4576         * config/arm/arm.c (arm_tune_cortex_a9): Define.
4577         (arm_override_options): Set arm_tune_cortex_a9.
4578         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
4579         (arm_issue_rate): Handle cortexa9.
4580         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
4581         * config/arm/arm-cores.def: Add cortex-a9.
4582         * config/arm/arm-tune.md: Regenerate.
4583         * config/arm/arm.md: Include cortex-a9.md.
4584         (generic_sched, generic_vfp): Add cortexa9.
4585         * config/arm/cortex-a9.md: New file.
4586
4587 2008-09-02  Richard Guenther  <rguenther@suse.de>
4588
4589         PR tree-optimization/37327
4590         * tree-vrp.c (register_new_assert_for): Make sure to not have
4591         TREE_OVERFLOW set on the bound.
4592
4593 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
4594
4595         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
4596
4597         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
4598         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
4599         spec_info->mask.
4600
4601 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
4602
4603         * gcc/config/spu/spu.md (divdf3): Removed.
4604
4605 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4606
4607         PR tree-optimization/37095
4608         * cgraph.c (cgraph_node): When creating new cgraph node after
4609         assembler_name_hash has been populated, record it in the hash
4610         table.
4611
4612 2008-09-01  Paul Brook  <paul@codesourcery.com>
4613
4614         * doc/invoke.texi: Document -mword-relocations.
4615         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4616         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4617         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4618         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
4619         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
4620         (arm_emit_movpair): New function.
4621         (arm_print_operand <c>): Handle sybolic addresses.
4622         * config/arm/arm.h (TARGET_USE_MOVT): Define.
4623         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4624         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
4625         * config/arm/arm.opt: Add -mword-relocations.
4626         * config/arm/arm.md (movsi): Use arm_emit_movpair.
4627         (arm_movt, arm_movw): New.
4628
4629 2008-09-01  Paul Brook  <paul@codesourcery.com>
4630
4631         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
4632         Allow Interworking on ARMv4 EABI based targets.
4633         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
4634         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
4635
4636 2008-09-01  Paul Brook  <paul@codesourcery.com>
4637
4638         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
4639         optimized LT0 test.  Remove optimization for GT.
4640
4641 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4642
4643         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
4644         openmp applications.
4645         * pa-hpux11.h (LIB_SPEC): Likewise.
4646
4647         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
4648         is defined.
4649
4650 2008-09-01  Jan Hubicka  <jh@suse.cz>
4651
4652         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
4653         present, use only counts; when guessed use only frequencies.
4654         (estimate_bb_frequencies): Use function_frequency.
4655         * profile.c (compute_branch_probabilities): Exit early when
4656         profile reading failed. Set profile_status.
4657         (branch_prob): Do not set profile_status.
4658
4659 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
4660
4661         * tree.c (protected_set_expr_location): New.
4662         * tree.h (protected_set_expr_location): New prototype.
4663         * c-tree.h (build_array_ref): Add argument.
4664         (parser_build_unary_op): Same.
4665         * c-typeck.c (build_indirect_ref): Handle new location argument.
4666         (build_array_ref): Same.
4667         (parser_build_unary_op): Same.
4668         * gimplify.c (gimplify_asm_expr): Set input_location before calling
4669         error.
4670         * c-omp.c (c_finish_omp_atomic): Pass location when calling
4671         build_indirect_ref.
4672         * c-common.c (finish_label_address_expr): Handle new location argument.
4673         * c-common.h (build_indirect_ref): Add argument.
4674         (finish_label_address_expr): Same.
4675         * c-parser.c (c_parser_unary_expression): Pass location to build
4676         functions.
4677         (c_parser_postfix_expression): Same.
4678
4679 2008-09-01  Paul Brook  <paul@codesourcery.com>
4680
4681         * config/arm/arm.md: Include cortex-r4f.md.
4682         (attr fpu): Update type list.
4683         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
4684         fconstd, fcmps and fcmpd.
4685         (attr tune_cortexr4): Define.
4686         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
4687         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
4688         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
4689         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
4690         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
4691         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
4692         cortex_a8_vfp_farith: Ditto.
4693         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
4694         * config/arm/cortex-r4.md: Use tune_cortexr4.
4695         * config/arm/cortex-r4f.md: New file.
4696
4697 2008-09-01  Richard Guenther  <rguenther@suse.de>
4698
4699         PR tree-optimization/37305
4700         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
4701         the result of constant conversions.
4702         (fold_gimple_assign): Likewise.
4703
4704 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
4705
4706         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
4707         #ifdef ENABLE_CHECKING.
4708
4709 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
4710
4711         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
4712         * sched-int.h (print_insn, print_pattern, print_value): Declare also
4713         when !INSN_SCHEDULING.
4714
4715 2008-09-01  Andreas Schwab  <schwab@suse.de>
4716
4717         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
4718
4719 2008-09-01  Paul Brook  <paul@codesourcery.com>
4720
4721         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
4722
4723 2008-09-01  Jan Hubicka  <jh@suse.cz>
4724
4725         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
4726
4727         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
4728         Pass speed operand.
4729         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
4730         * gimplify.c (gimplify_init_constructor): Add speed operand.
4731         * tree-sra.c (decide_block_copy): Likewise.
4732         * tree-inline.c (estimate_move_cost): Likewise.
4733         * config/alpha/alpha.h (MOVE_RATIO): Update.
4734         * config/frv/frv.c (MOVE_RATIO): Update.
4735         * config/spu/spu.h (MOVE_RATIO): Update.
4736         * config/sparc/sparc.h (MOVE_RATIO): Update.
4737         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
4738         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
4739         * config/cris/cris.h (MOVE_RATIO): Update.
4740         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
4741         * config/arm/arm.h (MOVE_RATIO): Update.
4742         * config/pa/pa.md: Update uses of MOVE_RATIO
4743         * config/pa/pa.h (MOVE_RATIO): Update.
4744         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
4745         CLEAR_RATIO, SET_RATIO): Update.
4746         * config/h8300/h8300.h (MOVE_RATIO): Update.
4747         * config/v850/v850.h (MOVE_RATIO): Update.
4748         * config/bfin/bfin.h (MOVE_RATIO): Update.
4749
4750 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
4751             Dmitry Melnik  <dm@ispras.ru>
4752             Dmitry Zhurikhin  <zhur@ispras.ru>
4753             Alexander Monakov  <amonakov@ispras.ru>
4754             Maxim Kuvyrkov  <maxim@codesourcery.com>
4755
4756         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
4757         sel-sched-dump.c, sel-sched-ir.c: New files.
4758         * Makefile.in (OBJS-common): Add selective scheduling object files.
4759         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
4760         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
4761         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
4762         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
4763         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
4764         (make_forwarder_block): Update loop latch if we have redirected
4765         the loop latch edge.
4766         * cfgloop.c (get_loop_body_in_custom_order): New function.
4767         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
4768         (CP_FALLTHRU_PREHEADERS): Likewise.
4769         (get_loop_body_in_custom_order): Declare.
4770         * cfgloopmanip.c (has_preds_from_loop): New.
4771         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
4772         Assert that the preheader edge will be fall thru when it is set.
4773         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
4774         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
4775         fsel-sched-substitution, fselective-scheduling): New flags.
4776         * cse.c (hash_rtx_cb): New.
4777         (hash_rtx): Use it.
4778         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
4779         sel_sched_insn_cnt): New counters.
4780         * final.c (compute_alignments): Export.  Free dominance
4781         info after loop_optimizer_finalize.
4782         * genattr.c (main): Output maximal_insn_latency prototype.
4783         * genautomata.c (output_default_latencies): New.
4784         Factor its code from ...
4785         (output_internal_insn_latency_func): ... here.
4786         (output_internal_maximal_insn_latency_func): New.
4787         (output_maximal_insn_latency_func): New.
4788         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
4789         (struct hard_reg_set_iterator): New.
4790         (hard_reg_set_iter_init, hard_reg_set_iter_set,
4791         hard_reg_set_iter_next): New functions.
4792         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
4793         * lists.c (remove_free_INSN_LIST_node,
4794         remove_free_EXPR_LIST_node): New functions.
4795         * loop-init.c (loop_optimizer_init): When
4796         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
4797         calling create_preheaders.
4798         (loop_optimizer_finalize): Do not verify flow info after reload.
4799         * recog.c (validate_replace_rtx_1): New parameter simplify.
4800         Default it to true.  Update all uses.  Factor out simplifying
4801         code to ...
4802         (simplify_while_replacing): ... this new function.
4803         (validate_replace_rtx_part,
4804         validate_replace_rtx_part_nosimplify): New.
4805         * recog.h (validate_replace_rtx_part,
4806         validate_replace_rtx_part_nosimplify): Declare.
4807         * rtl.c (rtx_equal_p_cb): New.
4808         (rtx_equal_p): Use it.
4809         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
4810         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
4811         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
4812         * vecprim.h: Add a vector type for unsigned int.
4813         * haifa-sched.c: Include vecprim.h and cfgloop.h.
4814         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
4815         ready_try, cycle_issued_insns, spec_info): Make global.
4816         (readyp): Initialize.
4817         (dfa_lookahead): New global variable.
4818         (old_max_uid, old_last_basic_block): Remove.
4819         (h_i_d): Make it a vector.
4820         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
4821         through HID macro.
4822         (after_recovery, adding_bb_to_current_region_p):
4823         New variables to handle correct insertion of the recovery code.
4824         (struct ready_list): Move declaration to sched-int.h.
4825         (rgn_n_insns): Removed.
4826         (rtx_vec_t): Move to sched-int.h.
4827         (find_insn_reg_weight): Remove.
4828         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
4829         (haifa_init_h_i_d, haifa_finish_h_i_d):
4830         New functions to initialize / finalize haifa instruction data.
4831         (extend_h_i_d, init_h_i_d): Rewrite.
4832         (unlink_other_notes): Move logic to add_to_note_list.  Handle
4833         selective scheduler.
4834         (ready_lastpos, ready_element, ready_sort, reemit_notes,
4835         find_fallthru_edge): Make global, remove static prototypes.
4836         (max_issue): Make global.  Add privileged_n and state parameters.  Use
4837         them.
4838         (extend_global, extend_all): Removed.
4839         (init_before_recovery): Add new param.  Fix the handling of the case
4840         when we insert a recovery code before the EXIT which has a predecessor
4841         with a fallthrough edge to it.
4842         (create_recovery_block): Make global.  Rename to
4843         sched_create_recovery_block.  Update.
4844         (change_pattern): Rename to sched_change_pattern.  Make global.
4845         (speculate_insn): Rename to sched_speculate_insn.  Make global.
4846         Split haifa-specific functionality into ...
4847         (haifa_change_pattern): New static function.
4848         (sched_extend_bb): New static function.
4849         (sched_init_bbs): New function.
4850         (current_sched_info): Change type to struct haifa_sched_info.
4851         (insn_cost): Adjust for selective scheduling.
4852         (dep_cost_1): New function.  Move logic from ...
4853         (dep_cost): ... here.
4854         (dep_cost): Use dep_cost_1.
4855         (contributes_to_priority_p): Use sched_deps_info instead of
4856         current_sched_info.
4857         (priority): Adjust to work with selective scheduling.  Process the
4858         corner case when all dependencies don't contribute to priority.
4859         (rank_for_schedule): Use ds_weak instead of dep_weak.
4860         (advance_state): New function.  Move logic from ...
4861         (advance_one_cycle): ... here.
4862         (add_to_note_list, concat_note_lists): New functions.
4863         (rm_other_notes): Make static.  Adjust for selective scheduling.
4864         (remove_notes, restore_other_notes): New functions.
4865         (move_insn): Add two arguments.  Update assert.  Don't call
4866         reemit_notes.
4867         (choose_ready): Remove lookahead variable, use dfa_lookahead.
4868         Remove more_issue, max_points.  Move the code to initialize
4869         max_lookahead_tries to max_issue.
4870         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
4871         ready.  Adjust use of move_insn.  Call restore_other_notes.
4872         (luid): Remove.
4873         (sched_init, sched_finish): Move Haifa-specific initialization/
4874         finalization to ...
4875         (haifa_sched_init, haifa_sched_finish): ... respectively.
4876         New functions.
4877         (setup_sched_dump): New function.
4878         (haifa_init_only_bb): New static function.
4879         (haifa_speculate_insn): New static function.
4880         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
4881         (extend_ready, extend_all): Remove.
4882         (sched_extend_ready_list, sched_finish_ready_list): New functions.
4883         (create_check_block_twin, add_to_speculative_block): Use
4884         haifa_insns_init instead of extend_global.  Update to use new
4885         initialization functions.  Change parameter.  Factor out code from
4886         create_check_block_twin to ...
4887         (sched_create_recovery_edges) ... this new function.
4888         (add_block): Remove.
4889         (sched_scan_info): New.
4890         (extend_bb): Use sched_scan_info.
4891         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
4892         static functions for walking through scheduling region.
4893         (sched_luids): New vector variable to replace uid_to_luid.
4894         (luids_extend_insn): New function.
4895         (sched_max_luid): New variable.
4896         (luids_init_insn): New function.
4897         (sched_init_luids, sched_finish_luids): New functions.
4898         (insn_luid): New debug function.
4899         (sched_extend_target): New function.
4900         (haifa_init_insn): New static function.
4901         (sched_init_only_bb): New hook.
4902         (sched_split_block): New hook.
4903         (sched_split_block_1): New function.
4904         (sched_create_empty_bb): New hook.
4905         (sched_create_empty_bb_1): New function.
4906         (common_sched_info, ready): New global variables.
4907         (current_sched_info_var): Remove.
4908         (move_block_after_check): Use common_sched_info.
4909         (haifa_luid_for_non_insn): New static function.
4910         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
4911         (increase_insn_priority): New.
4912         * modulo-sched.c: (issue_rate): Remove static declaration.
4913         (sms_sched_info): Change type to haifa_sched_info.
4914         (sms_sched_deps_info, sms_common_sched_info): New variables.
4915         (setup_sched_infos): New.
4916         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
4917         Do not call regstat_free_calls_crossed.
4918         (sms_print_insn): Use const_rtx.
4919         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
4920         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
4921         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
4922         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
4923         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
4924         current_sched_info to use it.
4925         (enum reg_pending_barrier_mode): Move to sched-int.h.
4926         (h_d_i_d): New variable. Initialize to NULL.
4927         ({true, output, anti, spec, forward}_dependency_cache): Initialize
4928         to NULL.
4929         (estimate_dep_weak): Remove static declaration.
4930         (sched_has_condition_p): New function.  Adjust users of
4931         sched_get_condition to use it instead.
4932         (conditions_mutex_p): Add arguments indicating which conditions are
4933         reversed.  Use them.
4934         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
4935         argument to indicate whether returned condition is reversed.  Do not
4936         generate new rtx when condition should be reversed; indicate it by
4937         setting new argument instead.
4938         (add_dependence_list_and_free): Add deps parameter.
4939         Update all users.  Do not free dependence list when
4940         deps context is readonly.
4941         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
4942         contexts.
4943         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
4944         (remove_from_deps): New. Use the above functions.
4945         (cur_insn, can_start_lhs_rhs_p): New static variables.
4946         (add_or_update_back_dep_1): Initialize present_dep_type.
4947         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
4948         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
4949         haifa_note_dep): New functions implementing dependence hooks for
4950         the Haifa scheduler.
4951         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
4952         note_dep): New functions.
4953         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
4954         functions.
4955         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
4956         (free_deps): Initialize deps->reg_last.
4957         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
4958         sched_analyze_insn): Update to use dependency hooks infrastructure
4959         and readonly contexts.
4960         (deps_analyze_insn): New function.  Move part of logic from ...
4961         (sched_analyze): ... here.  Also move some logic to ...
4962         (deps_start_bb): ... here.  New function.
4963         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
4964         sel_sched_p.
4965         (sched_deps_init): New function.  Move code from ...
4966         (init_dependency_caches): ... here.  Remove.
4967         (init_deps_data_vector): New.
4968         (sched_deps_finish): New function.  Move code from ...
4969         (free_dependency_caches): ... here.  Remove.
4970         (init_deps_global, finish_deps_global): Adjust for use with
4971         selective scheduling.
4972         (get_dep_weak): Move logic to ...
4973         (get_dep_weak_1): New function.
4974         (ds_merge): Move logic to ...
4975         (ds_merge_1): New static function.
4976         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
4977         (ds_get_max_dep_weak): New function.
4978         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
4979         (n_insns): Rename to rgn_n_insns.
4980         (debug_ebb_dependencies): New function.
4981         (init_ready_list): Use it.
4982         (begin_schedule_ready): Use sched_init_only_bb.
4983         (ebb_print_insn): Indicate when an insn starts a new cycle.
4984         (contributes_to_priority, compute_jump_reg_dependencies,
4985         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
4986         (add_block1): Remove to ebb_add_block.
4987         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
4988         (schedule_ebb): Initialize them.  Use remove_notes instead of
4989         rm_other_notes.  Use haifa_local_init/finish.
4990         (schedule_ebbs): Use haifa_sched_init/finish.
4991         * sched-int.h: Include vecprim.h, remove rtl.h.
4992         (struct ready_list): Delete declaration.
4993         (sched_verbose_param, enum sched_pass_id_t,
4994         bb_vec_t, insn_vec_t, rtx_vec_t): New.
4995         (struct sched_scan_info_def): New structure.
4996         (sched_scan_info, sched_scan, sched_init_bbs,
4997         sched_init_luids, sched_finish_luids, sched_extend_target,
4998         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
4999         (struct common_sched_info_def): New.
5000         (common_sched_info, haifa_common_sched_info,
5001         sched_emulate_haifa_p): Declare.
5002         (sel_sched_p): New.
5003         (sched_luids): Declare.
5004         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
5005         (sched_max_luid, insn_luid): Declare.
5006         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
5007         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
5008         print_insn, print_pattern, print_value, haifa_classify_insn,
5009         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
5010         setup_sched_dump, sched_init, sched_finish,
5011         sel_insn_is_speculation_check): Export.
5012         (struct ready_list): Move from haifa-sched.c.
5013         (ready_try, ready, max_issue): Export.
5014         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
5015         sched_init_only_bb, sched_split_block, sched_split_block_1,
5016         sched_create_empty_bb, sched_create_empty_bb_1,
5017         sched_create_recovery_block, sched_create_recovery_edges): Export.
5018         (enum reg_pending_barrier_mode): Export.
5019         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
5020         (deps_t): New.
5021         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
5022         print_insn field.  Move add_block and fix_recovery_cfg to
5023         common_sched_info_def.  Move compute_jump_reg_dependencies,
5024         use_cselib  ...
5025         (struct sched_deps_info_def): ... this new structure.
5026         (sched_deps_info): Declare.
5027         (struct spec_info_def): Remove weakness_cutoff, add
5028         data_weakness_cutoff and control_weakness_cutoff.
5029         (spec_info): Declare.
5030         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
5031         dep_count field.
5032         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
5033         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
5034         (current_sched_info): Change type to struct haifa_sched_info.
5035         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
5036         (h_d_i_d): New variable.
5037         (HDID): New accessor macro.
5038         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
5039         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
5040         and HDID.
5041         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
5042         (enum SCHED_FLAGS): Update for selective scheduler.
5043         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
5044         (init_dependency_caches, free_dependency_caches): Delete declarations.
5045         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
5046         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
5047         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
5048         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
5049         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
5050         ds_to_dt): Export.
5051         (rm_other_notes): Delete declaration.
5052         (schedule_block): Remove one argument.
5053         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
5054         ready_element, ready_lastpos, sched_extend_ready_list,
5055         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
5056         concat_note_lists): Export.
5057         (struct region): Move from sched-rgn.h.
5058         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
5059         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
5060         BLOCK_TO_BB, CONTAINING_RGN): Export.
5061         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
5062         (current_nr_blocks, current_blocks, target_bb): Likewise.
5063         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
5064         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
5065         sched_rgn_local_init, extend_regions,
5066         rgn_make_new_region_out_of_new_block, compute_priorities,
5067         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
5068         extend_rgns, deps_join rgn_setup_common_sched_info,
5069         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
5070         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
5071         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
5072         increase_insn_priority): Likewise.
5073         * sched-rgn.c: Include sel-sched.h.
5074         (ref_counts): New static variable.  Use it ...
5075         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
5076         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
5077         (sched_is_disabled_for_current_region_p): Delete static declaration.
5078         (struct region): Move to sched-int.h.
5079         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
5080         ebb_head): Define and initialize.
5081         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
5082         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
5083         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
5084         sched-int.h.
5085         (find_single_block_region): Add new argument to indicate that EBB
5086         regions should be constructed.
5087         (debug_live): Delete declaration.
5088         (current_nr_blocks, current_blocks, target_bb):
5089         Remove static qualifiers.
5090         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
5091         declaration.
5092         (init_regions): Delete declaration.
5093         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
5094         rgn_estimate_number_of_insns): New.
5095         (too_large): Use estimate_number_of_insns.
5096         (haifa_find_rgns): New. Move the code from ...
5097         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
5098         (free_trg_info): New.
5099         (compute_trg_info): Allocate candidate tables here instead of ...
5100         (init_ready_list): ... here.
5101         (rgn_print_insn): Use const_rtx.
5102         (contributes_to_priority, extend_regions): Delete static declaration.
5103         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
5104         (add_block1): Rename to rgn_add_block.
5105         (debug_rgn_dependencies): Delete static qualifier.
5106         (new_ready): Use sched_deps_info.  Simplify.
5107         (rgn_common_sched_info, rgn_const_sched_deps_info,
5108         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
5109         New.
5110         (region_sched_info): Rename to rgn_const_sched_info.
5111         (deps_join): New, extracted from ...
5112         (propagate_deps): ... here.
5113         (compute_block_dependences, debug_dependencies): Update for selective
5114         scheduling.
5115         (free_rgn_deps, compute_priorities): New functions.
5116         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
5117         sched_rgn_compute_dependencies): New functions.
5118         (schedule_region): Use them.
5119         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
5120         rgn_setup_common_sched_info, rgn_setup_sched_infos):
5121         New functions.
5122         (schedule_insns): Call new functions that were split out.
5123         (rgn_make_new_region_out_of_new_block): New.
5124         (get_rgn_sched_max_insns_priority): New.
5125         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
5126         scheduling when appropriate.
5127         * sched-vis.c: Include insn-attr.h.
5128         (print_value, print_pattern): Make global.
5129         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
5130         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
5131         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
5132         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
5133         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
5134         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
5135         hooks.  Initialize them to 0.
5136         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
5137         * target.h (struct gcc_target): Add them.  Rename gen_check field to
5138         gen_spec_check.
5139         * flags.h (sel_sched_switch_set): Declare.
5140         * opts.c (sel_sched_switch_set): New variable.
5141         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
5142         pipelining is disabled from command line.
5143         (common_handle_option): Record whether selective scheduling is
5144         requested from command line.
5145         * doc/invoke.texi: Document new flags and parameters.
5146         * doc/tm.texi: Document new target hooks.
5147         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
5148         ia64_gen_check.
5149         (dfa_state_size): Do not declare locally.
5150         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
5151         * config/rs6000/rs6000.c (rs6000_init_sched_context,
5152         rs6000_alloc_sched_context, rs6000_set_sched_context,
5153         rs6000_free_sched_context): New functions.
5154         (struct _rs6000_sched_context): New.
5155         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
5156         scheduling.
5157         (rs6000_sched_finish): Do not run for selective scheduling.
5158
5159 2008-08-31  Jan Hubicka  <jh@suse.cz>
5160
5161         * frv.c (frv_rtx_costs): Update forward declaration.
5162         * spu.c (spu_rtx_costs): Likewise.
5163         * pdp11.c: Include df.h
5164         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
5165         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
5166         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
5167         * iq2000.c (iq2000_address_cost): Add speed argument.
5168         (iq2000_rtx_costs): Likewise.
5169         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
5170         update call of mn10300_address_cost.
5171         * mcore.c: Include df.h
5172         (mcore_rtx_costs): Update prototype.
5173         * score3.c: Include df.h
5174         (score3_rtx_costs): Remove speed argument.
5175         * score7.c: Include df.h
5176         (score7_address_cost): Remove speed argument.
5177         * score-protos.h (score_address_cost): Update prototype.
5178         * score.c: Include df.h
5179         (score_rtx_costs): Update call of costs functions.
5180         * v850.c (v850_rtx_costs): Add bool argument.
5181
5182 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
5183
5184         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
5185
5186 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5187
5188         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
5189         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
5190
5191 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5192
5193         * mkmap-flat.awk: Add option pe_dll.
5194         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
5195         * config/i386/t-cygwin (SHLIB_LC): Add.
5196         * config/i386/t-mingw32 (SHLIB_LC): Add.
5197         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
5198         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
5199         (LINK_SPEC): Support libgcc_s.
5200         (LIBGCC_SPEC): Support libgcc_s.
5201         (LIBGCC_SONAME): New.
5202
5203 2008-08-31  Jan Hubicka  <jh@suse.cz>
5204
5205         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
5206         mistakely had old version of patch.
5207
5208         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
5209         (ipcp_estimate_growth): New.
5210         (ipcp_insert_stage): Use ipcp_estimate_growth.
5211         * profile.c (branch_prob): When reading failed, do not consider
5212         profile as read.
5213
5214 2008-08-31  Jan Hubicka  <jh@suse.cz>
5215
5216         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
5217         loop is optimized for speed.
5218
5219 2008-08-31  Richard Guenther  <rguenther@suse.de>
5220
5221         PR middle-end/37289
5222         * fold-const.c (fold_binary): Retain conversions in folding
5223         ~A + 1 to -A.
5224
5225 2008-08-31  Jan Hubicka  <jh@suse.cz>
5226
5227         * postreload-gcse.c (eliminate_partially_redundant_loads):
5228         Use optimize_bb_for_size_p.
5229         * predict.c (maybe_hot_frequency_p): Make inline.
5230         (maybe_hot_count_p): Break out from ...
5231         (maybe_hot_bb_p): ... this one.
5232         (maybe_hot_edge_p): Simplify.
5233         * basic-block.h (probably_cold_bb_p): Remove.
5234
5235 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
5236
5237         PR target/37168
5238         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
5239         prototype.
5240         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
5241         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
5242         Also split V4SFmode.
5243         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
5244         vector float modes.
5245
5246 2008-08-31  Jan Hubicka  <jh@suse.cz>
5247
5248         * predict.c (PROB_VERY_LIKELY): Make small enough so things
5249         become cold.
5250         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
5251
5252 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
5253
5254         PR debug/37287
5255         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
5256         add source coords.
5257
5258         * dwarf2out.c (native_encode_initializer): Subtract min_index for
5259         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
5260
5261 2008-08-31  Jan Hubicka  <jh@suse.cz>
5262
5263         * sparc.h (BRANCH_COST): Fix macro definition.
5264         * avr.c (avr_operand_rtx_cost): Add speed argument.
5265         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
5266
5267 2008-08-31  Richard Guenther  <rguenther@suse.de>
5268
5269         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
5270         types instead of operands.  Re-instantiate verifying of
5271         binary expression operands.
5272
5273 2008-08-30  Jan Hubicka  <jh@suse.cz>
5274
5275         * fwprop.c (should_replace_address): Add speed attribute.
5276         (PR_OPTIMIZE_FOR_SPEED): New flag.
5277         (propagate_rtx_1): Use it.
5278         (propagate_rtx): Set it.
5279         (try_fwprop_subst): Update call of rtx_costs.
5280         (forward_propagate_and_simplify): LIkewise.
5281         * hooks.c (hook_int_rtx_bool_0): New
5282         (hook_bool_rtx_int_int_intp_false): Replace by ...
5283         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
5284         * hooks.h (hook_int_rtx_bool_0): New
5285         (hook_bool_rtx_int_int_intp_false): Replace by ...
5286         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
5287         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
5288         (prepare_cmp_insn): UPdate call of rtx_cost.
5289         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
5290         (reload_cse_simplify_operands): Update call of rtx_cost.
5291         (reload_cse_move2add): call of rtx_cost.
5292         * target.h (struct gcc_target): Update rtx_costs and address_costs.
5293         * rtlanal.c (rtx_cost): Add speed argument.
5294         (address_cost): Add speed argument
5295         (default_address_cost): Likewise.
5296         (insn_rtx_cost): Likewise.
5297         * cfgloopanal.c (seq_cost): Add speed argument.
5298         (target_reg_cost, target_spill_cost): Turn to array.
5299         (init_set_costs): Update for speed.
5300         (estimate_reg_pressure_cost): Add speed argument.
5301         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
5302         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
5303         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
5304         (seq_cost): Add speed argument.
5305         (computation_cost): Add speed arugment.
5306         (add_cost, multiply_by_const, get_address_cost): add speed argument.
5307         (force_expr_to_var_cost): Update for profile info.
5308         (force_var_cost): Likewise.
5309         (split_address_cost): Likewise.
5310         (ptr_difference_cost): Likewise.
5311         (difference_cost): Likewise.
5312         (get_computation_cost_at): Likewise.
5313         (determine_iv_cost): Likewise.
5314         (ivopts_global_cost_for_size): Likewise.
5315         (rewrite_use_address): Likewise.
5316         (tree_ssa_iv_optimize_loop): Initialize speed field.
5317         * cse.c (optimize_this_for_speed_p): New static var.
5318         (notreg_cost): Update call of rtx_cost.
5319         (cse_extended_basic_block): set optimize_this_for_speed_p.
5320         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
5321         (noce_try_cmove_arith): Likewise.
5322         (noce_try_sign_mask): LIkewise.
5323         * expr.c (compress_float_constant): Update rtx_cost calls.
5324         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
5325         argument.
5326         (addr_to_parts): Likewise.
5327         (create_mem_ref): Likewise.
5328         * dse.c (find_shift_sequence): Add speed argument.
5329         (replace_read): Update call.
5330         * calls.c (precompute_register_parameters): Update call of rtx_cost.
5331         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
5332         * neg_cost, shift_cost, shiftadd_cost,
5333         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
5334         mul_highpart_cost): Increase dimension.
5335         (init_expmed): Initialize for both size and speed.
5336         (expand_shift): Use profile.
5337         (synth_mult): Use profile.
5338         (choose_mult_variant): Use profile.
5339         (expand_mult): Use profile.
5340         (expand_mult_highpart_optab): Use profile.
5341         (expand_mult_highpart): Use profile.
5342         (expand_smod_pow2): Use profile.
5343         (expand_divmod): Use profile.
5344         * simplify-rtx.c (simplify_binary_operation_1): Update call of
5345         rtx_cost.
5346         * loop-invariant.c (create_new_invariant): Use profile.
5347         (gain_for_invariant): Add speed parameter.
5348         (best_gain_for_invariant): Likewise.
5349         (find_invariants_to_move): Likewise.
5350         (move_single_loop_invariants): Set it.
5351         * target-def.h (TARGET_RTX_COSTS): Use hook.
5352         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
5353         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5354         * output.h (default_address_cost): Update prototype.
5355         * combine.c (optimize_this_for_speed_p): New static var.
5356         (combine_validate_cost): Update call of rtx_cost.
5357         (combine_instructions): Set optimize_this_for_speed_p.
5358         (expand_compound_operation): Update call of rtx_cost.
5359         (make_extraction):Update call of rtx_cost.
5360         (force_to_mode):Update call of rtx_cost.
5361         (distribute_and_simplify_rtx):Update call of rtx_cost.
5362         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
5363         (estimate_reg_pressure_cost): Update prototype.
5364         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
5365         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
5366         Remove.
5367         * config/alpha/alpha.c (alpha_rtx_costs): Update.
5368         (alpha_rtx_costs): Update.
5369         * config/frv/frv.c (frv_rtx_costs): Update.
5370         * config/s390/s390.c (s390_rtx_costs): Update.
5371         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
5372         (m32c_rtx_costs): Update.
5373         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
5374         (spu_rtx_costs): Update.
5375         * config/sparc/sparc.c (sparc_rtx_costs): Update.
5376         * config/m32r/m32r.c (m32r_rtx_costs): Update.
5377         * config/i386/i386.c (:ix86_address_cost): Update.
5378         (ix86_rtx_costs): Update.
5379         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
5380         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
5381         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
5382         * config/crx/crx.c (crx_address_cost): Update.
5383         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
5384         * config/stormy16/stormy16.c
5385         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
5386         * config/m68hc11/m68hc11.c
5387         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
5388         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
5389         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
5390         Update.
5391         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
5392         Update
5393         * config/ia64/ia64.c (ia64_rtx_costs): Update.
5394         * config/m68k/m68k.c (m68k_rtx_costs): Update.
5395         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
5396         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
5397         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
5398         (mcore_rtx_costs): update.
5399         * config/score/score3.c (score3_rtx_costs): Update.
5400         * config/score/score7.c (score7_rtx_costs): Update.
5401         * config/score/score3.h (score3_rtx_costs):Update.
5402         * config/score/score7.h (score7_rtx_costs): Update.
5403         * config/score/score.c (score_rtx_costs): Update.
5404         * config/arm/arm.c (arm_address_cost): Update.
5405         (arm_rtx_costs_1): Update.
5406         (arm_rtx_costs_1): Update.
5407         (arm_size_rtx_costs): Update.
5408         (arm_size_rtx_costs): Update.
5409         (arm_size_rtx_costs): Update.
5410         (arm_xscale_rtx_costs): Update.
5411         (arm_thumb_address_cost): Update.
5412         * config/pa/pa.c (hppa_address_cost): Update.
5413         * config/mips/mips.c (mips_rtx_costs): Update.
5414         * config/vax/vax.c (vax_address_cost): Update.
5415         * config/h8300/h8300.c (h8300_shift_costs): Update.
5416         (h8300_rtx_costs): Update.
5417         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
5418         (v850_rtx_costs): Update.
5419         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
5420         * config/bfin/bfin.c
5421         (bfin_address_cost): Update.
5422         (bfin_rtx_costs): Update.
5423         * stmt.c (lshift_cheap_p): Update.
5424
5425 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5426
5427         PR middle-end/36444
5428         * expmed.c (extract_bit_field_1): Check the mode size to make
5429         sure the vector modes have the same size.
5430
5431 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
5432
5433         * dojump.c (top level): Include basic-block.h to declare
5434         optimize_insn_for_speed_p
5435
5436         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
5437
5438         * opts.h (CL_SAVE): New option class for marking options that are
5439         target specific options usable in the target attribute.
5440         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
5441
5442         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
5443         can easily find the target specific options that are safe to use
5444         in the attribute or pragma.
5445
5446         * attribs.c (decl_attributes): Change #pragma GCC option to
5447         #pragma GCC target, and attribute((option(...))) to
5448         attribute((target(...))).
5449
5450         * doc/extend.texi (target attribute): Change from option
5451         attribute.  Delete push/pop/reset.
5452         (#pragma GCC target): Change from #pragma GCC option.  Delete
5453         push/pop/reset.
5454         (#pragma GCC push_options): Document new pragma.
5455         (#pragma GCC pop_options): Document new pragma.
5456         (#pragma GCC reset_options): Document new pragma.
5457
5458         * targhooks.c (default_target_option_valid_attribute_p): Add
5459         warning about port not supporting target attributes.
5460         (default_target_option_pragma_parse): New function, warn about
5461         #pragma GCC target not being supported.
5462
5463         * targhooks.h (default_target_option_pragma_parse): Add
5464         declaration.
5465
5466         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
5467         TI_CURRENT_OPTION_PRAGMA.
5468         (current_target_pragma): Rename from current_option_pragma.
5469
5470         * target.h: (struct target_option): Delete booleans for changing
5471         the optimization level on hot/cold functions.  Change signature of
5472         pragma_parse hook to take a second tree.
5473
5474         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
5475
5476         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
5477         that the declaration is done at global scope.
5478
5479         * langhooks.c (add_builtin_function_common): Move most of the code
5480         from add_builtin_function here, calling the hook passed in.
5481         (add_builtin_function): Call add_builtin_function_common with
5482         standard builtin hook.
5483         (add_builtin_function_ext_scope): New function to add builtins to
5484         global scope.
5485
5486         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
5487         hook.
5488         (add_builtin_function_ext_scope): Add declaration.
5489
5490         * c-pragma.c (handle_pragma_target): Rename from
5491         handle_pragma_option, #pragma GCC option is now #pragma GCC
5492         target.  Move warning about port not supporting target options to
5493         default pragma parse hook.  Remove push/pop/reset from this
5494         pragma.
5495         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
5496         (option_stack): Delete static variable.
5497         (optimize_stack): Ditto.
5498         (optons_stack): New stack of saved target and optimization
5499         options.
5500         (handle_pragma_push_options): New function to handle pushing both
5501         target and optimization options.
5502         (handle_pragma_pop_options): New function to handle popping both
5503         target and optimization options.
5504         (handle_pragma_reset_options): New function to handle resetting
5505         both target and optimization options to their initial state.
5506         (init_pragma): Rename handle_pragma_option to
5507         handle_pragma_target.  Add support for push_options, pop_options,
5508         and reset_options pragmas.
5509
5510         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
5511         default_target_option_pragma_parse.
5512         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
5513         default_target_option_valid_attribute_p.
5514         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5515         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5516         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
5517         optimization level on hot/cold functions.
5518
5519         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
5520         if the caller and callee have different optimization levels.
5521
5522         * c-common.c (handle_target_attribute): Rename from
5523         handle_option_attribute, attribute((option(...))) is now
5524         attribute((target(...))).  Move warning if the port does not
5525         support target attributes to the default hook.
5526         (handle_hot_attribute): Delete code to change the optimization
5527         level of hot functions.
5528         (handle_cold_attribute): Ditto.
5529
5530         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
5531         argument that is the binary tree options to use if there are no
5532         arguments.  Call ix86_valid_target_attribute_tree instead of
5533         ix86_valid_option_attribute_tree.
5534         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
5535         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
5536         ix86_pragma_option_parse.
5537
5538         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
5539         Rename from ix86_valid_option_attribute_tree.
5540
5541         * config/i386/i386.c (ix86_add_new_builtins): New function to add
5542         new builtins when the ISA changes.
5543         (ix86_valid_target_attribute_tree): Rename from
5544         ix86_valid_option_attribute_tree.  Change callers.  If the
5545         function specified optimization options, use those as the starting
5546         point before setting up the target attributes.  If the
5547         optimization options were changed in the course of setting the
5548         target attributes, record the new optimization options.
5549         (ix86_valid_target_attribute_tree_inner_p): Rename from
5550         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
5551         ix86_add_new_builtins if the ISA changed.
5552         (ix86_valid_target_attribute_p): Rename from
5553         ix86_valid_option_attribute_p.  Change callers.
5554         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
5555         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
5556         as delayed builtin functions.
5557         (struct builtin_isa): New structure to record builtin functions
5558         that should be delayed until the ISA for that function is used.
5559         (ix86_builtins_isa): Change from int to struct to track builtin
5560         functions we want to declare at some point.
5561         (def_builtin): If the front end can delay defining the builtin
5562         functions, don't create builtins for ISAs not part of the default
5563         options.
5564         (def_builtin_const): Ditto.
5565         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
5566         __builtin_ia32_pcmov_v2di to be different builtin functions.
5567         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
5568         a structure instead of an int.
5569         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
5570         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
5571         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5572         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5573
5574         * config/ia64/ia64.h
5575         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5576         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5577
5578         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
5579         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
5580         (LANG_HOOKS_INITIALIZER): Add
5581         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
5582
5583 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5584
5585         PR target/37270
5586         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
5587         the reload address with the index register for SFmode
5588         access with a displacement.
5589
5590 2008-08-30  Jan Hubicka  <jh@suse.cz>
5591
5592         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
5593         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
5594         * dojump.c (do_jump): Likewise.
5595         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
5596         (note-if_info): Add BRANCH_COST.
5597         (noce_try_store_flag_constants, noce_try_addcc,
5598         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
5599         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
5600         find_if_case_2): Use computed branch cost.
5601         * expr.h (BRANCH_COST): Update default.
5602         * predict.c (predictable_edge_p): New function.
5603         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
5604         Update BRANCH_COST call.
5605         * basic-block.h (predictable_edge_p): Declare.
5606         * config/alpha/alpha.h (BRANCH_COST): Update.
5607         * config/frv/frv.h (BRANCH_COST): Update.
5608         * config/s390/s390.h (BRANCH_COST): Update.
5609         * config/spu/spu.h (BRANCH_COST): Update.
5610         * config/sparc/sparc.h (BRANCH_COST): Update.
5611         * config/m32r/m32r.h (BRANCH_COST): Update.
5612         * config/i386/i386.h (BRANCH_COST): Update.
5613         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
5614         BRANCH_COST.
5615         * config/sh/sh.h (BRANCH_COST): Update.
5616         * config/pdp11/pdp11.h (BRANCH_COST): Update.
5617         * config/avr/avr.h (BRANCH_COST): Update.
5618         * config/crx/crx.h (BRANCH_COST): Update.
5619         * config/xtensa/xtensa.h (BRANCH_COST): Update.
5620         * config/stormy16/stormy16.h (BRANCH_COST): Update.
5621         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
5622         * config/iq2000/iq2000.h (BRANCH_COST): Update.
5623         * config/ia64/ia64.h (BRANCH_COST): Update.
5624         * config/rs6000/rs6000.h (BRANCH_COST): Update.
5625         * config/arc/arc.h (BRANCH_COST): Update.
5626         * config/score/score.h (BRANCH_COST): Update.
5627         * config/arm/arm.h (BRANCH_COST): Update.
5628         * config/pa/pa.h (BRANCH_COST): Update.
5629         * config/mips/mips.h (BRANCH_COST): Update.
5630         * config/vax/vax.h (BRANCH_COST): Update.
5631         * config/h8300/h8300.h (BRANCH_COST): Update.
5632         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
5633         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
5634         * doc/tm.texi (BRANCH_COST): Update.
5635
5636 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
5637
5638         PR target/37283
5639         * config/arm/arm.c (arm_optimization_options): Set
5640         flag_section_anchors to 2 instead of 1 to distinguish it from
5641         -fsection-anchors given explicitely on the command line.
5642
5643 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
5644
5645         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
5646         final insn of a split.
5647
5648 2008-08-30  Jan Hubicka  <jh@suse.cz>
5649
5650         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
5651         optimized for speed.
5652         * final.c (compute_alignments): Use optimize_bb_for_size_p.
5653         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
5654         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
5655         flag_gcse_after_reload_set): New static vars.
5656         (common_handle_option): Enable those flags for profile-use.
5657         (decode_options): Remove optimize_size flags that are handled
5658         on higher granuality.
5659         * tree-vectorizer.c (vectorize_loops): Use
5660         optimize_loop_nest_for_speed_p.
5661         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
5662         * tree-predcom.c (tree_predictive_commoning): Use
5663         optimize_loop_for_speed_p.
5664         * varasm.c (assemble_start_function): Use
5665         optimize_function_for_speed_p.
5666         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
5667         * predict.c (optimize_loop_for_speed_p): Fix walk.
5668
5669 2008-08-30  Jan Hubicka  <jh@suse.cz>
5670
5671         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
5672         functions.
5673         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
5674         profile presence locally.
5675
5676 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
5677
5678         PR bootstrap/37086
5679         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
5680         versions before 4.0.
5681
5682 2008-08-29  Jan Hubicka  <jh@suse.cz>
5683
5684         * tree-inline.c (insert_init_stmt): Insert sequence even when
5685         not in SSA form.
5686
5687 2008-08-29  Jeff Law  <law@redhat.com>
5688
5689         * mn10300.c (mn10300_secondary_reload_class): We need secondary
5690         reloads for AM33-2 if IN is a pseudo with an equivalent memory
5691         location and class is an FP register.
5692
5693 2008-08-29  Jan Hubicka  <jh@suse.cz>
5694
5695         * see.c (see_merge_one_def_extension): Silence used uninitialized
5696         warning.
5697         * matrix-reorg.c (check_allocation_function): Likewise.
5698         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
5699
5700 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
5701
5702         PR c/37261
5703         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
5704         compute new & and | in type rather than TREE_TYPE (arg0).
5705
5706         * dwarf2out.c (fortran_common): Update comment.
5707         (gen_variable_die): Swap com_die and var_die variables in Fortran
5708         COMMON block handling code.
5709
5710         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
5711
5712         * dwarf2out.c (gen_const_die): New function.
5713         (size_of_die, value_format, output_die): Output larger
5714         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
5715         (native_encode_initializer): New function.
5716         (tree_add_const_value_attribute): Call it.
5717         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
5718
5719         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
5720         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
5721         TREE_THIS_VOLATILE to add_type_attribute.
5722
5723         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
5724         types.
5725         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
5726         types.
5727
5728         * dwarf2out.c (loc_by_reference): New function.
5729         (add_location_or_const_value_attribute): Use it.
5730
5731         PR fortran/23057
5732         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
5733         as DW_TAG_variable children of DW_TAG_common_block rather than
5734         DW_TAG_member children.  Put DW_AT_external to individual
5735         DW_TAG_variable DIEs, not to DW_TAG_common_block.
5736
5737         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
5738         loc_descriptor_from_tree_1.
5739
5740         PR fortran/29635
5741         PR fortran/23057
5742         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
5743         arguments to imported_module_or_decl.
5744         (debug_nothing_tree_tree): Removed.
5745         (debug_nothing_tree_tree_tree_bool): New prototype.
5746         * debug.c (do_nothing_debug_hooks): Adjust.
5747         (debug_nothing_tree_tree): Removed.
5748         (debug_nothing_tree_tree_tree_bool): New function.
5749         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
5750         (gen_variable_die): Put all common vars for the
5751         same COMMON block under one DW_TAG_common_block.
5752         (declare_in_namespace): Return new context_die, for Fortran
5753         return the module DIE instead of adding extra declarations into
5754         the namespace.
5755         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
5756         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
5757         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
5758         DW_AT_declaration.
5759         (dwarf2out_global_decl): Don't skip Fortran global vars.
5760         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
5761         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
5762         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
5763         DW_TAG_imported_declaration as child of previous
5764         DW_TAG_imported_module.
5765         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
5766         * sdbout.c (sdb_debug_hooks): Likewise.
5767         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5768
5769 2008-08-29  Jan Hubicka  <jh@suse.cz>
5770
5771         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
5772
5773         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
5774         * ipa-cp.c (n_cloning_candidates): New static variable.
5775         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
5776         (ipcp_print_all_lattices): Improve debug output.
5777         (ipcp_cloning_candidate_p): New function.
5778         (ipcp_initialize_node_lattices): Use it.
5779         (ipcp_init_stage): Do only analyzis here; prettier debug output.
5780         (ipcp_propagate_stage): Prettier debug output.
5781         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
5782         (ipcp_print_all_structures): Remove.
5783         (ipcp_need_redirect_p): Test !n_cloning_candidates.
5784         (ipcp_insert_stage): Prettier debug output; call
5785         cgraph_remove_unreachable_nodes before propagating.
5786         (pass_ipa_cp): Schedule function removal pass.
5787         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
5788         debug output.
5789         (cgraph_maybe_hot_edge_p): Move to ...
5790         * predict.c (cgraph_maybe_hot_edge_p) ... here.
5791         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
5792         (common_handle_option): Set them; enable ipa-cp when profiling.
5793         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
5794         (ipa_print_all_jump_functions): Likewise.
5795         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
5796         (ipa_print_node_params, ipa_print_all_params): New.
5797         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
5798         ipa_print_all_param_flags): Remove.
5799         (ipa_print_node_params, ipa_print_all_params): New.
5800
5801 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
5802
5803         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
5804         change from 2008-04-03.
5805         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
5806
5807 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
5808
5809         PR rtl-opt/37251
5810         * ira-color.c (push_allocnos_to_stack): Truncate
5811         removed_splay_allocno_vec.
5812
5813 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
5814
5815         PR rtl-opt/37243
5816         * ira-color (ira_fast_allocation): Don't assign hard registers to
5817         global allocnos.
5818
5819 2008-08-29  Jan Hubicka  <jh@suse.cz>
5820
5821         PR middle-end/37278
5822         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
5823         for cold internal loops.
5824
5825 2008-08-29  Richard Guenther  <rguenther@suse.de>
5826
5827         * tree-ssa-structalias.c (create_variable_info_for): Do not
5828         create fields for heap vars or vars with a noalias state.
5829         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
5830         from ESCAPED.
5831
5832 2008-08-29  Richard Guenther  <rguenther@suse.de>
5833
5834         * common.opt (ftree-store-ccp): Mark as preserved for
5835         backward compatibility.
5836         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
5837         * tree-pass.h (pass_store_ccp): Remove.
5838         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
5839         (first_vdef): Remove declaration.
5840         (get_value_loaded_by): Likewise.
5841         * tree-ssa-ccp.c (do_store_ccp): Remove.
5842         (get_default_value): Simplify as do_store_ccp is always false
5843         now.  Do not initialize mem_ref.
5844         (set_value_varying): Likewise.
5845         (canonicalize_float_value): Likewise.
5846         (set_lattice_value): Likewise.
5847         (likely_value): Likewise.
5848         (surely_varying_stmt_p): Likewise.
5849         (ccp_initialize): Likewise.
5850         (ccp_lattice_meet): Likewise.
5851         (ccp_visit_phi_node): Likewise.
5852         (ccp_fold): Likewise.
5853         (evaluate_stmt): Likewise.
5854         (visit_assignment): Likewise.
5855         (ccp_visit_stmt): Likewise.
5856         (execute_ssa_ccp): Fold into ...
5857         (do_ssa_ccp): ... this.
5858         (do_ssa_store_ccp): Remove.
5859         (gate_store_ccp): Likewise.
5860         (pass_store_ccp): Likewise.
5861         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
5862         initialize mem_ref.
5863         * tree-ssa-propagate.c (first_vdef): Remove.
5864         (get_value_loaded_by): Likewise.
5865         (replace_vuses_in): Likewise.
5866         (substitute_and_fold): Do not call replace_vuses_in.
5867         * opts.c (decode_options): Do not set flag_tree_store_ccp.
5868
5869 2008-08-29  Richard Guenther  <rguenther@suse.de>
5870
5871         PR middle-end/37236
5872         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
5873         PARAM_NOALIAS tags with is_heapvar.
5874         * tree-ssa-operands.c (access_can_touch_variable): Offset
5875         based tests do not apply for heapvars.  Fix offset test.
5876
5877 2008-08-29  Jan Hubicka  <jh@suse.cz>
5878
5879         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
5880         (-fipa-cp-clone): Enabled by default at -O3.
5881         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
5882         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
5883
5884 2008-08-29  Jan Hubicka  <jh@suse.cz>
5885
5886         * tree.c (build_function_type_skip_args,
5887         build_function_decl_skip_args): New functions.
5888         * tree.h (build_function_type_skip_args,
5889         build_function_decl_skip_args): Declare.
5890         * gimple.c (giple_copy_call_skip_args): New function.
5891         (giple_copy_call_skip_args): Declare.
5892
5893         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
5894         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
5895         (ipcp_node_modifiable_p): ... this one; use
5896         tree_versionable_function_p.
5897         (ipcp_create_replace_map): Improve debug output.
5898         (ipcp_need_redirect_p): Return false when not clonning.
5899         (ipcp_update_callgraph): Skip args.
5900         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
5901         skip args.
5902         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
5903         (save_inline_function_body): Update call of tree_function_versioning.
5904         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
5905         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
5906         argument.
5907         (tree_function_versioning): Likewise.
5908         * tree-inline.h (tree_function_versioning): Update prototype.
5909
5910 2008-08-29  Jan Hubicka  <jh@suse.cz>
5911
5912         * loop-unswitch.c (unswitch_single_loop): Use
5913         optimize_loop_for_speed_p.
5914         * tree-ssa-threadupdate.c (mark_threaded_blocks):
5915         Use optimize_function_for_size_p.
5916         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
5917         * postreload-gcse.c (eliminate_partially_redundant_load):
5918         Use optimize_bb_for_size_p.
5919         * value-prof.c (gimple_divmod_fixed_value_transform,
5920         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
5921         gimple_stringops_transform): Use optimize_bb_for_size_p.
5922         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
5923         * final.c (compute_alignments): Use optimize_function_for_size_p.
5924         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
5925         (fold_builtin_strcpy, fold_builtin_fputs): Use
5926         optimize_function_for_size_p.
5927         * fold-const.c (tree_swap_operands_p): Use
5928         optimize_function_for_size_p.
5929         * recog.c (relax_delay_slots): Likewise.
5930         * tree-ssa-math-opts.c (replace_reciprocal):
5931         Use optimize_bb_for_speed_p.
5932         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
5933         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
5934         optimize_function_for_size_p.
5935         (cgraph_decide_inlining_of_small_function): Use
5936         optimize_function_for_size_p.
5937         * global.c (find_reg): Use optimize_function_for_size_p.
5938         * opts.c (decode_options): Do not clear flag_tree_ch,
5939         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
5940         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
5941         work it out from profile.
5942         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
5943         optimize_loop_for_speed_p.
5944         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5945         Constify argument.
5946         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
5947         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
5948         * tree-eh.c (decide_copy_try_finally): Use
5949         optimize_function_for_size_p.
5950         * local-alloc.c (block_alloc): Pass BB pointer.
5951         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
5952         * gcse.c (gcse_main): Use optimize_function_for_size_p.
5953         * loop-unroll.c (decide_unrolling_and_peeling):
5954         Use optimize_loop_for_size_p.
5955         (decide_peel_completely): Likewise.
5956         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
5957         optimize_loop_for_size_p.
5958         (vect_enhance_data_refs_alignment): Likewise.
5959         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
5960         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
5961         Update call.
5962         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
5963         (try_crossjump_bb): Use optimize_bb_for_size_p.
5964         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5965         optimize_loop_for_speed_p.
5966         * bb-reorder.c (find_traces_1_round): Likewise.
5967         (copy_bb): Use optimize_bb_for_speed_p.
5968         (duplicate_computed_gotos): Likewise.
5969         * basic-block.h (optimize_loop_nest_for_size_p,
5970         optimize_loop_nest_for_speed_p): New.
5971         * stmt.c (expand_case): Use optimize_insn_for_size_p.
5972
5973 2008-08-29  Tristan Gingold  <gingold@adacore.com>
5974
5975         * gcov.c (main): Call expandargv.
5976
5977 2008-08-29  Jan Hubicka  <jh@suse.cz>
5978
5979         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
5980         is not cold.
5981         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5982         Constify arguments.
5983         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
5984         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5985         Constify.
5986         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
5987
5988 2008-08-29  Jan Hubicka  <jh@suse.cz>
5989
5990         * tree-pass.h (pass_strip_predict_hints): Declare.
5991         * predict.c (strip_builtin_expect): Rename to ...
5992         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
5993         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
5994         (tree_estimate_probability): Do not strip builtin_expect.
5995         (pass_strip_predict_hints): New pass.
5996         * tree-inline.c (expand_call_inline): When inlining cold function,
5997         predict it as unlikely.
5998         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
5999
6000 2008-08-29  Richard Guenther  <rguenther@suse.de>
6001
6002         PR tree-optimization/37207
6003         * tree-vrp.c (extract_range_from_binary_expr): Also try
6004         to constant fold if only one of the operands is a constant.
6005
6006 2008-08-29  Nick Clifton  <nickc@redhat.com>
6007
6008         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
6009         the same way as SYMBOL_REFs.
6010
6011 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
6012
6013         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
6014
6015 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
6016
6017         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
6018         * config/mips/mips.md (branch_likely): Remove const.  Fix
6019         comment formatting.
6020         (define_delay for type "branch"): Change to only apply for branch
6021         with likely variant.
6022         (define_delay for type "branch" and "branch_likely" no).  New delay
6023         definition.
6024         (equality_op): New code iterator.
6025         (bbv, bbinv): New code attributes.
6026         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
6027         patterns.
6028
6029 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6030             Andrew Pinski  <pinskia@gcc.gnu.org>
6031
6032         PR 18050
6033         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
6034
6035 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
6036
6037         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
6038         rule that a symbolic constant must be defined and >= 0 for the
6039         corresponding facility to be present at compile-time.
6040         * gthr-posix.c: Likewise.
6041
6042 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
6043
6044         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
6045         * config/mips/mips.md (D): New mode attribute.
6046         (mulsi3, muldi3): Merge it into ...
6047         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
6048         (muldi3_mul3): New pattern.
6049         (mulsi3_mult3): Rename to mulsi3_mul3.
6050
6051 2008-08-28  Jan Hubicka  <jh@suse.cz>
6052
6053         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
6054         to fail.
6055         * predict.c (always_optimize_for_size_p): Rename to ...
6056         (optimize_function_for_size): ... this one; make extern.
6057         (optimize_function_for_speed_p): New.
6058         (optimize_bb_for_size_p, optimize_bb_for_size_p,
6059         optimize_edge_for_size_p,optimize_edge_for_size_p,
6060         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
6061         * basic-block.h (optimize_function_for_size_p,
6062         optimize_function_for_speed_p): Declare.
6063         * i386.md (optimize_size checks): Replace them by appropriate
6064         predicate.
6065         (standard_80387_constant_p, ix86_compute_frame_layout,
6066         ix86_expand_epilogue, ix86_decompose_address,
6067         print_operand, emit_i387_cw_initialization,
6068         inline_memory_move_cost, ix86_pad_returns,
6069         ix86_reorg): Replace optimize_size checks.
6070
6071 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6072
6073         * rtl.h (simplify_subreg_regno): Declare.
6074         * rtlanal.c (simplify_subreg_regno): New function, split out from...
6075         * simplify-rtx.c (simplify_subreg): ...here.
6076         * reload.c (find_reloads): Use simplify_subreg_regno instead of
6077         subreg_offset_representable_p.
6078
6079 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6080
6081         PR c/30949
6082         * c-typeck.c (convert_for_assignment): Give a note describing what
6083         was passed and what was expected.
6084
6085 2008-08-28  Joey Ye  <joey.ye@intel.com>
6086
6087         * doc/extend.texi: Document AVX built-in functions.
6088         * doc/invoke.texi: Document -mavx.
6089
6090 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
6091             Joey Ye  <joey.ye@intel.com>
6092             Xuepeng Guo  <xuepeng.guo@intel.com>
6093
6094         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
6095
6096         * config/i386/cpuid.h (bit_FMA): New.
6097         (bit_XSAVE): Likewise.
6098         (bit_OSXSAVE): Likewise.
6099         (bit_AVX): Likewise.
6100
6101         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
6102         define.  Use ASM_OUTPUT_AVX_PREFIX.
6103
6104         * config/i386/gmmintrin.h: New.
6105
6106         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
6107         (OPTION_MASK_ISA_AVX_SET): New.
6108         (OPTION_MASK_ISA_FMA_SET): Likewise.
6109         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
6110         (OPTION_MASK_ISA_FMA_SET): Likewise.
6111         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
6112         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
6113         (pta_flags): Add PTA_AVX and PTA_FMA.
6114         (override_options): Handle PTA_AVX and PTA_FMA.
6115         (init_cumulative_args): Handle warn_avx.
6116         (classify_argument): Return 0 for COImode and OImode.  Return
6117         1 and X86_64_AVX_CLASS for 256bit vector types.
6118         (examine_argument): Handle X86_64_AVX_CLASS.
6119         (construct_container): Likewise.
6120         (function_arg_advance_32): Pass OImode and 256bit vector types
6121         in AVX register.
6122         (function_arg_advance_64): Take a new argument to indicate if a
6123         parameter is named.  Handle 256bit vector types.  Return
6124         immediately for unnamed 256bit vector mode parameters.
6125         (function_arg_advance): Updated.
6126         (function_arg_32): Add comments for TImode.  Handle OImode
6127         and 256bit vector types.
6128         (function_arg_64): Take a new argument to indicate if a
6129         parameter is named.  Handle 256bit vector types.  Return NULL
6130         for unnamed 256bit vector mode parameters.
6131         (function_arg): Updated.
6132         (setup_incoming_varargs_64): Support
6133         AVX encoding for *sse_prologue_save_insn.
6134         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
6135         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
6136         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
6137         enabled, otherwise return -3.
6138         (standard_sse_constant_opcode): Handle AVX and 256bit vector
6139         modes.
6140         (print_reg): Support AVX registers.  Handle 'x' and 't'.
6141         Handle 'd' to duplicate the operand.
6142         (print_operand): Likewise.  Also support AVX vector compare
6143         instructions.
6144         (output_387_binary_op): Support AVX.
6145         (output_fp_compare): Likewise.
6146         (ix86_expand_vector_move_misalign): Likewise.
6147         (ix86_attr_length_vex_default): New.
6148         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
6149         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
6150         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
6151         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
6152         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
6153         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
6154         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
6155         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
6156         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
6157         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
6158         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
6159         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
6160         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
6161         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
6162         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
6163         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
6164         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
6165         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
6166         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
6167         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
6168         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
6169         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
6170         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
6171         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
6172         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
6173         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
6174         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
6175         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
6176         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
6177         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
6178         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
6179         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
6180         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
6181         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
6182         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
6183         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
6184         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
6185         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
6186         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
6187         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
6188         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
6189         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
6190         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
6191         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
6192         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
6193         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
6194         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
6195         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
6196         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
6197         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
6198         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
6199         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
6200         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
6201         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
6202         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
6203         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
6204         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
6205         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
6206         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
6207         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
6208         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
6209         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
6210         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
6211         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
6212         and IX86_BUILTIN_MOVMSKPS256,
6213         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
6214         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
6215         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
6216         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
6217         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
6218         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
6219         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
6220         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
6221         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
6222         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
6223         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
6224         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
6225         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
6226         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
6227         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
6228         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
6229         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
6230         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
6231         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
6232         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
6233         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
6234         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
6235         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
6236         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
6237         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
6238         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
6239         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
6240         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
6241         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
6242         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
6243         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
6244         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
6245         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
6246         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
6247         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
6248         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
6249         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
6250         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
6251         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
6252         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
6253         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
6254         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
6255         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
6256         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
6257         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
6258         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
6259         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
6260         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
6261         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
6262         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
6263         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
6264         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
6265         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
6266         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
6267         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
6268         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
6269         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
6270         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
6271         IX86_BUILTIN_CMPPS,
6272         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
6273         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
6274         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
6275         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
6276         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
6277         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
6278         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
6279         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
6280         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
6281         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
6282         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
6283         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
6284         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
6285         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
6286         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
6287         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
6288         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
6289         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
6290         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
6291         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
6292         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
6293         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
6294         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
6295         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
6296         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
6297         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
6298         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
6299         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
6300         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
6301         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
6302         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
6303         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
6304         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
6305         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
6306         IX86_BUILTIN_MOVMSKPS256.
6307         (ix86_init_mmx_sse_builtins): Support AVX builtins.
6308         (ix86_expand_args_builtin): Likewise.
6309         (ix86_expand_special_args_builtin): Likewise.
6310         (ix86_hard_regno_mode_ok): Handle AVX modes.
6311         (ix86_expand_vector_init_duplicate): Likewise.
6312         (ix86_expand_vector_init_one_nonzero): Likewise.
6313         (ix86_expand_vector_init_one_var): Likewise.
6314         (ix86_expand_vector_init_concat): Likewise.
6315         (ix86_expand_vector_init_general): Likewise.
6316         (ix86_expand_vector_set): Likewise.
6317         (ix86_vector_mode_supported_p): Likewise.
6318         (x86_extended_reg_mentioned_p): Check INSN_P before using
6319         PATTERN.
6320
6321         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6322         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
6323
6324         * config/i386/i386.h (TARGET_AVX): New.
6325         (TARGET_FMA): Likewise.
6326         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
6327         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
6328         (VALID_AVX256_REG_MODE): New.
6329         (AVX256_VEC_FLOAT_MODE_P): Likewise.
6330         (AVX_FLOAT_MODE_P): Likewise.
6331         (AVX128_VEC_FLOAT_MODE_P): Likewise.
6332         (AVX256_VEC_FLOAT_MODE_P): Likewise.
6333         (AVX_VEC_FLOAT_MODE_P): Likewise.
6334         (ASM_OUTPUT_AVX_PREFIX): Likewise.
6335         (ASM_OUTPUT_OPCODE): Likewise.
6336         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
6337         support.
6338         (SSE_REG_MODE_P): Allow 256bit vector modes.
6339         (ix86_args): Add a warn_avx field.
6340
6341         * config/i386/i386.md (UNSPEC_PCMP): New.
6342         (UNSPEC_VPERMIL): Likewise.
6343         (UNSPEC_VPERMIL2): Likewise.
6344         (UNSPEC_VPERMIL2F128): Likewise.
6345         (UNSPEC_MASKLOAD): Likewise.
6346         (UNSPEC_MASKSTORE): Likewise.
6347         (UNSPEC_CAST): Likewise.
6348         (UNSPEC_VTESTP): Likewise.
6349         (UNSPECV_VZEROALL): Likewise.
6350         (UNSPECV_VZEROUPPER): Likewise.
6351         (XMM0_REG): Likewise.
6352         (XMM1_REG): Likewise.
6353         (XMM2_REG): Likewise.
6354         (XMM3_REG): Likewise.
6355         (XMM4_REG): Likewise.
6356         (XMM5_REG): Likewise.
6357         (XMM6_REG): Likewise.
6358         (XMM8_REG): Likewise.
6359         (XMM9_REG): Likewise.
6360         (XMM10_REG): Likewise.
6361         (XMM11_REG): Likewise.
6362         (XMM12_REG): Likewise.
6363         (XMM13_REG): Likewise.
6364         (XMM14_REG): Likewise.
6365         (XMM15_REG): Likewise.
6366         (prefix): Likewise.
6367         (prefix_vex_imm8): Likewise.
6368         (prefix_vex_w): Likewise.
6369         (length_vex): Likewise.
6370         (maxmin): Likewise.
6371         (movoi): Likewise.
6372         (*avx_ashlti3): Likewise.
6373         (*avx_lshrti3): Likewise.
6374         (*avx_setcc<mode>): Likewise.
6375         (*fop_<mode>_comm_mixed_avx): Likewise.
6376         (*fop_<mode>_comm_avx): Likewise.
6377         (*fop_<mode>_1_mixed_avx): Likewise.
6378         (*fop_<mode>_1_avx): Likewise.
6379         (*avx_<code><mode>3): Likewise.
6380         (*avx_ieee_smin<mode>3): Likewise.
6381         (*avx_ieee_smax<mode>3): Likewise.
6382         (mode): Add OI, V8SF and V4DF.
6383         (length): Support VEX prefix.
6384         (*cmpfp_i_mixed): Set prefix attribute.
6385         (*cmpfp_i_sse): Likewise.
6386         (*cmpfp_iu_mixed): Likewise.
6387         (*cmpfp_iu_sse): Likewise.
6388         (*movsi_1): Support AVX.
6389         (*movdi_2): Likewise.
6390         (*movdi_1_rex64): Likewise.
6391         (*movti_internal): Likewise.
6392         (*movti_rex64): Likewise.
6393         (*movsf_1): Likewise.
6394         (*movdf_nointeger): Likewise.
6395         (*movdf_integer_rex64): Likewise.
6396         (*movtf_internal): Likewise.
6397         (zero_extendsidi2_32): Likewise.
6398         (zero_extendsidi2_rex64): Likewise.
6399         (*extendsfdf2_mixed): Likewise.
6400         (*extendsfdf2_sse): Likewise.
6401         (*truncdfsf_fast_mixed): Likewise.
6402         (*truncdfsf_fast_sse): Likewise.
6403         (*truncdfsf_mixed): Likewise.
6404         (fix_trunc<mode>di_sse): Likewise.
6405         (fix_trunc<mode>si_sse): Likewise.
6406         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
6407         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
6408         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
6409         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
6410         (*rcpsf2_sse): Likewise.
6411         (*rsqrtsf2_sse): Likewise.
6412         (*sqrt<mode>2_sse): Likewise.
6413         (sse4_1_round<mode>2): Likewise.
6414         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
6415         Support AVX.  Set length attribute properly for AVX.
6416
6417         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
6418         (VECTOR_MODES (FLOAT, 32)): Likewise.
6419         (VECTOR_MODE (INT, DI, 8)): Likewise.
6420         (VECTOR_MODE (INT, HI, 32)): Likewise.
6421         (VECTOR_MODE (INT, QI, 64)): Likewise.
6422         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
6423         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
6424         (VECTOR_MODE (INT, DI, 4)): Removed.
6425         (VECTOR_MODE (INT, SI, 8)): Likewise.
6426         (VECTOR_MODE (INT, HI, 16)): Likewise.
6427         (VECTOR_MODE (INT, QI, 32)): Likewise.
6428         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
6429         (INT_MODE (OI, 32)): Likewise.
6430
6431         * config/i386/i386.opt (mavx): New.
6432         (mfma): Likewise.
6433
6434         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
6435
6436         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
6437         (*mov<mode>_internal_avx): New.
6438         (*movv2sf_internal_rex64_avx): Likewise.
6439         (*movv2sf_internal_avx): Likewise.
6440
6441         * config/i386/predicates.md (const_4_to_5_operand): New.
6442         (const_6_to_7_operand): Likewise.
6443         (const_8_to_11_operand): Likewise.
6444         (const_12_to_15_operand): Likewise.
6445         (avx_comparison_float_operator): Likewise.
6446
6447         * config/i386/sse.md (AVX256MODEI): New.
6448         (AVX256MODE): Likewise.
6449         (AVXMODEQI): Likewise.
6450         (AVXMODE): Likewise.
6451         (AVX256MODEF2P): Likewise.
6452         (AVX256MODE2P): Likewise.
6453         (AVX256MODE4P): Likewise.
6454         (AVX256MODE8P): Likewise.
6455         (AVXMODEF2P): Likewise.
6456         (AVXMODEF4P): Likewise.
6457         (AVXMODEDCVTDQ2PS): Likewise.
6458         (AVXMODEDCVTPS2DQ): Likewise.
6459         (avxvecmode): Likewise.
6460         (avxvecpsmode): Likewise.
6461         (avxhalfvecmode): Likewise.
6462         (avxscalarmode): Likewise.
6463         (avxcvtvecmode): Likewise.
6464         (avxpermvecmode): Likewise.
6465         (avxmodesuffixf2c): Likewise.
6466         (avxmodesuffixp): Likewise.
6467         (avxmodesuffixs): Likewise.
6468         (avxmodesuffix): Likewise.
6469         (vpermilbits): Likewise.
6470         (pinsrbits): Likewise.
6471         (mov<mode>): Likewise.
6472         (*mov<mode>_internal): Likewise.
6473         (push<mode>1): Likewise.
6474         (movmisalign<mode>): Likewise.
6475         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6476         (avx_movdqu<avxmodesuffix>): Likewise.
6477         (avx_lddqu<avxmodesuffix>): Likewise.
6478         (<plusminus_insn><mode>3): Likewise.
6479         (*avx_<plusminus_insn><mode>3): Likewise.
6480         (*avx_vm<plusminus_insn><mode>3): Likewise.
6481         (mul<mode>3): Likewise.
6482         (*avx_mul<mode>3): Likewise.
6483         (*avx_vmmul<mode>3): Likewise.
6484         (divv8sf3): Likewise.
6485         (divv4df3): Likewise.
6486         (avx_div<mode>3): Likewise.
6487         (*avx_div<mode>3): Likewise.
6488         (*avx_vmdiv<mode>3): Likewise.
6489         (avx_rcpv8sf2): Likewise.
6490         (*avx_vmrcpv4sf2): Likewise.
6491         (sqrtv8sf2): Likewise.
6492         (avx_sqrtv8sf2): Likewise.
6493         (*avx_vmsqrt<mode>2): Likewise.
6494         (rsqrtv8sf2): Likewise.
6495         (avx_rsqrtv8sf2): Likewise.
6496         (*avx_vmrsqrtv4sf2): Likewise.
6497         (<code><mode>3): Likewise.
6498         (*avx_<code><mode>3_finite): Likewise.
6499         (*avx_<code><mode>3): Likewise.
6500         (*avx_vm<code><mode>3): Likewise.
6501         (*avx_ieee_smin<mode>3): Likewise.
6502         (*avx_ieee_smax<mode>3): Likewise.
6503         (avx_addsubv8sf3): Likewise.
6504         (avx_addsubv4df3): Likewise.
6505         (*avx_addsubv4sf3): Likewise.
6506         (*avx_addsubv2df3): Likewise.
6507         (avx_h<plusminus_insn>v4df3): Likewise.
6508         (avx_h<plusminus_insn>v8sf3): Likewise.
6509         (*avx_h<plusminus_insn>v4sf3): Likewise.
6510         (*avx_h<plusminus_insn>v2df3): Likewise.
6511         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
6512         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
6513         (*avx_maskcmp<mode>3): Likewise.
6514         (avx_nand<mode>3): Likewise.
6515         (*avx_<code><mode>3): Likewise.
6516         (*avx_nand<mode>3): Likewise.
6517         (*avx_<code><mode>3): Likewise.
6518         (*avx_cvtsi2ss): Likewise.
6519         (*avx_cvtsi2ssq): Likewise.
6520         (*avx_cvtsi2sd): Likewise.
6521         (*avx_cvtsi2sdq): Likewise.
6522         (*avx_cvtsd2ss): Likewise.
6523         (avx_cvtss2sd): Likewise.
6524         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
6525         (avx_cvtps2dq<avxmodesuffix>): Likewise.
6526         (avx_cvttps2dq<avxmodesuffix>): Likewise.
6527         (*avx_cvtsi2sd): Likewise.
6528         (*avx_cvtsi2sdq): Likewise.
6529         (avx_cvtdq2pd256): Likewise.
6530         (avx_cvtpd2dq256): Likewise.
6531         (avx_cvttpd2dq256): Likewise.
6532         (*avx_cvtsd2ss): Likewise.
6533         (*avx_cvtss2sd): Likewise.
6534         (avx_cvtpd2ps256): Likewise.
6535         (avx_cvtps2pd256): Likewise.
6536         (*avx_movhlps): Likewise.
6537         (*avx_movlhps): Likewise.
6538         (avx_unpckhps256): Likewise.
6539         (*avx_unpckhps): Likewise.
6540         (avx_unpcklps256): Likewise.
6541         (*avx_unpcklps): Likewise.
6542         (avx_movshdup256): Likewise.
6543         (avx_movsldup256): Likewise.
6544         (avx_shufps256): Likewise.
6545         (avx_shufps256_1): Likewise.
6546         (*avx_shufps_<mode>): Likewise.
6547         (*avx_loadhps): Likewise.
6548         (*avx_storelps): Likewise.
6549         (*avx_loadlps): Likewise.
6550         (*avx_movss): Likewise.
6551         (*vec_dupv4sf_avx): Likewise.
6552         (*vec_concatv2sf_avx): Likewise.
6553         (*vec_concatv4sf_avx): Likewise.
6554         (*vec_setv4sf_0_avx): Likewise.
6555         (*vec_setv4sf_avx): Likewise.
6556         (*avx_insertps): Likewise.
6557         (avx_vextractf128<mode>): Likewise.
6558         (vec_extract_lo_<mode>): Likewise.
6559         (vec_extract_hi_<mode>): Likewise.
6560         (vec_extract_lo_<mode>): Likewise.
6561         (vec_extract_hi_<mode>): Likewise.
6562         (vec_extract_lo_v16hi): Likewise.
6563         (vec_extract_hi_v16hi): Likewise.
6564         (vec_extract_lo_v32qi): Likewise.
6565         (vec_extract_hi_v32qi): Likewise.
6566         (avx_unpckhpd256): Likewise.
6567         (*avx_unpckhpd): Likewise.
6568         (avx_movddup256): Likewise.
6569         (*avx_movddup): Likewise.
6570         (avx_unpcklpd256): Likewise.
6571         (*avx_unpcklpd): Likewise.
6572         (avx_shufpd256): Likewise.
6573         (avx_shufpd256_1): Likewise.
6574         (*avx_punpckhqdq): Likewise.
6575         (*avx_punpcklqdq): Likewise.
6576         (*avx_shufpd_<mode>): Likewise.
6577         (*avx_storehpd): Likewise.
6578         (*avx_loadhpd): Likewise.
6579         (*avx_loadlpd): Likewise.
6580         (*avx_movsd): Likewise.
6581         (*vec_concatv2df_avx): Likewise.
6582         (*avx_<plusminus_insn><mode>3): Likewise.
6583         (*avx_<plusminus_insn><mode>3): Likewise.
6584         (*avx_mulv8hi3): Likewise.
6585         (*avxv8hi3_highpart): Likewise.
6586         (*avx_umulv8hi3_highpart): Likewise.
6587         (*avx_umulv2siv2di3): Likewise.
6588         (*avx_mulv2siv2di3): Likewise.
6589         (*avx_pmaddwd): Likewise.
6590         (*avx_mulv4si3): Likewise.
6591         (*avx_ashr<mode>3): Likewise.
6592         (*avx_lshr<mode>3): Likewise.
6593         (*avx_ashl<mode>3): Likewise.
6594         (*avx_<code><mode>3): Likewise.
6595         (*avx_eq<mode>3): Likewise.
6596         (*avx_gt<mode>3): Likewise.
6597         (*avx_nand<mode>3): Likewise.
6598         (*avx_nand<mode>3): Likewise.
6599         (*avx_<code><mode>3): Likewise.
6600         (*avx_<code><mode>3): Likewise.
6601         (*avx_packsswb): Likewise.
6602         (*avx_packssdw): Likewise.
6603         (*avx_packuswb): Likewise.
6604         (*avx_punpckhbw): Likewise.
6605         (*avx_punpcklbw): Likewise.
6606         (*avx_punpckhwd): Likewise.
6607         (*avx_punpcklwd): Likewise.
6608         (*avx_punpckhdq): Likewise.
6609         (*avx_punpckldq): Likewise.
6610         (*avx_pinsr<avxmodesuffixs>): Likewise.
6611         (*avx_pinsrq): Likewise.
6612         (*avx_loadld): Likewise.
6613         (*vec_extractv2di_1_rex64_avx): Likewise.
6614         (*vec_extractv2di_1_avx): Likewise.
6615         (*vec_dupv2di_avx): Likewise.
6616         (*vec_concatv2si_avx): Likewise.
6617         (*vec_concatv4si_1_avx): Likewise.
6618         (*vec_concatv2di_avx): Likewise.
6619         (*vec_concatv2di_rex64_avx): Likewise.
6620         (*avx_uavgv16qi3): Likewise.
6621         (*avx_uavgv8hi3): Likewise.
6622         (*avx_psadbw): Likewise.
6623         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
6624         (*avx_phaddwv8hi3): Likewise.
6625         (*avx_phadddv4si3): Likewise.
6626         (*avx_phaddswv8hi3): Likewise.
6627         (*avx_phsubwv8hi3): Likewise.
6628         (*avx_phsubdv4si3): Likewise.
6629         (*avx_phsubswv8hi3): Likewise.
6630         (*avx_pmaddubsw128): Likewise.
6631         (*avx_pmulhrswv8hi3): Likewise.
6632         (*avx_pshufbv16qi3): Likewise.
6633         (*avx_psign<mode>3): Likewise.
6634         (*avx_palignrti): Likewise.
6635         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6636         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6637         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6638         (*avx_mpsadbw): Likewise.
6639         (*avx_packusdw): Likewise.
6640         (*avx_pblendvb): Likewise.
6641         (*avx_pblendw): Likewise.
6642         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6643         (avx_ptest256): Likewise.
6644         (avx_roundp<avxmodesuffixf2c>256): Likewise.
6645         (*avx_rounds<ssemodesuffixf2c>): Likewise.
6646         (*avx_aesenc): Likewise.
6647         (*avx_aesenclast): Likewise.
6648         (*avx_aesdec): Likewise.
6649         (*avx_aesdeclast): Likewise.
6650         (avx_vzeroupper): Likewise.
6651         (avx_vzeroupper_rex64): Likewise.
6652         (avx_vpermil<mode>): Likewise.
6653         (avx_vpermilvar<mode>3): Likewise.
6654         (avx_vpermil2<mode>3): Likewise.
6655         (avx_vperm2f128<mode>3): Likewise.
6656         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6657         (avx_vbroadcastss256): Likewise.
6658         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
6659         (avx_vinsertf128<mode>): Likewise.
6660         (vec_set_lo_<mode>): Likewise.
6661         (vec_set_hi_<mode>): Likewise.
6662         (vec_set_lo_<mode>): Likewise.
6663         (vec_set_hi_<mode>): Likewise.
6664         (vec_set_lo_v16hi): Likewise.
6665         (vec_set_hi_v16hi): Likewise.
6666         (vec_set_lo_v32qi): Likewise.
6667         (vec_set_hi_v32qi): Likewise.
6668         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6669         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6670         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6671         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
6672         (vec_init<mode>): Likewise.
6673         (*vec_concat<mode>_avx): Likewise.
6674         (blendbits): Support V8SF and V4DF.
6675         (sse2_movq128): Support AVX.
6676         (<sse>_movnt<mode>): Likewise.
6677         (sse2_movntv2di): Likewise.
6678         (sse_rcpv4sf2): Likewise.
6679         (sse_sqrtv4sf2): Likewise.
6680         (sse_rsqrtv4sf2): Likewise.
6681         (<sse>_comi): Likewise.
6682         (<sse>_ucomi): Likewise.
6683         (sse_cvtss2si): Likewise.
6684         (sse_cvtss2si_2): Likewise.
6685         (sse_cvtss2siq): Likewise.
6686         (sse_cvtss2siq_2): Likewise.
6687         (sse_cvttss2si): Likewise.
6688         (sse_cvttss2siq): Likewise.
6689         (sse2_cvtsd2si): Likewise.
6690         (sse2_cvtsd2si_2): Likewise.
6691         (sse2_cvtsd2siq): Likewise.
6692         (sse2_cvtsd2siq_2): Likewise.
6693         (sse2_cvttsd2si): Likewise.
6694         (sse2_cvttsd2siq): Likewise.
6695         (sse2_cvtdq2pd): Likewise.
6696         (*sse2_cvtpd2dq): Likewise.
6697         (*sse2_cvttpd2dq): Likewise.
6698         (*sse2_cvtpd2ps): Likewise.
6699         (sse2_cvtps2pd): Likewise.
6700         (sse3_movshdup): Likewise.
6701         (sse3_movsldup): Likewise.
6702         (sse_storehps): Likewise.
6703         (*sse4_1_extractps): Likewise.
6704         (sse2_storelpd): Likewise.
6705         (vec_dupv2df_sse3): Likewise.
6706         (*vec_concatv2df_sse3): Likewise.
6707         (*sse4_1_pextrb): Likewise.
6708         (*sse4_1_pextrb_memory): Likewise.
6709         (*sse2_pextrw): Likewise.
6710         (*sse4_1_pextrw_memory): Likewise.
6711         (*sse4_1_pextrd): Likewise.
6712         (*sse4_1_pextrq): Likewise.
6713         (sse2_pshufd_1): Likewise.
6714         (sse2_pshuflw_1): Likewise.
6715         (sse2_pshufhw_1): Likewise.
6716         (*sse2_storeq_rex64): Likewise.
6717         (*vec_dupv4si): Likewise.
6718         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
6719         (sse2_pmovmskb): Likewise.
6720         (*sse2_maskmovdqu): Likewise.
6721         (*sse2_maskmovdqu_rex64): Likewise.
6722         (sse_ldmxcsr): Likewise.
6723         (sse_stmxcsr): Likewise.
6724         (abs<mode>2): Likewise.
6725         (sse4_1_movntdqa): Likewise.
6726         (sse4_1_phminposuw): Likewise.
6727         (sse4_1_extendv8qiv8hi2): Likewise.
6728         (*sse4_1_extendv8qiv8hi2): Likewise.
6729         (sse4_1_extendv4qiv4si2): Likewise.
6730         (*sse4_1_extendv4qiv4si2): Likewise.
6731         (sse4_1_extendv2qiv2di2): Likewise.
6732         (*sse4_1_extendv2qiv2di2): Likewise.
6733         (sse4_1_extendv4hiv4si2): Likewise.
6734         (*sse4_1_extendv4hiv4si2): Likewise.
6735         (sse4_1_extendv2hiv2di2): Likewise.
6736         (*sse4_1_extendv2hiv2di2): Likewise.
6737         (sse4_1_extendv2siv2di2): Likewise.
6738         (*sse4_1_extendv2siv2di2): Likewise.
6739         (sse4_1_zero_extendv8qiv8hi2): Likewise.
6740         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
6741         (sse4_1_zero_extendv4qiv4si2): Likewise.
6742         (*sse4_1_zero_extendv4qiv4si2): Likewise.
6743         (sse4_1_zero_extendv2qiv2di2): Likewise.
6744         (*sse4_1_zero_extendv2qiv2di2): Likewise.
6745         (sse4_1_zero_extendv4hiv4si2): Likewise.
6746         (*sse4_1_zero_extendv4hiv4si2): Likewise.
6747         (sse4_1_zero_extendv2hiv2di2): Likewise.
6748         (*sse4_1_zero_extendv2hiv2di2): Likewise.
6749         (sse4_1_zero_extendv2siv2di2): Likewise.
6750         (*sse4_1_zero_extendv2siv2di2): Likewise.
6751         (sse4_1_ptest): Likewise.
6752         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
6753         (sse4_2_pcmpestri): Likewise.
6754         (sse4_2_pcmpestrm): Likewise.
6755         (sse4_2_pcmpistri): Likewise.
6756         (sse4_2_pcmpistrm): Likewise.
6757         (aesimc): Likewise.
6758         (aeskeygenassist): Likewise.
6759
6760 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
6761
6762         * config/i386/predicates.md (vzeroall_operation): New.
6763
6764         * config/i386/sse.md (avx_vzeroall): New.
6765         (*avx_vzeroall): Likewise.
6766
6767 2008-08-28  Paul Brook  <paul@codesourcery.com>
6768             Mark Shinwell  <shinwell@codesourcery.com>
6769             Richard Earnshaw  <richard.earnshaw@arm.com>
6770
6771         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
6772         (TARGET_MIN_ANCHOR_OFFSET): New.
6773         (arm_override_options): Set correct anchor ranges for Thumb-1
6774         and Thumb-2 if required.
6775         (legitimize_pic_address): Handle case involving a TLS symbol
6776         reference with an addend.
6777         (arm_optimization_options): Enable section anchors at -O1 and
6778         above.
6779         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
6780         * config/arm/arm-protos.h (arm_optimization_options): New.
6781
6782 2008-08-28  Nick Clifton  <nickc@redhat.com>
6783
6784         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
6785         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
6786         attribute.
6787
6788         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
6789         * config/v850/v850.md (return): Remove frame size restriction.
6790
6791         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
6792
6793         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
6794
6795         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
6796
6797         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
6798
6799 2008-08-28  Paul Brook  <paul@codesourcery.com>
6800
6801         * config/arm/vfp11.md: Update license notice.
6802         * config/arm/cortex-r4.md: Ditto.
6803
6804 2008-08-28  Richard Guenther  <rguenther@suse.de>
6805
6806         PR tree-optimization/37207
6807         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
6808         tuplification bug.
6809
6810 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
6811
6812         PR c++/36741
6813         * tree.c (int_fits_type_p): Don't forget unsigned integers
6814           of type sizetype which higher end word equals -1.
6815
6816 2008-08-28  Ira Rosen  <irar@il.ibm.com>
6817
6818         * target.h (struct vectorize): Add new target builtin.
6819         * tree-vectorizer.c (destroy_loop_vec_info): Call
6820         vect_free_slp_instance instead of vect_free_slp_node.
6821         * tree-vectorizer.h (enum slp_load_perm_type): New.
6822         (struct _slp_instance): Add new fields.
6823         (SLP_INSTANCE_LOAD_PERMUTATION): New.
6824         (SLP_INSTANCE_LOADS): New.
6825         (vect_free_slp_tree): Remove.
6826         (vect_free_slp_instance): Declare.
6827         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
6828         (vectorizable_load): Add argument.
6829         (vect_transform_slp_perm_load): New.
6830         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
6831         vectorizable_load.
6832         (vect_get_place_in_interleaving_chain): New function.
6833         (vect_free_slp_tree): Make static.
6834         (vect_free_slp_instance): New function.
6835         (vect_build_slp_tree): Add new arguments. Allow load permutations and
6836         collect the load location in the interleaving chain.
6837         (vect_supported_slp_permutation_p): New function.
6838         (vect_supported_load_permutation_p): Likewise.
6839         (vect_analyze_slp_instance): In case of loads permutation, call
6840         vect_supported_load_permutation_p to check that the permutation is
6841         supported.
6842         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
6843         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
6844         (vect_create_mask_and_perm): New function.
6845         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
6846         (vectorizable_load): Add an argument. Don't keep the created vectors
6847         statements in the node if permutation is required. Call
6848         vect_transform_slp_perm_load to generate the permutation.
6849         (vect_transform_stmt): Add new argument. Call vectorizable_load with
6850         additional argument.
6851         (vect_schedule_slp_instance): In case of loads permutation, allocate
6852         vectorized statements structure for all the related SLP nodes. Call
6853         vect_transform_stmt with addditional argument.
6854         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
6855         * config/spu/spu.c (spu_builtin_vec_perm): New.
6856         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
6857         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
6858         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
6859         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
6860
6861 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
6862
6863         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
6864         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
6865         __gthread_cond_signal, __gthread_cond_timedwait,
6866         __gthread_cond_timedwait_recursive): New functions.
6867         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
6868         Likewise.
6869         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
6870         thread interfaces.
6871
6872 2008-08-28  Richard Guenther  <rguenther@suse.de>
6873
6874         PR middle-end/37005
6875         * fold-const.c (maybe_canonicalize_comparison_1): Require
6876         undefined overflow only for canonicalizing A +- CST cmp CST.
6877         Make sure to not generate new constants that are not inside
6878         their TYPE_MIN/MAX_VALUE range.
6879         (maybe_canonicalize_comparison): Remove undefined overflow
6880         checking from here.
6881         (fold_binary): Remove now duplicate folding.
6882
6883 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
6884
6885         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
6886         use not updated in the last change.
6887
6888 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6889
6890         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
6891         (IRA_COVER_CLASSES): Add FPUL_REGS.
6892
6893 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6894
6895         PR 37217
6896         * c-common.c (conversion_warning): Check for null operands.
6897
6898 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6899
6900         PR c/31673
6901         * c-decl.c (check_for_loop_decls): Improve error message. Give
6902         hint.
6903
6904 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6905
6906         PR c/37186
6907         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
6908         (convert_for_assignment): Pass corrent OPT_W* parameter to
6909         WARN_FOR_ASSIGNMENT.
6910
6911 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
6912
6913         PR c++/35321
6914         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
6915
6916 2008-08-27  Paul Brook  <paul@codesourcery.com>
6917
6918         * config.gcc: Loosen checks for arm uclinux eabi targets.
6919
6920 2008-08-27  Paul Brook  <paul@codesourcery.com>
6921
6922         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
6923         _clzsi2.
6924         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
6925
6926 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
6927
6928         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
6929         the enumerators of an ENUMERAL_TYPE.
6930         * dbxout.c (dbxout_type): Ditto.
6931
6932 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6933
6934         PR rtl-opt/37219
6935         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
6936         (fwprop_addr): Check that the loop_father is not the outer loop.
6937
6938 2008-08-26  Paul Brook  <paul@codesourcery.com>
6939
6940         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
6941         Remove documentation entry for fmul type.
6942         Use fmuls to annotate single-precision multiplication patterns,
6943         fmuld to annotate double-precision multiplication patterns,
6944         fmacs to annotate single-precision multiply-accumulate patterns
6945         and fmacd to annotate double-precision multiply-accumulate patterns.
6946         * config/arm/vfp11.md: Update reservations accordingly.
6947         * config/arm/arm.md: Note that certain values of the "type"
6948         attribute are documented in vfp.md.
6949         * config/arm/arm1020e.md: Remove out of date duplicate comment.
6950         (v10_cvt): Use new fmul types.
6951
6952 2008-08-26  Paul Brook  <paul@codesourcery.com>
6953
6954         * config/arm/vfp.md: Move pipeline description for VFP11 to...
6955         * config/arm/vfp11.md: ...here.  New.
6956         * config/arm/arm.md: Include vfp11.md.
6957
6958 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
6959
6960         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
6961         parameter to inform call.
6962
6963 2008-08-26  Jeff Law  <law@redhat.com>
6964
6965         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
6966         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
6967         preferred class when copying a constant into a partial word register.
6968
6969 2008-08-26  Ben Elliston  <bje@au.ibm.com>
6970
6971         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
6972         * cp/typeck.c: Likewise.
6973         * cp/tree.c: Likewise.
6974         * gimple-low.c: Likewise.
6975         * jump.c: Likewise.
6976
6977 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
6978
6979         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
6980         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
6981
6982         * doc/passes.texi: Describe IRA.
6983
6984         * doc/tm.texi (IRA_COVER_CLASSES,
6985         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
6986
6987         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
6988         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
6989         -fira-propagate-cost, -fno-ira-share-save-slots,
6990         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
6991
6992         * flags.h (ira_algorithm): New enumeration.
6993         (flag_ira_algorithm, flag_ira_verbose): New external variable
6994         declarations.
6995
6996         * postreload.c (gate_handle_postreload): Don't do post reload
6997         optimizations unless the reload is completed.
6998
6999         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
7000         IRA.
7001
7002         * tree-pass.h (pass_ira): New external variable declaration.
7003
7004         * reload.h: Add 2008 to the Copyright.
7005
7006         * cfgloopanal.c: Include params.h.
7007         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
7008         mode.
7009
7010         * params.h (IRA_MAX_LOOPS_NUM): New macro.
7011
7012         * toplev.c (ira.h): New include.
7013         (flag_ira_algorithm, flag_ira_verbose): New external variables.
7014         (backend_init_target): Call ira_init.
7015         (backend_init): Call ira_init_once.
7016         (finalize): Call finish_ira_once.
7017
7018         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
7019         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
7020         external variables.
7021
7022         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
7023         may_move_out_cost): New external variable declarations.
7024         (move_table): New typedef.
7025
7026         * caller-save.c: Include headers output.h and ira.h.
7027         (no_caller_save_reg_set): New global variable.
7028         (save_slots_num, save_slots): New variables.
7029         (reg_save_code, reg_restore_code, add_stored_regs): Add
7030         prototypes.
7031         (init_caller_save): Set up no_caller_save_reg_set.
7032         (init_save_areas): Reset save_slots_num.
7033         (saved_hard_reg): New structure.
7034         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
7035         (initiate_saved_hard_regs, new_saved_hard_reg,
7036         finish_saved_hard_regs, saved_hard_reg_compare_func): New
7037         functions.
7038         (setup_save_areas): Add code for sharing stack slots.
7039         (all_blocks): New variable.
7040         (save_call_clobbered_regs): Process pseudo-register too.
7041         (mark_set_regs): Process pseudo-register too.
7042         (insert_one_insn): Put the insn after bb note in a empty basic
7043         block.  Add insn check.
7044
7045         * global.c (eliminable_regset): Make it external.
7046         (mark_elimination): Use DF_LR_IN for IRA.
7047         (pseudo_for_reload_consideration_p): New.
7048         (build_insn_chain): Make it external.  Don't ignore spilled
7049         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
7050         (gate_handle_global_alloc): New function.
7051         (pass_global_alloc): Add the gate function.
7052
7053         * opts.c (decode_options): Set up flag_ira.  Print the warning for
7054         -fira.
7055         (common_handle_option): Process -fira-algorithm and -fira-verbose.
7056
7057         * timevar.def (TV_IRA, TV_RELOAD): New passes.
7058
7059         * regmove.c (regmove_optimize): Don't do replacement of output for
7060         IRA.
7061
7062         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
7063         New external variable declarations.
7064
7065         * local-alloc.c (update_equiv_regs): Make it external.  Return
7066         true if jump label rebuilding should be done.  Rescan new_insn for
7067         notes.
7068         (gate_handle_local_alloc): New function.
7069         (pass_local_alloc): Add the gate function.
7070
7071         * alias.c (value_addr_p, stack_addr_p): New functions.
7072         (nonoverlapping_memrefs_p): Use them for IRA.
7073
7074         * common.opt (fira, fira-algorithm, fira-coalesce,
7075         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
7076         fira-verbose): New options.
7077
7078         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
7079         move_cost, may_move_in_cost, may_move_out_cost): Make the
7080         variables external.
7081         (move_table): Remove typedef.
7082         (init_move_cost): Make it external.
7083         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
7084         functions.
7085
7086         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
7087         setup_reg_classes): New function prototypes.
7088         (eliminable_regset): New external variable declaration.
7089         (build_insn_chain, update_equiv_regs): New function prototypes.
7090
7091         * Makefile.in (IRA_INT_H): New definition.
7092         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
7093         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
7094         (reload1.o, toplev.o): Add dependence on ira.h.
7095         (cfgloopanal.o): Add PARAMS_H.
7096         (caller-save.o): Add dependence on output.h and ira.h.
7097         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
7098         ira-emit.o, ira-lives.o): New entries.
7099
7100         * passes.c (pass_ira): New pass.
7101
7102         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
7103
7104         * reload1.c (ira.h): Include the header.
7105         (changed_allocation_pseudos): New bitmap.
7106         (init_reload): Initiate the bitmap.
7107         (compute_use_by_pseudos): Permits spilled registers in FROM.
7108         (temp_pseudo_reg_arr): New variable.
7109         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
7110         IRA.  Call alter_reg with the additional parameter.  Don't clear
7111         spilled_pseudos for IRA.  Restore original insn chain for IRA.
7112         Clear changed_allocation_pseudos at the end of reload.
7113         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
7114         (hard_regno_to_pseudo_regno): New variable.
7115         (count_pseudo): Check spilled pseudos.  Set up
7116         hard_regno_to_pseudo_regno.
7117         (count_spilled_pseudo): Check spilled pseudos. Update
7118         hard_regno_to_pseudo_regno.
7119         (find_reg): Use better_spill_reload_regno_p.  Check
7120         hard_regno_to_pseudo_regno.
7121         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
7122         code for IRA.
7123         (eliminate_regs_1): Use additional parameter for alter_reg.
7124         (finish_spills): Set up pseudo_previous_regs only for spilled
7125         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
7126         more arguments.  Don't clear live_throughout and dead_or_set for
7127         spilled pseudos.  Use additional parameter for alter_reg.  Call
7128         mark_allocation_change.  Set up changed_allocation_pseudos.
7129         Remove sanity check.
7130         (emit_input_reload_insns, delete_output_reload): Use additional
7131         parameter for alter_reg.  Call mark_allocation_change.
7132         (substitute, gen_reload_chain_without_interm_reg_p): New
7133         functions.
7134         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
7135
7136         * testsuite/gcc.dg/20080410-1.c: New file.
7137
7138         * config/s390/s390.h (IRA_COVER_CLASSES,
7139         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
7140
7141         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
7142
7143         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
7144
7145         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7146
7147         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
7148
7149         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7150
7151         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
7152
7153         2008-08-24  Jeff Law  <law@redhat.com>
7154         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
7155         when ignoring unavailable registers.
7156
7157         2008-08-24  Jeff Law  <law@redhat.com>
7158         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
7159         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
7160         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
7161         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
7162
7163         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
7164         * ira-build.c (allocno_range_compare_func): Stabilize sort.
7165
7166         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
7167         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
7168         * reload1.c (find_reg): Process registers in register allocation order.
7169
7170         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
7171         * toplev.c (backend_init_target): Move ira_init call from
7172         here...
7173         (lang_dependent_init_target): ...to here.
7174
7175         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
7176         * ira.c (setup_class_subset_and_memory_move_costs): Don't
7177         calculate memory move costs for NO_REGS.
7178
7179         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
7180         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
7181         STACK_REGS is defined.
7182
7183         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
7184         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
7185
7186         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
7187         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
7188
7189         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
7190         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
7191         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
7192         barrier.
7193
7194 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
7195             Dorit Nuzman  <dorit@il.ibm.com>
7196
7197         * gcc/config/spu/spu.md (vec_extract_evenv4si,
7198         vec_extract_evenv4sf, vec_extract_evenv8hi,
7199         vec_extract_evenv16qi, vec_extract_oddv4si,
7200         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
7201         vec_interleave_highv4sf, vec_interleave_lowv4sf,
7202         vec_interleave_highv4si, vec_interleave_lowv4si,
7203         vec_interleave_highv8hi, vec_interleave_lowv8hi,
7204         vec_interleave_highv16qi, vec_interleave_lowv16qi,
7205         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
7206
7207 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
7208
7209         PR target/36756
7210         * config/rs6000/rs6000.c (optimization_options): Don't default to
7211         section anchors without toplevel reorder.
7212
7213 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7214
7215         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
7216         (mfc_end_critical_section): Likewise.
7217
7218 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7219
7220         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
7221         all type qualifiers from element type to vector type.
7222
7223 2008-08-25  David Daney  <ddaney@avtrex.com>
7224
7225         * config/mips/mips.md (immediate_insn): Move up in file, fix
7226         comment typo, reformat.
7227         (fetchop_bit, atomic_hiqi_op memory_barrier,
7228         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
7229         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
7230         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
7231         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
7232         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
7233         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
7234         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
7235         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
7236         sync_old_nand<mode>, sync_new_nand<mode>,
7237         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
7238         test_and_set_12): Moved to sync.md.
7239         (sync.md): Include.
7240         * config/mips/sync.md: New file.
7241
7242 2008-08-25  Richard Henderson  <rth@redhat.com>
7243
7244         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
7245         (regsave): Likewise.
7246         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
7247         (output_cfi_directive): Likewise.
7248         (div_data_align): New.
7249         (output_cfi): Use it.
7250
7251 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
7252
7253         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
7254         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
7255         (TARGET_OCTEON): New macro.
7256         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
7257         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
7258         (ISA_HAS_POP): New macro.
7259         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7260         Octeon.
7261         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
7262         Handle Octeon.
7263         * config/mips/mips.md (cpu): Add octeon.
7264         (type): Add pop attribute value.
7265         (popcount<mode>2): New pattern.
7266         * doc/invoke.texi (-march=@var{arch}): Add octeon.
7267
7268 2008-08-24  Jan Hubicka  <jh@suse.cz>
7269
7270         * doc/invoke.texi (-fipa-cp-clone): New option.
7271         (-fipa-cp): Update docs.
7272         (--param ipcp-unit-growth):New.
7273         * ipa-cp.c: Include fibheap.h, params.h
7274         (ipcp_initialize_node_lattices): When not cloning, all externally
7275         visible functions are bottom.
7276         (ipcp_need_redirect_p): Accept clones.
7277         (ipcp_insert_stage): Use cost driven heuristics.
7278         (max_count, dead_nodes): New static vars.
7279         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
7280         ipcp_const_param_count): New functions.
7281         * common.opt (ipa-cp-clone): New command line option.
7282         * params.def (ipcp-unit-growth): New.
7283
7284 2008-08-24  Jan Hubicka  <jh@suse.cz>
7285
7286         * tree-inline.c (tree_function_versioning): Look harder
7287         for referenced vars.
7288
7289 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
7290
7291         PR tree-optimization/37185
7292         * matrix-reorg.c (transform_access_sites): Update changed stmt.
7293
7294 2008-08-23  Jan Hubicka  <jh@suse.cz>
7295
7296         * ipa-cp.c (ipcp_analyze_node): New function.
7297         (ipcp_update_cloned_node): Use it.
7298         (ipcp_init_stage): Likewise.
7299         * ipa-inline.c (function_insertion_hook_holder): New static var.
7300         (analyze_function): Break out from ....
7301         (inline_generate_summary): Here; register insertion hook.
7302         (cgraph_decide_inlining): Remove hook.
7303         (add_new_function): New function.
7304
7305 2008-08-23  Jan Hubicka  <jh@suse.cz>
7306
7307         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
7308
7309 2008-08-23  Jan Hubicka  <jh@suse.cz>
7310
7311         * ipa-cp.c (constant_val_insert): Remove.
7312         (ipcp_propagate_one_const): Remove.
7313         (ipcp_create_replace_map): Always insert replacements to the map.
7314         (ipcp_insert_stage): Do not try to insert statements by hand.
7315         * tree-inline.c (insert_init_stmt): Break out from ...
7316         (setup_one_parameter): ... here; allow NULL BB pointer.
7317         (tree_function_versioning): Use setup_one_parameter to process
7318         replacement map.
7319
7320 2008-08-23  Jan Hubicka  <jh@suse.cz>
7321
7322         * tree.c (decl_address_ip_invariant_p): New function.
7323         * tree.h (decl_address_ip_invariant_p): Declare.
7324         * gimple.c (strip_invariant_refs): Break out from ...
7325         (is_gimple_invariant_address): ... here
7326         (is_gimple_ip_invariant_address): New function.
7327         (is_gimple_ip_invariant): New function.
7328         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
7329         Declare.
7330
7331         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
7332         (ipcp_lat_is_insertable): All constants are insertable.
7333         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
7334         IPA_CONST_VALUE_REF.
7335         (ipcp_initialize_node_lattices): Propagate all types of operands.
7336         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
7337         (ipcp_create_replace_map): Reformat.
7338         (ipcp_need_redirect_p): Simplify.
7339         (ipcp_insert_stage): Check that argument is used before clonning.
7340         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
7341         IPA_CONST_REF.
7342         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
7343         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
7344         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
7345         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
7346         (jump_func_type): Remove IPA_CONST_VALUE_REF.
7347         * tree-inline.c (tree_function_versioning): Add variables referenced
7348         by replacing trees.
7349
7350 2008-08-23  Jan Hubicka  <jh@suse.cz>
7351
7352         PR target/37094
7353         * i386.c (standard_80387_constant_p): Use optimize_size.
7354
7355 2008-08-23  Ira Rosen  <irar@il.ibm.com>
7356
7357         PR tree-optimization/37161
7358         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
7359         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
7360         (vect_determine_vectorization_factor): Move the scalar type
7361         retrieval to vect_get_smallest_scalar_type.
7362         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
7363         scalar type. Remove redundant computation.
7364         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
7365         (vect_get_slp_defs): Take the type of RHS into account if
7366         necessary by calling vect_get_smallest_scalar_type. Call
7367         vect_get_constant_vectors with additional argument.
7368
7369 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7370
7371         PR 35648
7372         * doc/invoke.texi (Wwrite-strings): Clarify description.
7373
7374 2008-08-23  Ira Rosen  <irar@il.ibm.com>
7375
7376         PR tree-optimization/37174
7377         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
7378         def stmt is a part of the loop before accessing its stmt_vec_info.
7379
7380 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
7381
7382         PR target/11259
7383         * config/avr/avr.md (UNSPEC_SWAP): New constants.
7384         (*swap): New insn pattern.
7385         (*ashlqi3): Rename from ashlqi3 insn pattern.
7386         (ashlqi3): New expanders.
7387         (*lshrqi3): Rename from lshrqi3 insn pattern.
7388         (lshrqi3): New expanders.
7389         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
7390         lshrqi3_const5, lshrqi3_const6): New splitters.
7391         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
7392         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
7393         peephole2 patterns.
7394
7395 2008-08-22  Richard Guenther  <rguenther@suse.de>
7396
7397         PR tree-optimization/37078
7398         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
7399         [+INF, +INF] ranges.
7400
7401 2008-08-22  Richard Guenther  <rguenther@suse.de>
7402
7403         PR tree-optimization/37143
7404         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
7405         a conversion statement instead of a copy.
7406
7407 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
7408
7409         PR target/37184
7410         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
7411         CCCmode, CCOmode and CCSmode destination modes.
7412
7413         PR target/37191
7414         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
7415         from different units in a single alternative.
7416         (*vec_extractv2sf_1): Ditto.
7417         (*vec_extractv2si_0): Ditto.
7418         (*vec_extractv2si_1): Ditto.
7419         * config/i386/sse.md (sse2_storehpd): Ditto.
7420         (sse2_storelpd): Ditto.
7421         (sse2_loadhpd): Ditto.
7422         (sse2_loadlpd): Ditto.
7423
7424         PR target/37197
7425         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
7426         (popcountsi2): Ditto.
7427         (clzdi2_abm): Ditto.
7428         (popcountdi2): Ditto.
7429         (clzhi2_abm): Ditto.
7430         (popcounthi2): Ditto.
7431
7432 2008-08-22  Richard Guenther  <rguenther@suse.de>
7433
7434         PR middle-end/36548
7435         PR middle-end/37125
7436         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
7437         if the multiplication does not overflow.
7438
7439 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
7440
7441         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
7442
7443 2008-08-21  Richard Henderson  <rth@redhat.com>
7444
7445         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
7446         spurrious comma from test.
7447         * configure: Rebuild.
7448
7449 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7450
7451         PR 30457
7452         * builtins.c (fold_builtin_next_arg): Add warning about undefined
7453         behaviour.
7454
7455 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
7456
7457         * c-tree.h (grokfield): New argument.
7458         * c-decl.c (grokfield): Handle new location argument.
7459         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
7460
7461 2008-08-21  Richard Guenther  <rguenther@suse.de>
7462
7463         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
7464
7465 2008-08-21  Jan Hubicka  <jh@suse.cz>
7466
7467         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
7468         (cgraph_add_function_insertion_hook,
7469         cgraph_remove_function_insertion_hook,
7470         cgraph_call_function_insertion_hooks): New functions.
7471         * cgraph.h (cgraph_add_function_insertion_hook,
7472         cgraph_remove_function_insertion_hook,
7473         cgraph_call_function_insertion_hooks): Declare.
7474         * ipa-reference.c (function_insertion_hook_holder): New variable.
7475         (check_operand, look_for_address_of): When checking late, do not care
7476         about module bitmaps.
7477         (add_new_function): New function.
7478         (generate_summary): Register hooks; zero module bitmaps.
7479         (propagate): Unregister hooks.
7480         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
7481         (add_new_function): New function.
7482         (generate_summary): Register hook.
7483         (propagate): Remove hook.
7484
7485         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
7486
7487         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
7488         * ipa-cp.c (ipcp_update_cloned_node): New function.
7489         (build_const_val): Handle functions correctly; bring type logic
7490         into sync with tree-inline.c
7491         (ipcp_init_stage):  Take care of computing stuff needed by
7492         indirect inlining; update clones.
7493         (ipcp_generate_summary): Break out of ipcp_driver.
7494         (ipcp_driver): Do only execution and transformation.
7495         (pass_ipa_cp): Make IPA_PASS.
7496         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
7497         offset to address.
7498         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
7499         ipcp, some info is already available.
7500         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
7501         * tree-inline.c (remap_ssa_name): Unshare expression.
7502
7503 2008-08-21  Richard Guenther  <rguenther@suse.de>
7504
7505         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7506         a PHI ask VN if it is already available.
7507         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7508         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7509
7510 2008-08-21  Richard Guenther  <rguenther@suse.de>
7511
7512         PR middle-end/36817
7513         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
7514         makes sure to produce a result of the correct type.
7515
7516 2008-08-21  Jan Hubicka  <jh@suse.cz>
7517         Backport from LTO branch:
7518
7519         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
7520                     Jan Hubicka  <jh@suse.cz>
7521
7522         * ipa-pure-const.c
7523         (init_state, finish_state, set_function_state, generate_summary):
7524         New functions.
7525         (scan_stmt): Renamed from scan_function.  Changed to keep state in
7526         local static vars rather than cgraph aux field.
7527         (propagate): Renamed from static_execute. Changed to keep state in
7528         local static vars rather than cgraph aux field.
7529         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
7530         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
7531
7532         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7533
7534         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
7535         * ipa-reference.c (init_function_info, generate_summary,
7536         propagate): New functions.
7537         (analyze_function):  Call init_function_info.
7538         (static_execute): Stripped into generate_summary and propagate.
7539         (pass_ipa_reference): Made into ipa_opt_pass.
7540
7541 2008-08-21  Richard Guenther  <rguenther@suse.de>
7542
7543         PR tree-optimization/37181
7544         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
7545         folding result.
7546         (extract_range_from_unary_expr): Likewise.
7547
7548 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7549
7550         * diagnostic.c (pedwarn_at): Rename as pedwarn.
7551         (pedwarn): Delete.
7552         * toplev.h (pedwarn_at): Likewise.
7553         * builtins.c: Update all calls to pedwarn.
7554         * c-lex.c: Likewise.
7555         * toplev.c: Likewise.
7556         * c-tree.h: Likewise.
7557         * c-decl.c: Likewise.
7558         * c-errors.c: Likewise.
7559         * c-typeck.c: Likewise.
7560         * c-common.c: Likewise.
7561         * c-parser.c: Likewise.
7562
7563 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
7564
7565         PR target/31070
7566         * config/sparc/sparc.c (function_arg_slotno): Handle structure
7567         with MODE_VECTOR_INT mode.
7568
7569 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7570
7571         PR middle-end/179
7572         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
7573         initialized outside the current module.
7574         (warn_uninitialized_var): Ignore left-hand side when walking the
7575         trees. Ignore address expressions. Examine VUSE operands in gimple
7576         statements with a variable declaration on the right-hand side.
7577
7578 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
7579
7580         PR bootstrap/37155
7581         * rtlanal.c (subreg_offset_representable_p): Revert last change.
7582
7583 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7584
7585         PR 35701
7586         * c-common.c (conversion_warning): Do not warn if applying bit-and
7587         operator to unsigned constant that fits in the target type.
7588
7589 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7590
7591         PR c++/35602
7592         * c-common.c (conversion_warning): Do not warn for artificial
7593         expressions.
7594
7595 2008-08-20  Richard Guenther  <rguenther@suse.de>
7596
7597         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
7598         (extract_range_from_binary_expr): Fall back to constant propagation.
7599         (extract_range_from_unary_expr): Likewise.
7600
7601 2008-08-20  Richard Guenther  <rguenther@suse.de>
7602
7603         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
7604         with TREE_THIS_VOLATILE on shared nodes.
7605         (fold_stmt_r): Likewise.
7606
7607 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
7608
7609         PR c/37171
7610         * c-parser.c (c_parser_attributes): For keywords use canonical
7611         spelling for attr_name.
7612
7613 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7614
7615         * value-prof.c (check_counter): Revert wrong call to error.
7616
7617 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7618
7619         * profile.c: Update calls to inform.
7620         * value-prof.c: Update calls to inform.
7621
7622 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7623
7624         * diagnostic.c (inform): Add an explicit location_t parameter.
7625         * toplev.h (inform): Update declaration.
7626         * builtins.c: Update all calls to inform.
7627         * c-common.c: Likewise.
7628         * c-decl.c: Likewise.
7629         * c-opts.c: Likewise.
7630         * c-pch.c: Likewise.
7631         * c-pragma.c: Likewise.
7632         * c-typeck.c: Likewise.
7633         * coverage.c: Likewise.
7634         * opts.c: Likewise.
7635         * toplev.c: Likewise.
7636         * tree-cfg.c: Likewise.
7637         * tree-ssa.c: Likewise.
7638
7639 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7640
7641         PR target/37169
7642         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
7643         V2DI mode, for SSE4.1, use movq instead of vector set if the
7644         second element is zero and inter-unit moves are OK.
7645
7646 2008-08-20  Richard Guenther  <rguenther@suse.de>
7647
7648         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
7649         properly handle conversion/copy chains after tuplification.
7650
7651 2008-08-20  Richard Guenther  <rguenther@suse.de>
7652
7653         * passes.c (init_optimization_passes): Move the second
7654         forwprop pass before alias computation.  Remove the second
7655         DCE pass.  Remove the first dominator and phi copy/const
7656         prop passes.
7657
7658 2008-08-20  Nick Clifton  <nickc@redhat.com>
7659
7660         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
7661         support of this feature.  Do not assume that a sufficiently new
7662         assembler will support the feature regardless of the target type.
7663         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
7664         * configure: Regenerate.
7665
7666 2008-08-20  Richard Guenther  <rguenther@suse.de>
7667
7668         * tree-vrp.c (found_in_subgraph): Remove.
7669         (live): New global static.
7670         (live_on_edge): New function.
7671         (blocks_visited): Remove.
7672         (register_edge_assert_for_2): Use live_on_edge.
7673         (find_conditional_asserts): Remove code dealing with
7674         found_in_subgraph.  Do not walk the CFG.
7675         (find_switch_asserts): Likewise.
7676         (find_assert_locations_1): Renamed from find_assert_locations.
7677         Move finding assert locations for conditional and switch
7678         statements first.  Update live bitmap.  Do not walk the CFG.
7679         (find_assert_locations): New function.
7680         (insert_range_assertions): Remove entry of CFG walk.
7681         Adjust call to find_assert_locations.
7682         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
7683         that only can appear because of fake exit edges but assert we
7684         never try to insert on those.
7685         (fini_pre): Do not remove fake exit edges here...
7686         (execute_pre): ...but here, before committing edge inserts.
7687
7688 2008-08-19  Richard Guenther  <rguenther@suse.de>
7689
7690         * passes.c (init_optimization_passes): Exchange store-ccp
7691         with a ccp pass.
7692
7693 2008-08-19  Rafael Espíndola  <espindola@google.com>
7694
7695         * varasm.c (weak_decls): Move earlier in the file.
7696         (assemble_external): Add weak decls to the weak_decls list.
7697         (declare_weak): Don't add decls to the weak_decls list.
7698
7699 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7700
7701         PR target/37157
7702         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
7703         before (sse2_shufpd_<mode>).
7704
7705 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
7706
7707         PR debug/37156
7708         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
7709         * tree.c (block_nonartificial_location): Likewise.
7710
7711 2008-08-19  Richard Guenther  <rguenther@suse.de>
7712
7713         PR tree-optimization/35972
7714         PR tree-optimization/23094
7715         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
7716         parameter.
7717         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
7718         handle MISALIGNED_INDIRECT_REF.
7719         (get_ref_from_reference_ops): New helper.
7720         (vn_reference_lookup_pieces): Walk the use-def chain using the
7721         alias-oracle if requested.
7722         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
7723         walking the use-def chain.
7724         (compute_avail): But not here.
7725         (create_component_ref_by_pieces_1): Properly handle
7726         MISALIGNED_INDIRECT_REF.
7727         (do_regular_insertion): Handle fully redundant
7728         expressions after PHI-translation also for SSA_NAME values, not
7729         only constants.  Correctly use edoubleprime for that.
7730
7731 2008-08-19  Ira Rosen  <irar@il.ibm.com>
7732
7733         * tree-vectorizer.c (supportable_widening_operation): Support
7734         multi-step conversion, return the number of steps in such conversion
7735         and the required intermediate types.
7736         (supportable_narrowing_operation): Likewise.
7737         * tree-vectorizer.h (vect_pow2): New function.
7738         (supportable_widening_operation): Change argument types.
7739         (supportable_narrowing_operation): Likewise.
7740         (vectorizable_type_promotion): Add an argument.
7741         (vectorizable_type_demotion): Likewise.
7742         * tree-vect-analyze.c (vect_analyze_operations): Call
7743         vectorizable_type_promotion and vectorizable_type_demotion with
7744         additional argument.
7745         (vect_get_and_check_slp_defs): Detect patterns.
7746         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
7747         types.
7748         (vect_analyze_slp_instance): Don't fail in case of multiple types.
7749         Call vect_build_slp_tree with correct arguments. Calculate unrolling
7750         factor according to the smallest type in the loop.
7751         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
7752         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
7753         supportable_widening_operation with correct arguments.
7754         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
7755         operands lists according to the number of vector statements in left
7756         or right node, if exists.
7757         (vect_gen_widened_results_half): Remove unused argument.
7758         (vectorizable_conversion): Call supportable_widening_operation,
7759         supportable_narrowing_operation, and vect_gen_widened_results_half
7760         with correct arguments.
7761         (vectorizable_assignment): Change documentation, support multiple
7762         types in SLP.
7763         (vectorizable_operation): Likewise.
7764         (vect_get_loop_based_defs): New function.
7765         (vect_create_vectorized_demotion_stmts): Likewise.
7766         (vectorizable_type_demotion): Support loop-aware SLP and general
7767         multi-step conversion. Call vect_get_loop_based_defs and
7768         vect_create_vectorized_demotion_stmts for transformation.
7769         (vect_create_vectorized_promotion_stmts): New function.
7770         (vectorizable_type_promotion): Support loop-aware SLP and general
7771         multi-step conversion. Call vect_create_vectorized_promotion_stmts
7772         for transformation.
7773         (vectorizable_store): Change documentation, support multiple
7774         types in SLP.
7775         (vectorizable_load): Likewise.
7776         (vect_transform_stmt): Pass SLP_NODE to
7777         vectorizable_type_promotion and vectorizable_type_demotion.
7778         (vect_schedule_slp_instance): Move here the calculation of number
7779         of vectorized statements for each node from...
7780         (vect_schedule_slp): ... here.
7781         (vect_transform_loop): Call vect_schedule_slp without the last
7782         argument.
7783
7784 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
7785
7786         PR bootstrap/37152
7787         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
7788         to == in assert statement.
7789         (vectorizable_reduction): Fix typo.
7790
7791 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         PR bootstrap/37153
7794         * value-prof.c (check_counter): Dereference pointer to overall
7795         count when printing it.
7796
7797 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7798
7799         * profile.h: Really add it.
7800
7801 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7802
7803         * mcf.c: Really add it.
7804
7805 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
7806             Vinodha Ramasamy  <vinodha@google.com>
7807
7808         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
7809         count_scale.
7810         * value-prof.c (check_counter): Fix the counter if
7811         flag_profile_correction is true.
7812         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
7813         tree_mod_subtract_transform):
7814         Follow check_counter parameter change.
7815         * common.opt (fprofile-correction): New option.
7816         * mcf.c: New file.
7817         * profile.h: Likewise.
7818         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
7819         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
7820         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
7821         functions.
7822         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
7823         flag_profile_correction is set.
7824
7825 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
7826
7827         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
7828
7829 2008-08-18  Tomas Bily  <tbily@suse.cz>
7830
7831         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
7832         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
7833         CONVERT_EXPR_P.
7834         * tree-data-ref.c (split_constant_offset_1): Likewise.
7835         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
7836         * tree-sra.c (sra_walk_expr): Likewise.
7837         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
7838         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7839         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
7840         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
7841         Likewise.
7842         * gimple.c (gimple_assign_unary_nop_p): Likewise.
7843         * tree-vect-transform.c (vectorizable_type_demotion)
7844         (vectorizable_type_promotion): Likewise.
7845         * tree-inline.c (expand_call_inline):
7846         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7847         (forward_propagate_addr_expr_1, forward_propagate_comparison)
7848         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7849         * expr.c (expand_expr_real_1): Likewise.
7850         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
7851         (gimple_assign_unary_useless_conversion_p): Likewise.
7852         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7853         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
7854         * fold-const.c (fold_unary): Likewise.
7855         * tree.h (CONVERT_EXPR_P): Likewise.
7856         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
7857         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7858         * tree-vrp.c:
7859         (register_edge_assert_for_2, extract_range_from_unary_expr)
7860         (register_edge_assert_for_1): Likewise.
7861
7862 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7863
7864         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
7865         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
7866         (enum real_value_const): Delete.
7867         (get_real_const): Delete.
7868         * real.c (get_real_const): Delete.
7869         (dconst_e_ptr): Define.
7870         (dconst_third_ptr): Define.
7871         (dconst_sqrt2_ptr): Define.
7872         * builtins.c: Update all callers.
7873
7874 2008-08-18  Richard Guenther  <rguenther@suse.de>
7875
7876         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
7877         statement iterator after statement removal.
7878
7879 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
7880
7881         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
7882         (detect_processor_freebsd): Likewise.
7883         (host_detect_local_cpu): Call newly added functions for FreeBSD.
7884
7885 2008-08-18  Richard Guenther  <rguenther@suse.de>
7886
7887         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
7888         and loads have the correct types.
7889
7890 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7891
7892         PR cpp/7263
7893         * c-opts.c (cpp_opts): Remove static.
7894         * c-parser.c (cpp_opts): Declare it extern.
7895         (disable_extension_diagnostics): Handle cpp options.
7896         (enable_extension_diagnostics): Likewise.
7897
7898 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7899
7900         * diagnostics.c (permerror_at): Rename as permerror.
7901         (permerror): Delete.
7902         * toplev.h: Likewise.
7903
7904 2008-08-18  Richard Guenther  <rguenther@suse.de>
7905
7906         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
7907         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
7908         Move call_cdce before build_alias.  Move copyrename2,
7909         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
7910         right after final inlining.
7911         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
7912         (pass_build_cfg): But instead via TODO_dump_func.
7913
7914 2008-08-18  Richard Guenther  <rguenther@suse.de>
7915
7916         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
7917         element index.
7918         (scalarize_init): If we failed to generate some initializers
7919         do not generate zeros for not instantiated members.  Instead
7920         rely on the copy out.
7921         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
7922         about missing flow-sensitive alias info only if we have
7923         aliases computed.
7924
7925 2008-08-17  Nick Clifton  <nickc@redhat.com>
7926
7927         * doc/extend.texi (Function Attributes): Fix typo in description
7928         if hot function attribute.
7929
7930 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
7931             Richard Sandiford  <rdsandiford@googlemail.com>
7932
7933         * doc/install.texi (--with-mips-plt): Document.
7934         * doc/invoke.texi (-mplt, -mno-plt): Document.
7935         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
7936         and handle ${with_mips_plt}.
7937         * config/mips/mips.opt (mplt): New option.
7938         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
7939         (TARGET_ABICALLS_PIC2): Likewise.
7940         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
7941         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
7942         (ASM_SPEC): Use !mabi=* instead of !mabi*.
7943         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
7944         to decide whether to output ".option picX" directives.
7945         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
7946         Pass -call_nonpic rather than -KPIC for -mplt.
7947         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
7948         on the command line.  Also remove it when -mabi=64 is used without
7949         -msym32.
7950         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
7951         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
7952         TARGET_ABICALLS_PIC0.
7953         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
7954         TARGET_ABICALLS.
7955         (mips16_build_function_stub): Only output ".option pic" directives
7956         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
7957         (mips16_build_call_stub): Fix comment and remove redundant
7958         ".set at"/"set .noat" directives.
7959         (mips_function_rodata_section): Use the default behaviour for
7960         TARGET_ABSOLUTE_ABICALLS.
7961         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
7962         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
7963         (mips_restore_gp): Do nothing if the current function doesn't use
7964         a global pointer.
7965         (mips_expand_prologue): Only save $gp if the current function uses it.
7966         Use a normal move for TARGET_ABICALLS_PIC0.
7967         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
7968
7969 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
7970
7971         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
7972         of function when handling GLOBAL_POINTER_REGNUM.
7973
7974 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
7975
7976         PR ada/20548
7977         * common.opt (-fstack-check): Do not declare the variable here.
7978         (-fstack-check=): New option variant.
7979         * doc/invoke.texi (Code Gen Options): Document it.
7980         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
7981         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
7982         (STACK_CHECK_STATIC_BUILTIN): New macro.
7983         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
7984         * opts.c: Include expr.h.
7985         (common_handle_option) <OPT_fold_stack_check_>: New case.
7986         <OPT_fstack_check>: Likewise.
7987         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
7988         consistently in the test for variable-sized types.  Adjust for
7989         new behaviour of flag_stack_check.
7990         * explow.c: Include except.h.
7991         (allocate_dynamic_stack_space): Do not take into account
7992         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
7993         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
7994         for variable-sized parameters.  Treat all parameters whose size is
7995         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
7996         stack checking is enabled.
7997         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
7998         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
7999         if generic stack checking is enabled.
8000         (expand_function_end): Adjust for new behaviour of flag_stack_check.
8001         * reload1.c (reload): Likewise.
8002         * stmt.c (expand_decl): Assert that all automatic variables have
8003         fixed size at this point and remove dead code.
8004         * flags.h (stack_check_type): New enumeration type.
8005         (flag_stack_check): Declare.
8006         * toplev.c (flag_stack_check): New global variable.
8007         * Makefile.in (opts.o): Add dependency on EXPR_H.
8008         (explow.o): Add dependency on except.h.
8009
8010 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
8011
8012         * config/avr/avr.c (avr_override_options): Reduce value of
8013         PARAM_INLINE_CALL_COST.
8014
8015 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
8016
8017         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
8018         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
8019         lieu of TYPE_MODE (type) throughout.
8020
8021 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
8022
8023         * config/arm/arm.c (add_minipool_backward_ref): Check for
8024         8-byte-aligned entries in second case of forcing insertion after a
8025         particular entry.  Change third case to avoid inserting
8026         non-8-byte-aligned entries before 8-byte-aligned ones.
8027
8028 2008-08-15  Richard Guenther  <rguenther@suse.de>
8029
8030         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
8031         strip components for unknown size accesses.
8032
8033 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
8034
8035         * config/s390/2097.md New file.
8036         * config/s390/s390.md ("z10prop" attribute): Define none,
8037         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
8038         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
8039         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
8040         possible values and apply them to insns as appropriate.
8041         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
8042         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
8043         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
8044         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
8045         ("bfp" mode attribute): Removed.  Every occurence replaced
8046         with <mode>.
8047         * config/s390/s390.c (struct "z10_cost"): Updated entries.
8048         * config/s390/2084.md (insn_reservation "x_itof"): Updated
8049         type attribute.
8050
8051 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8052
8053         PR c/28152
8054         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
8055         for keywords.
8056
8057 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
8058
8059         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
8060         additional argument. Support reduction when duplication is needed due
8061         to data-types of different sizes in the loop.
8062         (get_initial_def_for_induction): Fix printout.
8063         (vect_get_vec_def_for_stmt_copy): Support case where the
8064         vec_stmt_for_operand is a phi node.
8065         (vectorizable_reduction): Support reduction when duplication is needed
8066         due to data-types of different sizes in the loop.
8067         (vectorizable_call): Remove restriction to not vectorize in case we
8068         have data-types of different sizes in the loop.
8069         (vectorizable_conversion): Likewise.
8070         (vectorizable_operation): Likewise.
8071         (vectorizable_type_demotion): Likewise.
8072         (vectorizable_type_promotion): Likewise.
8073         (vectorizable_induction): Add restriction to not vectorize in case
8074         we have data-types of different sizes in the loop.
8075
8076 2008-08-14  Christophe Saout  <christophe@saout.de>
8077             Uros Bizjak  <ubizjak@gmail.com>
8078
8079         PR target/37101
8080         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
8081         (*vec_concatv2di_rex64_sse4_1): Ditto.
8082         (*vec_concatv2di_rex64_sse): Ditto.
8083
8084 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
8085
8086         PR middle-end/37103
8087         * fold-const.c (fold_widened_comparison): Do not allow
8088         sign changes that change the result even if shorter type
8089         is wider than arg1_unw's type.
8090
8091 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
8092
8093         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
8094         Skip if the multilib testing specifies -march that does not
8095         agree with the one specified in the testcase.
8096
8097 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
8098
8099         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
8100         zero extend SImode values being converted to TFmode before passing
8101         to libcalls.
8102
8103 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8104
8105         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8106         __PPU__ when targeting the Cell/B.E. PPU processor.
8107
8108 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
8109
8110         * gimple.h (gimple_call_set_chain): Accept SSA variables.
8111         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
8112         Rematerialize the static chain, if any.
8113         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
8114         static chain.
8115
8116 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
8117
8118         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
8119         (new_loc_descr): Likewise.
8120         (add_loc_descr): Likewise.
8121         (size_of_loc_descr): Likewise.
8122         (size_of_locs): Likewise.
8123         (output_loc_operands): Likewise.
8124         (output_loc_sequence): Likewise.
8125         (new_reg_loc_descr): New.
8126         (build_cfa_loc): Use it.
8127         (build_cfa_aligned_loc): Likewise.
8128         (one_reg_loc_descriptor): Likewise.
8129         (based_loc_descr): Likewise.
8130
8131 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8132
8133         PR 30551
8134         * doc/invoke.texi (Wmain): Update.
8135         * c-decl.c (start_decl): warn_main is only 0 or 1.
8136         (start_function): Likewise. Fix formatting.
8137         (finish_function): Delete redundant warning.
8138         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
8139         * c-opts (c_common_handle_option): -Wall only has effect if
8140         warn_main is uninitialized. OPT_Wmain is automatically
8141         handled. -pedantic also enables Wmain.
8142         (c_common_post_options): Handle all logic for Wmain here.
8143         * c-common.c (warn_main): Delete.
8144         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
8145         * c-common.h (warn_main): Delete.
8146
8147 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
8148
8149         PR middle-end/36701
8150         * expr.c (emit_group_store): Allocate stack temp with the
8151         largest alignment when copying from register to stack.
8152
8153 2008-08-13  Richard Guenther  <rguenther@suse.de>
8154
8155         * tree.h (maybe_fold_offset_to_address): Declare.
8156         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
8157         (ccp_fold): Handle pointer conversions the same as fold_stmt.
8158         Likewise for POINTER_PLUS_EXPR.
8159         (maybe_fold_offset_to_reference): Enable disabled code.
8160         (maybe_fold_offset_to_address): New function.
8161         (fold_stmt_r): Use it.
8162         (fold_gimple_assign): Likewise.
8163         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
8164         (gimplify_expr): Likewise.
8165
8166 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8167
8168         * toplev.h (pedwarn_at): Fix declaration.
8169
8170 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
8171
8172         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8173         LINK_SPEC): Use %R in -Y P argument.
8174
8175 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8176
8177         PR c/15236
8178         * diagnostic.c (pedwarn_at): New.
8179         * toplev.h (pedwarn_at): Declare.
8180         * c-tree.h (build_enumerator): Update declaration.
8181         * c-decl.c (finish_enum): Update comment.
8182         (build_enumerator): Take a location parameter. Give a pedwarn but do
8183         not perform any conversion.
8184         * c-parser.c (c_parser_enum_specifier): Set correct location for
8185         enumerator.
8186
8187 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8188
8189         PR 35635
8190         * c-common.c (conversion_warning): Use a switch. Ignore boolean
8191         expressions except for conversions to signed:1 bitfields. Handle
8192         COND_EXPR with constant operands.
8193
8194 2008-08-13  Richard Guenther  <rguenther@suse.de>
8195
8196         PR tree-optimization/15255
8197         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
8198         (struct oecount_s): New struct and VEC types.
8199         (cvec): New global.
8200         (oecount_hash): New function.
8201         (oecount_eq): Likewise.
8202         (oecount_cmp): Likewise.
8203         (zero_one_operation): New function.
8204         (build_and_add_sum): Likewise.
8205         (undistribute_ops_list): Perform un-distribution of multiplication
8206         and division on the chain of summands.
8207         (should_break_up_subtract): Also break up subtracts for factors.
8208         (reassociate_bb): Delete dead visited statements.
8209         Call undistribute_ops_list.  Re-sort and optimize if it did something.
8210         * passes.c (init_optimization_passes): Move DSE before
8211         reassociation.
8212         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
8213         PHI nodes.
8214
8215 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
8216
8217         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
8218
8219         * doc/invoke.texi: Revert unintended checkin.
8220
8221 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
8222
8223         PR libgomp/26165
8224         * gcc.c (include_spec_function): Tweak call to find_a_file.
8225
8226 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
8227
8228         PR middle-end/37014
8229         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
8230         and TRUTH_ORIF_EXPR.
8231         * dojump.c (do_jump): Likewise.
8232
8233         PR tree-optimization/37084
8234         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
8235         if id->regimplify, don't assume stmt is a cast assignment.
8236
8237 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
8238
8239         * final.c (final_scan_insn): Use app_enable/app_disable functions.
8240
8241 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8242
8243         PR bootstrap/37097
8244         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
8245         by last change.
8246
8247 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8248
8249         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
8250         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
8251
8252         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
8253         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
8254         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
8255         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
8256         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
8257
8258         * doc/tm.texi (Storage Layout): Remove documentation for
8259         TARGET_FLOAT_FORMAT.
8260
8261         * simplify-rtx.c (simplify_binary_operation_1): Replace
8262         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
8263
8264 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8265
8266         * real.h (struct real_format): New member has_sign_dependent_rounding.
8267         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
8268         spu_single_format, ieee_double_format, mips_double_format,
8269         motorola_double_format, ieee_extended_motorola_format,
8270         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8271         ieee_extended_intel_96_round_53_format, ibm_extended_format,
8272         mips_extended_format, ieee_quad_format, mips_quad_format,
8273         vax_f_format, vax_d_format, vax_g_format): Initialize it.
8274         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8275
8276         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
8277         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
8278         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
8279         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
8280         (ROUND_TOWARDS_ZERO): Likewise.
8281
8282         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
8283         (FLOAT_MODE_FORMAT): New macro.
8284         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
8285         (MODE_COMPOSITE_P): ... this new macro.
8286         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
8287         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
8288         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
8289
8290         * flags.h: Include "real.h".
8291
8292         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
8293         REAL_MODE_FORMAT_COMPOSITE_P.
8294         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
8295
8296         * doc/tm.texi (Storage Layout): Remove documentation of
8297         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
8298         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
8299         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
8300         they only apply to libgcc2.a.
8301
8302 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8303
8304         * config/spu/float_disf.c: New file.
8305         * config/spu/float_unsdisf.c: New file.
8306         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
8307         (LIB2FUNCS_EXCLUDE): Define.
8308
8309 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8310             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8311
8312         * real.h (struct real_format): New member round_towards_zero.
8313         * real.c (round_for_format): Respect fmt->round_towards_zero.
8314         (ieee_single_format, mips_single_format, motorola_single_format,
8315         spu_single_format, ieee_double_format, mips_double_format,
8316         motorola_double_format, ieee_extended_motorola_format,
8317         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8318         ieee_extended_intel_96_round_53_format, ibm_extended_format,
8319         mips_extended_format, ieee_quad_format, mips_quad_format,
8320         vax_f_format, vax_d_format, vax_g_format): Initialize it.
8321         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8322
8323         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
8324         real_format to choose rounding mode when calling MPFR functions.
8325         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
8326         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
8327
8328         * real.h (real_to_decimal_for_mode): Add prototype.
8329         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
8330         Respect target rounding mode when generating decimal representation.
8331         (real_to_decimal): New stub for backwards compatibility.
8332         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
8333         real_to_decimal_for_mode instead of real_to_decimal.
8334
8335         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
8336
8337 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8338             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8339
8340         * real.c (spu_single_format): New variable.
8341         * real.h (spu_single_format): Declare.
8342
8343         * config/spu/spu.c (spu_override_options): Install SFmode format.
8344         (spu_split_immediate): Use integer mode to operate on pieces of
8345         floating-point values in all cases.
8346
8347         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
8348         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
8349         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
8350
8351 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8352
8353         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
8354
8355 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8356
8357         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
8358
8359 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
8360
8361         PR c++/36688
8362         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
8363         on the VAR_DECL instead of TYPE_READONLY on its type.
8364
8365 2008-08-12  Ira Rosen  <irar@il.ibm.com>
8366
8367         * tree-vectorizer.c: Depend on langhooks.h.
8368         (supportable_widening_operation): Add two arguments. Support double
8369         type conversions.
8370         (supportable_narrowing_operation): Likewise.
8371         * tree-vectorizer.h (supportable_widening_operation): Add two
8372         arguments.
8373         (supportable_narrowing_operation): Likewise.
8374         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
8375         supportable_widening_operation with correct arguments.
8376         * tree-vect-transform.c (vectorizable_conversion): Likewise.
8377         (vectorizable_type_demotion): Support double type conversions.
8378         (vectorizable_type_promotion): Likewise.
8379         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
8380
8381 2008-08-11  Michael Matz  <matz@suse.de>
8382
8383         * i386/i386.c (override_options): Move initialisation from
8384         flag_schedule_insns_after_reload to here from ...
8385         (optimization_options): ... here.
8386
8387 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
8388
8389         PR rtl-optimization/36998
8390         * dwarf2out.c (compute_barrier_args_size_1,
8391         compute_barrier_args_size): Temporarily remove assertions.
8392
8393 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8394
8395         PR middle-end/20644
8396         * tree-ssa.c (struct walk_data): Add new flag
8397         warn_possibly_uninitialized.
8398         (warn_uninitialized_var): Use it.
8399         (warn_uninitialized_vars): New.
8400         (execute_early_warn_uninitialized): Call it.
8401         (execute_late_warn_uninitialized): Likewise.
8402
8403 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8404
8405         PR middle-end/36238
8406         * reload1.c (gen_reload): Guard calls to get_secondary_mem
8407         for memory subregs.
8408
8409 2008-08-09  Jan Hubicka  <jh@suse.cz>
8410
8411         PR target/37055
8412         * optabs.c (maybe_emit_unop_insn): Remove produced code if
8413         expansion failed.
8414         (expand_fix): Be prepared for expansion to fail.
8415         (expand_sfix_optab): Remove instructions if expansion failed.
8416
8417 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
8418
8419         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
8420         avr31 architecture.
8421         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
8422         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8423
8424 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8425
8426         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
8427         mips/t-libgcc-mips16 to tmake_file.
8428         * config/mips/mips-protos.h (mips_call_type): New enum.
8429         (mips_pic_base_register, mips_got_load): Declare.
8430         (mips_restore_gp): Take an rtx argument.
8431         (mips_use_pic_fn_addr_reg_p): Declare.
8432         (mips_expand_call): Replace the sibcall_p argument with
8433         a mips_call_type argument.  Add a lazy_p parameter.
8434         (mips_split_call): Declare.
8435         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
8436         (MIPS16_PIC_TEMP): Likewise.
8437         (reg_class): Delete M16_NA_REGS.
8438         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8439         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
8440         (mips_split_hi_p): Declare.
8441         * config/mips/mips.c (mips_split_hi_p): New array.
8442         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
8443         (mips_got_symbol_type_p): New function.
8444         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
8445         (mips16_stub_function_p): New function.
8446         (mips16_local_function_p): Likewise.
8447         (mips_use_pic_fn_addr_reg_p): Likewise.
8448         (mips_cannot_force_const_mem): Return false for HIGHs.
8449         Extend CONST_INT and symbolic handling to MIPS16, using
8450         mips_symbol_insns to check that the base symbol type is a
8451         legitimate constant.  Reject GOT-based constants if
8452         TARGET_MIPS16_PCREL_LOADS.
8453         (mips_const_insns): Check targetm.cannot_force_const_mem when
8454         decomposing a symbolic base and a large offset.
8455         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
8456         When calling a function that needs $25 from MIPS16 code,
8457         move the target address into $25 separately and add a USE
8458         to the call insn.
8459         (mips16_gp_pseudo_reg): Insert the initializer immediately
8460         before the first real insn.
8461         (mips_pic_base_register, mips_got_load): New functions.
8462         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
8463         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
8464         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
8465         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
8466         (mips_call_tls_get_addr): Update the call to mips_expand_call,
8467         also passing NULL_RTX rather than const0_rtx as the aux argument.
8468         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
8469         instead of TARGET_EXPLICIT_RELOCS.
8470         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
8471         (mips_load_call_address): Replace the sibcall_p argument with
8472         a mips_call_type argument.  Use mips_got_load.
8473         (mips16_local_alias): New structure.
8474         (mips16_local_aliases): New variable.
8475         (mips16_local_aliases_hash): New function.
8476         (mips16_local_aliases_eq): Likewise.
8477         (mips16_local_alias): Likewise.
8478         (mips16_stub_function): Likewise.
8479         (mips16_build_function_stub): Create a local alias for the target
8480         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
8481         .cpload directive and an R_MIPS_NONE relocation for the target
8482         function, then load the alias rather than the function itself.
8483         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
8484         (mips16_copy_fpr_return_value): Use mips16_stub_function and
8485         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
8486         (mips16_build_call_stub): Replace the FN parameter with an
8487         FN_PTR parameter.  Force the address into a register if it
8488         isn't a call_insn_operand; don't rely on the caller to do this.
8489         If a call to a locally-defined and locally-binding MIPS16
8490         function must be made indirectly, redirect the call to the
8491         function's local alias.  Use mips16_stub_function_p,
8492         mips16_stub_function, mips_expand_call and use_reg.
8493         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
8494         Use explicit %hi and %lo accesses where possible.
8495         Use MIPS_CALL to generate the correct code form of a
8496         jal instruction.  Add clobbers of $18 instead of uses.
8497         Update the call to mips_emit_call_insn.
8498         (mips_expand_call): Replace the SIBCALL_P argument with a
8499         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
8500         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
8501         allowing it to modify the call address.  Update the calls to
8502         mips_load_call_address and mips_emit_call_insn.
8503         (mips_split_call): New function.
8504         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
8505         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
8506         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
8507         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
8508         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
8509         if TARGET_MIPS16.
8510         (mips_cprestore_slot): New function.
8511         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
8512         and use mips_cprestore_slot.
8513         (mips_output_function_prologue): Handle TARGET_MIPS16 for
8514         LOADGP_OLDABI.
8515         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
8516         then use a copygp_mips16 instruction to set up $28.
8517         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
8518         (mips16_lay_out_constants): Call split_all_insns_noflow.
8519         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
8520         false if TARGET_MIPS16.
8521         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
8522         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
8523         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
8524         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
8525         MIPS16 code.  Allow MIPS16 o32 PIC.
8526         (mips_override_options): Allow MIPS16 o32 PIC.
8527         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
8528         after reload if TARGET_USE_GOT.
8529         (UNSPEC_COPYGP): New constant.
8530         (length): Use a default length of 8 for MIPS16 GOT loads.
8531         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
8532         (*got_page<mode>): Check mips_split_hi_p.
8533         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
8534         (unspec_got<mode>, unspec_call<mode>): New expanders.
8535         (load_got<mode>, load_call<mode>): Remove the length attributes.
8536         Use a got attribute instead of a type attribute.
8537         (copygp_mips16): New insn.
8538         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
8539         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
8540         (sibcall, sibcall_value, call, call_value): Update the calls
8541         to mips_expand_call.
8542         (call_internal, call_value_internal): Use mips_split_call.
8543         (call_value_multiple_internal): Likewise.
8544         (call_split): Move after call_internal (the insn it is split from).
8545         (call_internal_direct, call_value_internal_direct): Turn into
8546         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
8547         (call_direct_split, call_value_direct_split): New patterns.
8548         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
8549         and use M16_REGS instead of M16_NA_REGS.
8550         * config/mips/predicates.md (const_call_insn_operand): Replace
8551         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
8552         mips_use_pic_fn_addr_reg_p check.
8553         (move_operand): Reject HIGHs if mips_split_hi_p.
8554         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
8555         (__mips16_floatunsisf): Inline __mips16_floatsisf.
8556         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
8557         * config/mips/libgcc-mips16.ver: New file.
8558         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
8559         $(srcdir)/config/mips/libgcc-mips16.ver.
8560
8561 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8562
8563         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
8564         in file.
8565         (mips_unspec_address, mips_unspec_offset_high): Likewise.
8566         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
8567         (mips16_cfun_returns_in_fpr_p): Likewise.
8568
8569 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8570
8571         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
8572         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
8573         rather than 4 to PC.
8574
8575 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8576
8577         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
8578         (FUNCTION_PROFILER): Save the static chain pointer into $2
8579         beforehand and restore it aftewards.
8580         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
8581         address directly into $25 and call the function through $25;
8582         do not clobber $3.  Pad the DImode version to cover the space
8583         left by the deleted $25 <- $3 move.
8584         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
8585         the removal of the $25 <- $3 move.
8586         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
8587         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
8588
8589 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8590             Daniel Jacobowitz  <dan@codesourcery.com>
8591
8592         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
8593         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
8594         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
8595         * config/mips/mips.c (mips_start_function_definition): New function.
8596         (mips_end_function_definition): Likewise.
8597         (mips_output_function_prologue): Use mips_start_function_definition.
8598         (mips_output_function_epilogue): Use mips_end_function_definition.
8599         (build_mips16_function_stub): Use mips_start_function_definition
8600         and mips_end_function_definition.
8601         (build_mips16_call_stub): Likewise.
8602
8603 2008-08-09  Richard Guenther  <rguenther@suse.de>
8604
8605         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
8606         * gimple.h (gimple_call_fn): Adjust comment.
8607         (gimple_call_set_fndecl): New function.
8608         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
8609         longer having bare FUNCTION_DECL operand.
8610         (gimple_call_return_type): Likewise.
8611         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
8612
8613         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
8614         (gimple_mod_pow2): Likewise.
8615         (gimple_mod_subtract): Likewise.
8616         (gimple_ic): Likewise.
8617         (gimple_stringop_fixed_value): Likewise.
8618         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
8619         longer having bare FUNCTION_DECL operand.
8620         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
8621         * omp-low.c (optimize_omp_library_calls): Likewise.
8622         * cgraphunit.c (update_call_expr): Likewise.
8623         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
8624         (execute_convert_to_rsqrt): Likewise.
8625         * cfgexpand.c (gimple_to_tree): Simplify.
8626         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
8627         bare FUNCTION_DECL operand.
8628         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
8629         (convert_gimple_call): Use gimple_call_fndecl.
8630         * c-common.c (c_warn_unused_result): Likewise.
8631
8632 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8633
8634         PR c/17880
8635         * c-typeck.c (digest_init): Call verify_sequence_points from here.
8636         (c_finish_return): Likewise.
8637         (c_start_case): Likewise.
8638         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
8639         * c-parser.c (c_parser_condition): New. Call
8640         verify_sequence_points.
8641         (c_parser_paren_condition): Call c_parser_condition.
8642         (c_parser_for_statement): Call c_parser_condition.
8643
8644 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8645
8646         PR 36901
8647         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
8648         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
8649         Moved from diagnostic.h
8650         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
8651         DK_PERMERROR.
8652         (emit_diagnostic): New.
8653         (warning0, pedwarn0): Delete.
8654         (warning, warning_at, pedwarn, permerror): Return bool.
8655         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
8656         Moved to diagnostic.c.
8657         (struct diagnostic_context): Use correct type for
8658         classify_diagnostic.
8659         (diagnostic_report_diagnostic): Update declaration.
8660         (emit_diagnostic): Declare.
8661         * errors.c (warning): Return bool.
8662         * errors.h (warning): Update declaration.
8663         * toplev.h (warning0, pedwarn0): Delete.
8664         (warning, warning_at, pedwarn, permerror): Return bool.
8665         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
8666         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
8667         inform. Update all calls.
8668         (diagnose_mismatched_decls): Check return value of warning/pedwarn
8669         before giving informative note.
8670         (implicit_decl_warning): Likewise.
8671         * c-typeck.c (build_function_call): Likewise.
8672         * tree-sssa.c (warn_uninit): Likewise.
8673         * builtins.c (gimplify_va_arg_expr): Likewise.
8674
8675 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8676
8677         PR 7651
8678         * doc/invoke.texi (-Wextra): Move warning from here...
8679         (-Wuninitialized): ... to here.
8680
8681 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8682
8683         PR 28875
8684         * flags.h (set_Wunused): Delete
8685         * toplev.c (process_options): Handle Wunused flags here.
8686         * opts.c (maybe_warn_unused_parameter): Delete.
8687         (common_handle_option): Replace set_Wunused by warn_unused.
8688         (set_Wextra): Do not handle Wunused-parameter here.
8689         (set_Wunused): Delete.
8690         * c-opts.c (c_common_handle_option): Replace set_Wunused by
8691         warn_unused.
8692         * common.opt (Wunused): Add Var and Init.
8693         (Wunused-function): Likewise.
8694         (Wunused-label): Likewise.
8695         (Wunused-parameter): Likewise.
8696         (Wunused-value): Likewise.
8697         (Wunused-variable): Likewise.
8698
8699 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
8700
8701         * doc/invoke.texi: Add cpu_type power7.
8702         * config.in (HAVE_AS_VSX): New.
8703         * config.gcc: Add cpu_type power7.
8704         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
8705         VSX instructions.
8706         * configure: Regenerate.
8707         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
8708         power5.
8709         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
8710         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
8711         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
8712
8713 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
8714
8715         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
8716         type to vectorize.builtin_conversion.
8717         (vectorizable_conversion): Likewise.
8718         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
8719         integral type as input.
8720         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
8721         FIX_TRUNC_EXPR.
8722         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
8723         and ALTIVEC_BUILTIN_VCTSXS.
8724         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
8725         formatting.
8726
8727 2008-08-08  Richard Guenther  <rguenther@suse.de>
8728
8729         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
8730         (surely_varying_stmt_p): Calls are varying only if they are
8731         non-builtin and not indirect or have no result.
8732         (ccp_fold): Re-instantiate code before the tuples merge.
8733
8734 2008-08-08  Richard Guenther  <rguenther@suse.de>
8735
8736         PR tree-optimization/37056
8737         * gimple.h (gimple_assign_rhs_class): New helper function.
8738         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
8739         unary operations properly.
8740
8741 2008-08-07  Jan Hubicka  <jh@suse.cz>
8742
8743         * i386.h (ix86_size_cost): Declare.
8744         (ix86_cur_cost): New function macro.
8745         * i386.md (peepholes expanding size and splitters): Predicate by
8746         optimize_insn_for_speed_p.
8747         (peepholes reduce size and splitters): Predicate by
8748         optimize_insn_for_size_p.
8749         * i386.c (ix86_size_cost): Rename from ...
8750         (size_cost): This one.
8751         (override_options): Update.
8752         (decide_alg): Likewise.
8753         (ix86_expand_clear): Use RTL profile.
8754         (ix86_pad_returns): Use RTL profile.
8755
8756 2008-08-07  Jan Hubicka  <jh@suse.cz>
8757
8758         * recog.c (split_all_insns): Set RTL profile
8759         (peephole2_optimize): Likewise.
8760         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8761         * combine.c (combine_instructions): Likewise.
8762
8763 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8764
8765         * c-common.c (c_common_reswords): Also warn about keyword "bool".
8766
8767 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
8768
8769         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
8770         value in a6 after the set_frame_ptr insn.
8771
8772 2008-08-07  Richard Henderson  <rth@redhat.com>
8773
8774         PR debug/37033
8775         * gcc.c (cpp_options): Pass along -g*.
8776
8777 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
8778
8779         * config/arm/arm.c (output_move_neon): Update comment describing
8780         big-endian vector layout.
8781         (arm_assemble_integer): Do not handle big-endian NEON vectors
8782         specially.
8783         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
8784         neon_vget_lane<mode>_sext_internal,
8785         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
8786         element indices for big-endian.
8787
8788 2008-08-07  Richard Henderson  <rth@redhat.com>
8789
8790         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
8791         * configure, config.in: Rebuild.
8792         * debug.h (dwarf2out_do_cfi_asm): Declare.
8793         * c-cppbuiltin.c (c_cpp_builtins): Use it.
8794         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
8795         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
8796         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
8797
8798 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
8799
8800         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8801         movv2si_internal): Combine into mov<mode>_internal.
8802         (movv2si_internal_2): Remove.
8803
8804 2008-08-07  Jan Hubicka  <jh@suse.cz>
8805
8806         PR target/37048
8807         * i386.md (single stringop patterns): Enable unconditionally.
8808
8809 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8810
8811         PR target/36992
8812         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
8813
8814         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
8815         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
8816
8817         * config/i386/sse.md (sse2_movq128): New.
8818
8819         * doc/extend.texi: Document __builtin_ia32_movq128.
8820
8821 2008-08-07  Richard Guenther  <rguenther@suse.de>
8822
8823         PR middle-end/37042
8824         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
8825         pointers can access anything.
8826
8827 2008-08-06  Jan Hubicka  <jh@suse.cz>
8828
8829         * optabs.c (emit_unop_insn): Break out to ...
8830         (maybe_emit_unop_insn): ... this one.
8831         (expand_sfix_optab): Use maybe variant.
8832         * optabs.h (maybe_emit_unop_insn): Declare.
8833
8834         * i386.md (mov0 patterns): Enable by default.
8835         (FP conversion expanders): Disable expansion of code expanding
8836         sequences when instruction should be optimized for size.
8837         (single strinop patterns): Enable when optimizing for size.
8838         (string expanders): Disable expanding of code expanding sequences
8839         when optimizning instruction for size.
8840         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
8841         per BB basis.
8842         (ix86_fp_comparison_sahf_cost): Likewise.
8843         (ix86_expand_branch): Likewise.
8844         (ix86_expand_ashl_const): Likewise.
8845         (ix86_split_ashl): Likewise.
8846         (ix86_expand_strlen): Likewise.
8847         (ix86_emit_fp_unordered_jump): Likewie.
8848
8849 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8850
8851         * c-common.c: Fix typo.
8852         (c_common_reswords): Activate more C++ keyword warnings.
8853
8854         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
8855
8856 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8857
8858         PR 26785
8859         * diagnostic.c (permerror_at): New.
8860         * toplev.h (permerror_at): Declare.
8861
8862 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
8863             Ira Rosen  <irar@il.ibm.com>
8864
8865         * tree-vect-transform.c (vect_model_simple_cost): Return
8866         immediately if stmt is pure SLP.
8867         (vect_model_store_cost): Ditto.
8868         (vect_model_load_cost): Ditto.
8869         (vectorizable_store): Remove PURE_SLP check before call
8870         to vect_model_store_cost.
8871         (vect_model_store_cost): When checking whether stmt describe
8872         strided access, add a check that it is not slp_node.
8873
8874 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8875
8876         PR 8715
8877         * c-common.c (warn_for_sign_compare): New. Handle separately the
8878         case that 'constant' is zero.
8879         * c-typeck.c (build_binary_op): Move code to c-common.c
8880
8881 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8882
8883         * config/alpha/alpha.c (alpha_preferred_reload_class,
8884         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
8885         alpha_output_mi_thunk_osf): Avoid C++ keywords.
8886         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
8887         * config/arm/arm.md: Likewise.
8888         * config/avr/avr-protos.h (preferred_reload_class,
8889         test_hard_reg_class, avr_simplify_comparison_p,
8890         out_shift_with_cnt, class_max_nregs): Likewise.
8891         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
8892         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
8893         preferred_reload_class, test_hard_reg_class): Likewise.
8894         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
8895         bfin_memory_move_cost, bfin_secondary_reload,
8896         bfin_output_mi_thunk): Likewise.
8897         * config/crx/crx.c (crx_secondary_reload_class,
8898         crx_memory_move_cost): Likewise.
8899         * config/frv/frv-protos.h (frv_secondary_reload_class,
8900         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
8901         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
8902         frv_secondary_reload_class, frv_class_likely_spilled_p,
8903         frv_class_max_nregs): Likewise.
8904         * config/h8300/h8300.c (h8300_classify_operand,
8905         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
8906         Likewise.
8907         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
8908         * config/ia64/ia64.c (ia64_preferred_reload_class,
8909         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
8910         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
8911         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
8912         Likewise.
8913         * config/m68hc11/m68hc11.c (preferred_reload_class,
8914         m68hc11_memory_move_cost): Likewise.
8915         * config/mcore/mcore.c (mcore_secondary_reload_class,
8916         mcore_reload_class): Likewise.
8917         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
8918         mips_class_max_nregs, mips_cannot_change_mode_class,
8919         mips_preferred_reload_class, mips_secondary_reload_class,
8920         mips_output_mi_thunk): Likewise.
8921         * config/mmix/mmix.c (mmix_preferred_reload_class,
8922         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
8923         Likewise.
8924         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
8925         Likewise.
8926         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
8927         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
8928         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8929         * config/rs6000/rs6000.c (paired_expand_vector_init,
8930         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
8931         compare_section_name, rs6000_memory_move_cost): Likewise.
8932         * config/s390/s390.c (s390_emit_compare_and_swap,
8933         s390_preferred_reload_class, s390_secondary_reload,
8934         legitimize_pic_address, legitimize_tls_address,
8935         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
8936         s390_class_max_nregs): Likewise.
8937         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8938         * config/s390/s390.md: Likewise.
8939         * config/score/score-protos.h (score_secondary_reload_class,
8940         score_preferred_reload_class): Likewise.
8941         * config/score/score.c (score_preferred_reload_class,
8942         score_secondary_reload_class): Likewise.
8943         * config/score/score3.c (score3_output_mi_thunk,
8944         score3_preferred_reload_class, score3_secondary_reload_class,
8945         score3_hard_regno_mode_ok): Likewise.
8946         * config/score/score3.h (score3_preferred_reload_class,
8947         score3_secondary_reload_class): Likewise.
8948         * config/score/score7.c (score7_output_mi_thunk,
8949         score7_preferred_reload_class, score7_secondary_reload_class,
8950         score7_hard_regno_mode_ok): Likewise.
8951         * config/score/score7.h (score7_preferred_reload_class,
8952         score7_secondary_reload_class): Likewise.
8953         * config/sh/sh.c (prepare_move_operands, output_far_jump,
8954         output_branchy_insn, add_constant, gen_block_redirect,
8955         sh_insn_length_adjustment, sh_cannot_change_mode_class,
8956         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
8957         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8958         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
8959         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
8960         xstormy16_preferred_reload_class): Likewise.
8961         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
8962         xtensa_expand_atomic, override_options,
8963         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
8964         Likewise.
8965         * reorg.c (try_merge_delay_insns): Likewise.
8966         * tree.c (merge_dllimport_decl_attributes): Likewise.
8967
8968         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
8969
8970 2008-08-06  Michael Matz  <matz@suse.de>
8971
8972         * Makefile.in (write_entries_to_file): Quote words.
8973         * gengtype.c: (read_input_line): Skip over leading white-space.
8974
8975 2008-08-06  Marc Gauthier  <marc@tensilica.com>
8976
8977         * config.gcc: Match more processor names for Xtensa.
8978         * configure.ac: Likewise.
8979         * doc/install.texi (Specific): Likewise.
8980         * configure: Regenerate.
8981
8982 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8983
8984         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
8985         * calls.c (avoid_likely_spilled_reg): Likewise.
8986         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8987         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
8988         * config/i386/i386.c (ix86_expand_special_args_builtin,
8989         ix86_secondary_reload): Likewise.
8990         * except.c (struct eh_region, gen_eh_region_catch,
8991         remove_unreachable_regions, duplicate_eh_regions,
8992         assign_filter_values, build_post_landing_pads,
8993         sjlj_find_directly_reachable_regions, remove_eh_handler,
8994         reachable_next_level, foreach_reachable_handler,
8995         can_throw_internal_1, can_throw_external_1,
8996         collect_one_action_chain): Likewise.
8997         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
8998         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
8999         * function.c (update_temp_slot_address, instantiate_new_reg,
9000         instantiate_virtual_regs_in_rtx,
9001         instantiate_virtual_regs_in_insn): Likewise.
9002         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
9003         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
9004         gimplify_cleanup_point_expr): Likewise.
9005         * ipa-cp.c (ipcp_lattice_changed): Likewise.
9006         * passes.c (next_pass_1): Likewise.
9007         * print-tree.c (print_node_brief, print_node): Likewise.
9008         * profile.c (branch_prob): Likewise.
9009         * tree-dump.c (dump_register): Likewise.
9010         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
9011         Likewise.
9012         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
9013         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
9014         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
9015         copy_arguments_for_versioning, copy_static_chain): Likewise.
9016         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
9017         add_new_name_mapping, register_new_name_mapping): Likewise.
9018         * tree-mudflap.c (mf_xform_derefs): Likewise.
9019         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
9020         get_init_expr, combine_chains): Likewise.
9021         * tree-pretty-print.c (dump_generic_node): Likewise.
9022         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
9023         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
9024         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
9025         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
9026
9027 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9028
9029         PR middle-end/37010
9030         * calls.c (expand_call): Use the biggest preferred stack
9031         boundary.
9032
9033 2008-08-06  Michael Matz  <matz@suse.de>
9034
9035         PR target/36613
9036         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
9037         for reused reload, instead of overwriting them.
9038
9039 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9040
9041         PR middle-end/37009
9042         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
9043         for incoming stack boundary.
9044
9045         * function.c (assign_parm_find_entry_rtl): Update
9046         parm_stack_boundary.
9047
9048         * function.h (rtl_data): Add parm_stack_boundary.
9049
9050         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
9051         parm_stack_boundary for incoming stack boundary.
9052
9053 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
9054
9055         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
9056         for unrepresentable subregs or treat them as equal to other regs
9057         or subregs with the same register number.
9058
9059 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
9060
9061         PR middle-end/35432
9062         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
9063         if want_value.
9064
9065 2008-08-06  Jan Hubicka  <jh@suse.cz>
9066
9067         * predict.c (maybe_hot_frequency_p): When profile is absent, all
9068         frequencies might be hot.
9069
9070 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
9071
9072         * reload.c (find_reloads): Force constants into literal pool
9073         also if they are wrapped in a SUBREG.
9074
9075 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9076
9077         PR target/35659
9078         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
9079         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
9080         Don't allow predicated instructions for data speculation.
9081         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
9082         declaration.
9083
9084 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9085
9086         * haifa-sched.c (extend_global): Split to extend_global_data and
9087         extend_region_data.  Update all uses.
9088         (extend_all): Rename to extend_block_data.
9089
9090 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9091
9092         * sched-rgn.c (new_ready): Check if instruction can be
9093         speculatively scheduled before attempting speculation.
9094         (debug_rgn_dependencies): Remove wrongful assert.
9095
9096 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
9097
9098         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
9099
9100 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
9101
9102         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
9103         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
9104         va_size, and type_size.
9105
9106 2008-08-04  Jason Merrill  <jason@redhat.com>
9107
9108         PR c++/37016
9109         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
9110         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
9111
9112 2008-08-05  Richard Henderson  <rth@redhat.com>
9113
9114         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
9115         * configure: Rebuild.
9116
9117 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9118
9119         PR tree-opt/37024
9120         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
9121         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
9122         is a conversion.
9123
9124 2008-08-05  Richard Henderson  <rth@redhat.com>
9125
9126         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
9127         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
9128         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
9129         * common.opt (fdwarf2-cfi-asm): New.
9130         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
9131         * config.in, configure: Rebuild.
9132         * dwarf2asm.c (dw2_asm_output_data_raw): New.
9133         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
9134         New.
9135         (dw2_force_const_mem): Externalize.
9136         * dwarf2asm.h: Update.
9137         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
9138         generate a real label.
9139         (output_cfi_directive): New.
9140         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
9141         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
9142         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
9143         and .cfi_lsda.
9144         (dwarf2out_end_epilogue): Emit .cfi_endproc.
9145         (output_loc_operands_raw, output_loc_sequence_raw): New.
9146         (output_cfa_loc_raw): New.
9147
9148 2008-08-05  Paul Brook  <paul@codesourcery.com>
9149
9150         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
9151         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
9152         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
9153         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
9154         * config/arm/arm.h (TARGET_VFPD32): Define.
9155         (TARGET_VFP3): Use TARGET_VFPD32.
9156         (fputype): Add FPUTYPE_VFP3D16.
9157         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
9158         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
9159         * config/arm/arm-cores.def: Add cortex-r4f.
9160         * config/arm/arm-tune.md: Regenerate.
9161
9162 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9163
9164         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
9165         Reword some comments throughout the file.
9166
9167         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
9168         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
9169         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
9170         MFC_MIN_DMA_LIST_ELEMENTS.
9171         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
9172         MFC_MAX_DMA_LIST_ELEMENTS.
9173
9174         (MFC_START_ENABLE): Remove PPU-only define.
9175         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
9176         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
9177
9178         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
9179         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
9180         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
9181         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
9182         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
9183         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
9184         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
9185
9186         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
9187         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
9188         (mfc_sdcrt, mfc_sdcrtst): Likewise.
9189         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
9190
9191         (spu_read_machine_status): Fix typo.
9192
9193 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9194
9195         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
9196         SUBREG of multi-word hard register.
9197         * config/spu/spu.c (valid_subreg): Likewise.
9198         (adjust_operand): Handle SUBREGs of multi-word hard registers.
9199
9200 2008-08-04  Richard Guenther  <rguenther@suse.de>
9201
9202         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
9203         the candidate with the stripped base if that base is different
9204         from the original base even for offset zero.
9205
9206 2008-08-04  Richard Guenther  <rguenther@suse.de>
9207
9208         PR middle-end/36691
9209         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
9210         check for no_overflow.
9211
9212 2008-08-04  Richard Guenther  <rguenther@suse.de>
9213
9214         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
9215
9216 2008-08-04  Paul Brook  <paul@codesourcery.com>
9217
9218         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
9219         (arm_order_regs_for_local_alloc): New function.
9220         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
9221         prototype.
9222         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
9223
9224 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9225
9226         PR target/37012
9227         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
9228         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
9229         (ix86_expand_epilogue): Likewise.
9230
9231 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9232
9233         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
9234         in comments.
9235
9236 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
9237
9238         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
9239         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
9240         (*movv2sf_internal_rex64): Ditto.
9241
9242 2008-08-03  Jan Hubicka  <jh@suse.cz>
9243
9244         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
9245         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
9246         * expmed.c (expand_smod_pow2): Likewise.
9247
9248 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
9249
9250         PR target/36992
9251         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
9252         alternative 0 of operand 1.
9253         (*vec_concatv2di_rex64_sse): Ditto.
9254         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
9255         of operand 1.
9256         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
9257         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
9258         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
9259         (*movv2sf_internal_rex64): Ditto.
9260
9261 2008-08-02  Richard Guenther  <rguenther@suse.de>
9262
9263         PR target/35252
9264         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
9265         (ssedoublesizemode): New mode attribute.
9266         (sse_shufps): Call gen_sse_shufps_v4sf.
9267         (sse_shufps_1): Macroize.
9268         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
9269         (sse2_shufpd_1): Macroize.
9270         (vec_extract_odd, vec_extract_even): New expanders.
9271         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
9272         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
9273         * i386.c (ix86_expand_vector_init_one_nonzero): Call
9274         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
9275         (ix86_expand_vector_set): Likewise.
9276         (ix86_expand_reduc_v4sf): Likewise.
9277
9278 2008-08-01  Doug Kwan  <dougkwan@google.com>
9279
9280         * matrix-reorg.c: Re-enable all code.
9281         (struct malloc_call_data): Change CALL_STMT to gimple type.
9282         (collect_data_for_malloc_call): Tuplify.
9283         (struct access_site_info): Change STMT to gimple type.
9284         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
9285         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
9286         (struct free_info): Change STMT to gimple type.
9287         (struct matrix_access_phi_node):  Change PHI to gimple type.
9288         (get_inner_of_cast_expr): Remove.
9289         (may_flatten_matrices_1): Tuplify.
9290         (may_flatten_matrices): Ditto.
9291         (mark_min_matrix_escape_level): Ditto.
9292         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
9293         (ssa_accessed_in_call_rhs): New
9294         (ssa_accessed_in_assign_rhs): New
9295         (record_access_alloc_site_info): Tuplify.
9296         (add_allocation_site): Ditto.
9297         (analyze_matrix_allocation_site): Ditto.
9298         (analyze_transpose): Ditto.
9299         (get_index_from_offset): Ditto.
9300         (update_type_size): Ditto.
9301         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
9302         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
9303         (analyze_accesses_for_phi_node): Tuplify.
9304         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
9305         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
9306         (analyze_matrix_accesses): Tuplify.
9307         (check_var_data): New call-back type for check_var_notmodified_p.
9308         (check_var_notmodified_p): Tuplify and use call-back struct to
9309         return statement found.
9310         (can_calculate_expr_before_stmt): Factor out statement related code
9311         into ...
9312         (can_calculate_stmt_before_stmt): New.
9313         (check_allocation_function): Tuplify.
9314         (find_sites_in_func): Ditto.
9315         (record_all_accesses_in_func): Ditto.
9316         (transform_access_sites): Ditto.
9317         (transform_allocation_sites): Ditto.
9318         (matrix_reorg): Re-enable.
9319         (gate_matrix_reorg): Re-enable.
9320
9321 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
9322
9323         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
9324         for labels for which it hasn't been set yet.  If it has been set,
9325         stop walking insns and continue with next worklist item.
9326         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
9327         if the only BARRIER is at the very end of a function.
9328
9329 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9330
9331         * cfgexpand.c (expand_stack_alignment): Assert that
9332         stack_realign_drap and drap_rtx must match.
9333
9334         * function.c (instantiate_new_reg): If DRAP is used to realign
9335         stack, replace virtual_incoming_args_rtx with internal arg
9336         pointer.
9337
9338 2008-08-01  Richard Guenther  <rguenther@suse.de>
9339
9340         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
9341         loop information only if we initialized it.
9342         (execute_pre): Call fini_pre with in_fre.
9343         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
9344         if we do not unroll because we hit max-completely-peeled-insns.
9345         Use our estimation for consistency, do allow shrinking.
9346
9347 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9348
9349         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
9350         with MIN_STACK_BOUNDARY.
9351         (ix86_update_stack_boundary): Likewise.
9352         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
9353         STACK_BOUNDARY.
9354
9355         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
9356         (MIN_STACK_BOUNDARY): This.
9357
9358 2008-08-01  Richard Guenther  <rguenther@suse.de>
9359
9360         PR middle-end/36997
9361         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
9362
9363 2008-08-01  Richard Guenther  <rguenther@suse.de>
9364
9365         PR tree-optimization/36988
9366         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
9367         do not matter if that doesn't change volatile qualification.
9368
9369 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
9370
9371         * configure.ac: Do not generate libada-mk.  Do not subst
9372         host_cc_for_libada.
9373         * libada-mk.in: Remove.
9374         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
9375         * configure: Regenerate.
9376
9377 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
9378
9379         * tree-pass.h: Added comment about not dumping passes with name
9380         starting with star in struct opt_pass.
9381         * passes.c (register_dump_files_1): Don't do dump for a pass with
9382         name starting with star.
9383         * doc/passes.texi (Pass manager): Mention pass names and special
9384         meaning of star prefix to avoid dump.
9385
9386 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
9387
9388         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
9389         to MIPS64r2.
9390         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
9391         (ISA_MIPS64R2): New macro.
9392         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
9393         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
9394         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
9395         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
9396         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
9397         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
9398         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
9399         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
9400         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
9401         Move up to keep list alphabetically sorted.
9402         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
9403         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
9404         processor.
9405         * doc/invoke.texi (MIPS Options): Add -mips64r2.
9406         (-march=@var{arch}): Add mips64r2.
9407
9408 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9409
9410         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
9411
9412 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
9413
9414         * expr.c (expand_assignment): Check for complete type.
9415
9416 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9417
9418         PR debug/36977
9419         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
9420
9421         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
9422         for stack alignment.
9423
9424         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
9425
9426 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9427
9428         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
9429         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
9430
9431 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
9432
9433         PR rtl-optimization/36419
9434         * dwarf2out.c (barrier_args_size): New variable.
9435         (compute_barrier_args_size, compute_barrier_args_size_1): New
9436         functions.
9437         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
9438         if not called yet in the current function, use barrier_args_size
9439         array to find the new args_size value.
9440         (dwarf2out_frame_debug): Free and clear barrier_args_size.
9441
9442 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9443
9444         PR debug/36980
9445         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
9446         rule 19.
9447
9448 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9449
9450         PR debug/36976
9451         * dwarf2out.c (dwarf2out_args_size_adjust): New.
9452         (dwarf2out_stack_adjust): Use it.
9453         (dwarf2out_frame_debug_expr): Likewise.
9454
9455 2008-07-31  Richard Guenther  <rguenther@suse.de>
9456
9457         PR tree-optimization/36978
9458         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
9459         the generated condition.
9460
9461 2008-07-31  Richard Guenther  <rguenther@suse.de>
9462
9463         * passes.c (init_optimization_passes): Always call
9464         pass_early_warn_uninitialized.
9465         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
9466         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
9467         * doc/passes.texi (Warn for uninitialized variables): Adjust.
9468
9469 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
9470
9471         PR c/36970
9472         * builtins.c (maybe_emit_free_warning): New function.
9473         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
9474         maybe_emit_free_warning for BUILT_IN_FREE.
9475
9476         PR debug/36278
9477         * dwarf2out.c (get_context_die): New function.
9478         (force_decl_die, force_type_die): Use it.
9479         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
9480         returns NULL, force generation of DW_TAG_typedef and put that into
9481         DW_AT_import.
9482
9483         PR preprocessor/36649
9484         * c-pch.c (c_common_read_pch): Save and restore
9485         line_table->trace_includes across PCH restore.
9486
9487 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
9488
9489         PR ada/36554
9490         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
9491
9492 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
9493
9494         PR 36974
9495         * final.c (call_from_call_insn): Handle COND_EXEC.
9496
9497 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9498
9499         * builtins.c (std_gimplify_va_arg_expr): Replace
9500         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
9501         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9502
9503 2008-07-30  Joey Ye  <joey.ye@intel.com>
9504             H.J. Lu  <hongjiu.lu@intel.com>
9505
9506         * builtins.c (expand_builtin_setjmp_receiver): Replace
9507         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
9508         (expand_builtin_apply_args_1): Likewise.
9509         (expand_builtin_longjmp): Need DRAP for stack alignment.
9510         (expand_builtin_apply): Likewise.
9511
9512         * caller-save.c (setup_save_areas): Call assign_stack_local_1
9513         instead of assign_stack_local to allow alignment reduction.
9514
9515         * calls.c (emit_call_1): Need DRAP for stack alignment if
9516         return pops.
9517         (expand_call): Replace virtual_incoming_args_rtx with
9518         crtl->args.internal_arg_pointer.
9519         * stmt.c (expand_nl_goto_receiver): Likewise.
9520
9521         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
9522         alignment and store to stack_alignment_estimated and
9523         max_used_stack_slot_alignment.
9524         (expand_one_var): Likewise.
9525         (expand_stack_alignment): New function.
9526         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
9527         and stack_alignment_estimated fields in rtl_data.  Call
9528         expand_stack_alignment at end.
9529
9530         * defaults.h (INCOMING_STACK_BOUNDARY): New.
9531         (MAX_STACK_ALIGNMENT): Likewise.
9532         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
9533         (SUPPORTS_STACK_ALIGNMENT): Likewise.
9534
9535         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
9536         stack alignment when generating virtual registers.
9537
9538         * function.c (assign_stack_local): Renamed to ...
9539         (assign_stack_local_1): This.  Add a parameter to indicate
9540         if it is OK to reduce alignment.
9541         (assign_stack_local): Use it.
9542         (instantiate_new_reg): Instantiate virtual incoming args rtx
9543         to vDRAP if stack realignment and DRAP is needed.
9544         (assign_parms): Collect parameter/return type alignment and
9545         contribute to stack_alignment_estimated.
9546         (locate_and_pad_parm): Likewise.
9547         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
9548         with crtl->args.internal_arg_pointer.
9549
9550         * function.h (rtl_data): Add new field drap_reg,
9551         max_used_stack_slot_alignment, stack_alignment_estimated,
9552         stack_realign_needed, need_drap, stack_realign_processed and
9553         stack_realign_finalized.
9554         (stack_realign_fp): New macro.
9555         (stack_realign_drap): Likewise.
9556
9557         * global.c (compute_regsets): Frame pointer is needed when
9558         stack is realigned.  Can eliminate frame pointer when stack is
9559         realigned and dynamic realigned argument pointer isn't used.
9560
9561         * reload1.c (update_eliminables):  Frame pointer is needed
9562         when stack is realigned.
9563         (init_elim_table): Can eliminate frame pointer when stack is
9564         realigned and dynamic realigned argument pointer isn't used.
9565
9566         * rtl.h (assign_stack_local_1): Declare new funtion.
9567
9568         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
9569         (TARGET_GET_DRAP_RTX): Likewise.
9570         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
9571         TARGET_GET_DRAP_RTX.
9572
9573         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
9574
9575         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
9576         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
9577
9578 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
9579             H.J. Lu  <hongjiu.lu@intel.com>
9580
9581         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
9582         vdrap_reg, stack_realign and drap_reg_saved.
9583         (add_cfi): Don't allow redefining CFA when DRAP is used.
9584         (reg_save): Handle stack alignment.
9585         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
9586         alignment.  Don't generate DWARF information for (set fp sp)
9587         when DRAP is used.
9588         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
9589         to INVALID_REGNUM.
9590         (int_loc_descriptor): Move prototype forward.  Also define if
9591         DWARF2_UNWIND_INFO is true.
9592         (output_cfa_loc): Handle DW_CFA_expression.
9593         (build_cfa_aligned_loc): New.
9594         (based_loc_descr): Update assert for stack realign.  For local
9595         variables, use sp+offset when stack is aligned without drap and
9596         fp+offset when stack is aligned with drap.  For arguments, use
9597         cfa+offset when drap is used to align stack.
9598
9599 2008-07-30  Joey Ye  <joey.ye@intel.com>
9600             H.J. Lu  <hongjiu.lu@intel.com>
9601
9602         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
9603         Break long line.
9604         (ix86_gen_andsp): New.
9605         (ix86_user_incoming_stack_boundary): Likewise.
9606         (ix86_default_incoming_stack_boundary): Likewise.
9607         (ix86_incoming_stack_boundary): Likewise.
9608         (ix86_can_eliminate): Likewise.
9609         (find_drap_reg): Likewise.
9610         (ix86_update_stack_boundary): Likewise.
9611         (ix86_get_drap_rtx): Likewise.
9612         (ix86_finalize_stack_realign_flags): Likewise.
9613         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
9614         (TARGET_GET_DRAP_RTX): Likewise.
9615         (override_options): Overide option value for new options.
9616         (ix86_function_ok_for_sibcall): Remove check for
9617         force_align_arg_pointer.
9618         (ix86_handle_cconv_attribute): Likewise.
9619         (ix86_function_regparm): Likewise.
9620         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
9621         (ix86_va_start): Replace virtual_incoming_args_rtx with
9622         crtl->args.internal_arg_pointer.
9623         (ix86_select_alt_pic_regnum): Check DRAP register.
9624         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
9625         (ix86_compute_frame_layout): Compute frame layout wrt stack
9626         realignment.
9627         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
9628         (ix86_expand_prologue): Decide if stack realignment is needed
9629         and generate prologue code accordingly.
9630         (ix86_expand_epilogue): Generate epilogue code wrt stack
9631         realignment is really needed or not.
9632
9633         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
9634         (ABI_STACK_BOUNDARY): Likewise.
9635         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
9636         (STACK_REALIGN_DEFAULT): Likewise.
9637         (INCOMING_STACK_BOUNDARY): Likewise.
9638         (MAX_STACK_ALIGNMENT): Likewise.
9639         (ix86_incoming_stack_boundary): Likewise.
9640         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
9641         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
9642         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
9643         (machine_function): Remove force_align_arg_pointer.
9644
9645         * config/i386/i386.md (BX_REG): New.
9646         (R13_REG): Likewise.
9647
9648         * config/i386/i386.opt (mforce_drap): New.
9649         (mincoming-stack-boundary): Likewise.
9650         (mstackrealign): Add Init(-1).
9651
9652         * config/i386/i386-protos.h (ix86_can_eliminate): New
9653
9654 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9655
9656         * doc/extend.texi: Update force_align_arg_pointer.
9657
9658         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
9659         -mstackrealign.
9660
9661         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
9662         (INCOMING_STACK_BOUNDARY): Likewise.
9663         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
9664         (TARGET_GET_DRAP_RTX): Likewise.
9665
9666 2008-07-30  Andreas Schwab  <schwab@suse.de>
9667
9668         PR rtl-optimization/36929
9669         * dse.c (replace_inc_dec): Use emit_insn_before instead of
9670         add_insn_before and fix argument order.
9671         (replace_inc_dec_mem): Handle NULL rtx.
9672
9673 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
9674
9675         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
9676         function.
9677         (arm_compute_initial_elimination_offset): Use it.
9678         (arm_compute_save_reg_mask): Include static chain save slot when
9679         calculating alignment.
9680         (arm_get_frame_offsets): Ditto.
9681         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
9682         that we can use to decrement the stack when the stack decrement
9683         could be too big for an immediate value in a single insn.
9684         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
9685
9686 2008-07-30  Richard Guenther  <rguenther@suse.de>
9687
9688         PR tree-optimization/36967
9689         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
9690         Release defs of statements we remove.
9691
9692 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
9693
9694         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
9695         instead of NULL_RTVEC.
9696
9697 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
9698
9699         PR target/35866
9700
9701         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
9702         vector modes.
9703
9704 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
9705
9706         * final.c (call_from_call_insn): New.
9707         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
9708
9709 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
9710
9711         * configure.ac: Substitute ADA_CFLAGS.
9712         * configure: Regenerate.
9713         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
9714         * Makefile.in: Remove mention of X_* variables.
9715         * config/pa/x-ada-hpux10: Remove.
9716         * config/pa/x-ada: Remove.
9717
9718         * doc/fragments.texi: Update.
9719
9720 2008-07-30  Olivier Hainque  <hainque@adacore.com>
9721
9722         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
9723         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
9724         __dso_handle explicitly here.
9725
9726 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9727
9728         PR 34389
9729         * c-typeck.c (build_binary_op): Encapsulate code into...
9730         * c-common.c (shorten_binary_op): ...this new function.
9731         (conversion_warning): Use the new function. Handle non-negative
9732         constant in bitwise-and.
9733         * c-common.h (shorten_binary_op): Declare.
9734
9735 2008-07-30  Olivier Hainque  <hainque@adacore.com>
9736
9737         * scan.c (make_sstring_space): Add explicit conversions of
9738         allocator's return value.
9739         * fix-header.c (recognized_function): Likewise.
9740
9741 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9742
9743         * doc/cpp.texi: Update to GFDL 1.2.
9744         * doc/gcc.texi: Do not list GPL as Invariant Section.
9745         * doc/gccint.texi: Likewise.  Update copyright years.
9746         * doc/install.texi: Update copyright years.
9747
9748 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
9749
9750         PR target/36955
9751         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
9752         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
9753
9754 2008-07-29  Jan Hubicka  <jh@suse.cz>
9755
9756         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
9757         (grokdeclarator): Likewise.
9758         * langhooks.c (lhd_warn_unused_global_decl): Use
9759         DECL_DECLARED_INLINE_P.
9760         * print-tree.c (print_node): Remove DECL_INLINE check.
9761
9762 2008-07-29  Richard Guenther  <rguenther@suse.de>
9763
9764         PR tree-optimization/36945
9765         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
9766         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
9767         Record invariant addresses un-decomposed.
9768         (copy_reference_ops_from_call): Record reference call
9769         arguments properly.  Simplify.
9770         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
9771         helper split out from ...
9772         (create_component_ref_by_pieces): ... here.  Simplify.
9773         Prepare for recursive invocation for call arguments.
9774         (create_expression_by_pieces): Adjust call to
9775         create_component_ref_by_pieces.
9776         (compute_avail): Process operand 2 of reference ops.
9777
9778 2008-07-29  Richard Guenther  <rguenther@suse.de>
9779
9780         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
9781
9782 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
9783
9784         * c-format.c (check_format_types): Revert unwanted checkin.
9785
9786 2008-07-29  Jan Hubicka  <jh@suse.cz>
9787
9788         * flags.h (flag_really_no_inline): Remove.
9789         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
9790         * toplev.c (flag_really_no_inline): Remove.
9791         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
9792         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
9793         (cgraph_decide_inlining_incrementally): Likewise.
9794         (compute_inline_parameters): Likewise.
9795         * opts.c (decode_options): Simplify.
9796         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
9797         * common.opt (finline): Initialize to 1.
9798         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
9799
9800 2008-07-29  Jan Hubicka  <jh@suse.cz>
9801
9802         * predict.c (always_optimize_for_size_p): New function.
9803         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
9804         optimize_edge_for_size_p, optimize_edge_for_speed_p,
9805         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
9806         functions.
9807         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
9808         * function.c (prepare_function_start): Set default profile.
9809         * function.h (rtl_data): Add maybe_hot_insn_p.
9810         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
9811         (construct_exit_block): Likewise.
9812         (tree_expand_cfg): Likewise.
9813         * basic-block.h
9814         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
9815         optimize_edge_for_size_p, optimize_edge_for_speed_p,
9816         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
9817         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
9818         Declare.
9819
9820 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9821
9822         PR 34985
9823         * c-decl.c (merge_decls): Merge USED flags.
9824
9825 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9826
9827         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
9828         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
9829         next_stack, lab_false and lab_over trees.
9830
9831 2008-07-28  Richard Guenther  <rguenther@suse.de>
9832
9833         PR tree-optimization/36957
9834         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
9835         (useless_type_conversion_p): Remove.
9836         (types_compatible_p): Remove.
9837         * gimple.h (tree_ssa_useless_type_conversion): Declare.
9838         (useless_type_conversion_p): Declare.
9839         (types_compatible_p): Declare.
9840         (gimple_expr_type): Return the base type only if it is
9841         trivially convertible to the subtype.
9842
9843 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
9844
9845         * configure.ac: Use the m4_do macro to concatenate the warnings into
9846         one string in ACX_PROG_CC_WARNING_OPTS,
9847         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
9848         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
9849         * configure: Regenerate.
9850
9851 2008-07-28  Richard Guenther  <rguenther@suse.de>
9852
9853         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
9854         (insert_fake_stores): Remove.
9855         (realify_fake_stores): Likewise.
9856         (execute_pre): Remove dead code.
9857         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
9858         (find_func_aliases): Deal with it here instead.
9859         Re-enable gcc_unreachable call.
9860
9861 2008-07-28  Richard Guenther  <rguenther@suse.de>
9862
9863         Merge from gimple-tuples-branch.
9864
9865         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
9866         * gimple.def: New file.
9867         * gsstruct.def: Likewise.
9868         * gimple-iterator.c: Likewise.
9869         * gimple-pretty-print.c: Likewise.
9870         * tree-gimple.c: Removed.  Merged into ...
9871         * gimple.c: ... here.  New file.
9872         * tree-gimple.h: Removed.  Merged into ...
9873         * gimple.h: ... here.  New file.
9874
9875         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
9876         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
9877         --enable-checking=gimple flag.
9878         * config.in: Likewise.
9879         * configure: Regenerated.
9880
9881         * tree-ssa-operands.h: Tuplified.
9882         * tree-vrp.c: Likewise.
9883         * tree-loop-linear.c: Likewise.
9884         * tree-into-ssa.c: Likewise.
9885         * tree-ssa-loop-im.c: Likewise.
9886         * tree-dump.c: Likewise.
9887         * tree-complex.c: Likewise.
9888         * cgraphbuild.c: Likewise.
9889         * tree-ssa-threadupdate.c: Likewise.
9890         * tree-ssa-loop-niter.c: Likewise.
9891         * tree-pretty-print.c: Likewise.
9892         * tracer.c: Likewise.
9893         * gengtype.c: Likewise.
9894         * tree-loop-distribution.c: Likewise.
9895         * tree-ssa-loop-unswitch.c: Likewise.
9896         * cgraph.c: Likewise.
9897         * cgraph.h: Likewise.
9898         * tree-ssa-loop-manip.c: Likewise.
9899         * value-prof.c: Likewise.
9900         * tree-ssa-loop-ch.c: Likewise.
9901         * tree-tailcall.c: Likewise.
9902         * value-prof.h: Likewise.
9903         * tree.c: Likewise.
9904         * tree.h: Likewise.
9905         * tree-pass.h: Likewise.
9906         * ipa-cp.c: Likewise.
9907         * tree-scalar-evolution.c: Likewise.
9908         * tree-scalar-evolution.h: Likewise.
9909         * target.h: Likewise.
9910         * lambda-mat.c: Likewise.
9911         * tree-phinodes.c: Likewise.
9912         * diagnostic.h: Likewise.
9913         * builtins.c: Likewise.
9914         * tree-ssa-alias-warnings.c: Likewise.
9915         * cfghooks.c: Likewise.
9916         * fold-const.c: Likewise.
9917         * cfghooks.h: Likewise.
9918         * omp-low.c: Likewise.
9919         * tree-ssa-dse.c: Likewise.
9920         * ipa-reference.c: Likewise.
9921         * tree-ssa-uncprop.c: Likewise.
9922         * toplev.c: Likewise.
9923         * tree-gimple.c: Likewise.
9924         * tree-gimple.h: Likewise.
9925         * tree-chrec.c: Likewise.
9926         * tree-chrec.h: Likewise.
9927         * tree-ssa-sccvn.c: Likewise.
9928         * tree-ssa-sccvn.h: Likewise.
9929         * cgraphunit.c: Likewise.
9930         * tree-ssa-copyrename.c: Likewise.
9931         * tree-ssa-ccp.c: Likewise.
9932         * tree-ssa-loop-ivopts.c: Likewise.
9933         * tree-nomudflap.c: Likewise.
9934         * tree-call-cdce.c: Likewise.
9935         * ipa-pure-const.c: Likewise.
9936         * c-format.c: Likewise.
9937         * tree-stdarg.c: Likewise.
9938         * tree-ssa-math-opts.c: Likewise.
9939         * tree-ssa-dom.c: Likewise.
9940         * tree-nrv.c: Likewise.
9941         * tree-ssa-propagate.c: Likewise.
9942         * ipa-utils.c: Likewise.
9943         * tree-ssa-propagate.h: Likewise.
9944         * tree-ssa-alias.c: Likewise.
9945         * gimple-low.c: Likewise.
9946         * tree-ssa-sink.c: Likewise.
9947         * ipa-inline.c: Likewise.
9948         * c-semantics.c: Likewise.
9949         * dwarf2out.c: Likewise.
9950         * expr.c: Likewise.
9951         * tree-ssa-loop-ivcanon.c: Likewise.
9952         * predict.c: Likewise.
9953         * tree-ssa-loop.c: Likewise.
9954         * tree-parloops.c: Likewise.
9955         * tree-ssa-address.c: Likewise.
9956         * tree-ssa-ifcombine.c: Likewise.
9957         * matrix-reorg.c: Likewise.
9958         * c-decl.c: Likewise.
9959         * tree-eh.c: Likewise.
9960         * c-pretty-print.c: Likewise.
9961         * lambda-trans.c: Likewise.
9962         * function.c: Likewise.
9963         * langhooks.c: Likewise.
9964         * ebitmap.h: Likewise.
9965         * tree-vectorizer.c: Likewise.
9966         * function.h: Likewise.
9967         * langhooks.h: Likewise.
9968         * tree-vectorizer.h: Likewise.
9969         * ipa-type-escape.c: Likewise.
9970         * ipa-type-escape.h: Likewise.
9971         * domwalk.c: Likewise.
9972         * tree-if-conv.c: Likewise.
9973         * profile.c: Likewise.
9974         * domwalk.h: Likewise.
9975         * tree-data-ref.c: Likewise.
9976         * tree-data-ref.h: Likewise.
9977         * tree-flow-inline.h: Likewise.
9978         * tree-affine.c: Likewise.
9979         * tree-vect-analyze.c: Likewise.
9980         * c-typeck.c: Likewise.
9981         * gimplify.c: Likewise.
9982         * coretypes.h: Likewise.
9983         * tree-ssa-phiopt.c: Likewise.
9984         * calls.c: Likewise.
9985         * tree-ssa-coalesce.c: Likewise.
9986         * tree.def: Likewise.
9987         * tree-dfa.c: Likewise.
9988         * except.c: Likewise.
9989         * except.h: Likewise.
9990         * cfgexpand.c: Likewise.
9991         * tree-cfgcleanup.c: Likewise.
9992         * tree-ssa-pre.c: Likewise.
9993         * tree-ssa-live.c: Likewise.
9994         * tree-sra.c: Likewise.
9995         * tree-ssa-live.h: Likewise.
9996         * tree-predcom.c: Likewise.
9997         * lambda.h: Likewise.
9998         * tree-mudflap.c: Likewise.
9999         * ipa-prop.c: Likewise.
10000         * print-tree.c: Likewise.
10001         * tree-ssa-copy.c: Likewise.
10002         * ipa-prop.h: Likewise.
10003         * tree-ssa-forwprop.c: Likewise.
10004         * ggc-page.c: Likewise.
10005         * c-omp.c: Likewise.
10006         * tree-ssa-dce.c: Likewise.
10007         * tree-vect-patterns.c: Likewise.
10008         * tree-ssa-ter.c: Likewise.
10009         * tree-nested.c: Likewise.
10010         * tree-ssa.c: Likewise.
10011         * lambda-code.c: Likewise.
10012         * tree-ssa-loop-prefetch.c: Likewise.
10013         * tree-inline.c: Likewise.
10014         * tree-inline.h: Likewise.
10015         * tree-iterator.c: Likewise.
10016         * tree-optimize.c: Likewise.
10017         * tree-ssa-phiprop.c: Likewise.
10018         * tree-vect-transform.c: Likewise.
10019         * tree-object-size.c: Likewise.
10020         * tree-outof-ssa.c: Likewise.
10021         * cfgloop.c: Likewise.
10022         * system.h: Likewise.
10023         * tree-profile.c: Likewise.
10024         * cfgloop.h: Likewise.
10025         * c-gimplify.c: Likewise.
10026         * c-common.c: Likewise.
10027         * tree-vect-generic.c: Likewise.
10028         * tree-flow.h: Likewise.
10029         * c-common.h: Likewise.
10030         * basic-block.h: Likewise.
10031         * tree-ssa-structalias.c: Likewise.
10032         * tree-switch-conversion.c: Likewise.
10033         * tree-ssa-structalias.h: Likewise.
10034         * tree-cfg.c: Likewise.
10035         * passes.c: Likewise.
10036         * ipa-struct-reorg.c: Likewise.
10037         * ipa-struct-reorg.h: Likewise.
10038         * tree-ssa-reassoc.c: Likewise.
10039         * cfgrtl.c: Likewise.
10040         * varpool.c: Likewise.
10041         * stmt.c: Likewise.
10042         * tree-ssanames.c: Likewise.
10043         * tree-ssa-threadedge.c: Likewise.
10044         * langhooks-def.h: Likewise.
10045         * tree-ssa-operands.c: Likewise.
10046         * config/alpha/alpha.c: Likewise.
10047         * config/frv/frv.c: Likewise.
10048         * config/s390/s390.c: Likewise.
10049         * config/m32c/m32c.c: Likewise.
10050         * config/m32c/m32c-protos.h: Likewise.
10051         * config/spu/spu.c: Likewise.
10052         * config/sparc/sparc.c: Likewise.
10053         * config/i386/i386.c: Likewise.
10054         * config/sh/sh.c: Likewise.
10055         * config/xtensa/xtensa.c: Likewise.
10056         * config/stormy16/stormy16.c: Likewise.
10057         * config/ia64/ia64.c: Likewise.
10058         * config/rs6000/rs6000.c: Likewise.
10059         * config/pa/pa.c: Likewise.
10060         * config/mips/mips.c: Likewise.
10061
10062 2008-07-28  Simon Baldwin  <simonb@google.com>
10063
10064         * c-pragma.c (handle_pragma_message): New function.
10065         (init_pragma): Register handle_pragma_message.
10066         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
10067         documentation.
10068
10069 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
10070
10071         PR tree-optimization/35252
10072         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
10073         REALPART_EXPR to be considered as same load operation.
10074
10075 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
10076
10077         PR tree-optimization/36830
10078         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
10079         (expressions_equal_p): Return false if only one operand is null.
10080
10081 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
10082
10083         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
10084         version requirements.
10085
10086 2008-07-26  Olivier Hainque  <hainque@adacore.com>
10087
10088         * collect2.c (symkind): New enum.  Symbol kinds we care about.
10089         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
10090         code and head comment accordingly.
10091         (scan_prog_file): Use symkind names instead of bare integers.
10092
10093 2008-07-25  Jan Hubicka  <jh@suse.cz>
10094
10095         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
10096         DECL_INLINE.
10097         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
10098         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
10099         * dojump.c (clear_pending_stack_adjust): Likewise.
10100         * print-tree.c (print_node): Ignore DECL_INLINE.
10101         * tree-inline.c (inlinable_function_p): Likewise.
10102
10103 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
10104
10105         * doc/extend.texi (hot attribute): Document that the hot attribute
10106         turns on -O3 for some ports.
10107         (cold attribute): Document that the cold attribute turns on -Os
10108         for some ports
10109
10110         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
10111         reflect function specific option support.
10112
10113         * target.h (struct target_option_hooks): Add fields to say whether
10114         the cold attribute implies -Os and the hot attribute implies -O3.
10115
10116         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
10117         By default, do not turn on -Os for cold functions.
10118         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
10119         not turn on -O3 for hot functions.
10120
10121         * c-common.c (handle_hot_attribute): Use target hook to determine
10122         if hot functions should enable -O3.
10123         (handle_cold_attribute): Use target hook to determine if cold
10124         functions should enable -Os.
10125
10126         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
10127         (override_options): Move disable scheduling to
10128         optimization_options.
10129         (optimization_options): Disable scheduling here, not
10130         override_options.
10131         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10132         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10133
10134         * config/ia64/ia64.c (ia64_override_options): Move setting
10135         scheduling flags to ia64_optimization_options.
10136         (ia64_optimization_options): Disable scheduling options here, and
10137         not in ia64_override_options.
10138         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10139         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10140
10141 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10142
10143         PR target/36936
10144         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
10145
10146 2008-07-25  Martin Jambor  <mjambor@suse.cz>
10147
10148         PR tree-optimization/36926
10149         * ipa-prop.c (ipa_analyze_call_uses): Call
10150         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
10151
10152 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
10153
10154         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10155         movv2si_internal): Add mem = reg alternative.
10156
10157 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
10158
10159         PR bootstrap/36918
10160         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
10161         DEFAULT_PCC_STRUCT_RETURN to 127.
10162
10163 2008-07-24  Jan Hubicka  <jh@suse.cz>
10164
10165         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
10166         (build_cgraph_edges): Likewise.
10167         * cgraph.c (cgraph_node): Do not update assembler hash.
10168         (cgraph_remove_node): Drop non-unit-at-a-time code.
10169         * tree-pass.h (pass_O0_always_inline): Remove.
10170         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
10171         * toplev.c (process_options): Flag unit-at-a-time does not imply
10172         no section anchors.
10173         * cgraphunit.c: Update comments.
10174         (decide_is_function_needed): Drop non-unit-at-a-time mode.
10175         (cgraph_assemble_pending_functions): Remove.
10176         (cgraph_reset_node): Drop non-unit-at-a-time code.
10177         (cgraph_finalize_function): Likewise.
10178         (cgraph_analyze_function): Likewise.
10179         (cgraph_finalize_compilation_unit): Likewise.
10180         (cgraph_expand_function): Likewise.
10181         (cgraph_optimize): Likesise.
10182         (save_inline_function_body): Likewise.
10183         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
10184         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
10185         * ipa-inline.c: Update comments.
10186         (enum inlining_mode): remove INLINE_SPEED.
10187         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
10188         (cgraph_mark_inline_edge): Likewise.
10189         (try_inline): Likewise.
10190         (cgraph_decide_inlining_incrementally): Likewise.
10191         (cgraph_gate_inlining): Remove.
10192         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
10193         (cgraph_gate_early_inlining): Likewise.
10194         (gate_inline_passes): Remove.
10195         (pass_inline_parameters, pass_ipa_inline): Remove gates.
10196         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
10197         pass_O0_always_inline): Remove.
10198         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
10199         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
10200         * opts.c (no_unit_at_a_time_default): Remove.
10201         (decode_options): Remove flag_unit_at_a_time reset and warning.
10202         * opts.h (no_unit_at_a_time_default): Remove.
10203         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
10204         early in GNU dialect.
10205         (merge_decls): Update comment; drop unit-at-a-time check.
10206         (finish_decl): Likewise.
10207         (grok_declaration): Remove flag_inline_trees code.
10208         (finish_functions): Return on function returning non-void on all
10209         statics.
10210         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
10211         * cfgexpand.c (expand_one_static_var): Remove.
10212         (expand_one_var): Remove expand_one_static_var call.
10213         (expand_used_vars_for_block): Remove flag_unit_a_time check.
10214         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
10215         and flag_unit_at_a-time compatibility checks.
10216         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
10217         * tree-inline.c (flag_inline_trees): Remove.
10218         (inlinable_function_p): Don't check it.
10219         (expand_call_inline): Remove non-unit-at-a-time code.
10220         * tree-inline.h (flag_inline_trees): Remove.
10221         * tree-optimize.c (execute_early_local_optimizations): Remove
10222         unit-at-a-time checks.
10223         (tree_rest_of_compilation): Likewise.
10224         * combine.c (setup_incoming_promotions): Likewise.
10225         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
10226         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
10227         * passes.c (pass_inline_parameters): Update comments; remove
10228         O0_alwaysinline pass.
10229         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
10230         (execute_one_pass): Likewise.
10231         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
10232         (ix86_function_sseregparm): Likewise.
10233         * arm.c (arm_function_in_section_p): Likewise.
10234         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
10235         * varpool.c: Update comments.
10236         (decide_is_variable_needed): Remove unit-at-a-time checks.
10237         (varpool_finalize_decl): Likewise.
10238
10239 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10240
10241         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
10242         to 2 instead of -1.
10243         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
10244
10245 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
10246
10247         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
10248         imp symbol extension.
10249
10250         2008-07-23  Ian Lance Taylor  <iant@google.com>
10251
10252         * tree-vrp.c (infer_value_range): Ignore asm statements when
10253         looking for memory accesses for -fdelete-null-pointer-checks.
10254
10255 2008-07-24  Ben Elliston  <bje@au.ibm.com>
10256
10257         * config/spu/spu-c.c (__vector_keyword): New variable.
10258         (vector_keyword): Likewise.
10259         (spu_categorize_keyword): New function.
10260         (spu_macro_to_expand): Likewise.
10261         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
10262         compiling an ISO C dialect.
10263
10264 2008-07-24  Ben Elliston  <bje@au.ibm.com>
10265
10266         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
10267         conventional usage.
10268
10269 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10270
10271         * configure: Regenerate.
10272         * configure.ac: Require texinfo 4.7.
10273         * doc/install.texi: Document texinfo 4.7 requirement.
10274
10275 2008-07-23  Martin Jambor  <mjambor@suse.cz>
10276
10277         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
10278         rather than for DECL_SAVED_TREE.
10279         * ipa-prop.c: Include diagnostic.h.
10280         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
10281         thoroughly.
10282         (ipa_detect_param_modifications): Function rewritten from scratch.
10283         (ipa_compute_jump_functions): Changed accesses to modification flags.
10284         (ipa_free_node_params_substructures): Update flags destruction.
10285         (ipa_node_duplication_hook): Update flags duplication.
10286         (ipa_print_all_params_modified): Updated flag access.
10287         * ipa-prop.h (struct ipa_param_flags): New structure.
10288         (struct ipa_node_params): New field modification_analysis_done,
10289         modified_flags changed into param_flags.
10290         (ipa_is_ith_param_modified): Changed to use new flags.
10291         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
10292
10293         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
10294         ipa-cp.c and split into two functions.
10295         (ipa_print_node_jump_functions): New function.
10296         (compute_scalar_jump_functions): New function.
10297         (type_like_member_ptr_p): New function.
10298         (compute_pass_through_member_ptrs): New function.
10299         (fill_member_ptr_cst_jump_function): New function.
10300         (determine_cst_member_ptr): New function.
10301         (compute_cst_member_ptr_arguments): New function.
10302         (ipa_compute_jump_functions): Complete rewrite.
10303         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
10304         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
10305         (struct ipa_member_ptr_cst): New structure.
10306         (union jump_func_value): New field member_cst.
10307         * ipa-cp.c (ipcp_lat_is_insertable): New function.
10308         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
10309         jump function types.
10310         (ipcp_print_all_lattices): Slight fprintf rearrangement.
10311         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
10312         instead of ipcp_print_all_jump_functions.
10313         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
10314         only for replacable scalars.
10315
10316         * doc/invoke.texi (Optimize options): Add description of
10317         -findirect-inlining.
10318         * common.opt (flag_indirect_inlining): New flag.
10319         * opts.c (decode_options): Set flag_indirect_inlining when
10320         optimize >= 3.
10321
10322         * ipa-inline.c: Include ipa-prop.h.
10323         (inline_indirect_intraprocedural_analysis): New function.
10324         (inline_generate_summary): Allocate parameter and argument info
10325         structures, call inline_indirect_intraprocedural_analysis on each
10326         node when doing indirect inlining and deallocate indirect inlining
10327         data structures in the end.
10328         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
10329         (free_all_ipa_structures_after_iinln): New function.
10330         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
10331         done.
10332         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
10333
10334         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
10335         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
10336         of computing the frequency separately.
10337         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
10338         of computing the frequency separately.
10339         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
10340         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
10341         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
10342         (ipa_get_stmt_member_ptr_load_param): New function.
10343         (ipa_is_ssa_with_stmt_def): New function.
10344         (ipa_note_param_call): New function.
10345         (ipa_analyze_call_uses): New function.
10346         (ipa_analyze_stmt_uses): New function.
10347         (ipa_analyze_params_uses): New function.
10348         (ipa_free_node_params_substructures): Also free the param_calls linked
10349         list.
10350         (ipa_node_duplication_hook): Also duplicate the param_calls
10351         linked list.
10352         (ipa_print_node_param_flags): New function.
10353         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
10354         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
10355         * ipa-prop.h (struct ipa_param_flags): New field called.
10356         (struct ipa_param_call_note): New structure.
10357         (struct ipa_node_params): New fields param_calls and
10358         uses_analysis_done.
10359         (ipa_is_ith_param_called): New function.
10360         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10361         ipa_analyze_params_uses and dump parameter flags.
10362
10363         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
10364         ipa_propagate_indirect_call_infos if performing indirect inlining,
10365         pass a new parameter new_edges to it.
10366         (add_new_edges_to_heap): New fucntion.
10367         (cgraph_decide_inlining_of_small_functions): New vector
10368         new_indirect_edges for newly found indirect edges , call
10369         ipa_propagate_indirect_call_infos after inlining.
10370         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
10371         inlining if performing indirect inlining.  Call
10372         free_all_ipa_structures_after_iinln when doing so too.
10373         (inline_generate_summary): Do not call
10374         free_all_ipa_structures_after_iinln here.
10375         * ipa-prop.c (update_jump_functions_after_inlining): New function.
10376         (print_edge_addition_message): New function.
10377         (update_call_notes_after_inlining): New function.
10378         (propagate_info_to_inlined_callees): New function.
10379         (ipa_propagate_indirect_call_infos): New function.
10380         * ipa-prop.h: Include cgraph.h
10381         (struct ipa_param_call_note): Fields reordered, new field processed.
10382         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
10383         flag indirect_call.
10384         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
10385         rediscovered call statements.
10386         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
10387         (dump_cgraph_node): Dump also the indirect_call flag.
10388         (cgraph_clone_edge): Copy also the indirect_call flag.
10389         * tree-inline.c (copy_bb): Do not check for fndecls from call
10390         expressions, check for edge availability when moving clones.
10391         (get_indirect_callee_fndecl): New function.
10392         (expand_call_inline): If callee declaration is not apprent from
10393         the statement, try calling get_indirect_callee_fndecl.  Do not
10394         issue warnings or call sorry when not inlinings an indirect edge.
10395         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
10396
10397         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
10398         bit more frandly to matching.
10399         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
10400         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
10401         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
10402
10403 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10404
10405         PR 36907
10406         * opth-gen.awk: Suppress function specific features when building
10407         target libraries.
10408         * optc-gen.awk: Ditto.
10409
10410 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10411
10412         PR 35058
10413         * diagnostic.c (pedwarn): Add opt parameter.
10414         (pedwarn0): New.
10415         * c-tree.h (pedwarn_init): Add opt parameter.
10416         (pedwarn_c90): Likewise.
10417         (pedwarn_c99): Likewise.
10418         * c-errors.c (pedwarn_c99): Likewise.
10419         (pedwarn_c90): Likewise.
10420         * toplev.h (pedwarn): Update declaration.
10421         (pedwarn0): Declare.
10422         * c-lex.c: All calls to pedwarn changed.
10423         * builtins.c: All calls to pedwarn changed.
10424         * toplev.c: All calls to pedwarn changed.
10425         * c-decl.c: All calls to pedwarn changed.
10426         * c-typeck.c: All calls to pedwarn changed.
10427         * c-common.c: All calls to pedwarn changed.
10428         * c-parser.c: All calls to pedwarn changed.
10429
10430 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10431             Karthik Kumar  <karthikkumar@gmail.com>
10432
10433         * attribs.c (file scope): Include c-common.h.
10434         (decl_attributes): Add support for #pragma GCC optimize and
10435         #pragma GCC option.
10436
10437         * targhooks.c (default_can_inline_p): New function that is the
10438         default for the TARGET_CAN_INLINE_P target hook.
10439
10440         * targhooks.h (default_can_inline_p): Add declaration.
10441
10442         * tree.c (cl_optimization_node): New static tree for building
10443         OPTIMIZATION_NODE tree.
10444         (cl_target_option_node): New static tree for building
10445         TARGET_OPTION_NODE tree.
10446         (cl_option_hash_table): New hash table for hashing
10447         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10448         (cl_option_hash_hash): New function to provide the hash value for
10449         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10450         (cl_option_hash_eq): New function to provide an equality test for
10451         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10452         (tree_code_size): Add support for OPTIMIZATION_NODE and
10453         TARGET_OPTION_NODE trees.
10454         (tree_code_structure): Add support for OPTIMIZATION_NODE and
10455         TARGET_OPTION_NODE trees.
10456         (build_optimization_node): Build a tree that has all of the
10457         current optimization options.
10458         (build_target_option_node): Build a tree that has the target
10459         options that might be changed on a per function basis.
10460
10461         * tree.h (file scope): Include options.h.
10462         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
10463         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
10464         (TREE_OPTIMIZATION): Ditto.
10465         (TREE_TARGET_SPECIFIC): Ditto.
10466         (struct tree_function_decl): Add fields for remembering the
10467         current optimization options and target specific options.
10468         (struct tree_optimization_option): New tree variant that remembers
10469         the optimization options.
10470         (struct tree_target_option): New tree variant that remembers the
10471         target specific flags that might change for compiling a particular
10472         function.
10473         (union tree_node): Include tree_optimization_option and
10474         tree_target_option fields.
10475         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
10476         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
10477         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
10478         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
10479         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
10480         optimization and target options.
10481         (optimization_default_node): New macro to refer to global_trees
10482         field.
10483         (optimization_current_node): Ditto.
10484         (optimization_cold_node): Ditto.
10485         (optimization_hot_node): Ditto.
10486         (target_option_default_node): Ditto.
10487         (target_option_current_node): Ditto.
10488         (current_option_pragma): Ditto.
10489         (current_optimize_pragma): Ditto.
10490
10491         * target.h (struct gcc_target): Add valid_option_attribute_p,
10492         target_option_save, target_option_restore, target_option_print,
10493         target_option_pragma_parse, and can_inline_p hooks.
10494
10495         * toplev.h (parse_optimize_options): Add declaration.
10496         (fast_math_flags_struct_set_p): Ditto.
10497
10498         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
10499         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
10500         optimize is used.
10501
10502         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
10503         tree_can_inline_p hook to see if one function can inline another.
10504         (cgraph_decide_inlining): Ditto.
10505         (cgraph_decide_inlining_incrementally): Ditto.
10506
10507         * opts.c (decode_options): Add support for running multiple times
10508         to allow functions with different target or optimization options
10509         than was specified on the command line.
10510         (fast_math_flags_struct_set_p): New function that is similar to
10511         fast_math_flags_set_p, except it uses the values in the
10512         cl_optimization structure instead of global variables.
10513
10514         * optc-gen.awk: Add support for TargetSave to allow a back end to
10515         declare new fields that need to be saved when using function
10516         specific options.  Include flags.h and target.h in the options.c
10517         source.  Add support for Save to indicate which options can be set
10518         for individual functions.  Generate cl_optimize_save,
10519         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
10520         cl_target_option_restore, cl_target_option_print functions to
10521         allow functions to use different optimization or target options.
10522
10523         * opt-functions.awk (var_type_struct): Return the type used for
10524         storing the field in a structure.
10525
10526         * opth-gen.awk: Add support for TargetSave to allow a back end to
10527         declare new fields that need to be saved when using function
10528         specific options.  Add support for Save to indicate which options
10529         can be set for individual functions.  Only generate one extern for
10530         Mask fields.  Generate cl_optimization and cl_target_option
10531         structures to remember optimization and target options.
10532
10533         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
10534         collecting new tree nodes.
10535         (TS_TARGET_OPTION): Ditto.
10536
10537         * c-decl.c (merge_decls): Merge function specific target and
10538         optimization options.
10539
10540         * function.c (invoke_set_current_function_hook): If the function
10541         uses different optimization options, change the global variables
10542         to reflect this.
10543
10544         * coretypes.h (struct cl_optimization): Add forward reference.
10545         (struct cl_target_option): Ditto.
10546
10547         * c-pragma.c (option_stack): New static vector to remember the
10548         current #pragma GCC option stack.
10549         (handle_pragma_option): New function to support #pragma GCC option
10550         to change target options.
10551         (optimize_stack): New static vector to remember the current
10552         #pragma GCC optimize stack.
10553         (handle_pragma_optimize): New function to support #pragma GCC
10554         optimize to change optimization options.
10555         (init_pragma): Add support for #pragma GCC optimize and #pragma
10556         GCC option.
10557
10558         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
10559         optimization options.
10560         (TARGET_OPTION_NODE): New tree code for remembering certain target
10561         options.
10562
10563         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
10564         TARGET_OPTION_NODE trees.
10565
10566         * common.opt (-O): Add Optimization flag.
10567         (-Os): Ditto.
10568         (-fmath-errno): Ditto.
10569         (-falign-functions): Add UInteger flag to make sure flag gets full
10570         int in cl_optimization structure.
10571         (-falign-jumps): Ditto.
10572         (-falign-labels): Ditto.
10573         (-falign-loops): Ditto.
10574         (-fsched-stalled-insns): Ditto.
10575         (-fsched-stalled-insns-dep): Ditto.
10576
10577         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
10578         definition.
10579         (TARGET_OPTION_SAVE): Ditto.
10580         (TARGET_OPTION_RESTORE): Ditto.
10581         (TARGET_OPTION_PRINT): Ditto.
10582         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
10583         (TARGET_CAN_INLINE_P): Ditto.
10584         (TARGET_INITIALIZER): Add new hooks.
10585
10586         * tree-inline.c (tree_can_inline_p): New function to determine
10587         whether one function can inline another.  Check if the functions
10588         use compatible optimization options, and also call the backend
10589         can_inline_p hook.
10590
10591         * tree-inline.h (tree_can_inline_p): Add declaration.
10592
10593         * c-common.c (c_common_attribute): Add support for option and
10594         optimize attributes.
10595         (handle_option_attribute): Add support for the option attribute to
10596         allow the user to specify different target options for compiling a
10597         specific function.
10598         (handle_optimize_attribute): Add support for the optimize
10599         attribute to allow the user to specify different optimization
10600         options for compiling a specific function.
10601         (handle_hot_attribute): Turn on -O3 optimization for this one
10602         function if it isn't the default optimization level.
10603         (handle_cold_attribute): Turn on -Os optimization for this one
10604         function if it insn't the default optimization.
10605         (const_char_p): New const char * typedef.
10606         (optimize_args): New static vector to remember the optimization
10607         arguments.
10608         (parse_optimize_options): New function to set up the optimization
10609         arguments from either the optimize attribute or #pragma GCC optimize.
10610
10611         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
10612         (builtin_define_std): Ditto.
10613
10614         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
10615         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
10616         (x86_64-*-*): Ditto.
10617
10618         * Makefile.in (TREE_H): Add options.h.
10619         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
10620
10621         * doc/extend.texi (option attribute): Document new attribute.
10622         (optimize attribute): Ditto.
10623         (hot attribute): Document hot attribute sets -O3.
10624         (cold attribute): Document cold attribute sets -Os.
10625         (#pragma GCC option): Document new pragma.
10626         (#pragma GCC optimize): Ditto.
10627
10628         * doc/options.texi (TargetSave): Document TargetSave syntax.
10629         (UInteger): Document UInteger must be used for certain flags.
10630         (Save): Document Save option to create target specific options
10631         that can be saved/restored on a function specific context.
10632
10633         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
10634         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
10635
10636         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
10637         (TARGET_OPTION_SAVE): Ditto.
10638         (TARGET_OPTION_RESTORE): Ditto.
10639         (TARGET_OPTION_PRINT): Ditto.
10640         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
10641         (TARGET_CAN_INLINE_P): Ditto.
10642
10643         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
10644         -mfpmath=sse,387.
10645         (-mfpmath=both): Ditto.
10646
10647 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10648             Karthik Kumar  <karthikkumar@gmail.com>
10649
10650         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
10651         (TARGET_POPCNT): Ditto.
10652         (TARGET_SAHF): Ditto.
10653         (TARGET_AES): Ditto.
10654         (TARGET_PCLMUL): Ditto.
10655         (TARGET_CMPXCHG16B): Ditto.
10656         (TARGET_RECIP): Move switch into target_flags.
10657         (TARGET_FUSED_MADD): Ditto.
10658         (ix86_arch_features): Make an unsigned char type.
10659         (ix86_tune_features): Ditto.
10660         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
10661         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
10662         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
10663
10664         * config/i386/i386.opt (arch): New TargetSave field to define
10665         fields that need to be saved for function specific option support.
10666         (tune): Ditto.
10667         (fpmath): Ditto.
10668         (branch_cost): Ditto.
10669         (ix86_isa_flags_explicit): Ditto.
10670         (tune_defaulted): Ditto.
10671         (arch_specified): Ditto.
10672         (-m128-long-double): Add Save flag to save option for target
10673         specific option support.
10674         (-m80387): Ditto.
10675         (-maccumulate-outgoing-args): Ditto.
10676         (-malign-double): Ditto.
10677         (-malign-stringops): Ditto.
10678         (-mfancy-math-387): Ditto.
10679         (-mhard-float): Ditto.
10680         (-mieee-fp): Ditto.
10681         (-minline-all-stringops): Ditto.
10682         (-minline-stringops-dynamically): Ditto.
10683         (-mms-bitfields): Ditto.
10684         (-mno-align-stringops): Ditto.
10685         (-mno-fancy-math-387): Ditto.
10686         (-mno-push-args): Ditto.
10687         (-mno-red-zone): Ditto.
10688         (-mpush-args): Ditto.
10689         (-mred-zone): Ditto.
10690         (-mrtd): Ditto.
10691         (-msseregparm): Ditto.
10692         (-mstack-arg-probe): Ditto.
10693         (-m32): Ditto.
10694         (-m64): Ditto.
10695         (-mmmx): Ditto.
10696         (-m3dnow): Ditto.
10697         (-m3dnowa): Ditto.
10698         (-msse): Ditto.
10699         (-msse2): Ditto.
10700         (-msse3): Ditto.
10701         (-msse4.1): Ditto.
10702         (-msse4.2): Ditto.
10703         (-msse4): Ditto.
10704         (-mno-sse4): Ditto.
10705         (-msse4a): Ditto.
10706         (-msse5): Ditto.
10707         (-mrecip): Move flag into target_flags.
10708         (-mcld): Ditto.
10709         (-mno-fused-madd): Ditto.
10710         (-mfused-madd): Ditto.
10711         (-mabm): Move flag into ix86_isa_flags.
10712         (-mcx16): Ditto.
10713         (-mpopcnt): Ditto.
10714         (-msahf): Ditto.
10715         (-maes): Ditto.
10716         (-mpclmul): Ditto.
10717
10718         * config/i386/i386-c.c: New file for #pragma support.
10719         (ix86_target_macros_internal): New function to #define or #undef
10720         target macros based when the user uses the #pragma GCC option to
10721         change target options.
10722         (ix86_pragma_option_parse): New function to add #pragma GCC option
10723         support.
10724         (ix86_target_macros): Move defining the target macros here from
10725         TARGET_CPU_CPP_BUILTINS in i386.h.
10726         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
10727         defined, initialize any subtarget #pragmas.
10728
10729         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
10730         REGISTER_TARGET_PRAGMAS.
10731
10732         * config/i386/t-i386: New file for x86 dependencies.
10733         (i386.o): Make dependencies mirror the include files used.
10734         (i386-c.o): New file, add dependencies.
10735
10736         * config/i386/i386-protos.h (override_options): Add bool argument.
10737         (ix86_valid_option_attribute_tree): Add declaration.
10738         (ix86_target_macros): Ditto.
10739         (ix86_register_macros): Ditto.
10740
10741         * config/i386/i386.c (ix86_tune_features): Move initialization of
10742         the target masks to initial_ix86_tune_features to allow functions
10743         to have different target options.  Make type unsigned char,
10744         instead of unsigned int.
10745         (initial_ix86_tune_features): New static vector to hold processor
10746         masks for the tune variables.
10747         (ix86_arch_features): Move initialization of the target masks to
10748         initial_ix86_arch_features to allow functions to have different
10749         target options.  Make type unsigned char, instead of unsigned int.
10750         (initial_ix86_arch_features): New static vector to hold processor
10751         masks for the arch variables.
10752         (enum ix86_function_specific_strings): New enum to describe the
10753         string options used for attribute((option(...))).
10754         (ix86_target_string): New function to return a string that
10755         describes the target options.
10756         (ix86_debug_options): New function to print the current options in
10757         the debugger.
10758         (ix86_function_specific_save): New function hook to save the
10759         function specific global variables in the cl_target_option structure.
10760         (ix86_function_specific_restore): New function hook to restore the
10761         function specific variables from the cl_target_option structure to
10762         the global variables.
10763         (ix86_function_specific_print): New function hook to print the
10764         target specific options in the cl_target_option structure.
10765         (ix86_valid_option_attribute_p): New function hook to validate
10766         attribute((option(...))) arguments.
10767         (ix86_valid_option_attribute_tree): New function that is common
10768         code between attribute((option(...))) and #pragma GCC option
10769         support that parses the options and returns a tree holding the options.
10770         (ix86_valid_option_attribute_inner_p): New helper function for
10771         ix86_valid_option_attribute_tree.
10772         (ix86_can_inline_p): New function hook to decide if one function
10773         can inline another on a target specific basis.
10774         (ix86_set_current_function); New function hook to switch target
10775         options if the user used attribute((option(...))) or #pragma GCC
10776         option.
10777         (ix86_tune_defaulted): Move to static file scope from
10778         override_options.
10779         (ix86_arch_specified): Ditto.
10780         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
10781         ix86_isa_flags.
10782         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
10783         (OPTION_MASK_ISA_ABM_SET): Ditto.
10784         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
10785         (OPTION_MASK_ISA_CX16_SET): Ditto.
10786         (OPTION_MASK_ISA_SAHF_SET): Ditto.
10787         (OPTION_MASK_ISA_AES_UNSET): Ditto.
10788         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
10789         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
10790         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
10791         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
10792         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
10793         (struct ptt): Move to static file scope from override_options.
10794         (processor_target_table): Ditto.
10795         (cpu_names): Ditto.
10796         (ix86_handle_option): Add support for options that are now isa options.
10797         (override_options): Add support for declaring functions that
10798         support different target options than were specified on the
10799         command line.  Move struct ptt, processor_target_table, cpu_names,
10800         ix86_tune_defaulted, ix86_arch_specified to static file scope.
10801         Add bool argument.  Fix up error messages so the appropriate error
10802         is given for either command line or attribute.
10803         (ix86_previous_fndecl): New static to remember previous function
10804         declaration to see if we need to change target options.
10805         (ix86_builtins_isa): New array to record the ISA of each builtin
10806         function.
10807         (def_builtin): Always create the builtin function, even if the
10808         current ISA doesn't support it.
10809         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
10810         tests for those builtins.
10811         (ix86_init_builtins): Remove TARGET_MMX test for calling
10812         ix86_init_mmx_sse_builtins.
10813         (ix86_expand_builtin): If the current ISA doesn't support a given
10814         builtin, signal an error.
10815         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
10816         (TARGET_SET_CURRENT_FUNCTION): Ditto.
10817         (TARGET_OPTION_SAVE): Ditto.
10818         (TARGET_OPTION_RESTORE): Ditto.
10819         (TARGET_OPTION_PRINT): Ditto.
10820         (TARGET_CAN_INLINE_P): Ditto.
10821
10822 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
10823
10824         * c-typeck.c (build_external_ref): Don't call assemble_external.
10825         * final.c (output_operand): Call assemble_external.
10826
10827 2008-07-21  DJ Delorie  <dj@redhat.com>
10828
10829         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
10830         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
10831
10832 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10833
10834         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
10835         original insn and splitter contents into ...
10836         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
10837         flag_unsafe_math_optimizations.  Add dummy scratch register.
10838         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
10839         !flag_unsafe_math_optimizations.  Returns number with next
10840         highest magnitude if this is still less or equal to the true
10841         quotient in magnitude.
10842
10843 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
10844
10845         * Makefile.in: Replace toplev.h with TOPLEV_H.
10846         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
10847         * c-lex.c (fe_file_change): Don't set in_system_header.
10848         * c-parser.c (c_token): Remove in_system_header.
10849         (c_lex_one_token): Don't set in_system_header.
10850         (c_parser_set_source_position_from_token): Don't set in_system_header.
10851         * diagnostic.c (diagnostic_report_diagnostic): Use location from
10852         diagnostic_info.
10853         (warning_at): New.
10854         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
10855         * flags.h (in_system_header): Remove.
10856         * function.c (saved_in_system_header): Remove.
10857         (push_cfun): Don't set in_system_header.
10858         (pop_cfun): Don't set in_system_header.
10859         (push_struct_function): Don't set in_system_header.
10860         * input.h (expanded_location): Add sysp.
10861         (in_system_header_at): New.
10862         (in_system_header): New.
10863         * toplev.c (in_system_header): Remove.
10864         * toplev.h: Include input.h
10865         (warning_at): New.
10866         * tree-cfg.c (execute_warn_function_return): Call warning_at.
10867         * tree-ssa.c (warn_uninit): Call warning_at.
10868         (warn_uninitialized_var): Update calls to warn_uninit.
10869         (warn_uninitialized_phi): Update calls to warn_uninit.
10870         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
10871         (expand_location): Initialize xloc.sysp.
10872         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
10873         (tree_decl_with_vis): Remove in_system_header_flag.
10874
10875 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
10876
10877         PR target/36822
10878         * recog.c (asm_operand_ok): Change the order of the extra
10879         memory constraint checks.
10880
10881 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10882
10883         PR tree-opt/36879
10884         * tree-switch-conversion.c (build_one_array): Call
10885         varpool_mark_needed_node and varpool_finalize_decl
10886         instead of assemble_variable.
10887
10888 2008-07-19  Jan Hubicka  <jh@suse.cz>
10889
10890         * cgraph.c (cgraph_add_new_function): Do early local passes.
10891         * tree-nrv.c (gate_pass_return_slot): New gate.
10892         (pass_nrv): Add the gate.
10893         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
10894         functions.
10895         (coalesce_ssa_name): Coalesce SSA names.
10896         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
10897         not optimizing so unused user vars remains visible.
10898         * common.opt (flag_tree_ter): Always enable by default.
10899         * tree-ssa-ter.c: Include flags.h
10900         (is_replaceable_p): Check that locations match; when aliasing
10901         is missing be conservative about loads.
10902         * tree-optimize.c (gate_init_datastructures): Remove.
10903         (pass_init_datastructures): New.
10904         * passes.c: Reorder passes so we always go into SSA.
10905
10906 2008-07-19  Jan Hubicka  <jh@suse.cz>
10907
10908         * doc/extend.texi (flatten attribute): Remove note about
10909         unit-at-a-time.
10910         * doc/invoke.texi (--combine): Likewise.
10911         (-finline-functions-called-once): Update levels when enabled.
10912         (-funit-at-a-time): Document new behaviour.
10913         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
10914         -fno-section-anchors when disabled explicitly.
10915         (inline params): They are not ignored now.
10916         (precompiled headers): Remove unit-at-a-time as being incompatible.
10917         * opts.c (decode_options): Handle unit-at-a-time as alias;
10918         imply -fno-section-anchors when toplevel reorder is disabled
10919         explicitly.
10920         * common.opt (ftoplevel-reorder): Set default value to 2.
10921         (funit-at-a-time): Set default value to 1.
10922         * config/rs6000/rs6000.c (optimization_options): Set section anchors
10923         to 2.
10924
10925 2008-07-19  Jan Hubicka  <jh@suse.cz>
10926
10927         * builtins.c (expand_builtin_int_roundingfn,
10928         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
10929         it is not useful.
10930
10931 2008-07-19  Richard Guenther  <rguenther@suse.de>
10932
10933         PR bootstrap/36864
10934         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
10935         * tree-ssa-sccvn.c (get_constant_value_id): New function.
10936         * tree-ssa-pre.c (get_expr_value_id): For newly created
10937         constant value-ids make sure to add the expression to its
10938         expression-set.
10939
10940 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
10941
10942         PR middle-end/36877
10943         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
10944         return value of the builtin is ignored.
10945
10946 2008-07-19  Olivier Hainque  <hainque@adacore.com>
10947
10948         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
10949         bits, a C conformant malloc implementation has to provide.
10950         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
10951
10952 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
10953
10954         PR target/36780
10955         PR target/36827
10956         * reload.c (find_reloads_subreg_address): Only reload address if
10957         reloaded == 0, not for reloaded != 1.
10958
10959         Revert:
10960         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
10961         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
10962         (m32c_legitimate_address_p): Handle "++rii" addresses created by
10963         m32c_legitimize_reload_address.
10964
10965         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10966         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
10967         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
10968
10969 2008-07-19  Olivier Hainque  <hainque@adacore.com>
10970
10971         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
10972         argument, saying whether nested array are to be collapsed
10973         into a single array type DIE with multiple subscripts.
10974         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
10975         issues, centralize the nested array types collapsing control and
10976         disable the transformation for Ada.
10977
10978 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
10979
10980         PR target/36786
10981         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
10982         x86_64_shift_adj.
10983         (x86_64_shift_adj_2): New expander.
10984         (x86_64_shift_adj_3): Ditto.
10985         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
10986         to split TImode operands.
10987         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
10988         (ix86_split_lshr): Ditto.
10989
10990 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
10991
10992         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
10993         and __CHAR32_TYPE__.
10994         * c-typeck.c (digest_init): Support char16_t and char32_t.
10995         (set_nonincremental_init_from_string): Idem.
10996
10997 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
10998
10999         PR middle-end/36859
11000         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
11001         PREFERRED_STACK_BOUNDARY.
11002         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11003
11004 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11005
11006         PR middle-end/36858
11007         * function.c (locate_and_pad_parm): Cap boundary earlier.
11008
11009 2008-07-17  Julian Brown  <julian@codesourcery.com>
11010
11011         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
11012         no-op for targets which don't use DLLs.
11013
11014 2008-07-17  Martin Jambor  <mjambor@suse.cz>
11015
11016         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
11017         that nodes are relevant by examining the node->analyzed flag.
11018         (ipcp_init_stage): Check which nodes are relevant, assert that the
11019         relevant ones are also required.
11020         (ipcp_propagate_stage): Check on the side arrays are properly
11021         allocated.
11022         (ipcp_print_all_jump_functions): Make sure not to touch any node
11023         that is not analyzed or an edge that does not have a corresponding
11024         entry in the on-the-side vectors.
11025         (ipcp_function_scale_print): Likewise.
11026         (ipcp_update_callgraph): Check that the node is relevant.
11027         (ipcp_insert_stage): Check that the node is relevant.  Check there is
11028         an info for every node and edge.
11029         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
11030         (ipa_print_all_tree_maps): Likewise and a new variable info.
11031         (ipa_print_all_params_modified): Likewise.
11032         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
11033
11034 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
11035
11036         PR target/25343
11037         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
11038
11039 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
11040
11041         PR rtl-optimization/36753
11042         * fwprop.c (use_killed_between): Don't shortcut
11043         single-definition global registers.
11044
11045 2008-07-16  Jan Hubicka  <jh@suse.cz>
11046
11047         * cgraph.h (varpool_empty_needed_queue): Declare.
11048         * cgraphunit.c (output_in_order): Mark all variables as needed;
11049         empty the queue.
11050         * varpool.c (varpool_assemble_node): Update debug queue.
11051         (varpool_assemble_pending_decls): Don't do it here.
11052         (varpool_empty_needed_queue):  New function.
11053
11054 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11055
11056         * recog.c (peephole2_optimize): Fix formatting.
11057
11058 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11059
11060         * c-pch.c (get_ident): Avoid C++ keywords.
11061         * combine-stack-adj.c (single_set_for_csa): Likewise.
11062         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
11063         output_asm_insn): Likewise.
11064         * reload.c (push_secondary_reload, find_reusable_reload,
11065         push_reload, combine_reloads, find_reloads,
11066         debug_reload_to_stream): Likewise.
11067         * reload.h (struct reload): Likewise.
11068         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
11069         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
11070         emit_output_reload_insns): Likewise.
11071         * targhooks.c (default_secondary_reload): Likewise.
11072         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
11073
11074 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11075
11076         * recog.c (validate_change_1, validate_change,
11077         validate_unshare_change, validate_replace_rtx_1, struct
11078         funny_match, constrain_operands, peephole2_optimize): Avoid C++
11079         keywords.
11080         * reload.c (push_secondary_reload, secondary_reload_class,
11081         scratch_reload_class, find_valid_class, find_reusable_reload,
11082         push_reload, find_dummy_reload, find_reloads_address_1,
11083         find_reloads_address_part, find_equiv_reg): Likewise.
11084         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
11085         choose_reload_regs): Likewise.
11086         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
11087         Likewise.
11088         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
11089         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
11090         * sched-rgn.c (concat_INSN_LIST): Likewise.
11091         * stor-layout.c (mode_for_size, mode_for_size_tree,
11092         smallest_mode_for_size): Likewise.
11093
11094 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11095
11096         * cfg.c (dump_reg_info): Avoid C++ keywords.
11097         * dwarf2asm.c (dw2_force_const_mem,
11098         dw2_asm_output_encoded_addr_rtx): Likewise.
11099         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
11100         * expmed.c (expand_shift): Likewise.
11101         * global.c (find_reg): Likewise.
11102         * graph.c (draw_edge): Likewise.
11103         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
11104         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
11105         widen_clz, widen_bswap, expand_parity, expand_unop,
11106         emit_cmp_and_jump_insn_1): Likewise.
11107         * postreload.c (reload_cse_simplify_operands): Likewise.
11108         * ra.h (add_neighbor): Likewise.
11109         * reg-stack.c (remove_regno_note, change_stack): Likewise.
11110         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
11111         record_reg_classes, copy_cost, record_address_regs,
11112         invalid_mode_change_p): Likewise.
11113         * regrename.c (regrename_optimize, scan_rtx_reg,
11114         dump_def_use_chain, find_oldest_value_reg,
11115         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
11116
11117 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
11118
11119         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
11120         MASK_POWERPC64 for power4 in previous commit.
11121
11122 2008-07-16  Olivier Hainque  <hainque@adacore.com>
11123
11124         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
11125         instead of bare conversion to cast const-ness away.
11126
11127 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
11128
11129         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
11130         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
11131         * config/xtensa/xtensa.c (xtensa_function_value): New function.
11132         (TARGET_FUNCTION_VALUE): Define.
11133
11134 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
11135
11136         * config/rs6000/rs6000.c (processor_target_table): Add
11137         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
11138
11139 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
11140
11141         PR target/36827
11142         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
11143         (m32c_legitimate_address_p): Handle "++rii" addresses created by
11144         m32c_legitimize_reload_address.
11145
11146 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
11147
11148         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
11149         DECL_IN_SYSTEM_HEADER in sync.
11150
11151 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
11152
11153         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
11154         * tree-ssa-pre.c (pre_expr_eq): Ditto
11155         (get_constant_for_value_id): Take a type as an argument.
11156         (fully_constant_expression): Pass in type.
11157         (find_or_generate_expression): Short circuit constant case.
11158         (create_expression_by_pieces): Remove special casing of
11159         pointer_plus.
11160         (do_regular_insertion): Short circuit constant case.
11161         (do_partial_partial_insertion): Ditto.
11162
11163 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11164
11165         PR target/36782
11166         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
11167
11168 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
11169
11170         * config/xtensa/libgcc-xtensa.ver: New file.
11171         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
11172
11173 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11174
11175         * df-problems.c (df_set_note): Avoid C++ keywords.
11176         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
11177         * dse.c (record_store, remove_useless_values): Likewise.
11178         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
11179         gen_reg_rtx_offset, operand_subword, change_address_1,
11180         change_address, adjust_address_1, offset_address,
11181         widen_memory_access, emit_copy_of_insn_after): Likewise.
11182         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
11183         * fwprop.c (should_replace_address, propagate_rtx_1,
11184         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
11185         Likewise.
11186         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
11187         gcse_emit_move_after, update_ld_motion_stores): Likewise.
11188         * lcm.c (compute_insert_delete, pre_edge_lcm,
11189         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
11190         * lower-subreg.c (resolve_reg_notes): Likewise.
11191         * mode-switching.c (optimize_mode_switching): Likewise.
11192
11193 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11194
11195         * bt-load.c (add_btr_def, migrate_btr_def,
11196         branch_target_load_optimize): Avoid C++ keywords.
11197         * caller-save.c (insert_restore, insert_save, insert_one_insn):
11198         Likewise.
11199         * combine.c (subst, simplify_set, make_extraction,
11200         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
11201         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
11202         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
11203
11204 2008-07-15  Richard Guenther  <rguenther@suse.de>
11205
11206         PR middle-end/36369
11207         * c-common.c (strict_aliasing_warning): Do not warn for
11208         TYPE_REF_CAN_ALIAS_ALL pointers.
11209         (c_common_get_alias_set): may_alias types are not special.
11210         * tree.c (build_pointer_type_for_mode): Look up the may_alias
11211         attribute and set can_ref_all accordingly.
11212         (build_reference_type_for_mode): Likewise.
11213         * doc/extend.texi (may_alias): Clarify.
11214
11215 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11216
11217         PR target/36780
11218         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
11219         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
11220
11221 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11222
11223         PR target/31568
11224         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
11225         gcc_assert, instead call output_operand_lossage.
11226
11227 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
11228
11229         * builtins.c (std_canonical_va_list): Treat structure based
11230         va_list types.
11231
11232 2008-07-15  Ben Elliston  <bje@au.ibm.com>
11233
11234         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
11235
11236 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
11237
11238         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
11239         is set.
11240
11241 2008-07-14  Jan Hubicka  <jh@suse.cz>
11242
11243         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
11244         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
11245         fix predicates and constraints.
11246         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
11247         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
11248
11249 2008-07-14  Doug Kwan  <dougkwan@google.com>
11250
11251         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
11252         additional option file arm/eabi.opt.
11253         * config/arm/eabi.h (File): New configuration file for EABI targets.
11254         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
11255         SUBSUBTARGET_EXTRA_SPECS.
11256         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
11257         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
11258         from STARTFILE_SPEC so that it can be referenced in an override.
11259         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
11260         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
11261         can be referenced in an override.
11262         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
11263         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
11264         so that it can be referenced in an override.
11265         (LINK_SPEC): Use BPABI_LINK_SPEC.
11266         * config/arm/eabi.opt (File): New.
11267
11268 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11269
11270         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
11271         (FIXED_VALUE_H): New variable.
11272         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
11273         input.h, fixed-value.h.
11274         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
11275         (BASIC_BLOCK_H): Use $(BITMAP_H).
11276         (FUNCTION_H): Add varray.h.
11277         (IPA_REFERENCE_H): Use $(BITMAP_H).
11278         (CGRAPH_H): Add $(BASIC_BLOCK_H).
11279         (DF_H): Use $(BITMAP_H).
11280         (GGC_H): Add statistics.h.
11281         (INSN_ADDR_H): New.
11282         (INSN_ATTR_H): Use it.
11283         (SYSTEM_H): Add safe-ctype.h, filenames.h.
11284         (INPUT_H): New.
11285         (SYMTAB_H): Add $(OBSTACK_H).
11286         (CPP_INTERNAL_H): New.
11287         (TREE_DUMP_H): Add tree-pass.h.
11288         (TREE_FLOW_H): Use $(BITMAP_H)
11289         (PRETTY_PRINT_H): Use $(INPUT_H).
11290         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
11291         (GSTAB_H): New.
11292         (BITMAP_H): New.
11293         (many object files): Fix lots of header dependencies throughout.
11294
11295 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11296
11297         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
11298         New macros.
11299         (s-gtyp-input): Use them to write tmp-gi.list.
11300         (echo_to_gi.list): Remove.
11301
11302 2008-07-14  Richard Guenther  <rguenther@suse.de>
11303
11304         * tree-ssa-sccvn.c (pre_info): Remove.
11305         (switch_to_PRE_table): Likewise.
11306         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
11307         (set_hashtable_value_ids): Do not create value-ids for the
11308         optimistic tables.
11309         (run_scc_vn): Remove double test.  Remove bogus special-case
11310         in value-number printing.
11311         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
11312         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
11313         SSA_NAME_VALUE.
11314         * tree-flow-inline.h (get_value_handle): Remove.
11315         * tree-flow.h (get_value_handle): Remove.
11316
11317 2008-07-14  Martin Jambor  <mjambor@suse.cz>
11318
11319         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
11320         in which we generate arithmetics is not a subrange.
11321
11322 2008-07-14  Martin Jambor  <mjambor@suse.cz>
11323
11324         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
11325
11326 2008-07-14  Richard Guenther  <rguenther@suse.de>
11327
11328         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
11329
11330 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
11331
11332         PR target/36745
11333         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
11334         reload for symbol refs moved to r0 with -fPIC.
11335         (legitimize_pic_address): Use the target register as temporary
11336         reg if possible.
11337         (emit_symbolic_move): Adjust comment.
11338         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
11339         New expanders.
11340
11341 2008-07-14  Ben Elliston  <bje@au.ibm.com>
11342
11343         * c-common.h (C_CPP_HASHNODE): New macro.
11344         * coretypes.h (struct cpp_token): Forward declare.
11345         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11346         the context-sensitive keyword method.
11347         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
11348         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
11349         expand_bool_pixel): New.
11350         (altivec_categorize_keyword): New function.
11351         (init_vector_keywords): New function.
11352         (rs6000_macro_to_expand): Likewise.
11353         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
11354         compiling an ISO C dialect.
11355
11356 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
11357
11358         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
11359         (create_expression_by_pieces): Fix typo.
11360         (do_regular_insertion): Use debug counter here too.
11361
11362 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
11363
11364         PR target/35492.
11365         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
11366         CONST_OK_FOR_LETTER_P.  All port-local users changed.
11367         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
11368         implement Kp matching power-of-two.
11369         (CONSTRAINT_LEN): Define to match.
11370         * config/cris/cris.md: Replace all use of constraint K with Kc.
11371         ("*btst*): Use Kp for operand 0 of last alternative.
11372
11373 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11374
11375         PR testsuite/36440
11376         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
11377         and quad formats.
11378
11379 2008-07-13  Jan Hubicka  <jh@suse.cz>
11380
11381         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
11382         to be mangled too.
11383
11384 2008-07-13  Richard Guenther  <rguenther@suse.de>
11385
11386         PR middle-end/36811
11387         * langhooks.c (lhd_print_error_function): Deal with recursive
11388         BLOCK trees.
11389
11390 2008-07-12  Jan Hubicka  <jh@suse.cz>
11391
11392         * cgraph.c (assembler_name_hash): New static var.
11393         (hash_node_by_assembler_name, eq_assembler_name): New.
11394         (cgraph_node_for_asm): Use hashtable.
11395         (cgraph_remove_node): Maintain hashtable.
11396         (change_decl_assembler_name): Sanity check that names are not changing
11397         after aliasing was processed.
11398         * cgraph.h (varpoon_node): Add next GGC marker.
11399         * tree.c (decl_assembler_name_equal): Constify.
11400         (decl_assembler_name_hash): New.
11401         * tree.h (decl_assembler_name_equal): Constify.
11402         (decl_assembler_name_hash): Update.
11403
11404 2008-07-12  David Daney  <ddaney@avtrex.com>
11405
11406         * config/mips/driver-native.c (host_detect_local_cpu): Handle
11407         sb1 and r5000 cpus.
11408
11409 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11410
11411         * doc/md.texi: Document the MIPS "v" constraint.
11412         * config/mips/mips.h (reg_class): Revert last change.
11413         (REG_CLASS_NAMES): Likewise.
11414         (REG_CLASS_CONTENTS): Likewise.
11415         * config/mips/mips.c (mips_regno_to_class): Likewise.
11416         * config/mips/constraints.md (v): Likewise, but add documentation.
11417         Add a comment to say that this constraint should not be used in
11418         gcc code.
11419
11420 2008-07-11  DJ Delorie  <dj@redhat.com>
11421
11422         * config/h8300/h8300.md (length): Fix branch offset limit.
11423
11424 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
11425
11426         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
11427         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
11428         (avr_hard_regno_scratch_ok): New function.
11429         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
11430         * config/avr/avr.md (all peepholes that request a scratch register):
11431         Remove avr_peep2_scratch_safe use.
11432
11433 2008-07-11  Tom Tromey  <tromey@redhat.com>
11434             Ian Lance Taylor  <iant@google.com>
11435
11436         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
11437         (struct c_common_resword): Define.
11438         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
11439         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
11440         (c_common_reswords, num_c_common_reswords): Declare.
11441         * c-common.c (c_common_reswords): New global const array.
11442         (num_c_common_reswords): New const int.
11443         * c-parser.c (struct resword, reswords): Don't define.
11444         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
11445         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
11446         than reswords.  If warning about C++ keywords, give them a special
11447         RID code.
11448         (c_lex_one_token): Warn about C++ keywords.  Call
11449         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
11450         (c_parser_external_declaration): Look for RID_xxx rather than
11451         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
11452         (c_parser_statement_after_labels): Likewise.
11453         (c_parser_objc_class_instance_variables): Likewise.
11454         (c_parser_objc_class_declaration): Likewise.
11455         (c_parser_objc_try_catch_statement): Likewise.
11456         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
11457         (declspecs_add_type): Likewise.
11458
11459 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
11460
11461         * ggc-page.c (alloc_page):
11462         Substituting xmalloc, xcalloc with
11463         XNEWVEC and XCNEWVAR macros which add the
11464         needed casts.
11465
11466 2008-07-11  Richard Guenther  <rguenther@suse.de>
11467
11468         PR tree-optimization/36765
11469         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
11470         aliases from HEAP vars to SMTs.
11471
11472 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11473
11474         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
11475         * configure.ac (loose_warn): Move -Wc++-compat from here...
11476         (strict_warn): ...to here.
11477         * configure: Regenerate.
11478
11479 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
11480
11481         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
11482         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
11483         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
11484         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
11485         excluding more specific h8300-*-* and sh-*-* targets.
11486
11487 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
11488
11489         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
11490         (eliminate): Ditto.
11491         (execute_pre): Call loop_optimizer_finalize in early exit.
11492
11493 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
11494
11495         PR middle-end/36790
11496         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
11497         uids in the bitmap, not just VAR_DECL uids.
11498
11499         PR rtl-optimization/36419
11500         * combine-stack-adj.c (adjust_frame_related_expr): New function.
11501         (combine_stack_adjustments_for_block): Call it if needed.  Delete
11502         correct insn.
11503         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
11504         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
11505         prologue sp adjustment.
11506
11507 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
11508
11509         PR other/28322
11510         * opts.c (print_ignored_options): Report postponed diagnostics for
11511         unknown -Wno-* options as warnings, not errors.
11512         (postpone_unknown_option_error): Renamed to...
11513         (postpone_unknown_option_warning): ... this.
11514
11515 2008-07-09  Doug Kwan  <dougkwan@google.com>
11516
11517         Revert:
11518         2008-07-08  Doug Kwan  <dougkwan@google.com>
11519
11520         * config/arm/arm.opt (mandroid): New option.
11521         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
11522         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
11523         (CC1_SPEC): Same.
11524         (CC1PLUS_SPEC): Same.
11525         (LIB_SPEC): Same.
11526         (STARTFILE_SPEC): Same.
11527         (ENDFILE_SPEC): Same.
11528         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
11529         used.
11530
11531 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
11532
11533         PR target/35802
11534         * config/mips/mips.h (reg_class): Remove V1_REG.
11535         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
11536         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
11537         instead of V1_REGS.
11538         (mips_get_tp): New function.
11539         (mips_legitimize_tls_address): Use it.
11540         * config/mips/constraints.md (v): Delete.
11541         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
11542         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
11543         After reload, split into a move and ...
11544         (*tls_get_tp_<mode>_split): ...this new instruction.
11545
11546 2008-07-09  David Daney  <ddaney@avtrex.com>
11547
11548         * config/mips/driver-native.c: Include coretypes.h and tm.h.
11549
11550 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
11551
11552         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
11553         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
11554         Add c argument.
11555         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
11556         htab_delete should be called.  Don't free c.
11557         (lookup_tmp_var): Create temp_htab lazily.
11558         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
11559         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
11560         callers.
11561         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
11562         lower_omp_ordered, lower_omp_critical, lower_omp_for,
11563         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
11564         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
11565         * tree-sra.c (generate_element_init): Likewise.
11566         * tree-mudflap.c (execute_mudflap_function_ops,
11567         execute_mudflap_function_decls): Likewise.
11568         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
11569         * tree-gimple.h (struct gimplify_ctx): New type.
11570         (push_gimplify_context): Adjust prototype.
11571
11572 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
11573
11574         * tree-ssa-pre.c (phi_translate_1): Update placement of
11575         add_to_value calls.
11576
11577 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
11578
11579         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
11580         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
11581         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
11582         * targhooks.c (default_hard_regno_scratch_ok): New function.
11583         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
11584         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
11585         * recog.c:  Include "target.h".
11586         (peep2_find_free_register): Add check for global regs. Add target
11587         specific check.
11588         * Makefile.in (recog.o): Depend on target.h.
11589
11590 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11591
11592         * config/sh/sh.c (sh_canonical_va_list_type): New.
11593         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
11594
11595 2008-07-09  Raksit Ashok <raksit@google.com>
11596
11597         * doc/invoke.texi (Option Summary): Mention new option
11598         -Wdisallowed-function-list=...
11599         (Warning Options): Document -Wdisallowed-function-list=...
11600         * common.opt (Wdisallowed-function-list=): New flag.
11601         * flags.h (warn_disallowed_functions): External definition of new
11602         boolean warning flag.
11603         (warn_if_disallowed_function_p): Declare new function.
11604         * opts.c (warning_disallowed_functions): New static variable.
11605         (warn_disallowed_functions): New boolean warning flag.
11606         (warn_if_disallowed_function_p): New function.
11607         (add_comma_separated_to_vector): Rename
11608         add_instrument_functions_exclude_list to this.
11609         (common_handle_option): Handle new option. Rename calls to
11610         add_instrument_functions_exclude_list into calls to
11611         add_comma_separated_to_vector.
11612         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
11613         based on flag warn_disallowed_functions.
11614
11615 2008-07-09  Christian Bruel  <christian.bruel@st.com>
11616
11617         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
11618          instead of get_attr_length.
11619
11620 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11621
11622         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
11623         keywords.
11624         * genemit.c (gen_insn): Likewise.
11625         * gengtype.c (note_def_vec): Likewise.
11626         * gengtype.h (note_def_vec): Likewise.
11627         * genoutput.c (struct data, output_insn_data, process_template,
11628         gen_expand, gen_split, note_constraint): Likewise.
11629         * genrecog.c (new_decision, add_to_sequence, factor_tests,
11630         make_insn_sequence): Likewise.
11631         * gensupport.c (record_insn_name): Likewise.
11632
11633 2008-07-08  Doug Kwan  <dougkwan@google.com>
11634
11635         * config/arm/arm.opt (mandroid): New option.
11636         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
11637         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
11638         (CC1_SPEC): Same.
11639         (CC1PLUS_SPEC): Same.
11640         (LIB_SPEC): Same.
11641         (STARTFILE_SPEC): Same.
11642         (ENDFILE_SPEC): Same.
11643         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
11644         used.
11645
11646 2008-07-08  Raksit Ashok  <raksit@google.com>
11647
11648         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
11649         (set_storage_via_setmem): Fix expected_align parameter.
11650         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
11651         missing from the list.
11652         * doc/md.texi (movmem): Explicitly state that expected alignment is
11653         to be expressed in bytes.
11654         (setmem): Explicitly state that expected alignment is to be expressed
11655         in bytes.
11656
11657 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
11658
11659         * reload.c (find_reloads_subreg_address): Do not require validity
11660         of address in original mode before reloading address.
11661
11662 2008-07-07  Tianwei Sheng  <tianweis@google.com>
11663
11664         * df-core.c (df_remove_problem): Adjust the access to avoid out of
11665         bounds array access.
11666
11667 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
11668
11669         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
11670
11671 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
11672
11673         Fix PR tree-optimization/23455
11674         Fix PR tree-optimization/35286
11675         Fix PR tree-optimization/35287
11676         * Makefile.in (OBJS-common): Remove tree-vn.o.
11677         (tree-vn.o): Remove.
11678         * dbgcnt.def: Add treepre_insert debug counter.
11679         * gcc/tree-flow.h (add_to_value): Updated for other changes.
11680         (debug_value_expressions): Ditto.
11681         (print_value_expressions): Ditto.
11682         * tree-pretty-print.c (dump_generic_node): Updated for
11683         VALUE_HANDLE removal.
11684         * tree-ssa-dom.c (record_equality): Ditto.
11685         (cprop_operand): Ditto.
11686         (lookup_avail_expr): Ditto.
11687         * tree-ssa-threadedge.c
11688         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
11689         (simplify_control_stmt_condition): Ditto.
11690         * tree.c (tree_code_size): Ditto.
11691         (tree_node_structure): Ditto.
11692         (iterative_hash_expr): Ditto.
11693         * tree.def: Ditto.
11694         * tree.h (VALUE_HANDLE_ID): Ditto.
11695         (VALUE_HANDLE_EXPR_SET): Ditto.
11696         (struct tree_value_handle): Ditto.
11697         (union tree_node): Ditto.
11698         * treestruct.def: Ditto.
11699         * tree-vn.c: Removed.
11700         * tree-ssa-pre.c: Rewritten entirely.
11701         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
11702         (constant_value_ids): Ditto.
11703         (vn_nary_op_t): Moved to header.
11704         (vn_phi_t): Ditto.
11705         (vn_reference_op_t): Ditto
11706         (vn_reference_t): Ditto.
11707         (next_value_id): New variable.
11708         (VN_INFO): Add an assert.
11709         (vn_constant_eq): New function.
11710         (vn_constant_hash): Ditto.
11711         (get_or_alloc_constant_value_id): Ditto.
11712         (value_id_constant_p): Ditto.
11713         (vn_reference_compute_hash): De-staticify.
11714         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
11715         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
11716         (valueize_refs): Update opcode if it changes from ssa name to constant.
11717         (vn_reference_lookup_1): Add new argument.
11718         (vn_reference_lookup):  Ditto.
11719         (vn_reference_lookup_pieces): New function.
11720         (vn_reference_insert): Add return type. Modify to deal with value ids.
11721         (vn_reference_insert_pieces):  New function.
11722         (vn_nary_op_compute_hash): De-staticify.
11723         (vn_nary_op_eq): Ditto.
11724         (vn_nary_op_lookup_pieces): New function.
11725         (vn_nary_op_lookup): Add new argument.
11726         (vn_nary_op_insert_pieces): New function.
11727         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
11728         (vn_phi_insert): Ditto.
11729         (visit_unary_op): Update for callee changes.
11730         (visit_binary_op): Ditto.
11731         (visit_reference_op_load): Ditto.
11732         (visit_reference_op_store): Ditto.
11733         (init_scc_vn): Init next_value_id, constant_to_value_id and
11734         constant_value_ids.
11735         (free_scc_vn): Free them.
11736         (set_hashtable_value_ids): New function.
11737         (run_scc_vn): Use it.
11738         (get_max_value_id): New function.
11739         (get_next_value_id): Ditto.
11740         (expressions_equal_p): Moved from tree-vn.c
11741         (sort_vuses): Ditto.
11742         (sort_vuses_heap): Ditto.
11743         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
11744         above).
11745         * tree.c (iterative_hash_hashval_t): Made non-static
11746         * tree.h (iterative_hash_hashval_t): Declare it.
11747
11748 2008-07-08  Martin Jambor  <mjambor@suse.cz>
11749
11750         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
11751         instead of ipa_create_node_params.
11752         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
11753         ipa_check_create_edge_args, free them with
11754         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
11755
11756         * ipa-prop.c: Include flags.h and tree-inline.h.
11757         (ipa_node_params_vector): New variable.
11758         (ipa_edge_args_vector): New variable.
11759         (edge_removal_hook_holder): New variable.
11760         (node_removal_hook_holder): New variable.
11761         (edge_duplication_hook_holder): New variable.
11762         (node_duplication_hook_holder): New variable.
11763         (ipa_detect_param_modifications): Check for presence of modified flags.
11764         (ipa_compute_jump_functions): Check for presence of jump functions.
11765         (ipa_free_edge_args_substructures): New function.
11766         (ipa_create_node_params): Removed.
11767         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
11768         (ipa_free_node_params_substructures): New function.
11769         (ipa_free_all_node_params): Changed to deallocate the on-the-side
11770         vector.
11771         (ipa_edge_removal_hook): New function.
11772         (ipa_node_removal_hook): New function.
11773         (duplicate_array): New function.
11774         (ipa_edge_duplication_hook): New function.
11775         (ipa_node_duplication_hook): New function.
11776         (ipa_register_cgraph_hooks): New function.
11777         (ipa_unregister_cgraph_hooks): New function.
11778         (free_all_ipa_structures_after_ipa_cp): New function.
11779
11780         * ipa-prop.h: Include vec.h.
11781         (ipa_node_params_t): New typedef with vector types for it.
11782         (ipa_edge_args_t):  New typedef with vector types for it.
11783         (IPA_NODE_REF): Changed to access an on-the-side vector.
11784         (IPA_EDGE_REF): Changed to access an on-the-side vector.
11785         (ipa_check_create_node_params): New function.
11786         (ipa_check_create_edge_args): New function.
11787
11788         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
11789         all users.
11790
11791 2008-07-07  Tom Tromey  <tromey@redhat.com>
11792
11793         * configure, config.in: Rebuilt.
11794         * configure.ac: Don't check for scandir or alphasort.
11795
11796 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
11797
11798         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
11799         types immediately after creating them.
11800
11801 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
11802
11803         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
11804
11805 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
11806
11807         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
11808         dump_constraint_graph.
11809         (dump_constraint_edge): New function.
11810         (dump_constraint_graph): New function.
11811         (debug_constraint_graph): New function.
11812         (dump_constraint): Removed useless comparison.
11813         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
11814         (dump_constraint_graph): Declare.
11815         (debug_constraint_graph): Declare.
11816         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
11817
11818 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
11819
11820         * config/i386/i386.c (is_va_list_char_pointer): New.
11821         (ix86_va_start): Replace compare with ms_va_list_type_node
11822         by is_va_list_char_pointer.
11823         (ix86_gimplify_va_arg): Likewise.
11824
11825 2008-07-07  Martin Jambor  <mjambor@suse.cz>
11826
11827         * cgraph.c (cgraph_edge_max_uid): New variable.
11828         (struct cgraph_edge_hook_list): New type.
11829         (struct cgraph_node_hook_list): New type.
11830         (struct cgraph_2edge_hook_list): New type.
11831         (struct cgraph_2node_hook_list): New type.
11832         (first_cgraph_edge_removal_hook): New variable.
11833         (first_cgraph_node_removal_hook): New variable.
11834         (first_cgraph_edge_duplicated_hook): New variable.
11835         (first_cgraph_node_duplicated_hook): New variable.
11836         (cgraph_add_edge_removal_hook): New function.
11837         (cgraph_remove_edge_removal_hook): New function.
11838         (cgraph_call_edge_removal_hooks):  New function.
11839         (cgraph_add_node_removal_hook):  New function.
11840         (cgraph_remove_node_removal_hook):  New function.
11841         (cgraph_call_node_removal_hooks):  New function.
11842         (cgraph_add_edge_duplication_hook):  New function.
11843         (cgraph_remove_edge_duplication_hook):  New function.
11844         (cgraph_call_edge_duplication_hooks):  New function.
11845         (cgraph_add_node_duplication_hook):  New function.
11846         (cgraph_remove_node_duplication_hook):  New function.
11847         (cgraph_call_node_duplication_hooks):  New function.
11848         (cgraph_create_edge): Assign to edge uid.
11849         (cgraph_remove_edge): Call edge removal hooks.
11850         (cgraph_node_remove_callees): Call edge removal hooks.
11851         (cgraph_node_remove_callers): Call edge removal hooks.
11852         (cgraph_remove_node): Call node removal hooks.
11853         (cgraph_clone_edge): Call edge duplication hooks.
11854         (cgraph_clone_node): Call node duplication hooks.
11855
11856         * cgraph.h (cgraph_edge): New field uid.
11857         (cgraph_edge_hook): New type.
11858         (cgraph_node_hook): New type.
11859         (cgraph_2edge_hook): New type.
11860         (cgraph_2node_hook): New type.
11861
11862 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
11863
11864         * config.in: Regenerate.
11865
11866 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
11867
11868         * gcc.c (print_sysroot): New.
11869         (option_map, display_help, process_command): Handle the
11870         -print-sysroot option.
11871         (main): Print the sysroot if requested.
11872         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
11873
11874 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11875
11876         PR target/34780
11877         * unwind-pe.h (size_of_encoded_value): add attribute unused.
11878
11879 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
11880
11881         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
11882         (assign_parm_setup_block_p): Also check mode of entry_parm.
11883
11884 2008-07-07  Richard Guenther  <rguenther@suse.de>
11885
11886         * tree-ssa-structalias.h (set_used_smts): Remove.
11887         * tree-ssa-structalias.c (used_smts): Likewise.
11888         (set_used_smts): Likewise.
11889         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
11890         call to set_used_smts.
11891
11892 2008-07-07  Richard Guenther  <rguenther@suse.de>
11893
11894         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
11895         (new_var_info): Set it to false.
11896         (solution_set_add): Correctly handle pointers outside a var and
11897         inside a field.
11898         (type_safe): Treat variables with is_full_var properly.
11899         (do_sd_constraint): Likewise.
11900         (do_ds_constraint): Likewise.
11901         (process_constraint): Remove zeroing offset for !use_field_sensitive.
11902         (get_constraint_for_ptr_offset): New function.
11903         (get_constraint_for_component_ref): For addresses at least include
11904         the last field of the variable.  Handle is_full_vars properly.
11905         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
11906         (handle_ptr_arith): Remove.
11907         (find_func_aliases): Simplify assignment handling.
11908         (create_function_info_for): For parameter and result varinfos set
11909         is_full_var flag.
11910         (create_variable_info_for): Set is_full_var flag whenever we
11911         just created a single varinfo for a decl.
11912         (init_alias_vars): Initialize use_field_sensitive from
11913         max-fields-for-field-sensitive parameter.
11914
11915 2008-07-07  Richard Guenther  <rguenther@suse.de>
11916
11917         PR tree-optimization/36713
11918         * tree-flow-inline.h (is_call_used): New function.
11919         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
11920         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
11921         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
11922
11923 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
11924
11925         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
11926
11927 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
11928
11929         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
11930
11931 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
11932             Nathan Sidwell  <nathan@codesourcery.com>
11933
11934         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
11935         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
11936         tmake_file.
11937         * config/m68k/t-linux: New.
11938         * doc/install.texi: Document m68k-*-linux is now multilibbed by
11939         default.
11940
11941 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11942
11943         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
11944         * config/m68k/m68k-devices.def: Remove multilibs that only differ
11945         by MAC/EMAC.
11946
11947 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11948
11949         * gcc.c (execute): Fix -Wc++-compat warning.
11950
11951 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11952
11953         PR target/36720
11954         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
11955         constant for little endian.
11956
11957 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
11958
11959         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
11960         mips_base_mips16 instead of TARGET_MIPS16.
11961         (mips_base_mips16): Declare.
11962         * config/mips/mips.c (mips_base_mips16): Make global.
11963         (was_mips16_p): Remove GTY marker.
11964         (was_mips16_pch_p): New variable.
11965         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
11966         (mips_override_options): Force to non-MIPS16 mode initially.
11967         Do not complain about MIPS16 PIC incompatibilities here.
11968         Only allow -mgpopt if -mexplicit-relocs is in force for
11969         non-MIPS16 code.
11970
11971 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
11972
11973         * configure.ac: Check for caddr_t, define to char * if not defined.
11974         * configure: Regenerate.
11975         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
11976         (mmap_gt_pch_use_address): Likewise.
11977         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
11978
11979 2008-07-06  Richard Guenther  <rguenther@suse.de>
11980
11981         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
11982         (new_var_info): Deal with it.
11983         (solution_set_add): Likewise.
11984         (bitpos_of_field): Make signed, fix.
11985         (struct fieldoff): Remove type and decl fields.  Make size field
11986         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
11987         flags.
11988         (fieldoff_compare): Deal with it.
11989         (push_fields_onto_fieldstack): Remove has_union argument, glob
11990         adjacent non-pointer fields together.
11991         (create_function_info_for): Do not set has_union.
11992         (create_variable_info_for): Simplify.
11993
11994 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
11995
11996         * config.gcc (extra_headers): Add cross-stdarg.h for target
11997         x86_64-*-* and i?86-*-*.
11998         * config/i386/cross-stdarg.h: New.
11999         * builtins.c (std_fn_abi_va_list): New.
12000         (std_canonical_va_list_type): New.
12001         (stabilize_va_list): Replace va_list_type_node use by
12002         mtarget.canonical_va_list_type.
12003         (gimplify_va_arg_expr): Likewise.
12004         (expand_builtin_va_copy): Replace va_list_type_node use by
12005         mtarget.fn_abi_va_list.
12006         * tree-sra.c (is_va_list_type): New helper.
12007         (decl_can_be_decomposed_p): Replace
12008         va_list_type_node use by is_va_list_type.
12009         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
12010         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12011         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
12012         * config/i386/i386-protos.h (ix86_get_valist_type): New.
12013         (ix86_enum_va_list): New.
12014         * config/i386/i386.c (sysv_va_list_type_node): New.
12015         (ms_va_list_type_node): New.
12016         (ix86_function_type_abi): Remove sorry.
12017         (ix86_build_builtin_va_list_abi): New.
12018         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
12019         for 64-bit targets.
12020         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
12021         (ix86_init_builtins_va_builtins_abi): New.
12022         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
12023         for 64-bit targets.
12024         (ix86_handle_abi_attribute): New.
12025         (attribute_spec): Add sysv_abi and ms_abi.
12026         (ix86_fn_abi_va_list): New.
12027         (ix86_canonical_va_list_type): New.
12028         (ix86_enum_va_list): New.
12029         (TARGET_FN_ABI_VA_LIST): New.
12030         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12031         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
12032         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
12033         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12034         (TARGET_ENUM_VA_LIST): New.
12035         * expr.h (std_fn_abi_va_list): New.
12036         (std_canonical_va_list_type): New.
12037         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
12038         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12039         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
12040         TARGET_CANONICAL_VA_LIST_TYPE.
12041         * target.h (struct gcc_target): Add fn_abi_va_list hook
12042         and canonical_va_list_type hook.
12043
12044 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12045
12046         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
12047         integral and pointer types.
12048
12049 2008-07-04  Roger Sayle  <roger@eyesopen.com>
12050
12051         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
12052         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
12053
12054 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12055
12056         PR target/36684
12057         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
12058
12059 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
12060
12061         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
12062         build_gimple_modify_stmt.
12063         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
12064         gimple operand.  Use fold_build* instead of build*.
12065
12066 2008-07-04  Richard Guenther  <rguenther@suse.de>
12067
12068         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
12069         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
12070         properly to compute the reachability set if we do field-sensitive PTA.
12071         * invoke.texi (max-fields-for-field-sensitive): Document default.
12072         * opts.c (decode_options): Set max-fields-for-field-sensitive to
12073         100 for optimize >= 2.
12074
12075 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12076
12077         * ggc-zone.c (lookup_page_table_if_allocated,
12078         set_page_table_entry, zone_find_object_size, alloc_small_page,
12079         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
12080         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
12081         -Wc++-compat and/or -Wcast-qual warnings.
12082
12083 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
12084
12085         PR target/36634
12086         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
12087         pic_offset_table_rtx to be marked as used here.
12088         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
12089         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
12090         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
12091         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
12092         !TARGET_SECURE_PLT.
12093
12094 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12095
12096         * alloc-pool.c (hash_descriptor, eq_descriptor,
12097         alloc_pool_descriptor): Fix -Wc++-compat warnings.
12098         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
12099         Likewise.
12100         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
12101         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
12102         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
12103         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
12104         Likewise.
12105
12106 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
12107
12108         * tree-flow.h (loop_only_exit_p): Declare.
12109         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
12110         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
12111         the number of iterations if it is constant.  Otherwise, if this is the
12112         only possible exit of the loop, use the conservative estimate on the
12113         number of iterations of the entire loop if available.
12114
12115 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
12116
12117         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
12118         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
12119         Add synchronization functions.
12120         * config/sync.c: New file.
12121         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
12122         (LIBGCC_SYNC_CFLAGS): Likewise.
12123
12124 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
12125
12126         PR target/36710
12127         * config/i386/i386.md (mode): Add TF to "mode" attribute.
12128         (*pushtf_sse): New insn pattern.
12129         (pushtf splitters): New splitters.
12130
12131 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
12132
12133         PR middle-end/35736
12134         * predict.c (build_predict_expr): Use void_type_node for the tree
12135         type, instead of NULL_TREE.
12136
12137 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12138
12139         * config/i386/i386.c (contains_aligned_value_p): Return true
12140         for TCmode.
12141         (ix86_data_alignment): Align TCmode to 128bits.
12142         (ix86_local_alignment): Likewise.
12143
12144 2008-07-03  Andrew Haley  <aph@redhat.com>
12145
12146         PR bootstrap/33304
12147         * vec.h (VEC_TA): New.
12148         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
12149         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
12150         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
12151         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
12152         (C_COMMON_FIXED_TYPES): Remove first arg.
12153         (C_COMMON_FIXED_MODE_TYPES): Likewise.
12154         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
12155         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
12156         not to use empty macro arguments.
12157
12158 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
12159
12160         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
12161         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
12162         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
12163         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
12164         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
12165         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
12166         config/ia64/crtn.asm, config/m68hc11/larith.asm,
12167         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
12168         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
12169         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
12170         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
12171         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
12172         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
12173         config/rs6000/e500crtres64gpr.asm,
12174         config/rs6000/e500crtres64gprctr.asm,
12175         config/rs6000/e500crtrest32gpr.asm,
12176         config/rs6000/e500crtrest64gpr.asm,
12177         config/rs6000/e500crtresx32gpr.asm,
12178         config/rs6000/e500crtresx64gpr.asm,
12179         config/rs6000/e500crtsav32gpr.asm,
12180         config/rs6000/e500crtsav64gpr.asm,
12181         config/rs6000/e500crtsav64gprctr.asm,
12182         config/rs6000/e500crtsavg32gpr.asm,
12183         config/rs6000/e500crtsavg64gpr.asm,
12184         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
12185         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
12186         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
12187         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
12188         config/sparc/sol2-cn.asm: Remove .file directives.
12189
12190 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
12191
12192         * resource.c (mark_referenced_resources): Look inside
12193         UNSPEC_VOLATILEs and ASM_INPUTs.
12194
12195 2008-07-02  Ian Lance Taylor  <iant@google.com>
12196
12197         * rtlanal.c (add_reg_note): New function.
12198         * rtl.h (add_reg_note): Declare.
12199         * auto-inc-dec.c (attempt_change): Use add_reg_note.
12200         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
12201         * builtins.c (expand_builtin_longjmp): Likewise.
12202         (expand_builtin_nonlocal_goto): Likewise.
12203         * calls.c (emit_call_1, expand_call): Likewise.
12204         * cfgexpand.c (add_reg_br_prob_note): Likewise.
12205         * cfglayout.c (fixup_reorder_chain): Likewise.
12206         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12207         (commit_one_edge_insertion): Likewise.
12208         * combine.c (move_deaths, distribute_notes): Likewise.
12209         * df-problems.c (df_set_note): Likewise.
12210         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
12211         (set_unique_reg_note): Likewise.
12212         (emit_copy_of_insn_after): Likewise.
12213         * expr.c (expand_expr_real): Likewise.
12214         * gcse.c (add_label_notes): Likewise.
12215         * haifa-sched.c (create_check_block_twin): Likewise.
12216         * jump.c (mark_jump_label_1): Likewise.
12217         * loop-doloop.c (add_test, doloop_modify): Likewise.
12218         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12219         * lower-subreg.c (move_eh_region_note): Likewise.
12220         * optabs.c (emit_libcall_block): Likewise.
12221         * predict.c (predict_insn): Likewise.
12222         (combine_predictions_for_insn): Likewise.
12223         * recog.c (peephole2_optimize): Likewise.
12224         * regmove.c (try_auto_increment): Likewise.
12225         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
12226         * reload.c (find_reloads): Likewise.
12227         * reload1.c (fixup_eh_region_note): Likewise.
12228         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
12229         * reorg.c (delete_prior_computation): Likewise.
12230         (delete_computation, dbr_schedule): Likewise.
12231         * config/pa/pa.c (legitimize_pic_address): Likewise.
12232         * config/sh/sh.c (sh_reorg): Likewise.
12233
12234 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12235
12236         PR target/36669
12237         * config/libgcc-glibc.ver: Add %exclude.
12238         * config/m32r/libgcc-glibc.ver: Likwise.
12239         * config/s390/libgcc-glibc.ver: Likwise.
12240         * config/sh/libgcc-glibc.ver: Likwise.
12241         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
12242
12243         * config/i386/libgcc-glibc.ver: New.
12244
12245         * config/i386/libgcc-x86_64-glibc.ver: Removed.
12246
12247 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12248
12249         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
12250         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
12251         i[34567]86-*-linux*, x86_64-*-linux*.  Add
12252         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
12253         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
12254         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
12255         i[34567]86-*-linux*, x86_64-*-linux*.
12256
12257         * libgcc-std.ver: Add empty GCC_4.4.0.
12258
12259         * mkmap-symver.awk: Support multiple versions per symbol.
12260
12261         * config/i386/i386.c (ix86_init_builtins): Always define
12262         __builtin_fabsq and __builtin_copysignq with fallbacks.
12263         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
12264         and __builtin_copysignq if SSE2 isn't available.
12265
12266         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
12267         (LIBGCC2_TF_CEXT): Likwise.
12268         (TF_SIZE): Likwise.
12269
12270         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
12271
12272         * config/i386/sfp-machine.h: Moved to libgcc.
12273
12274         * config/i386/sfp-machine.h: New.
12275         * config/i386/t-linux: Likwise.
12276
12277         * config/i386/t-darwin: Remove softfp_wrap_start and
12278         softfp_wrap_end.
12279         * config/i386/t-darwin64: Likewise.
12280
12281         * config/i386/t-fprules-softfp64: Renamed to ...
12282         * config/i386/t-fprules-softfp: This.
12283
12284         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
12285         and softfp_wrap_end.
12286
12287 2008-07-02  Jason Merrill  <jason@redhat.com>
12288
12289         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
12290
12291         * tree.c (ctor_to_list): New fn.
12292         * tree.h: Declare it.
12293         (CONSTRUCTOR_ELT): New macro.
12294         (CONSTRUCTOR_NELTS): New macro.
12295
12296 2008-07-02  Richard Guenther  <rguenther@suse.de>
12297
12298         * tree-ssa-structalias.c (struct variable_info): Reorder
12299         to fill padding on 64bit hosts.  Make collapsed_to an int.
12300         (get_varinfo_fc): Deal with that.
12301         (new_var_info): Likewise.
12302         (collapse_rest_of_var): Likewise.
12303
12304 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
12305
12306         * doc/install.texi (--enable-java-home): Document.
12307         (--enable-aot-compile-rpm): Likewise.
12308         (--with-arch-directory): Likewise.
12309         (--with-os-directory): Likewise.
12310         (--with-origin-name): Likewise.
12311         (--with-arch-suffix): Likewise.
12312         (--with-jvm-root-dir): Likewise.
12313         (--with-jvm-jar-dir): Likewise.
12314         (--with-python-dir): Likewise.
12315
12316 2008-07-02  Richard Guenther  <rguenther@suse.de>
12317
12318         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
12319         from decls explicitly.  Merge operand checking from tuples.
12320
12321 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12322
12323         * tree-switch-conversion.c: Included timevar.h which I forgot before.
12324
12325 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12326
12327         * tree-switch-conversion.c: Included timevar.h
12328         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
12329
12330         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
12331
12332 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12333
12334         * tree-switch-conversion.c: Corrected various comments and
12335         whitespace issues
12336         (build_constructors): Fixed minor formatting mistakes.
12337
12338         * invoke.texi (Optimize Options): Corrected the
12339         switch-conversion-max-branch-ratio parameter.
12340
12341 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
12342
12343         * final.c (asm_insn_count): Return zero for an empty asm body.
12344
12345 2008-07-02  Richard Guenther  <rguenther@suse.de>
12346
12347         * bitmap.h (bitmap_set_bit): Return bool.
12348         (bitmap_clear_bit): Likewise.
12349         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
12350         write to the bitmap if it would.
12351         (bitmap_clear_bit): Likewise.
12352         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
12353         bitmap_set_bit return value.
12354         (add_pred_graph_edge): Likewise.
12355         (add_graph_edge): Likewise.
12356         (do_sd_constraint): Likewise.
12357         (do_ds_constraint): Likewise.
12358
12359 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12360
12361         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
12362         Fix -Wc++-compat and/or -Wcast-qual warnings.
12363         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
12364         gen_regparm_prefix): Likewise.
12365         * vmsdbgout.c (write_modbeg, lookup_filename,
12366         vmsdbgout_source_line, vmsdbgout_init): Likewise.
12367
12368 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
12369
12370         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
12371         defaults.h definition apply.
12372
12373 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
12374
12375         * function.c (assign_parm_remove_parallels): New.
12376         (assign_parm_setup_block_p): Do not return true for non-BLKmode
12377         PARALLELs.
12378         (assign_parm_setup_block): Do not handle them.
12379         (assign_parm_setup_reg, assign_parm_setup_stack): Call
12380         assign_parm_remove_parallels.
12381
12382 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
12383
12384         * c-typeck.c (convert_for_assignment): Use
12385         vector_targets_convertible_p.
12386         * c-common.c (vector_targets_convertible_p): New.
12387         * c-common.h (vector_targets_convertible_p): New prototype.
12388         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
12389         opaque_p_V2SI_type_node.
12390
12391 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
12392
12393         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
12394         RFmode constants.
12395
12396 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
12397
12398         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
12399         TFmode constants via two element DImode vector for hosts with
12400         HOST_BITS_PER_WIDE_INT < 64.
12401         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
12402         also for HOST_BITS_PER_WIDE_INT < 64.
12403
12404 2008-07-01  Richard Guenther  <rguenther@suse.de>
12405
12406         PR tree-optimization/36666
12407         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
12408         (get_constraint_exp_from_ssa_var): Split into ...
12409         (get_constraint_exp_for_temp): ... this ...
12410         (get_constraint_for_ssa_var): ... and that.
12411         Return constraint expressions for all touched sub-fields
12412         if the results address is not taken.
12413         (process_constraint): Remove assertion that aggregate
12414         assignments do not happen at this place.
12415         (get_constraint_for_component_ref): Add address_p argument.
12416         Return constraint expressions for all touched sub-fields
12417         if the results address is not taken.
12418         (do_deref): Use get_constraint_exp_for_temp.
12419         (get_constraint_for_1): Rename from ...
12420         (get_constraint_for): ... this.  Add the old function as wrapper.
12421         (do_structure_copy): Use get_constraint_for_1.
12422
12423 2008-07-01  Martin Jambor  <mjambor@suse.cz>
12424
12425         * Makefile.in (tree-switch-conversion.o): Add.
12426         (OBJS-common): Add tree-swtch-conversion.o.
12427         * passes.c (init_optimization_passes): Add pass_convert_switch.
12428         * tree-pass.h: (pass_convert_switch): Add.
12429         * tree-switch-conversion.c: New file.
12430         * gcc.dg/tree-ssa/cswtch.c: New testcase.
12431         * common.opt (ftree-cswtch): New option.
12432         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
12433         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
12434         * opts.c (decode_options): Set flag_tree_switch_conversion when
12435         optimization level is >= 2.
12436         * doc/invoke.texi (Optimize Options): Added description of
12437         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
12438
12439 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12440
12441         * config/darwin-driver.c (darwin_default_min_version): Fix
12442         -Wc++-compat warnings.
12443
12444 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
12445
12446         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
12447         of operand 0.
12448
12449 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
12450
12451         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
12452
12453 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
12454
12455         PR rtl-optimization/34744
12456         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
12457         (df_scan_free_internal): Free data structures not
12458         allocated in storage pools.
12459         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
12460         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
12461         df_scan_free_mws_vec.
12462         * dse.c (dse_step6): Free offset_map_p and offset_map_n
12463         unconditionally.
12464
12465 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12466
12467         * config/i386/i386.c (contains_aligned_value_p): Return true
12468         for __float128.
12469         (ix86_function_arg_boundary): Return its natural boundary
12470         for __float128.
12471         (return_in_memory_32): Don't check TDmode.
12472         (ix86_split_to_parts): Support splitting into 4 parts and
12473         support TFmode for 32bit target.
12474         (ix86_split_long_move): Support splitting into 4 parts.
12475         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
12476         for SSE2.
12477         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
12478         (ix86_init_builtins): Here.
12479         (ix86_scalar_mode_supported_p): Always return true for TFmode.
12480         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
12481         'q' and 'w', respectively.
12482
12483         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
12484         TARGET_64BIT.
12485         (movtf_internal): Likewise.
12486         (<code>tf2): Likewise.
12487         (*absnegtf2_sse): Likewise.
12488         (copysign<mode>3): Likewise.
12489         (copysign<mode>3_const): Likewise.
12490         (copysign<mode>3_var): Likewise.
12491         (define_split UNSPEC_COPYSIGN): Likewise.
12492         * config/i386/sse.md (*nandtf3): Likewise.
12493         (<code>tf3): Likewise.
12494         (*<code>tf3): Likewise.
12495
12496 2008-06-30  Joey Ye  <joey.ye@intel.com>
12497             H.J. Lu  <hongjiu.lu@intel.com>
12498
12499         * global.c (compute_regsets): Set frame_pointer_needed here.
12500         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
12501
12502 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12503
12504         * doc/install.texi (specific): Expand Windows build notes.
12505
12506 2008-06-30  Ira Rosen  <irar@il.ibm.com>
12507
12508         PR tree-optimization/36648
12509         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
12510         number of prolog iterations by step. Fix the comment.
12511
12512 2008-06-30  Richard Guenther  <rguenther@suse.de>
12513
12514         PR middle-end/36671
12515         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
12516         handle calls from ECF_MALLOC functions.
12517         (handle_pure_call): ECF_MALLOC functions do not return
12518         call-used memory.
12519         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
12520
12521 2008-06-29  Andreas Schwab  <schwab@suse.de>
12522
12523         * config/m68k/m68k.c (print_operand): Always print a float
12524         constant in hex.
12525         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
12526         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
12527         Remove macros.
12528
12529         * config/rs6000/x-linux64: Remove never used file.
12530
12531 2008-06-29  Richard Guenther  <rguenther@suse.de>
12532
12533         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
12534         prototype.
12535         (struct alias_info): Move ...
12536         * tree-ssa-alias.c: ... here.
12537         (update_alias_info): Declare.
12538         (compute_may_aliases): Call it.
12539         (update_alias_info): New function.
12540         * tree-ssa-structalias.c (update_alias_info): Move ...
12541         * tree-ssa-alias.c (update_alias_info_1): ... here.
12542         * tree-ssa-structalias.c (process_constraint_1): Remove
12543         unused from_call argument.  Rename to ...
12544         (process_constraint): ... this.  Delete old wrapper.
12545         (make_constraint_to): Adjust callers.
12546         (handle_const_call): Likewise.
12547         (handle_pure_call): Likewise.
12548         (init_base_vars): Likewise.
12549         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
12550         (find_func_aliases): We don't need structure copies for
12551         complex types.
12552         (make_constraint_from_anything): Remove.
12553         (create_variable_info_for): For globals make constraints
12554         from escaped, not from anything.
12555         (compute_points_to_sets): Do not call update_alias_info.
12556         (ipa_pta_execute): Use make_constraint_from.
12557
12558 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12559
12560         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
12561         (bitmap.o-warn, dominance.o-warn): New.
12562         * configure.ac (cxx_compat_warn): Delete.
12563         (loose_warn): Add -Wcast-qual and -Wc++-compat.
12564         * system.h: Remove #pragma diagnostic for -Wcast-qual and
12565         -Wc++-compat.
12566         * configure: Regenerate.
12567
12568         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
12569         warnings.
12570
12571 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12572
12573         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
12574         * df-scan.c (df_notes_rescan): Likewise.
12575         * ggc-page.c (set_page_table_entry): Likewise.
12576         * intl.c (gcc_gettext_width): Likewise.
12577         * varasm.c (get_unnamed_section, get_noswitch_section,
12578         get_section): Likewise.
12579
12580 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
12581
12582         * regrename.c (build_def_use): Don't copy RTX.
12583
12584 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
12585
12586         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
12587         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
12588         punctuation.  Use @ref instead of @xref.
12589         (Function Names): Remove stray @display/@end display.
12590         (C++ Attributes): Use @ref instead of @xref.
12591         (Deprecated Features): Fix punctuation around @xref.
12592         (Backwards Compatibility): Likewise.
12593         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
12594
12595 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
12596
12597         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
12598         constants for E500 double.
12599
12600 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12601
12602         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
12603         element type of const_vector.
12604
12605 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
12606
12607         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
12608         Remove FLAGS_REG clobber from expander pattern.
12609         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
12610         (anddi3, andsi3, andhi3, andqi3): Ditto.
12611         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
12612         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
12613         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
12614         (ashlsi3, ashlhi3, ashlqi3): Ditto.
12615         (ashrsi3, ashrhi3, ashrqi3): Ditto.
12616         (lshrsi3, lshrhi3, lshrqi3): Ditto.
12617         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
12618         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
12619
12620 2008-06-28  Richard Guenther  <rguenther@suse.de>
12621
12622         * tree-ssa-structalias.c (callused_id, var_callused,
12623         callused_tree): Add.
12624         (handle_pure_call): New function.
12625         (find_func_aliases): Call it.
12626         (find_what_p_points_to): Handle the call-used set.
12627         (clobber_what_escaped): Likewise.
12628         (compute_call_used_vars): New function.
12629         (init_base_vars): Init the call-used variable.
12630         (do_sd_constraint): Do not propagate the solution from CALLUSED
12631         but use CALLUSED as a placeholder.
12632         (solve_graph): Likewise.
12633         * tree-flow-inline.h (gimple_call_used_vars): New function.
12634         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
12635         (compute_call_used_vars): Declare.
12636         * tree-ssa-alias.c (set_initial_properties): Call
12637         compute_call_used_vars.
12638         (reset_alias_info): Clear call-used variables.
12639         (add_call_clobber_ops): Assert we are not called for const/pure
12640         functions.  Remove handling of them.
12641         (add_call_read_ops): Handle pure functions by adding the
12642         call-used set of variables as VUSEs.
12643         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
12644         (delete_tree_ssa): Free it.
12645         * tree-dfa.c (remove_referenced_var): Clear the var from the
12646         call-used bitmap.
12647
12648 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
12649
12650         * tree.c (build_varargs_function_type_list): New.
12651         (build_function_type_list_1): New.
12652         (build_function_type_list): Use build_function_type_list_1.
12653         * tree.h (build_varargs_function_type_list): New.
12654
12655 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12656
12657         PR target/34856
12658         * config/spu/spu.c (spu_builtin_splats): Do not generate
12659         invalid CONST_VECTOR expressions.
12660         (spu_expand_vector_init): Likewise.
12661
12662 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
12663
12664         * optabs.c (libfunc_decls): New variable.
12665         (libfunc_decl_hash, libfunc_decl_eq): New functions.
12666         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
12667         for the same function twice.
12668
12669 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
12670
12671         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
12672         ix86_expand_binary_operator directly.
12673         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
12674         for operand 2.
12675         (*ashrti3_1): Ditto.
12676         (*lshrti3_1): Ditto.
12677         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
12678         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
12679         using only one splitter.  Conditionaly execute splitter before or
12680         after peephole2 pass.
12681         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
12682         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
12683         Use only one alternative in asm template.
12684         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
12685         in asm template.
12686         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
12687         "J" operand constraint for operand 2.
12688         (*ashldi3_cconly_rex64): Ditto.
12689         (*ashrdi3_cmp_rex64): Ditto.
12690         (*ashrdi3_cconly_rex64): Ditto.
12691         (*lshrdi3_cmp_rex64): Ditto.
12692         (*lshrdi3_cconly_rex64): Ditto.
12693         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
12694         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
12695         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
12696         gen_x86_shrd_1.
12697
12698 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
12699
12700         * gimplify.c (omp_is_private): Don't return true if decl is not
12701         already private on #pragma omp for or #pragma omp parallel for.
12702
12703         PR debug/36617
12704         * tree-cfg.c (struct move_stmt_d): Replace block field with
12705         orig_block and new_block fields.
12706         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
12707         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
12708         (move_block_to_fn): Replace vars_map and new_label_map arguments
12709         with struct move_stmt_d pointer.
12710         (replace_block_vars_by_duplicates): New function.
12711         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
12712         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
12713         all subblocks of ORIG_BLOCK to the new function.  Call
12714         replace_block_vars_by_duplicates.
12715         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
12716         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
12717         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
12718         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
12719         (expand_omp): Temporarily set input_location to the location of
12720         region's controlling stmt.
12721         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
12722         BIND_EXPR, push ctx->block_vars and gimplification vars into
12723         the BIND_EXPR and its block's BLOCK_VARS instead of directly
12724         into dest function.
12725         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
12726         there are any BLOCK_VARS.
12727         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
12728         OMP_PARALLEL or OMP_TASK stmt.
12729         (lower_omp): Save and restore input_location around the lower_omp_1
12730         call.
12731
12732 2008-06-27  Richard Guenther  <rguenther@suse.de>
12733
12734         PR tree-optimization/36400
12735         PR tree-optimization/36373
12736         PR tree-optimization/36344
12737         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
12738         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
12739         (update_alias_info): Remove call clobbering code.
12740         (make_constraint_to): New helper function.
12741         (make_escape_constraint): Likewise.
12742         (handle_rhs_call): Use it on all pointer containing arguments.
12743         Also mark the static chain escaped.
12744         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
12745         instead of ANYTHING.
12746         (make_constraint_from): New helper split out from ...
12747         (make_constraint_from_anything): ... here.
12748         (find_func_aliases): Add constraints for escape sites.
12749         (intra_create_variable_infos): Make constraints from NONLOCAL
12750         for parameters.
12751         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
12752         as ANYTHING.
12753         (clobber_what_p_points_to): Remove.
12754         (clobber_what_escaped): New function.
12755         (init_base_vars): Init NONLOCAL and ESCAPED.
12756         (do_sd_constraint): Do not propagate the solution from ESCAPED
12757         but use ESCAPED as a placeholder.
12758         (solve_graph): Likewise.
12759         * tree-flow.h (clobber_what_p_points_to): Remove.
12760         (clobber_what_escaped): Declare.
12761         * tree-ssa-alias.c (set_initial_properties): Call it.
12762         Remove code clobbering escaped pointers.
12763
12764 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
12765
12766         * function.c (allocate_struct_function): Only allocate a unique
12767         funcdef_no if the decl is nonzero.
12768
12769 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
12770
12771         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
12772         * config/mips/mips.c (mips_split_const_insns): New function.
12773         * config/mips/mips.md (move_type): New attribute.
12774         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
12775         (dword_mode): New attribute.
12776         (type): Avoid long line.  Map "move_type"s to "type"s,
12777         choosing "multi" for doubleword moves if appropriate.
12778         Swap MTC/MFC comments to match their declaration order.
12779         (extended_mips16): Default to "yes" if "move_type" is "sll0",
12780         "type" is "branch" or "jal" is "direct".
12781         (length): Handle "extended_mips16" first.  Make the default
12782         "0" for "ghost" instructions.  Set the length from "move_type".
12783         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
12784         of "type", with "sll0" for the register alternative.  Remove the
12785         "extended_mips16" attribute.
12786         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
12787         of "type", with "shift_shift" for the register alternative.
12788         Remove the "length" attribute.
12789         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
12790         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
12791         of "type", with "andi" for the register alternative.
12792         (*zero_extendqihi2): Likewise.
12793         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
12794         of "andi" instead of a "type" of "arith".
12795         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
12796         instead of "type".
12797         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
12798         (mov_<store>r, *mov<mode>_ra): Likewise.
12799         (extendsidi2): Use "move_type" instead of "type", with "move"
12800         for the register alternative.
12801         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
12802         of "type", with "signext" for the register alternative.
12803         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
12804         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
12805         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
12806         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
12807         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
12808         (unnamed branch insn): Likewise.
12809         (*movdi_gp32_fp64): Fold into...
12810         (*movdi_32bit): ...here.
12811         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
12812         (*movdf_hardfloat): ...this new pattern.
12813         (*movdf_softfloat): Remove redundant FPR alternatives.
12814         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
12815         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
12816         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
12817         the "move" attribute.
12818         (*movdi_32bit): Use "move_type" instead of "type" and remove the
12819         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
12820         and "store" for COP loads and stores.
12821         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
12822         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
12823         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
12824         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
12825         (*movtf_mips16, *movv2sf): Likewise.
12826         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
12827         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
12828         (mfhc1<mode>): Use "move_type" instead of "move".
12829         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
12830         (loadgp_blockage): Remove the "length" attribute.
12831         (blockage, set_got_version, update_got_version): Likewise.
12832         (call_internal): Remove the "extended_mips16" attribute.
12833         (call_value_internal, call_value_multiple_internal): Likewise.
12834         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
12835         instead of "move".
12836         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
12837         the "length" attribute.
12838
12839 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12840
12841         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
12842         -Wcast-qual warnings.
12843         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
12844         handle_pragma_pop_macro): Likewise.
12845         * collect2.c (resolve_lib_name): Likewise.
12846         * config/arc/arc.c (arc_init): Likewise.
12847         * config/arm/arm.c (neon_builtin_compare,
12848         locate_neon_builtin_icode): Likewise.
12849         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
12850         * config/bfin/bfin.c (bfin_init_machine_status,
12851         bfin_optimize_loop): Likewise.
12852         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12853         * config/cris/cris.c (cris_init_expanders): Likewise.
12854         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
12855         * config/darwin.c (machopic_indirection_eq,
12856         machopic_indirection_name, machopic_output_indirection): Likewise.
12857         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
12858         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
12859         frv_optimize_membar): Likewise.
12860         * config/i386/cygwin.h (mingw_scan,
12861         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
12862         * config/i386/cygwin1.c (mingw_scan): Likewise.
12863         * config/i386/i386.c (machopic_output_stub): Likewise.
12864         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
12865         i386_pe_unique_section): Likewise.
12866         * config/ia64/ia64.c (ia64_init_machine_status,
12867         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
12868         Likewise.
12869         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
12870         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
12871         * config/m68k/m68k.c (m68k_handle_option,
12872         m68k_sched_md_init_global): Likewise.
12873         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
12874         mcore_unique_section): Likewise.
12875         * config/mips/mips.c (mips_block_move_straight,
12876         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
12877         Likewise.
12878         * config/mmix/mmix.c (mmix_init_machine_status,
12879         mmix_encode_section_info): Likewise.
12880         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
12881         * config/rs6000/rs6000.c (rs6000_init_machine_status,
12882         print_operand_address, output_toc, redefine_groups,
12883         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
12884         * config/s390/s390.c (s390_init_machine_status): Likewise.
12885         * config/score/score.c (score_block_move_straight,
12886         score_block_move_loop_body): Likewise.
12887         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12888         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12889         * emit-rtl.c (find_auto_inc): Likewise.
12890         * gcc.c (translate_options, process_command): Likewise.
12891         * reorg.c (dbr_schedule): Likewise.
12892         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
12893         * xcoffout.c (xcoffout_declare_function): Likewise.
12894
12895 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
12896
12897         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
12898         ipa-pta working again.
12899
12900 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
12901
12902         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
12903         genautomata.
12904
12905 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
12906
12907         * config.gcc (powerpc*-*-*): Add new core e500mc.
12908         * config/rs6000/e500mc.md: New file.
12909         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12910         e500mc.
12911         (rs6000_override_options): Add e500mc case to
12912         processor_target_table. Altivec and Spe options not allowed
12913         with e500mc. Add isel instruction to e500mc by
12914         default. Initialize rs6000_cost for e500mc.
12915         (rs6000_issue_rate): Set issue rate for e500mc.
12916         * config/rs6000/rs6000.h (processor_type): Add
12917         PROCESSOR_PPCE500MC.
12918         (ASM_CPU_SPEC): Add e500mc.
12919         Set TARGET_ISEL to rs6000_isel.
12920         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
12921         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
12922         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
12923         Include e500mc.md.
12924         * doc/invoke.texi: Add e500mc to list of cpus.
12925
12926 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12927
12928         PR c/34867
12929         * c-lex.c (lex_charconst): Initialize unsignedp.
12930
12931 2008-06-27  Olivier Hainque  <hainque@adacore.com>
12932
12933         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
12934         documented assumptions.
12935
12936 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
12937
12938         * dwarf2out.c: Remove trailing white spaces.  Break long line
12939         in comments.
12940
12941 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
12942
12943         * libfuncs.h (LTI_synchronize): New libfunc_index.
12944         (synchronize_libfunc): Declare.
12945         * builtins.c (expand_builtin_synchronize): Consider using
12946         synchronize_libfunc before falling back on an asm blockage.
12947         * config/mips/mips.c: Include libfuncs.h
12948         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
12949
12950 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
12951
12952         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
12953         parameter.  Copy stack_reg to r11 where appropriate.
12954         (no_global_regs_above): Add gpr parameter.
12955         (rs6000_stack_info): Only add padding for SPE save area if we
12956         are saving SPE GPRs and CR.
12957         (saveres_routine_syms): New variable.
12958         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
12959         Define.
12960         (rs6000_savres_routine_sym): New function.
12961         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
12962         split out of...
12963         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
12964         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
12965         Tweak FPR out-of-line saving.
12966         (rs6000_make_savres_rtx): New function.
12967         (rs6000_use_multiple_p): New function.
12968         (rs6000_savres_strategy): New function.
12969         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
12970         out-of-line if appropriate.
12971         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
12972         if we are optimizing for size.
12973         (GP_SAVE_INLINE): Define.
12974         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
12975         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
12976         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
12977         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
12978         (*save_fpregs_<mode>): Add use of r11.
12979         (*restore_gpregs_<mode>): New insn.
12980         (*return_and_restore_gpregs_<mode>): New insn.
12981         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
12982         use r11.
12983         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
12984         (*restore_gpregs_spe): New insn.
12985         (*return_and_restore_gpregs_spe): New insn.
12986         * config/rs6000/predicates.md (save_world_operation): Fix check.
12987
12988 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12989
12990         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
12991         this point, so assert that.
12992
12993 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12994
12995         * cfganal.c: Include vec.h and vecprim.h.
12996         (compute_idf): Import from...
12997         * tree-into-ssa (compute_idf): ...here.
12998         * basic-block.h (compute_idf): Export.
12999
13000 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
13001
13002         * c-decl.c (merge_decls): Use !current_function_decl to check for
13003         extern declaration of C99 inline function being at file scope.
13004
13005 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
13006
13007         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
13008
13009 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13010
13011         * alias.c (record_alias_subset, init_alias_analysis): Fix
13012         -Wc++-compat and/or -Wcast-qual warnings.
13013         * attribs.c (lookup_attribute_spec): Likewise.
13014         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
13015         copy_bb, connect_traces,
13016         find_rarely_executed_basic_blocks_and_cr): Likewise.
13017         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
13018         note_btr_set, migrate_btr_defs): Likewise.
13019         * builtins.c (result_vector, expand_builtin_memcpy,
13020         expand_builtin_mempcpy_args, expand_builtin_strncpy,
13021         builtin_memset_read_str, expand_builtin_printf,
13022         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
13023         Likewise.
13024         * caller-save.c (mark_set_regs): Likewise.
13025         * calls.c (expand_call, emit_library_call_value_1): Likewise.
13026         * cgraph.c (cgraph_edge): Likewise.
13027         * combine.c (likely_spilled_retval_1): Likewise.
13028         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
13029         htab_counts_entry_del, get_coverage_counts): Likewise.
13030         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
13031         new_cselib_val): Likewise.
13032         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
13033         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
13034         Likewise.
13035         * df-core.c (df_compact_blocks): Likewise.
13036         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
13037         * df-scan.c (df_grow_reg_info, df_ref_create,
13038         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
13039         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
13040         df_record_entry_block_defs, df_record_exit_block_uses,
13041         df_bb_verify): Likewise.
13042         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
13043         DF_REF_EXTRACT_MODE_CONST): New.
13044         * dominance.c (get_immediate_dominator, get_dominated_by,
13045         nearest_common_dominator, root_of_dom_tree,
13046         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
13047         -Wc++-compat and/or -Wcast-qual warnings.
13048         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
13049         record_store, replace_read, check_mem_read_rtx, scan_insn,
13050         dse_step1, dse_record_singleton_alias_set): Likewise.
13051         * dwarf2asm.c (dw2_force_const_mem): Likewise.
13052
13053 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13054
13055         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
13056         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
13057         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
13058         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
13059         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
13060         add_ranges_num, add_ranges_by_labels, file_info_cmp,
13061         file_name_acquire, output_file_names, add_const_value_attribute,
13062         premark_used_types_helper, file_table_eq, file_table_hash,
13063         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
13064         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
13065         -Wcast-qual warnings.
13066         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
13067         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
13068         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
13069         gen_reg_rtx, start_sequence, init_emit): Likewise.
13070         * et-forest.c (et_new_occ, et_new_tree): Likewise.
13071         * except.c (init_eh_for_function, gen_eh_region,
13072         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
13073         arh_to_landing_pad, arh_to_label, add_action_record,
13074         add_call_site, switch_to_exception_section): Likewise.
13075         * expmed.c (synth_mult): Likewise.
13076         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
13077         store_expr): Likewise.
13078         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
13079         Likewise.
13080         * function.c (assign_stack_temp_for_type,
13081         allocate_struct_function, match_asm_constraints_1): Likewise.
13082         * gcov-io.c (gcov_allocate): Likewise.
13083         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
13084         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
13085         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
13086         record_one_set, insert_expr_in_table, insert_set_in_table,
13087         dump_hash_table, compute_hash_table_work, alloc_hash_table,
13088         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
13089         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
13090         -Wcast-qual warnings.
13091
13092 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13093
13094         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
13095         -Wcast-qual warnings.
13096         * gcc.c (process_command): Likewise.
13097         * genattrtab.c (oballoc): Use XOBNEW.
13098         (oballocvec): Define.
13099         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
13100         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
13101         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
13102         -Wc++-compat and/or -Wcast-qual warnings.
13103         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
13104         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
13105         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
13106         gen_presence_absence_set, gen_automaton, gen_regexp_el,
13107         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
13108         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
13109         add_excls, process_presence_absence_names,
13110         process_presence_absence_patterns, add_presence_absence,
13111         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
13112         get_free_state, add_arc, get_free_automata_list_el,
13113         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
13114         transform_3, cache_presence, create_ainsns, create_automata,
13115         create_state_ainsn_table, dfa_insn_code_enlarge,
13116         output_trans_func, output_min_issue_delay_func,
13117         output_dead_lock_func, output_reset_func,
13118         output_get_cpu_unit_code_func, output_dfa_start_func,
13119         expand_automata): Likewise.
13120         * genextract.c (gen_insn): Likewise.
13121         * gengtype-lex.l: Likewise.
13122         * gengtype.c (read_input_list, adjust_field_type,
13123         process_gc_options): Likewise.
13124         * genoutput.c (note_constraint): Likewise.
13125         * genpreds.c (mangle, add_constraint): Likewise.
13126         * genrecog.c (process_define_predicate, new_decision,
13127         add_to_sequence): Likewise.
13128         * gensupport.c (record_insn_name): Likewise.
13129
13130 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13131
13132         * config/i386/driver-i386.c (detect_caches_amd,
13133         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
13134         and/or -Wcast-qual warnings.
13135         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
13136         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
13137         gt_pch_save): Likewise.
13138         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
13139         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
13140         * global.c (compute_regsets): Likewise.
13141         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13142         finish_graph_dump_file): Likewise.
13143         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
13144         unlink_bb_notes): Likewise.
13145         * integrate.c (get_hard_reg_initial_val): Likewise.
13146         * ipa-prop.c (ipa_push_func_to_list): Likewise.
13147         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
13148         * local-alloc.c (update_equiv_regs): Likewise.
13149         * loop-invariant.c (check_invariant_table_size,
13150         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
13151         Likewise.
13152         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
13153         altered_reg_used, mark_altered): Likewise.
13154         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
13155         insert_var_expansion_initialization,
13156         combine_var_copies_in_loop_exit, apply_opt_in_copies,
13157         release_var_copies): Likewise.
13158         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
13159         analyze_matrix_decl, add_allocation_site, analyze_transpose,
13160         analyze_accesses_for_phi_node, check_var_notmodified_p,
13161         check_allocation_function, find_sites_in_func,
13162         record_all_accesses_in_func, transform_access_sites,
13163         transform_allocation_sites): Likewise.
13164         * omp-low.c (new_omp_region, create_omp_child_function_name,
13165         check_omp_nesting_restrictions, check_combined_parallel,
13166         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
13167         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
13168         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
13169         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
13170         Likewise.
13171         * opts-common.c (prune_options): Likewise.
13172         * opts.c (add_input_filename, print_filtered_help,
13173         get_option_state): Likewise.
13174         * params.c (add_params): Likewise.
13175         * passes.c (set_pass_for_id, next_pass_1,
13176         do_per_function_toporder, pass_fini_dump_file): Likewise.
13177         * postreload.c (reload_cse_simplify_operands): Likewise.
13178         * predict.c (tree_predicted_by_p, tree_predict_edge,
13179         clear_bb_predictions, combine_predictions_for_bb): Likewise.
13180
13181 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13182
13183         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
13184         warnings.
13185         * recog.c (check_asm_operands, validate_change_1): Likewise.
13186         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
13187         subst_asm_stack_regs): Likewise.
13188         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
13189         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
13190         * regmove.c (reg_is_remote_constant_p): Likewise.
13191         * regrename.c (regrename_optimize, scan_rtx_reg,
13192         kill_clobbered_value, kill_set_value, kill_autoinc_value):
13193         Likewise.
13194         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
13195         regstat_compute_calls_crossed): Likewise.
13196         * reload1.c (init_reload, new_insn_chain,
13197         has_nonexceptional_receiver, reload, copy_reloads,
13198         calculate_needs_all_insns, init_elim_table): Likewise.
13199         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
13200         * rtl.c (shallow_copy_rtx_stat): Likewise.
13201         * rtlanal.c (parms_set): Likewise.
13202         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
13203         sbitmap_resize, sbitmap_vector_alloc): Likewise.
13204         * sched-ebb.c (earliest_block_with_similiar_load,
13205         add_deps_for_risky_insns): Likewise.
13206         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
13207         schedule_region): Likewise.
13208         * see.c (eq_descriptor_pre_extension,
13209         hash_descriptor_pre_extension, hash_del_pre_extension,
13210         eq_descriptor_properties, hash_descriptor_properties,
13211         hash_del_properties, see_seek_pre_extension_expr,
13212         see_initialize_data_structures, see_print_register_properties,
13213         see_print_pre_extension_expr, see_delete_merged_def_extension,
13214         see_delete_unmerged_def_extension, see_emit_use_extension,
13215         see_pre_delete_extension, see_map_extension, see_commit_changes,
13216         see_analyze_merged_def_local_prop,
13217         see_analyze_merged_def_local_prop,
13218         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
13219         see_set_prop_merged_def, see_set_prop_unmerged_def,
13220         see_set_prop_unmerged_use, see_print_one_extension,
13221         see_merge_one_use_extension, see_merge_one_def_extension,
13222         see_store_reference_and_extension, see_update_uses_relevancy,
13223         see_update_defs_relevancy): Likewise.
13224         * statistics.c (hash_statistics_hash, hash_statistics_eq,
13225         hash_statistics_free, curr_statistics_hash): Likewise.
13226         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
13227         expand_asm_operands, expand_return, case_bit_test_cmp,
13228         expand_case): Likewise.
13229         * stor-layout.c (start_record_layout): Likewise.
13230         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
13231         gt_pch_save_stringpool): Likewise.
13232         * tree-data-ref.c (hash_stmt_vertex_info,
13233         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
13234         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
13235
13236 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
13237
13238         PR target/36627
13239         * config/i386/i386.md : Change constraints of HImode and QImode
13240         immediate operands from "i" to "n".  Change SImode "ni" constraint to
13241         "i" and SImode "rmi" constraint to "g".  Remove all constraints
13242         from const0_operand and const1_operand predicated operands.
13243         (i): Change QImode and HImode attribute from "i" to "n".
13244         (*subqi_2): Change HImode operands to QImode.
13245         (*subqi_3): Ditto.
13246
13247 2008-06-25  Olivier Hainque  <hainque@adacore.com>
13248
13249         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
13250         sed substitutions.
13251
13252 2008-06-25  Richard Guenther  <rguenther@suse.de>
13253
13254         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
13255         not overflow the result type.
13256
13257 2008-06-25  Richard Guenther  <rguenther@suse.de>
13258
13259         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
13260         (vn_lookup): Likewise.
13261
13262 2008-06-25  Richard Guenther  <rguenther@suse.de>
13263
13264         PR tree-optimization/35518
13265         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
13266         * tree-sra.c (instantiate_element): Use fold_build3 to build
13267         BIT_FIELD_REFs.
13268         (try_instantiate_multiple_fields): Likewise.
13269
13270 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13271
13272         * config/rs6000/rs6000.md: Change all string instruction's clobber to
13273         be early clobbers.
13274
13275 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13276
13277         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
13278         use_backchain_to_restore_sp to true
13279         if the offset of the link register save area would go over the 32k - 1
13280         offset limit of the load
13281         instructions.
13282
13283 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
13284
13285         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
13286         anchor for the type-punning blurb.  Cross-reference "Structures
13287         unions enumerations and bit-fields implementation".  Provide a
13288         cast-through-pointer example.  Make final sentence self-contained.
13289         * doc/implement-c.texi (Structures unions enumerations and
13290         bit-fields implementation): Cross-reference the type-punning blurb
13291         in the -fstrict-aliasing documentation.
13292
13293 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13294
13295         PR middle-end/36594
13296         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
13297         the memory instead of the memory itself for the save area.
13298
13299 2008-06-24  Olivier Hainque  <hainque@adacore.com>
13300             Nicolas Roche  <roche@adacore.com>
13301
13302         * gengtype.c (srcdir_len): size_t instead of int.
13303         (get_file_realbasename): New function.  For F a filename, the real
13304         basename of F, with all the path components stripped.
13305         (get_file_srcdir_relative_path): New function.  For F a filename, the
13306         relative path to F from $(srcdir).
13307         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
13308         get_file_realbasename.  Adjust the head comment.
13309         (get_prefix_langdir_index): New function. For F a filename, return the
13310         lang_dir_names[] relative index of the language directory that is
13311         a prefix in F.
13312         (get_file_langdir): For F a filename, return the name of the language
13313         directory where F is located.
13314         (get_file_gtfilename): New function. The gt- output file name for an
13315         input filename F.
13316         (get_output_file_with_visibility): Replace in-line computations with
13317         uses of get_file_gtfilename and get_prefix_langdir_index.
13318         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
13319
13320 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
13321
13322         PR tree-optimization/36504
13323         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
13324         references without base address.
13325
13326 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13327
13328         PR middle-end/36584
13329         * calls.c (expand_call): Increase alignment for recursive functions.
13330
13331 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
13332
13333         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
13334         (TARGET_FUNCTION_VALUE): New define.
13335         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
13336         * config/avr/avr.h (FUNCTION_VALUE): Remove.
13337
13338 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13339
13340         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
13341         (fmod<mode>3): Ditto.
13342         (remainderxf3): Ditto.
13343         (remainder<mode>3): Ditto.
13344
13345 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
13346
13347         PR target/36533
13348         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
13349         REG is a hard register.
13350
13351         PR tree-optimization/36508
13352         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
13353         499, don't check it at all in release compilers.
13354
13355 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13356
13357         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
13358         together with SSE_TARGET_MATH to disable insn pattern.
13359         (*fop_<MODEF:mode>_2_i387): Ditto.
13360         (*fop_<MODEF:mode>_3_i387): Ditto.
13361
13362 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
13363
13364         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
13365
13366 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13367
13368         PR middle-end/34906
13369         * gimplify.c (gimplify_asm_expr): Check the return code of
13370         parse_output_constraint call, set function return and is_inout
13371         value if it failed.
13372
13373 2008-06-22  Ian Lance Taylor  <iant@google.com>
13374
13375         * c-lex.c (narrowest_unsigned_type): Change itk to int.
13376         (narrowest_signed_type): Likewise.
13377         * c-typeck.c (c_common_type): Change local variable mclass to enum
13378         mode_class, twice.
13379         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
13380         tcc_comparison, not the tree code itself.
13381         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
13382         (c_expand_expr): Cast modifier to enum expand_modifier.
13383         * c-common.h (C_RID_CODE): Add casts.
13384         (C_SET_RID_CODE): Define.
13385         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
13386         (c_lex_one_token): Add cast to avoid warning.
13387         (c_parser_objc_type_name): Rename local typename to type_name.
13388         (check_no_duplicate_clause): Change code parameter to enum
13389         omp_clause_code.
13390         (c_parser_omp_var_list_parens): Change kind parameter to enum
13391         omp_clause_code.
13392         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
13393         c_parser_omp_list_var_parens.
13394         (c_parser_omp_threadprivate): Likewise.
13395         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
13396         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
13397         * c-format.c (NO_FMT): Define.
13398         (printf_length_specs): Use NO_FMT.
13399         (asm_fprintf_length_specs): Likewise.
13400         (gcc_diag_length_specs): Likewise.
13401         (scanf_length_specs): Likewise.
13402         (strfmon_length_specs): Likewise.
13403         (gcc_gfc_length_specs): Likewise.
13404         (printf_flag_specs): Change 0 to STD_C89.
13405         (asm_fprintf_flag_specs): Likewise.
13406         (gcc_diag_flag_specs): Likewise.
13407         (gcc_cxxdiag_flag_specs): Likewise.
13408         (scanf_flag_specs): Likewise.
13409         (strftime_flag_specs): Likewise.
13410         (strfmon_flag_specs): Likewise.
13411         (print_char_table): Likewise.
13412         (asm_fprintf_char_table): Likewise.
13413         (gcc_diag_char_table): Likewise.
13414         (gcc_tdiag_char_table): Likewise.
13415         (gcc_cdiag_char_table): Likewise.
13416         (gcc_cxxdiag_char_table): Likewise.
13417         (gcc_gfc_char_table): Likewise.
13418         (scan_char_table): Likewise.
13419         (time_char_table): Likewis.
13420         (monetary_char_table): Likewise.
13421         * c-format.h (BADLEN): Likewise.
13422
13423 2008-06-21  Ian Lance Taylor  <iant@google.com>
13424
13425         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
13426         Define END_OF_BASE_TREE_CODES around inclusion.
13427         * tree.c (tree_code_type): New global array.
13428         (tree_code_length, tree_code_name): Likewise.
13429         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
13430         $(lang_tree_files).
13431         (all-tree.def, s-alltree): New targets.
13432         (gencheck.h, s-gencheck): Remove.
13433         (tree.o): Depend upon all-tree.def.
13434         (build/gencheck.o): Remove gencheck.h dependency.
13435         (mostlyclean): Don't remove gencheck.h.
13436         * c-common.h (enum c_tree_code): Remove.
13437         * c-lang.c (tree_code_type): Remove.
13438         (tree_code_length, tree_code_name): Remove.
13439         * gencheck.c (tree_codes): Include all-tree.def, rather than
13440         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
13441         after it is used.
13442         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
13443         than tree.def.
13444         * cp/cp-tree.h (enum cplus_tree_code): Remove.
13445         (operator_name_info): Size to MAX_TREE_CODES.
13446         (assignment_operator_name_info): Likewise.
13447         * cp/cp-lang.c (tree_code_type): Remove.
13448         (tree_code_length, tree_code_name): Remove.
13449         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
13450         (assignment_operator_name_info): Likewise.
13451         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
13452         MAX_TREE_CODES.
13453         * cp/mangle.c (write_expression): Likewise.
13454         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
13455         * fortran/f95-lang.c (tree_code_type): Remove.
13456         (tree_code_length, tree_code_name): Remove.
13457         * java/java-tree.h (enum java_tree_code): Remove.
13458         * java/lang.c (tree_code_type): Remove.
13459         (tree_code_length, tree_code_name): Remove.
13460         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
13461         * objc/objc-act.h (enum objc_tree_code): Remove.
13462         * objc/objc-lang.c (tree_code_type): Remove.
13463         (tree_code_length, tree_code_name): Remove.
13464         * objcp/objcp-lang.c (tree_code_type): Remove.
13465         (tree_code_length, tree_code_name): Remove.
13466         * ada/ada-tree.h (enum gnat_tree_code): Remove.
13467         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
13468         * ada/misc.c (tree_code_type): Remove.
13469         (tree_code_length, tree_code_name): Remove.
13470
13471 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
13472
13473         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
13474         the grand_bitmap_obstack.
13475
13476 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13477
13478         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
13479         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
13480         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
13481         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
13482         move_stmt_r, new_label_mapper): Likewise.
13483         * tree-complex.c (cvc_lookup): Likewise.
13484         * tree-dfa.c (create_function_ann): Likewise.
13485         * tree-dump.c (dump_register): Likewise.
13486         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
13487         find_phi_replacement_condition): Likewise.
13488         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
13489         tree_function_versioning): Likewise.
13490         * tree-into-ssa.c (cmp_dfsnum): Likewise.
13491         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
13492         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
13493         get_nonlocal_debug_decl, convert_nonlocal_reference,
13494         convert_nonlocal_omp_clauses, get_local_debug_decl,
13495         convert_local_reference, convert_local_omp_clauses,
13496         convert_nl_goto_reference, convert_nl_goto_receiver,
13497         convert_tramp_reference, convert_call_expr): Likewise.
13498         * tree-outof-ssa.c (contains_tree_r): Likewise.
13499         * tree-parloops.c (reduction_phi, initialize_reductions,
13500         eliminate_local_variables_1, add_field_for_reduction,
13501         add_field_for_name, create_phi_for_local_result,
13502         create_call_for_reduction_1, create_loads_for_reductions,
13503         create_stores_for_reduction, create_loads_and_stores_for_name):
13504         Likewise.
13505         * tree-phinodes.c (allocate_phi_node): Likewise.
13506         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
13507         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
13508         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
13509         * tree-ssa-coalesce.c (compare_pairs): Likewise.
13510         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
13511         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
13512         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
13513         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13514         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
13515         vn_nary_op_insert): Likewise.
13516         * tree-ssa.c (redirect_edge_var_map_add,
13517         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
13518         * tree-vectorizer.c (vectorize_loops): Likewise.
13519         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
13520         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
13521         tree_cons_stat, build1_stat, build_variant_type_copy,
13522         decl_init_priority_lookup, decl_fini_priority_lookup,
13523         decl_priority_info, decl_restrict_base_lookup,
13524         decl_restrict_base_insert, decl_debug_expr_lookup,
13525         decl_debug_expr_insert, decl_value_expr_lookup,
13526         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
13527         type_hash_add, get_file_function_name, tree_check_failed,
13528         tree_not_check_failed, tree_range_check_failed,
13529         omp_clause_range_check_failed, build_omp_clause,
13530         build_vl_exp_stat): Likewise.
13531         * value-prof.c (gimple_histogram_value,
13532         gimple_duplicate_stmt_histograms): Likewise.
13533         * var-tracking.c (attrs_list_insert, attrs_list_copy,
13534         unshare_variable, variable_union_info_cmp_pos, variable_union,
13535         dataflow_set_different_1, dataflow_set_different_2,
13536         vt_find_locations, variable_was_changed, set_variable_part,
13537         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
13538         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
13539         section_entry_hash, object_block_entry_eq,
13540         object_block_entry_hash, create_block_symbol,
13541         initialize_cold_section_name, default_function_rodata_section,
13542         strip_reg_name, set_user_assembler_name, const_desc_eq,
13543         build_constant_desc, output_constant_def, lookup_constant_def,
13544         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
13545         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
13546         default_internal_label): Likewise.
13547         * varray.c (varray_init, varray_grow): Likewise.
13548         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
13549
13550 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
13551
13552         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
13553         operators for "test" insn.  Macroize insn using SWI mode macro.
13554         (*jcc_fused_2): Ditto.
13555         (*jcc_fused_3): Macroize insn using SWI mode macro.
13556         (*jcc_fused_4): Ditto.
13557
13558 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
13559
13560         * tree-ssa-pre.c: Fix typo in comment.
13561         (init_antic, fini_antic): Add explicit funtions for
13562         initializing and deinitializing ANTIC and AVAIL sets.
13563         (create_expression_by_pieces): Fix typo in comment.
13564         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
13565         (execute_pre): Eventually dump details about ANTIC_IN.
13566
13567 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13568
13569         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
13570         * gcc.c (translate_options, init_spec, store_arg, read_specs,
13571         add_to_obstack, file_at_path, find_a_file, execute,
13572         add_preprocessor_option, add_assembler_option, add_linker_option,
13573         process_command, insert_wrapper, do_option_spec, do_self_spec,
13574         spec_path, do_spec_1, is_directory, main, used_arg,
13575         getenv_spec_function): Likewise.
13576         * tlink.c (symbol_hash_lookup, file_hash_lookup,
13577         demangled_hash_lookup, symbol_push, file_push, frob_extension):
13578         Likewise.
13579
13580 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
13581
13582         * doc/rtl.texi: Updated subreg section.
13583
13584 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
13585
13586         PR c++/36523
13587         * cgraphunit.c (cgraph_process_new_functions): Don't clear
13588         node->needed and node->reachable.
13589         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
13590         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
13591         (expand_task_call): Don't call expand_task_copyfn.
13592         (expand_task_copyfn): Renamed to...
13593         (finalize_task_copyfn): ... this.
13594
13595 2008-06-19  Jan Hubicka  <jh@suse.cz>
13596
13597         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
13598         clobbering framepointer.
13599
13600 2008-06-19  Jan Hubicka  <jh@suse.cz>
13601
13602         * tree-optimize.c (execute_early_local_optimizations): Set
13603         cgraph_state only at first invocation.
13604
13605 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13606
13607         * system.h (-Wc++-compat): Activate as a warning, no an error.
13608
13609 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
13610
13611         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
13612         instead of "#" in insn asm template.
13613         (*jcc_fused_2): Ditto.
13614
13615 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
13616
13617         * config/i386/i386.h (ix86_tune_indices)
13618         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
13619         (TARGET_FUSE_CMP_AND_BRANCH): New define.
13620         * config/i386/i386.md (*jcc_fused_1): New insn pattern
13621         (*jcc_fused_2): Ditto.
13622         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
13623         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
13624         (print operand): Handle 'E' and 'e' code.
13625
13626 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
13627
13628         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
13629         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
13630         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
13631
13632 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
13633
13634         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
13635         node->decl.
13636         (cgraph_expand_function): Use local copy of decl.
13637         (cgraph_expand_all_functions): Remove redundant initialization of
13638         order_pos.
13639         (cgraph_optimize): Reword internal_error message.
13640
13641 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
13642
13643         * arm-protos.h (arm_return_in_memory): Remove public
13644         arm_return_in_memory() prototype.
13645         * arm.c (arm_return_in_memory): Add static prototype, add target
13646         hook macro, change definition and comments.
13647         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
13648
13649 2008-06-19  Ben Elliston  <bje@au.ibm.com>
13650
13651         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
13652         real.c: Remove references to IEEE 754R.
13653         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
13654         * doc/libgcc.texi (Decimal float library routines): Likewise.
13655
13656 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13657
13658         * targhooks.h (struct gcc_target): New member unwind_word_mode.
13659         (default_unwind_word_mode): Add prototype.
13660         * targhooks.c (default_unwind_word_mode): New function.
13661         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
13662         instead of word_mode.
13663         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
13664         (TARGET_INITIALIZER): Use it.
13665
13666         * c-common.c (handle_mode_attribute): Support "unwind_word"
13667         mode attribute.
13668         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
13669
13670         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
13671         word_mode to access SjLj_Function_Context member "data".
13672         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
13673         conversion from targetm.eh_return_filter_mode () to
13674         targetm.unwind_word_mode () if they differ.
13675
13676         * builtin-types.def (BT_UNWINDWORD): New primitive type.
13677         (BT_FN_UNWINDWORD_PTR): New function type.
13678         (BT_FN_WORD_PTR): Remove.
13679         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
13680         * except.c (expand_builtin_extend_pointer): Convert pointer to
13681         targetm.unwind_word_mode () instead of word_mode.
13682
13683         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
13684         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
13685         (spu_unwind_word_mode): New function.
13686         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
13687         (TARGET_UNWIND_WORD_MODE): Define.
13688         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
13689
13690 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13691
13692         * config/spu/spu.c (reg_align): Remove.
13693         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
13694         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
13695         (spu_split_store): Likewise.
13696
13697 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
13698
13699         * gcc/tree-vn.c: Fix typo in comment.
13700
13701 2008-06-18  Jan Hubicka  <jh@suse.cz>
13702
13703         * cgraphunit.c (cgraph_optimize): Output debug info when doing
13704         toplevel reorder too.
13705
13706 2008-06-18  Jan Hubicka  <jh@suse.cz>
13707
13708         * c-opts.c (c_common_post_options): PCH is not compatible with
13709         no-unit-at-a-time.
13710         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
13711         -fno-toplevel-reorder by default now.
13712
13713 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13714
13715         PR documentation/30739
13716         * doc/install.texi (Prerequisites): Document dependency on awk.
13717
13718 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
13719             Ian Lance Taylor  <iant@google.com>
13720
13721         PR rtl-optimization/35604
13722         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
13723         only want to change jump destinations, not eventual label comparisons.
13724
13725 2008-06-16  Jan Hubicka  <jh@suse.cz>
13726
13727         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
13728         syntax errors.
13729         (cgraph_analyze_function): Likewise.
13730
13731 2008-06-16  Jan Hubicka  <jh@suse.cz>
13732
13733         * cgraph.h (cgraph_mark_if_needed): New function.
13734         * cgraphunit.c (cgraph_mark_if_needed): New function.
13735         * c-decl.c (duplicate_decl): Use it.
13736
13737 2008-06-16  Jan Hubicka  <jh@suse.cz>
13738
13739         * cgraph.c (cgraph_add_new_function): When in expansion state, do
13740         lowering.
13741
13742 2008-06-16  Jan Hubicka  <jh@suse.cz>
13743
13744         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
13745
13746 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
13747             Kazu Hirata  <kazu@codesourcery.com>
13748             Maxim Kuvyrkov  <maxim@codesourcery.com
13749
13750         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
13751         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
13752         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
13753         EXTRA_SPEC_FUNCTIONS.
13754         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
13755         (DRIVER_SELF_SPECS): Adjust.
13756         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
13757         * config/mips/st.h, config/mips/t-st: New.
13758         * config/mips/driver-native.c, config/mips/x-native: New.
13759         * doc/invoke.texi (MIPS): Document 'native' value for -march and
13760         -mtune options.
13761
13762 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
13763
13764         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
13765         from it.
13766         (ISA_HAS_FP_CONDMOVE): New macro.
13767         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
13768         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
13769         (ISA_HAS_NMADD3_NMSUB3): New macro.
13770         * config/mips/mips.c (mips_rtx_costs): Update.
13771         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
13772         compiling for ST Loongson 2E/2F.
13773         (madd<mode>): Rename to madd4<mode>.  Update.
13774         (madd3<mode>): New pattern.
13775         (msub<mode>): Rename to msub4<mode>.  Update.
13776         (msub3<mode>): New pattern.
13777         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
13778         (nmadd3<mode>): New pattern.
13779         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
13780         (nmadd3<mode>_fastmath): New pattern.
13781         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
13782         (nmsub3<mode>): New pattern.
13783         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
13784         (nmsub3<mode>_fastmath): New pattern.
13785         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
13786
13787 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
13788
13789         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
13790         (DF_REF_INSN_INFO): New.
13791         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
13792         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
13793         with a NULL DF_REF_INSN_INFO.
13794         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
13795         DF_INSN_SET.
13796         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
13797         DF_INSN_INFO_EQ_USES): New.
13798         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
13799         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
13800         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
13801         * df-core.c: Update comment for above changes.
13802         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
13803         DF_INSN_UID_* macros.
13804         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
13805         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
13806         insn rtx.  Update all callers.
13807         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
13808         df_ref_create_structure, df_insn_refs_collect): Likewise.
13809         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
13810         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
13811         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
13812         macros to access the insn refs.
13813         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
13814         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
13815         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
13816         for accessing the refs.
13817         (try_fwprop_subst): Likewise.
13818         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
13819         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
13820         for accessing the refs.
13821         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
13822         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
13823         to look at the insn refs.
13824         (record_uses): Likewise.
13825         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
13826         function anymore.
13827         (mark_artificial_uses): Don't mark_insn for artificial refs.
13828         (mark_reg_rependencies): Likewise.
13829
13830         * doc/rtl.texi: Remove documentation of ADDRESSOF.
13831
13832 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13833
13834         * configure: Regenerate.
13835
13836 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13837
13838         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
13839         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13840         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13841
13842 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13843
13844         * config/avr/avr.c (avr_mcu_t): Add attiny167.
13845         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13846         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13847
13848 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13849
13850         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
13851         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13852         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13853
13854 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
13855
13856         * tree-ssa-sccvn.c: Fix format of comments.
13857
13858 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
13859
13860         * cgraph.c: Remove unneeded forward declarations of eq_node()
13861         and hash_node().
13862
13863 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
13864
13865         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
13866         REG_RETVAL notes.
13867         (see_update_relevancy): Likewise.
13868         * fwprop.c (try_fwprop_subst): Likewise.
13869         * rtlanal.c (noop_move_p): Likewise.
13870         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
13871         notes to non-existing libcall blocks.
13872         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
13873         Remove orig_set.
13874         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
13875         (dead_libcall_p): Remove.
13876         (delete_trivially_dead_insns): Don't use it.
13877         * web.c (union_defs): Remove comment about keeping nops.
13878         * gcse.c (hash_scan_insn): Don't take libcall pointers.
13879         (compute_hash_table_work): Don't track libcall notes.
13880         (do_local_cprop): Don't take libcall pointers.  Don't update
13881         libcall notes.
13882         (adjust_libcall_notes): Deleted.
13883         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
13884         ever have existed in the first place).
13885         (replace_store_insn): Don't try to remove libcall notes.
13886         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
13887         (resolve_reg_notes): Don't call them.
13888         (resolve_simple_move): Likewise.
13889         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
13890         Don't remove REG_RETVAL notes.
13891         * emit-rtl.c (try_split): Don't update libcall notes.
13892         (emit_copy_of_insn_after): Dito.
13893         * cselib.c (cselib_current_insn_in_libcall): Remove.
13894         (cselib_process_insn): Don't set/clear it.
13895         (new_elt_loc_list): Don't record it.
13896         (cselib_init): Don't initialize it.
13897         * cselib.c (struct elt_loc_list): Remove in_libcall field.
13898         * loop-invariant.c (find_invariant_insn): Don't look for libcall
13899         notes.
13900         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
13901         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
13902         (init_deps): Don't initialize it.
13903         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
13904         * combine.c (delete_noop_moves): Don't update libcall notes.
13905         (can_combine_p): Remove now pointless #if 0 block.
13906         (try_combine): Remove another obsolete #if 0 block.
13907         (distribute_notes): Don't distribute libcall notes.
13908         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
13909         * dce.c (libcall_dead_p): Remove.
13910         (delete_unmarked_insns): Don't handle libcall blocks.
13911         (preserve_libcall_for_dce): Remove.
13912         (prescan_insns_for_dce): Don't special-case libcall block insns.
13913         * reload1 (reload): Don't handle libcall notes.
13914         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
13915         documentation.
13916
13917 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
13918
13919         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
13920         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13921         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13922
13923 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
13924
13925         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
13926         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13927         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13928
13929 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13930
13931         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
13932
13933 2008-06-16  Ira Rosen  <irar@il.ibm.com>
13934
13935         PR tree-optimization/36493
13936         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
13937         the arguments list. Use VECTYPE to create vector pointer.
13938         (vectorizable_store): Fail if accesses through a pointer to vectype
13939         do not alias the original memory reference operands.
13940         Call vect_create_data_ref_ptr without the removed argument.
13941         (vectorizable_load): Likewise.
13942         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
13943         removed argument.
13944
13945 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
13946
13947         PR target/36336
13948         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
13949         reg_equiv_constant.
13950
13951 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13952
13953         * config/mips/loongson2ef.md: New file.
13954         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
13955         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
13956         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
13957         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
13958         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
13959         and loongson_2f.
13960         (loongson2ef.md): New include.
13961         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
13962         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
13963         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
13964         (loongson_gt_<mode>, loongson_extract_halfword)
13965         (loongson_insert_halfword_0, loongson_insert_halfword_2)
13966         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
13967         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
13968         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
13969         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
13970         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
13971         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
13972         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
13973         (vec_interleave_low<mode>): Define type attribute.
13974         * config/mips/mips.c (mips_ls2): New static variable.
13975         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
13976         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
13977         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
13978         Implement target scheduling hooks.
13979         (mips_multipass_dfa_lookahead): Update to handle tuning for
13980         Loongson 2E/2F.
13981         (mips_sched_init): Initialize data for Loongson scheduling.
13982         (mips_ls2_variable_issue): New static function.
13983         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
13984         Add sanity check.
13985         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
13986         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
13987         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
13988         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
13989         Handle ST Loongson 2E/2F cores.
13990         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
13991
13992 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13993
13994         * omp-low.c (extract_omp_for_data): Fix comment typo.
13995         * c.opt: Fix typo.
13996
13997 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13998
13999         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
14000         FIXME note about gcc/config.guess.
14001         * doc/options.texi (Option file format): Remove non-ASCII bytes.
14002         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
14003         * doc/cppopts.texi: Likewise.
14004         * doc/extend.texi: Likewise.
14005         * doc/gcc.texi: Likewise.
14006         * doc/gccint.texi: Likewise.
14007         * doc/gcov.texi: Likewise.
14008         * doc/gty.texi: Likewise.
14009         * doc/hostconfig.texi: Likewise.
14010         * doc/install.texi: Likewise.
14011         * doc/invoke.texi: Likewise.
14012         * doc/loop.texi: Likewise.
14013         * doc/makefile.texi: Likewise.
14014         * doc/md.texi: Likewise.
14015         * doc/passes.texi: Likewise.
14016         * doc/tm.texi: Likewise.
14017         * doc/tree-ssa.texi: Likewise.
14018         * doc/trouble.texi: Likewise.
14019
14020 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
14021             Nathan Sidwell  <nathan@codesourcery.com>
14022             Maxim Kuvyrkov  <maxim@codesourcery.com>
14023             Richard Sandiford  <rdsandiford@googlemail.com>
14024
14025         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
14026         * config/mips/mips-protos.h (mips_expand_vector_init): New.
14027         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
14028         builtins.
14029         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
14030         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
14031         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
14032         V8QImode cases.
14033         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
14034         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
14035         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
14036         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
14037         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
14038         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
14039         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
14040         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
14041         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
14042         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
14043         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
14044         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
14045         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
14046         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
14047         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
14048         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
14049         (mips_builtins): Add Loongson builtins.
14050         (mips_loongson_2ef_bdesc): New.
14051         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
14052         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
14053         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
14054         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
14055         New.
14056         (mips_expand_vector_init): New.
14057         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
14058         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
14059         if appropriate.
14060         * config/mips/mips.md: Add unspec numbers for Loongson
14061         builtins.  Include loongson.md.
14062         (MOVE64): Include Loongson vector modes.
14063         (SPLITF): Include Loongson vector modes.
14064         (HALFMODE): Handle Loongson vector modes.
14065         * config/mips/loongson.md: New.
14066         * config/mips/loongson.h: New.
14067         * config.gcc: Add loongson.h header for mips*-*-* targets.
14068         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
14069
14070 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
14071
14072         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
14073         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
14074         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
14075         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
14076         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
14077         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
14078         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
14079         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
14080         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
14081         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
14082         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
14083         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
14084         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
14085         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
14086         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
14087         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
14088         Remove use_fixproto=yes.
14089         (ia64*-*-hpux*): Remove comment about using fixproto.
14090         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
14091
14092 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14093
14094         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
14095         library rebuilds.
14096         * configure: Regenerate.
14097
14098 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
14099
14100         PR middle-end/36520
14101         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
14102         before evaluating it.
14103
14104 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
14105
14106         PR c/36507
14107         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
14108         nested inline functions.
14109         (start_decl, start_function): Don't invert DECL_EXTERNAL
14110         for nested inline functions.
14111
14112 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
14113
14114         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
14115         splits that must be made for correctness.
14116
14117 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
14118
14119         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
14120         (AVAIL_NON_MIPS16): Likewise.
14121         (mips_builtin_description): Replace target_flags with a predicate.
14122         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
14123         (dspr2_32): New availability predicates.
14124         (MIPS_BUILTIN): New macro.
14125         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
14126         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
14127         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
14128         Replace the TARGET_FLAGS parameters with AVAIL parameters.
14129         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
14130         (mips_dsp_32only_bdesc): Merge into...
14131         (mips_builtins): ...this new array.
14132         (mips_bdesc_map, mips_bdesc_arrays): Delete.
14133         (mips_init_builtins): Update after above changes.
14134         (mips_expand_builtin_1): Merge into...
14135         (mips_expand_builtin): ...here and update after above changes.
14136
14137 2008-06-12  Paul Brook  <paul@codesourcery.com>
14138
14139         * longlong.h (__arm__): Define count_leading_zeros.
14140         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
14141         (clzsi2, clzdi2): New functions.
14142         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
14143         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
14144         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
14145         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
14146         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
14147         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
14148         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
14149         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
14150         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
14151         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
14152
14153 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
14154
14155         * config/m68k/m68k.c (m68k_tune_flags): New.
14156         (override_options): Compute m68k_tune_flags.
14157         (MULL_COST, MULW_COST): Update for various variants of CFV2.
14158         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
14159
14160 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14161
14162         PR middle-end/36506
14163         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
14164
14165 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14166
14167         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
14168         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
14169
14170 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14171
14172         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
14173         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
14174
14175 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14176
14177         PR middle-end/36506
14178         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
14179         reductions.
14180
14181 2008-06-12  Richard Guenther  <rguenther@suse.de>
14182
14183         PR tree-optimization/36345
14184         * tree-flow.h (struct ptr_info_def): Align escape_mask,
14185         add memory_tag_needed flag.
14186         (may_alias_p): Declare.
14187         * tree-ssa-alias.c (may_alias_p): Export.
14188         (set_initial_properties): Use memory_tag_needed flag.
14189         (update_reference_counts): Likewise.
14190         (reset_alias_info): Reset memory_tag_needed flag.
14191         (create_name_tags): Check memory_tag_needed flag.
14192         (dump_points_to_info_for): Dump it.
14193         * tree-ssa-structalias.c (struct variable_info): Remove
14194         directly_dereferenced flag.
14195         (new_var_info): Do not initialize it.
14196         (process_constraint_1): Do not set it.
14197         (update_alias_info): Set is_dereferenced flag.
14198         (set_uids_in_ptset): Use may_alias_p.
14199         (set_used_smts): Check memory_tag_needed flag.
14200         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
14201         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
14202         memory_tag_needed flag.
14203         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
14204         from broken design.
14205
14206 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
14207
14208         * config/i386/i386.c (ix86_compute_frame_layout): Disable
14209         red zone for w64 abi.
14210         (ix86_expand_prologue): Likewise.
14211         (ix86_force_to_memory): Likewise.
14212         (ix86_free_from_memory): Likewise.
14213
14214 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
14215
14216         PR target/36425
14217         * config/rs6000/rs6000.c (rs6000_override_options): Set
14218         rs6000_isel conditionally to the absence of comand line override.
14219         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14220         Remove duplicate rs6000_isel setting.
14221         * config/rs6000/eabispe.h: Ditto.
14222
14223 2008-06-11  Richard Guenther  <rguenther@suse.de>
14224
14225         * alias.c (get_alias_set): Use the element alias-set for arrays.
14226         (record_component_aliases): For arrays and vectors do nothing.
14227         * c-common.c (strict_aliasing_warning): Handle the cases
14228         of alias set zero explicitly.
14229         * Makefile.in (dfp.o-warn): Add -Wno-error.
14230
14231 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
14232
14233         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
14234         tune_32 tune_64.
14235         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
14236         tune_32 tune_64 to supported_defaults.  Allow values not
14237         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
14238         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
14239         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
14240         with_cpu_64 to generic for 64-bit-supporting configurations, not
14241         with_cpu.  Remove FIXMEs.
14242         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
14243         --with-arch-64, --with-tune-32, --with-tune-64): Document.
14244         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
14245         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
14246         arch_32 and arch_64.
14247
14248 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
14249             Olivier Hainque  <hainque@adacore.com>
14250
14251         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
14252         Use DECL_SIZE_UNIT to retrieve the size of the field.
14253
14254 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
14255
14256         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
14257         with function calls after declarations.  Lay out
14258         neon_float_type_node before further use.
14259
14260 2008-06-11  Richard Guenther  <rguenther@suse.de>
14261
14262         * tree-flow.h (may_point_to_global_var): Declare.
14263         * tree-ssa-alias.c (may_point_to_global_var): New function.
14264         * tree-ssa-sink.c (is_hidden_global_store): Use it.
14265
14266 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
14267
14268         * configure.ac: Teach that fido supports .debug_line.
14269         * configure: Regenerate.
14270
14271 2008-06-10  Tom Tromey  <tromey@redhat.com>
14272
14273         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
14274         debug hook.
14275
14276 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
14277
14278         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
14279         (encode_decimal64, decode_decimal64, encode_decimal128,
14280         decode_decimal128): Reverse order of 32-bit parts of value if host
14281         and target endianness differ.
14282
14283 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
14284
14285         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
14286         Avoid division by 0.
14287         (tree_mod_pow2_value_transform): Likewise.
14288         (tree_ic_transform): Likewise.
14289         (tree_stringops_transform): Likewise.
14290         (tree_mod_subtract_transform): Likewise.
14291         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
14292         (copy_edges_for_bb): Likewise.
14293         (initialize_cfun): Likewise.
14294
14295 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
14296
14297         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
14298         nonmemory_operand. Add "N" operand constraint.
14299         (*btsi): Ditto.
14300         (*jcc_btdi_mask_rex64): New instruction and split pattern.
14301         (*jcc_btsi_mask): Ditto.
14302         (*jcc_btsi_mask_1): Ditto.
14303
14304 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
14305
14306         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
14307         TYPE_CANONICAL for copied element type.
14308
14309 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
14310
14311         PR target/36473
14312         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
14313         Add m_CORE2 and m_GENERIC.
14314         * config/i386/predicates.md (bt_comparison_operator): New predicate.
14315         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
14316         (*btsi): Ditto.
14317         (*jcc_btdi_rex64): New instruction and split pattern.
14318         (*jcc_btsi): Ditto.
14319         (*jcc_btsi_1): Ditto.
14320         (*btsq): Fix Intel asm dialect operand order.
14321         (*btrq): Ditto.
14322         (*btcq): Ditto.
14323
14324 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
14325
14326         PR middle-end/36447
14327         * simplify-rtx.c (simplify_subreg): Add check for shift count
14328         greater than size.
14329
14330 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
14331
14332         * doc/md.texi: Synchronize with later constraints.md change.
14333         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
14334         with a C implementation.
14335         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
14336         MFLO handling.
14337         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
14338         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
14339         when moving to and from MD_REGNUM.
14340         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
14341         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
14342         Handle byte and halfword moves.
14343         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
14344         separately.
14345         * config/mips/constraints.md (h): Turn into NO_REGS.
14346         (l, x): Update documentation.
14347         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
14348         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
14349         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
14350         (HILO): New mode iterator.
14351         (MOVE128): Add TI.
14352         (any_div): New code iterator.
14353         (u): Extend code attribute to div and udiv.
14354         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
14355         d_operand in the splitters.  Remove redundant CONST_INT checks.
14356         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
14357         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
14358         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
14359         accordingly, using normal moves instead of unspecs to move LO into
14360         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
14361         (<u>mulsidi3): Handle expansion in C code.
14362         (<u>mulsidi3_32bit_internal): Rename to...
14363         (<u>mulsidi3_32bit): ...this.
14364         (<u>mulsidi3_32bit_r4000): Fix insn separator.
14365         (*<u>mulsidi3_64bit): Rename to...
14366         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
14367         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
14368         to set LO and HI to the multiplication result.  Use a normal move
14369         for MFLO and an unspec for MFHI.
14370         (*<u>mulsidi3_64bit_parts): Replace with...
14371         (<u>mulsidi3_64bit_hilo): ...this new instruction.
14372         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
14373         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
14374         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
14375         instead of HI.  Split the instruction into a separate multiplication
14376         and MFHI if !TARGET_FIX_R4000.
14377         (<su>muldi3_highpart): Likewise.
14378         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
14379         and the "=h" clobber.
14380         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
14381         (<u>mulditi3): New expander.
14382         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
14383         (madsi): Remove "=h" clobber.
14384         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
14385         Force the modulus result to be a GPR and split the instruction into
14386         a division followed by an MFHI after reload.
14387         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
14388         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
14389         the MIPS16 HIGH define_split.
14390         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
14391         of acc<->gpr moves to "multi".
14392         (*movdi_64bit): Replace the single "x" alternative with
14393         alternatives for moving into and out of "a".
14394         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
14395         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
14396         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
14397         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
14398         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
14399         (movti): New expander.
14400         (*movti, *movti_mips16): New insns.
14401         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
14402         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
14403         (mthi<GPR:mode>_<HILO:mode>): Likewise.
14404         * config/mips/predicates.md (fpr_operand): Delete.
14405         (d_operand): New predicate.
14406
14407 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
14408
14409         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
14410         failure on some Bourne shells.
14411         (x86_64-*-*): Ditto.
14412
14413 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
14414
14415         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
14416
14417 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14418
14419         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
14420         (sparc-sun-solaris2*): Likewise.
14421
14422 2008-06-09  Arnaud Charlet  <charlet@adacore.com
14423
14424         * doc/install.texi: Update requirements to build the Ada compiler.
14425
14426 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
14427
14428         * df-scan.c (struct df_scan_problem_data): Remove the
14429         mw_link_pool alloc pool.
14430         (df_scan_free_internal): Don't free it.
14431         (df_scan_alloc): Don't allocate it.
14432         * df.h (struct df_link): Update comment.
14433
14434 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
14435
14436         * except.h: Correct checks for when SJLJ exceptions must be used.
14437
14438 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14439
14440         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
14441         default.
14442
14443 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
14444
14445         PR tree-optimization/36218
14446         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
14447         configure for the build system.
14448         (BUILD_LDFLAGS): Define.
14449         * configure: Regenerate.
14450         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
14451
14452 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
14453
14454         PR target/36424
14455         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
14456         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
14457         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
14458
14459 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
14460
14461         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
14462
14463 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
14464
14465         * config.gcc (Obsolete configurations): Remove list of
14466         configurations.
14467         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
14468         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
14469         targets matched by those patterns.
14470         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
14471         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
14472         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
14473         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
14474         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14475         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
14476         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
14477         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
14478         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
14479         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
14480         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
14481         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
14482         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
14483         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
14484         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
14485         Make code for Solaris 7 and greater unconditional for Solaris.
14486         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
14487         Remove --with-* handling.
14488         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
14489         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
14490         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
14491         LINK_OS_WINDISS_SPEC): Remove.
14492         * config/rs6000/sysv4.opt (mwindiss): Remove.
14493         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
14494         * configure: Regenerate.
14495         * doc/cpp.texi: Don't mention BeOS.
14496         * doc/extend.texi (interrupt): Don't mention MS1.
14497         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
14498         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
14499         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
14500         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
14501         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
14502         Remove.
14503         * doc/invoke.texi (MT Options): Remove.
14504         (-mwindiss): Remove.
14505         (CRIS Options): Remove cris-axis-aout references.
14506         (HPPA Options): Don't mention hppa1.1-*-pro.
14507         * doc/md.texi: (MorphoTech family): Remove.
14508         * libgcc2.c: Don't handle UWIN.
14509         * config/alpha/t-unicosmk: Remove.
14510         * config/alpha/unicosmk.h: Remove.
14511         * config/arm/kaos-arm.h: Remove.
14512         * config/arm/kaos-strongarm.h: Remove.
14513         * config/arm/strongarm-coff.h: Remove.
14514         * config/arm/strongarm-elf.h: Remove.
14515         * config/arm/strongarm-pe.h: Remove.
14516         * config/arm/t-strongarm-pe: Remove.
14517         * config/arm/t-xscale-coff: Remove.
14518         * config/arm/t-xscale-elf: Remove.
14519         * config/arm/xscale-coff.h: Remove.
14520         * config/arm/xscale-elf.h: Remove.
14521         * config/chorus.h: Remove.
14522         * config/cris/aout.h: Remove.
14523         * config/cris/aout.opt: Remove.
14524         * config/cris/t-aout: Remove.
14525         * config/i386/beos-elf.h: Remove.
14526         * config/i386/kaos-i386.h: Remove.
14527         * config/i386/ptx4-i.h: Remove.
14528         * config/i386/sco5.h: Remove.
14529         * config/i386/sco5.opt: Remove.
14530         * config/i386/sysv4-cpp.h: Remove.
14531         * config/i386/sysv5.h: Remove.
14532         * config/i386/t-beos: Remove.
14533         * config/i386/t-sco5: Remove.
14534         * config/i386/t-uwin: Remove.
14535         * config/i386/uwin.asm: Remove.
14536         * config/i386/uwin.h: Remove.
14537         * config/kaos.h: Remove.
14538         * config/mips/windiss.h: Remove.
14539         * config/mt: Remove directory.
14540         * config/pa/pa-osf.h: Remove.
14541         * config/pa/pa-pro-end.h: Remove.
14542         * config/pa/t-pro: Remove.
14543         * config/ptx4.h: Remove.
14544         * config/rs6000/beos.h: Remove.
14545         * config/rs6000/kaos-ppc.h: Remove.
14546         * config/rs6000/t-beos: Remove.
14547         * config/rs6000/windiss.h: Remove.
14548         * config/sh/kaos-sh.h: Remove.
14549         * config/sol2-6.h: Remove.
14550         * config/sparc/sol26-sld.h: Remove.
14551         * config/sparc/sysv4-only.h: Remove.
14552         * config/vax/bsd.h: Remove.
14553         * config/vax/t-memfuncs: Remove.
14554         * config/vax/ultrix.h: Remove.
14555         * config/vax/vaxv.h: Remove.
14556         * config/windiss.h: Remove.
14557
14558 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
14559
14560         PR rtl-optimization/36438
14561         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
14562         for vector shifts with constant scalar shift operands.
14563
14564 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
14565
14566         * doc/invoke.texi: Document -march=xlr.
14567         * config/mips/xlr.md: New file.
14568         * config/mips/mips.md: Include it.
14569         (cpu): Add "xlr".
14570         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
14571         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
14572         (mips_rtx_cost_data): Likewise.
14573
14574 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
14575
14576         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
14577         PRE_INC and PRE_DEC cases.
14578
14579 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14580
14581         PR rtl-optimization/36419
14582         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
14583         the emitting jump insn.
14584
14585         PR target/36362
14586         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
14587         is not bool, boolify the whole *expr_p and convert to the desired type.
14588
14589 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14590
14591         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
14592         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
14593         Add omp_private_outer_ref hook, add another argument to
14594         omp_clause_default_ctor hook.
14595         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
14596         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
14597         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
14598         hook_tree_tree_tree_tree_null.
14599         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
14600         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
14601         * hooks.c (hook_tree_tree_tree_tree_null): New function.
14602         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
14603         * tree.def (OMP_TASK): New tree code.
14604         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
14605         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
14606         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
14607         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
14608         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
14609         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
14610         OMP_CLAUSE_COLLAPSE_EXPR): Define.
14611         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
14612         (OMP_DIRECTIVE_P): Add OMP_TASK.
14613         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
14614         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
14615         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
14616         and OMP_CLAUSE_UNTIED entries.
14617         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
14618         num_ops to 2.
14619         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14620         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
14621         * tree-pretty-print.c (dump_omp_clause): Handle
14622         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
14623         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
14624         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
14625         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
14626         warning about unsigned iterators.  Change decl/init/cond/incr
14627         arguments to TREE_VECs, check arguments for all collapsed loops.
14628         (c_finish_omp_taskwait): New function.
14629         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
14630         ws_clauses.
14631         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
14632         default_function_array_conversion on init.  Add par_clauses argument.
14633         If decl is present in parallel's lastprivate clause, change it to
14634         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
14635         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
14636         collapse count in clauses.
14637         (c_parser_omp_for, c_parser_omp_parallel): Adjust
14638         c_parser_omp_for_loop callers.
14639         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
14640         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
14641         (c_parser_omp_clause_name): Handle collapse and untied clauses.
14642         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
14643         functions.
14644         (c_parser_omp_clause_schedule): Handle schedule(auto).
14645         Include correct location in the error message.
14646         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
14647         and PRAGMA_OMP_CLAUSE_UNTIED.
14648         (OMP_TASK_CLAUSE_MASK): Define.
14649         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
14650         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
14651         * tree-nested.c (convert_nonlocal_omp_clauses,
14652         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
14653         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
14654         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14655         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
14656         OMP_CLAUSE_DECL.
14657         (conver_nonlocal_reference, convert_local_reference,
14658         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
14659         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
14660         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
14661         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
14662         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
14663         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
14664         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
14665         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
14666         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
14667         OMP_CLAUSE_UNTIED.
14668         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
14669         * c-common.h (c_finish_omp_taskwait): New prototype.
14670         * gimple-low.c (lower_stmt): Handle OMP_TASK.
14671         * tree-parloops.c (create_parallel_loop): Create 1 entry
14672         vectors for OMP_FOR_{INIT,COND,INCR}.
14673         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
14674         (make_edges): Handle OMP_TASK.
14675         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
14676         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14677         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
14678         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
14679         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
14680         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
14681         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
14682         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
14683         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
14684         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
14685         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
14686         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
14687         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
14688         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
14689         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
14690         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
14691         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
14692         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
14693         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
14694         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
14695         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
14696         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
14697         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
14698         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
14699         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
14700         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
14701         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
14702         original iterator is present in lastprivate clause or if
14703         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
14704         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14705         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
14706         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
14707         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
14708         if it is set, lookup var in outer contexts too.  Handle
14709         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
14710         to be implicitly determined firstprivate for task regions.
14711         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
14712         if it is set, lookup var in outer contexts too.  Set
14713         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
14714         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
14715         OMP_CLAUSE_UNTIED.  Take region_type as last argument
14716         instead of in_parallel and in_combined_parallel.
14717         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
14718         Adjust callers.
14719         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
14720         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
14721         (new_omp_context): Set default_kind to
14722         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
14723         (omp_region_type): New enum.
14724         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
14725         fields, add region_type.
14726         (new_omp_context): Take region_type as argument instead of is_parallel
14727         and is_combined_parallel.
14728         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
14729         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
14730         ctx->is_combined_parallel checks.
14731         (gimplify_omp_task): New function.
14732         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
14733         OMP_CLAUSE_UNTIED.
14734         * omp-low.c (extract_omp_for_data): Use schedule(static)
14735         for schedule(auto).  Handle pointer and unsigned iterators.
14736         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
14737         Add loops argument.  Extract data for collapsed OMP_FOR loops.
14738         (expand_parallel_call): Assert sched_kind isn't auto,
14739         map runtime schedule to index 3.
14740         (struct omp_for_data_loop): New type.
14741         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
14742         Add loop, loops, collapse and iter_type fields.
14743         (workshare_safe_to_combine_p): Disallow combined for if
14744         iter_type is unsigned long long.  Don't combine collapse > 1 loops
14745         unless all bounds and steps are constant.  Adjust extract_omp_for_data
14746         caller.
14747         (expand_omp_for_generic): Handle pointer, unsigned and long long
14748         iterators.  Handle collapsed OMP_FOR loops.  Adjust
14749         for struct omp_for_data changes.  If libgomp function doesn't return
14750         boolean_type_node, add comparison of the return value with 0.
14751         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
14752         pointer, unsigned and long long iterators.  Adjust for struct
14753         omp_for_data changes.
14754         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
14755         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
14756         unsigned long long.  Allocate loops array, pass it to
14757         extract_omp_for_data.  For collapse > 1 loops use always
14758         expand_omp_for_generic.
14759         (omp_context): Add sfield_map and srecord_type fields.
14760         (is_task_ctx, lookup_sfield): New functions.
14761         (use_pointer_for_field): Use is_task_ctx helper.  Change first
14762         argument's type from const_tree to tree.  Clarify comment.
14763         In OMP_TASK disallow copy-in/out sharing.
14764         (build_sender_ref): Call lookup_sfield instead of lookup_field.
14765         (install_var_field): Add mask argument.  Populate both record_type
14766         and srecord_type if needed.
14767         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
14768         in srecord_type.
14769         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
14770         and DECL_FIELD_OFFSET.
14771         (scan_sharing_clauses): Adjust install_var_field callers.  For
14772         firstprivate clauses on explicit tasks allocate the var by value in
14773         record_type unconditionally, rather than by reference.
14774         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
14775         Use is_taskreg_ctx instead of is_parallel_ctx.
14776         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14777         (create_omp_child_function_name): Add task_copy argument, use
14778         *_omp_cpyfn* names if it is true.
14779         (create_omp_child_function): Add task_copy argument, if true create
14780         *_omp_cpyfn* helper function.
14781         (scan_omp_parallel): Adjust create_omp_child_function callers.
14782         Rename parallel_nesting_level to taskreg_nesting_level.
14783         (scan_omp_task): New function.
14784         (lower_rec_input_clauses): Don't run constructors for firstprivate
14785         explicit task vars which are initialized by *_omp_cpyfn*.
14786         Pass outer var ref to omp_clause_default_ctor hook if
14787         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
14788         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
14789         OMP_CLAUSE_REDUCTION_INIT.
14790         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
14791         avoid duplicate setting of fields.  Handle
14792         OMP_CLAUSE_PRIVATE_OUTER_REF.
14793         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
14794         copy-out if TREE_READONLY, only copy-in.
14795         (expand_task_copyfn): New function.
14796         (expand_task_call): New function.
14797         (struct omp_taskcopy_context): New type.
14798         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
14799         New functions.
14800         (lower_omp_parallel): Rename to...
14801         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
14802         Call create_task_copyfn if srecord_type is needed.  Adjust
14803         sender_decl type.
14804         (task_shared_vars): New variable.
14805         (check_omp_nesting_restrictions): Warn if work-sharing,
14806         barrier, master or ordered region is closely nested inside OMP_TASK.
14807         Add warnings for barrier if closely nested inside of work-sharing,
14808         ordered, or master region.
14809         (scan_omp_1): Call check_omp_nesting_restrictions even for
14810         GOMP_barrier calls.  Rename parallel_nesting_level to
14811         taskreg_nesting_level.  Handle OMP_TASK.
14812         (lower_lastprivate_clauses): Even if some lastprivate is found on a
14813         work-sharing construct, continue looking for them on parent parallel
14814         construct.
14815         (lower_omp_for_lastprivate): Add lastprivate clauses
14816         to the beginning of dlist rather than end.  Adjust for struct
14817         omp_for_data changes.
14818         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
14819         not after it.  Handle collapsed OMP_FOR loops, adjust for
14820         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
14821         (get_ws_args_for): Adjust extract_omp_for_data caller.
14822         (scan_omp_for): Handle collapsed OMP_FOR
14823         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14824         (lower_omp_single_simple): If libgomp function doesn't return
14825         boolean_type_node, add comparison of the return value with 0.
14826         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
14827         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
14828         (parallel_nesting_level): Rename to...
14829         (taskreg_nesting_level): ... this.
14830         (is_taskreg_ctx): New function.
14831         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
14832         of is_parallel_ctx.
14833         (execute_lower_omp): Rename parallel_nesting_level to
14834         taskreg_nesting_level.
14835         (expand_omp_parallel): Rename to...
14836         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
14837         Call omp_task_call for OMP_TASK regions.
14838         (expand_omp): Adjust caller, handle OMP_TASK.
14839         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
14840
14841         * bitmap.c (bitmap_default_obstack_depth): New variable.
14842         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
14843         if argument is NULL and bitmap_default_obstack is already initialized.
14844         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
14845         at the end.
14846         * matrix-reorg.c (matrix_reorg): Likewise.
14847
14848 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
14849
14850         * config/i386/i386.md (*indirect_jump): Macroize using P
14851         mode iterator.  Remove !TARGET_64BIT from insn constraints.
14852         (*tablejump_1): Ditto.
14853         (*indirect_jump_rex64): Remove insn pattern.
14854         (*tablejump_1_rex64): Ditto.
14855         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
14856         and eh_return_si insn patterns.
14857
14858 2008-06-06  Richard Guenther  <rguenther@suse.de>
14859
14860         * tree-ssa-structalias.c (merge_smts_into): Remove.
14861         (find_what_p_points_to): Do not bother to compute the
14862         points-to set for pt_anything pointers.
14863         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
14864         for pt_anything pointers is ok.
14865
14866 2008-06-06  Jan Hubicka  <jh@suse.cz>
14867
14868         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
14869
14870 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14871
14872         * cgraph.c: Fix typos in comments.
14873         (cgraph_availability_names): Fix string typo.
14874         * fold-const.c: Fix typos in comments.
14875         (fold_binary): Fix typo in warning.
14876         * genautomata.c: Fix typos in comments.
14877         (check_presence_pattern_sets): Fix typo in local variable.
14878         (output_description): Fix typo in output.
14879         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
14880         * hwint.h: Likewise.
14881         * matrix-reorg.c (check_allocation_function): Likewise.
14882         * omega.c (smooth_weird_equations): Likewise.
14883         * auto-inc-dec.c: Fix typos in comments.
14884         * bb-reorder.c: Likewise.
14885         * builtins.c: Likewise.
14886         * c-common.c: Likewise.
14887         * c-cppbuiltin.c: Likewise.
14888         * c-parser.c: Likewise.
14889         * c-pretty-print.c: Likewise.
14890         * cfgcleanup.c: Likewise.
14891         * cfgexpand.c: Likewise.
14892         * cfghooks.c: Likewise.
14893         * cfglayout.c: Likewise.
14894         * cfgloopmanip.c: Likewise.
14895         * cgraphunit.c: Likewise.
14896         * coverage.c: Likewise.
14897         * dbxout.c: Likewise.
14898         * df-byte-scan.c: Likewise.
14899         * df-core.c: Likewise.
14900         * df-problems.c: Likewise.
14901         * df-scan.c: Likewise.
14902         * dfp.c: Likewise.
14903         * dominance.c: Likewise.
14904         * domwalk.c: Likewise.
14905         * dse.c: Likewise.
14906         * dwarf2out.c: Likewise.
14907         * emit-rtl.c: Likewise.
14908         * et-forest.c: Likewise.
14909         * function.c: Likewise.
14910         * function.h: Likewise.
14911         * gcc.c: Likewise.
14912         * gcov-io.c: Likewise.
14913         * gcov.c: Likewise.
14914         * gcse.c: Likewise.
14915         * genattrtab.c: Likewise.
14916         * ggc-page.c: Likewise.
14917         * gimplify.c: Likewise.
14918         * gthr-lynx.h: Likewise.
14919         * haifa-sched.c: Likewise.
14920         * ipa-cp.c: Likewise.
14921         * ipa-inline.c: Likewise.
14922         * ipa-prop.h: Likewise.
14923         * ipa-pure-const.c: Likewise.
14924         * ipa-struct-reorg.c: Likewise.
14925         * ipa-struct-reorg.h: Likewise.
14926         * ipa-type-escape.c: Likewise.
14927         * ipa.c: Likewise.
14928         * loop-doloop.c: Likewise.
14929         * mips-tfile.c: Likewise.
14930         * mkmap-flat.awk: Likewise.
14931         * mkmap-symver.awk: Likewise.
14932         * modulo-sched.c: Likewise.
14933         * omp-low.c: Likewise.
14934         * optabs.c: Likewise.
14935         * optabs.h: Likewise.
14936         * opts.c: Likewise.
14937         * passes.c: Likewise.
14938         * postreload-gcse.c: Likewise.
14939         * postreload.c: Likewise.
14940         * predict.c: Likewise.
14941         * pretty-print.h: Likewise.
14942         * profile.c: Likewise.
14943         * protoize.c: Likewise.
14944         * ra-conflict.c: Likewise.
14945         * real.c: Likewise.
14946         * recog.c: Likewise.
14947         * regclass.c: Likewise.
14948         * regs.h: Likewise.
14949         * reload.c: Likewise.
14950         * rtl-error.c: Likewise.
14951         * rtlanal.c: Likewise.
14952         * scan.h: Likewise.
14953         * sched-rgn.c: Likewise.
14954         * see.c: Likewise.
14955         * stmt.c: Likewise.
14956         * target.h: Likewise.
14957         * tree-dfa.c: Likewise.
14958         * tree-eh.c: Likewise.
14959         * tree-flow-inline.h: Likewise.
14960         * tree-inline.c: Likewise.
14961         * tree-into-ssa.c: Likewise.
14962         * tree-loop-distribution.c: Likewise.
14963         * tree-nested.c: Likewise.
14964         * tree-parloops.c: Likewise.
14965         * tree-pass.h: Likewise.
14966         * tree-pretty-print.c: Likewise.
14967         * tree-profile.c: Likewise.
14968         * tree-scalar-evolution.c: Likewise.
14969         * tree-sra.c: Likewise.
14970         * tree-ssa-alias-warnings.c: Likewise.
14971         * tree-ssa-ccp.c: Likewise.
14972         * tree-ssa-coalesce.c: Likewise.
14973         * tree-ssa-dom.c: Likewise.
14974         * tree-ssa-dse.c: Likewise.
14975         * tree-ssa-forwprop.c: Likewise.
14976         * tree-ssa-live.c: Likewise.
14977         * tree-ssa-live.h: Likewise.
14978         * tree-ssa-loop-im.c: Likewise.
14979         * tree-ssa-loop-ivopts.c: Likewise.
14980         * tree-ssa-loop-niter.c: Likewise.
14981         * tree-ssa-loop-prefetch.c: Likewise.
14982         * tree-ssa-phiopt.c: Likewise.
14983         * tree-ssa-phiprop.c: Likewise.
14984         * tree-ssa-sccvn.c: Likewise.
14985         * tree-ssa-ter.c: Likewise.
14986         * tree-ssa-threadupdate.c: Likewise.
14987         * tree-ssa.c: Likewise.
14988         * tree-vect-analyze.c: Likewise.
14989         * tree-vect-transform.c: Likewise.
14990         * tree-vectorizer.c: Likewise.
14991         * tree-vn.c: Likewise.
14992         * tree-vrp.c: Likewise.
14993         * tree.c: Likewise.
14994         * tree.def: Likewise.
14995         * tree.h: Likewise.
14996         * unwind-dw2-fde.c: Likewise.
14997         * unwind.inc: Likewise.
14998         * value-prof.c: Likewise.
14999         * vmsdbgout.c: Likewise.
15000
15001 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
15002
15003         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
15004         always place FP constants in the TOC for TARGET_POWERPC64.
15005         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
15006
15007 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
15008
15009         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
15010         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
15011         enable for TARGET_E500_DOUBLE.
15012         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
15013         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
15014         floating-point modes like integer modes for E500 double.
15015         (rs6000_legitimate_offset_address_p): Likewise.
15016         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
15017         addressing for DDmode for E500 double.
15018         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
15019         modes as using 64-bits of registers for E500 double.
15020         (spe_build_register_parallel): Do not handle DDmode or TDmode.
15021         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
15022         specially for E500 double.
15023         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
15024         TDmode for E500 double.
15025         (rs6000_gimplify_va_arg): Only handle SDmode in registers
15026         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
15027         (rs6000_split_multireg_move): Do not handle TDmode specially for
15028         E500 double.
15029         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
15030         using 64-bit registers for E500 double.
15031         (emit_frame_save): Do not handle DDmode specially for E500 double.
15032         (gen_frame_mem_offset): Likewise.
15033         (rs6000_function_value): Do not call spe_build_register_parallel
15034         for DDmode or TDmode.
15035         (rs6000_libcall_value): Likewise.
15036         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
15037         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
15038         for E500 double.
15039
15040 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
15041
15042         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
15043         in comments.
15044
15045 2008-06-04  Junjie Gu <jgu@tensilica.com>
15046
15047         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
15048         comparison for frame pointers.
15049
15050 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
15051
15052         PR target/27386
15053         * config/avr/avr.h (PUSH_ROUNDING): Remove.
15054
15055 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
15056
15057         PR target/30243
15058         * builtins.c (expand_builtin_signbit): Don't take lowpart when
15059         register is already smaller or equal to required mode.
15060
15061 2008-06-04  Xinliang David Li  <davidxl@google.com>
15062
15063         * tree-call-cdce.c: New file.
15064         (cond_dead_built_in_calls): New static variable.
15065         (input_domain): New struct.
15066         (check_pow): New function.
15067         (check_builtin_call): Ditto.
15068         (check_target_format): Ditto.
15069         (is_call_dce_candidate): Ditto.
15070         (gen_one_condition): Ditto.
15071         (gen_conditions_for_domain): Ditto.
15072         (get_domain): Ditto.
15073         (gen_conditions_for_pow_cst_base): Ditto.
15074         (gen_conditions_for_pow_int_base): Ditto.
15075         (gen_conditions_for_pow): Ditto.
15076         (get_no_error_domain): Ditto.
15077         (gen_shrink_wrap_conditions): Ditto.
15078         (shrink_wrap_one_built_in_call): Ditto.
15079         (shink_wrap_conditional_dead_built_in_calls): Ditto.
15080         (tree_call_cdce): Ditto.
15081         (gate_call_cdce): Ditto.
15082         (pass_call_cdce): New gimple pass.
15083         * passes.c: (init_optimization_passes): New pass.
15084         * tree-pass.h: New pass declaration.
15085         * opts.c (decode_options): New flag setting.
15086         * common.opt: Add -ftree-builtin-call-dce flag.
15087         * Makefile.in: Add new source file.
15088         * tempvar.def: New tv_id.
15089         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
15090
15091 2008-06-04  Richard Guenther  <rguenther@suse.de>
15092
15093         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
15094         (is_call_clobbered): Always check var_ann->call_clobbered.
15095         (mark_call_clobbered): Always set var_ann->call_clobbered.
15096         (clear_call_clobbered): Always clear var_ann->call_clobbered.
15097         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
15098         (reset_alias_info): Clear call clobbering info on MTAGs and
15099         globals as well.
15100         (set_pt_anything): Set pt_global_mem.
15101         (create_tag_raw): Adjust comment.
15102         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
15103
15104 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
15105             Maxim Kuvyrkov  <maxim@codesourcery.com>
15106
15107         * config/m68k/m68k.opt (mxgot): New option.
15108         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
15109         (m68k_output_addr_const_extra): New.
15110         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
15111         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
15112         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
15113         * doc/invoke.texi (M680x0 Options): Document -mxgot.
15114
15115 2008-06-04  Richard Guenther  <rguenther@suse.de>
15116
15117         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
15118         negative or non-representable offsets.
15119
15120 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
15121
15122         * config/i386/i386.c (ix86_gen_leave): New.
15123         (ix86_gen_pop1): Likewise.
15124         (ix86_gen_add3): Likewise.
15125         (ix86_gen_sub3): Likewise.
15126         (ix86_gen_sub3_carry): Likewise.
15127         (ix86_gen_one_cmpl2): Likewise.
15128         (ix86_gen_monitor): Likewise.
15129         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
15130         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15131         ix86_gen_one_cmpl2 and ix86_gen_monitor.
15132         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
15133         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
15134         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
15135         (ix86_expand_epilogue): Updated.
15136         (print_operand): Handle integer register operand for 'z'.
15137         (ix86_expand_strlensi_unroll_1): Likewise.
15138         (ix86_expand_strlen): Likewise.
15139         (ix86_expand_builtin): Likewise.
15140         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
15141         mov{q}/mov{l} and add{q}/add{l}.
15142
15143 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15144
15145         * config/i386/i386.md (P): New mode iterator.
15146         (SFmode push_operand splitter): Macroize DImode and SImode pushes
15147         using P mode iterator.
15148         (DFmode push_operand splitter): Ditto.
15149         (XFmode push_operand splitter): Ditto.
15150         (DFmode float_extend SFmode push_operand splitter): Ditto.
15151         (XFmode float_extend SFmode push_operand splitter): Do not generate
15152         SImode pushes for 64bit target.  Macroize Dimode and SImode
15153         pushes using P mode iterator.
15154         (XFmode float_extend DFmode push_operand splitter): Ditto.
15155
15156 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15157
15158         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
15159         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
15160         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
15161         return type to int.
15162         (ix86_call_abi_override): Remove check for call_used_regs.
15163
15164 2008-06-03  Richard Guenther  <rguenther@suse.de>
15165
15166         * tree-ssa-structalias.c (find_func_aliases): Add constraints
15167         for the lhs of calls if the return type contains pointers.
15168
15169 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15170
15171         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
15172         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
15173         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
15174         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
15175         of cfun and DEFAULT_ABI to deceide abi mode.
15176         (DEFAULT_ABI): New.
15177         (REG_PARM_STACK_SPACE): Removed.
15178         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
15179         (STACK_BOUNDARY): Use default target to deceide stack boundary.
15180         * config/i386/i386-protos.h (ix86_cfun_abi): New.
15181         (ix86_function_abi): Likewise.
15182         (ix86_function_type_abi): Likewise.
15183         (ix86_call_abi_override): Likewise.
15184         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
15185         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
15186         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
15187         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
15188         specific defines.
15189         (X86_64_REGPARM_MAX): New.
15190         (X86_64_SSE_REGPARM_MAX): New.
15191         (X64_REGPARM_MAX): New.
15192         (X64_SSE_REGPARM_MAX): New.
15193         (X86_32_REGPARM_MAX): New.
15194         (X86_32_SSE_REGPARM_MAX): New.
15195         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
15196         (ix86_function_regparm): Handle user calling abi.
15197         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
15198         by DEFAULT_ABI versus SYSV_ABI check.
15199         (ix86_reg_parm_stack_space): New.
15200         (ix86_function_type_abi): New.
15201         (ix86_call_abi_override): New.
15202         (ix86_function_abi): New.
15203         (ix86_cfun_abi): New.
15204         (init_cumulative_args): Call abi specific initialization.
15205         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
15206         (function_arg_64): Extend SSE_REGPARM_MAX check.
15207         (function_arg (): Remove TARGET_64BIT_MS_ABI.
15208         (ix86_pass_by_reference): Likewise.
15209         (ix86_function_value_regno_p): Likewise.
15210         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
15211         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
15212         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
15213         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
15214         (setup_incoming_varargs_64): Adjust regparm for call abi.
15215         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
15216         (ix86_va_start): Likewise.
15217         (ix86_gimplify_va_arg): Likewise.
15218         (ix86_expand_prologue): Likewise.
15219         (output_pic_addr_const): Likewise.
15220         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
15221         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
15222         (x86_output_mi_thunk): Likewise.
15223         (x86_function_profiler): Likewise.
15224         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
15225         (SYSV_ABI, MS_ABI): New constants.
15226         (DEFAULT_ABI): New.
15227         (init_regs): Add prototype of function in regclass.c file.
15228         (OVERRIDE_ABI_FORMAT): New.
15229         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
15230         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
15231         (OUTGOING_REG_PARM_STACK_SPACE): New.
15232         (ix86_reg_parm_stack_space): New prototype.
15233         (CUMULATIVE_ARGS): Add call_abi member.
15234         (machine_function): Add call_abi member.
15235         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
15236         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
15237
15238 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
15239
15240         PR target/34879
15241         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
15242         (avr_builtin_setjmp_frame_value): New function.
15243         * config/avr/avr.md (nonlocal_goto_receiver): Define.
15244         (nonlocal_goto): Define.
15245
15246 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
15247
15248         * config/mips/mips.c (mips_emit_loadgp): Return early if
15249         there is nothing do to, otherwise emit a blockage if
15250         !TARGET_EXPLICIT_RELOCS || crtl->profile.
15251         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
15252
15253 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15254
15255         * configure.ac: Drop unneeded backslash ending up in config.in.
15256         * acinclude.m4: Likewise.
15257         * config.in: Regenerate.
15258
15259 2008-05-26  Jan Hubicka  <jh@suse.cz>
15260
15261         * predict.c (maybe_hot_frequency_p): Break out of...
15262         (maybe_hot_bb_p): ... here.
15263         (maybe_hot_edge_p): New.
15264         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
15265         * basic-block.h (maybe_hot_edge_p): Declare.
15266
15267 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
15268
15269         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
15270         (*cmpfp_<mode>_cc): Ditto.
15271         (*fp_jcc_8<mode>_387): Ditto.
15272         (*fop_<MODEF:mode>_2_i387): Ditto.
15273         (*fop_<MODEF:mode>_3_i387): Ditto.
15274         (*fop_xf_2_i387): Ditto.
15275         (*fop_xf_3_i387): Ditto.
15276
15277 2008-06-02  Tomas Bily  <tbily@suse.cz>
15278
15279         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
15280
15281 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15282
15283         * config/mips/mips.c (mips_valid_offset_p): New function.
15284         (mips_valid_lo_sum_p): Likewise.
15285         (mips_classify_address): Use them.
15286         (mips_force_address): New function.
15287         (mips_legitimize_address): Use it.
15288         * config/mips/mips.md (MOVE128): New mode iterator.
15289         (movtf): Require TARGET_64BIT.  Remove empty strings.
15290         (*movtf_internal): Rename to...
15291         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
15292         of "R" and use {,fp}{load,store} attributes instead of "multi".
15293         Use a separate define_split.
15294         (*movtf_mips16): New pattern.
15295
15296 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15297
15298         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
15299         * config/mips/mips.c (mips_expand_before_return): New function.
15300         (mips_expand_epilogue): Call it.
15301         * config/mips/mips.md (return): Turn into a define_expand.
15302         (*return): New insn.
15303
15304 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15305
15306         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
15307         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
15308         functions.  Do not emit uses and clobbers of CONCATs; individually
15309         use and clobber their operands.
15310         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
15311         gen_clobber, emit_use and gen_use.
15312         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15313         (expand_builtin_return): Likewise.
15314         * cfgbuild.c (count_basic_blocks): Likewise.
15315         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
15316         * explow.c (emit_stack_restore): Likewise.
15317         * expmed.c (extract_bit_field_1): Likewise.
15318         * expr.c (convert_move, emit_move_complex_parts): Likewise.
15319         (emit_move_multi_word, store_constructor): Likewise.
15320         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
15321         (thread_prologue_and_epilogue_insns): Likewise.
15322         * lower-subreg.c (resolve_simple_move): Likewise.
15323         * optabs.c (widen_operand, expand_binop): Likewise.
15324         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
15325         * reload.c (find_reloads): Likewise.
15326         * reload1.c (eliminate_regs_in_insn): Likewise.
15327         * stmt.c (expand_nl_goto_receiver): Likewise.
15328         * config/alpha/alpha.md (builtin_longjmp): Likewise.
15329         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
15330         * config/arm/arm.c (arm_load_pic_register): Likewise.
15331         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
15332         * config/arm/arm.md (untyped_return): Likewise.
15333         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
15334         * config/avr/avr.c (expand_prologue): Likewise.
15335         * config/bfin/bfin.c (do_unlink): Likewise.
15336         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
15337         * config/cris/cris.c (cris_expand_prologue): Likewise.
15338         * config/darwin.c (machopic_indirect_data_reference): Likewise.
15339         (machopic_legitimize_pic_address): Likewise.
15340         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
15341         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
15342         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
15343         (ix86_expand_convert_uns_didf_sse): Likewise.
15344         (ix86_expand_vector_init_general): Likewise.
15345         * config/ia64/ia64.md (eh_epilogue): Likewise.
15346         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
15347         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
15348         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
15349         (config/iq2000/iq2000.c): Likewise.
15350         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
15351         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
15352         (builtin_longjmp): Likewise.
15353         * config/mn10300/mn10300.md (call, call_value): Likewise.
15354         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
15355         * config/pdp11/pdp11.md (abshi2): Likewise.
15356         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15357         * config/s390/s390.c (s390_emit_prologue): Likewise.
15358         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
15359         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
15360         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
15361         * config/sh/sh.c (prepare_move_operands): Likewise.
15362         (output_stack_adjust, sh_expand_epilogue): Likewise.
15363         (sh_set_return_address, sh_expand_t_scc): Likewise.
15364         * config/sparc/sparc.c (load_pic_register): Likewise.
15365         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
15366         * config/spu/spu.c (spu_expand_epilogue): Likewise.
15367         * config/v850/v850.c (expand_epilogue): Likewise.
15368
15369 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
15370
15371         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
15372         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
15373         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
15374         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
15375         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
15376         stack pointer register.
15377         (output_movhi): Remove code for interrupt specific writing to the
15378         stack pointer register.
15379
15380 2008-05-31  Richard Guenther  <rguenther@suse.de>
15381
15382         PR tree-optimization/34244
15383         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
15384         (tree_expr_nonzero_warnv_p): Likewise.
15385         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
15386         ssa_name_nonnegative_p.
15387         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
15388         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
15389         not tree_expr_nonzero_warnv_p.
15390
15391         PR tree-optimization/36262
15392         Revert
15393         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
15394
15395         PR tree-optimization/34244
15396         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
15397         (record_numbers_of_iterations): New function.
15398         (execute_vrp): Cache the numbers of iterations of loops.
15399         * tree-scalar-evolution.c (scev_reset_except_niters):
15400         New function.
15401         (scev_reset): Use scev_reset_except_niters.
15402         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
15403
15404 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15405
15406         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15407         __WORKAROUND_RETS when appropriate.
15408
15409 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
15410
15411         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
15412         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
15413         mode iterator.
15414         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
15415         *fop_df_comm_sse insn patterns using MODEF mode iterator.
15416         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
15417         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
15418         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
15419         *fop_df_1_mixed insn patterns using MODEF mode iterator.
15420         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
15421         *fop_df_1_sse insn patterns using MODEF mode iterator.
15422         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
15423         *fop_df_1_i387 insn patterns using MODEF mode iterator.
15424         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
15425         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
15426         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
15427         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
15428         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
15429         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
15430         (*fop_xf_4_i387): Use <MODE> for mode attribute.
15431         (*fop_xf_5_i387): Ditto.
15432         (*fop_xf_6_i387): Ditto.
15433
15434 2008-05-30  Richard Guenther  <rguenther@suse.de>
15435
15436         * builtins.c (build_string_literal): Avoid generating
15437         a non-gimple_val result.
15438
15439 2008-05-30  DJ Delorie  <dj@redhat.com>
15440
15441         * exec-tool.in: Use an environment variable (private) instead of a
15442         file (shared) as a semaphore, so as to not break parallel builds.
15443
15444 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
15445
15446         * optabs.c (maybe_encapsulate_block): Remove.
15447         (emit_libcall_block): Adjust accordingly.
15448         * optabs.h (maybe_encapsulate_block): Remove prototype.
15449
15450         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
15451         Don't use maybe_encapsulate_block.
15452
15453 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
15454
15455         * config/rs6000/rs6000.c (rs6000_legitimize_address,
15456         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
15457         rtx is a SYMBOL_REF before calling get_pool_constant.
15458
15459 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
15460
15461         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
15462
15463 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
15464
15465         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
15466         rather than OS names to choose INO_T_EQ definition.
15467         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
15468         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
15469
15470 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
15471
15472         PR target/36348
15473         * config/darwin-f.c: New.
15474         * config/t-darwin: Added rule to build darwin-f.o.
15475         * config.gcc: Defined new variable, fortran_target_objs.
15476         (*-*-darwin*): Set fortran_target_objs.
15477         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
15478         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
15479         * configure: Regenerated.
15480
15481 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15482
15483         PR target/35771
15484         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
15485         canonical type if needed.
15486
15487 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15488
15489         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
15490
15491 2008-05-29  Richard Guenther  <rguenther@suse.de>
15492
15493         PR tree-optimization/36343
15494         PR tree-optimization/36346
15495         PR tree-optimization/36347
15496         * tree-flow.h (clobber_what_p_points_to): Declare.
15497         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
15498         pointed-to variable is dereferenced is irrelevant to whether
15499         the pointer can access the pointed-to variable.
15500         (clobber_what_p_points_to): New function.
15501         * tree-ssa-alias.c (set_initial_properties): Use it.
15502         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
15503         call clobber check for NMTs.
15504
15505 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
15506
15507         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
15508         for printing gcov_type.
15509
15510 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
15511
15512         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
15513         and the eh region information.
15514         * value-prof.c (gimple_move_stmt_histograms): New function.
15515         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
15516
15517 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
15518
15519         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
15520
15521 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
15522
15523         * value-prof.c (tree_ic_transform): Print counts.
15524         * tree-profile.c (tree_gen_ic_func_profiler):
15525         Clear __gcov_indreict_call_callee variable to avoid misattribution
15526         of the profile.
15527
15528 2008-05-28  Rafael Espíndola  <espindola@google.com>
15529
15530         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
15531         invalid sharing.
15532
15533 2008-05-28  Richard Guenther  <rguenther@suse.de>
15534
15535         PR tree-optimization/36339
15536         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
15537         and clobbering code out of the loop.
15538
15539 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
15540
15541         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
15542         letters defined.
15543
15544         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
15545         s390_contiguous_bitmask_p, s390_symref_operand_p,
15546         s390_check_symref_alignment, s390_reload_larl_operand,
15547         s390_reload_symref_address): New functions.
15548         (s390_branch_condition_mnemonic): Support compare and branch
15549         instructions.
15550         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
15551         and 'W' constraints.
15552         (s390_secondary_reload): Add secondary reloads for unaligned
15553         symbol refs or symbol refs to floating point or QI/TI mode
15554         integer values.
15555         (legitimate_address_p): Accept symbol references as addresses.
15556         (s390_expand_insv): Use rotate and insert selected bits
15557         instruction for insv when building for z10.
15558         (print_operand_address): Handle symbol ref addresses.
15559         (print_operand): Output modifier 'c' added for signed byte values.
15560         (s390_encode_section_info): Mark symbol refs with
15561         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
15562
15563         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
15564         (length attribute): RRF, RRR have 4 byte length.
15565         (FPALL, INTALL): New mode iterators added.
15566         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
15567         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
15568         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
15569         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
15570         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
15571         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
15572         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
15573         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
15574         instructions.
15575         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
15576         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
15577         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
15578         reload<INTALL:mode><P:mode>_toreg_z10,
15579         reload<FPALL:mode><P:mode>_tomem_z10,
15580         reload<FPALL:mode><P:mode>_toreg_z10,
15581         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
15582         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
15583         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
15584         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
15585         definition.
15586         (movmem, clrmem, cmpmem): New splitters added.
15587
15588         * config/s390/predicates.md (larl_operand): Use
15589         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
15590         SYMBOL_REF_ALIGN1_P.
15591         (s390_signed_integer_comparison,
15592         s390_unsigned_integer_comparison): New predicates.
15593
15594         * config/s390/s390-protos.h (s390_check_symref_alignment,
15595         s390_contiguous_bitmask_p, s390_reload_larl_operand,
15596         s390_reload_symref_address,
15597         s390_compare_and_branch_condition_mask): Prototypes added.
15598
15599         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
15600         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
15601         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
15602
15603 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
15604
15605         * config/s390/s390.c (z10_cost): New cost function for z10.
15606         (s390_handle_arch_option, override_options): Support -march=z10 switch.
15607         (s390_issue_rate): Adjust issue rate for z10.
15608         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
15609         (processor_flags): Add PF_Z10.
15610         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
15611         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
15612         * gcc/config.gcc: Add z10.
15613
15614 2008-05-28  Richard Guenther  <rguenther@suse.de>
15615
15616         PR tree-optimization/36291
15617         * tree-flow. h (struct gimple_df): Remove var_anns member.
15618         * tree-flow-inline.h (gimple_var_anns): Remove.
15619         (var_ann): Simplify.
15620         * tree-dfa.c (create_var_ann): Simplify.
15621         (remove_referenced_var): Clear alias info from var_anns of globals.
15622         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
15623         (delete_tree_ssa): Clear alias info from var_anns of globals.
15624         Do not free var_anns.
15625         (var_ann_eq): Remove.
15626         (var_ann_hash): Likewise.
15627
15628 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
15629
15630         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
15631         and loongson2f entries.
15632         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
15633         * config/mips/mips.h (processor_type): Add Loongson-2E
15634         and Loongson-2F entries.
15635         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
15636         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
15637         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
15638         * doc/invoke.texi (MIPS Options): Document loongson2e
15639         and loongson2f processor names.
15640
15641 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15642
15643         PR target/35767
15644         PR target/35771
15645         * config/i386/i386.c (ix86_function_arg_boundary): Use
15646         alignment of canonical type.
15647         (ix86_expand_vector_move): Check unaligned memory access for
15648         all SSE modes.
15649
15650 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15651
15652         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
15653         Moved to the front of file.
15654
15655 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
15656             H.J. Lu  <hongjiu.lu@intel.com>
15657
15658         * dwarf2out.c (current_fde): New.
15659         (add_cfi): Use it.
15660         (lookup_cfa:): Likewise.
15661         (dwarf2out_end_epilogue): Likewise.
15662         (dwarf2out_note_section_used): Likewise.
15663
15664 2008-05-27  Michael Matz  <matz@suse.de>
15665
15666         PR c++/27975
15667         * c.opt (Wenum-compare): New warning option.
15668         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
15669
15670 2008-05-27  Michael Matz  <matz@suse.de>
15671
15672         PR middle-end/36326
15673         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
15674         non-BLKmode types.
15675         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
15676         into memory as tail calls.
15677
15678 2008-05-27  Richard Guenther  <rguenther@suse.de>
15679
15680         PR tree-optimization/36339
15681         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
15682         pointers cause all addressable variables to be call clobbered.
15683
15684 2008-05-27  Richard Guenther  <rguenther@suse.de>
15685
15686         PR tree-optimization/36245
15687         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
15688
15689 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15690
15691         * config/s390/s390.md: Replace all occurences of the 'm'
15692         constraint with 'RT'.
15693
15694 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15695
15696         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
15697         definitions added.
15698         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
15699         "*movdi_64".
15700         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
15701         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
15702         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
15703
15704 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15705
15706         * reload.c: (find_reloads): Skip alternatives according to the
15707         "enabled" attribute. Constify the constraint variable.
15708         * recog.c (get_attr_enabled): Add default implementation.
15709         (extract_insn): Set the alternative_enabled_p array
15710         in the recog_data struct.
15711         (preprocess_constraints, constrain_operands): Skip
15712         alternatives according to the "enabled" attribute
15713         * recog.h (struct recog_data): New field alternative_enabled_p.
15714         (skip_alternative): New inline function.
15715         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
15716         (record_reg_classes): Skip alternative according to the
15717         "enabled" attribute.
15718
15719         * doc/md.texi: Add documention for the "enabled" attribute.
15720
15721 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15722
15723         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
15724         * postreload.c (reload_cse_simplify_operands): Replace 'm'
15725         constraint with TARGET_MEM_CONSTRAINT.
15726         * recog.c (asm_operand_ok, preprocess_constraints,
15727         constrain_operands): Likewise.
15728         * regclass.c (record_reg_classes): Likewise.
15729         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
15730         * reload1.c (maybe_fix_stack_asms): Likewise.
15731         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15732         * recog.h: Adjust comment.
15733         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
15734         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
15735         * doc/md.texi: Add a note to description of 'm' constraint.
15736         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
15737
15738 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15739
15740         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
15741         that the bitfield is of integral type before testing its precision.
15742
15743 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
15744             Sa Liu  <saliu@de.ibm.com>
15745
15746         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
15747         __modti3, __udivti3, __umodti3 and __udivmodti4.
15748         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
15749         that implement TImode mul and div functions.
15750         * config/spu/multi3.c: New. Implement __multi3.
15751         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
15752         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
15753         functions on SPU.
15754
15755 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
15756
15757         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
15758         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
15759         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
15760         tls_sysv_suffix): New mode and mode attribute iterators.
15761         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
15762         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
15763         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
15764         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
15765         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
15766         iterators.
15767
15768 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15769
15770         PR tree-optimization/36329
15771         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
15772         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
15773         * cgraphbuild.c (initialize_inline_failed): Use the latter
15774         macro in lieu of the former.
15775         * ipa-inline.c (cgraph_mark_inline): Likewise.
15776         (cgraph_decide_inlining_of_small_function): Likewise.
15777         (cgraph_decide_inlining): Likewise.
15778         (cgraph_decide_inlining_incrementally): Likewise.
15779
15780 2008-05-26  Tristan Gingold  <gingold@adacore.com>
15781             Anatoly Sokolov  <aesok@post.ru>
15782
15783         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
15784         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
15785         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
15786         optimization for 'avr6' architecture.
15787
15788 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
15789
15790         PR target/34932
15791         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
15792
15793 2008-05-26  Richard Guenther  <rguenther@suse.de>
15794
15795         * tree-ssa-sccvn.c (expr_has_constants): Declare.
15796         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
15797
15798 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         PR middle-end/36253
15801         * caller-save.c (insert_restore): Verify alignment of spill space.
15802         (insert_save): Likewise.
15803         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
15804         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
15805         (STACK_SLOT_ALIGNMENT): Likewise.
15806         * function.c (LOCAL_ALIGNMENT): Removed.
15807         (get_stack_local_alignment): New.
15808         (assign_stack_local): Use it.  Set alignment on stack slot.
15809         (assign_stack_temp_for_type): Use get_stack_local_alignment.
15810         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
15811         (STACK_SLOT_ALIGNMENT): New.
15812         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
15813         stack slot in XFmode.
15814
15815         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
15816
15817 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
15818
15819         PR/36321
15820         * config/i386/i386.md (allocate_stack_worker_64): Make sure
15821         argument operand in rax isn't removed.
15822
15823 2008-05-26  Richard Guenther  <rguenther@suse.de>
15824
15825         PR middle-end/36300
15826         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
15827         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
15828
15829 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15830
15831         PR bootstrap/36331
15832         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
15833
15834 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
15835
15836         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
15837         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
15838
15839 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15840
15841         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
15842         build a trampoline if we don't want one.
15843         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
15844         return zero for nested functions if we don't want a trampoline.
15845
15846 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15847
15848         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
15849
15850 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15851
15852         PR fortran/18428
15853         * c.opt: Removed undocumented option '-lang-fortran'.
15854         * c-common.h: Removed global variable 'lang_fortran'.
15855         * c-opts.c (c_common_handle_option): Removed code to handle
15856         option '-lang-fortran'. Updated includes.
15857         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
15858         definition of '__GFORTRAN__'.
15859         (define__GNUC__): Reimplemented to use BASEVER and
15860         cpp_define_formatted.
15861         (builtin_define_with_value_n): Removed.
15862         * c-incpath.h: Renamed to ...
15863         * incpath.h: ... this.
15864         * c-incpath.c: Renamed to ...
15865         * incpath.c: ... this. Updated includes.
15866         * fix-header.c: Updated includes.
15867         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
15868         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
15869         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
15870
15871 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15872
15873         * tree.h: Update the table of flags used on tree nodes.
15874         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
15875         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
15876         (FORCED_LABEL): Add access check.
15877         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
15878         (ASM_INPUT_P): Likewise.
15879         (ASM_VOLATILE_P): Likewise.
15880         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
15881         (OMP_SECTION_LAST): Access private_flag directly.
15882         (OMP_RETURN_NOWAIT): Likewise.
15883         (OMP_PARALLEL_COMBINED): Likewise.
15884         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
15885         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
15886         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
15887         deprecated_flag directly.
15888
15889 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15890
15891         * final.c (frame_pointer_needed): Removed.
15892         * flags.h (frame_pointer_needed): Likewise.
15893
15894         * function.h (rtl_data): Add frame_pointer_needed.
15895         (frame_pointer_needed): New.
15896
15897 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
15898
15899         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
15900
15901 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
15902
15903         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
15904         SRC is a REG.
15905
15906 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
15907
15908         * c-common.c (strip_array_types): Move function to..
15909         * tree.c: ..here.
15910         (get_inner_array_type): Delete.
15911         * c-common.h (strip_array_types): Move declaration to..
15912         * tree.h: ..here.
15913         (get_inner_array_type): Delete.
15914         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
15915         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
15916         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15917         * config/pa/pa.c (emit_move_sequence): Likewise.
15918
15919 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15920
15921         * config/i386/i386.md (*sse_prologue_save_insn): Set length
15922         attribute to 34.
15923
15924 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
15925
15926         * function.c: Include target hook for nonlocal_goto frame value.
15927
15928 2008-05-24  Richard Guenther  <rguenther@suse.de>
15929
15930         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
15931         variable can be only accessed through a pointer or a union.
15932
15933 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15934
15935         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
15936         * doc/extend.texi: Likewise.
15937
15938 2008-05-23  DJ Delorie  <dj@redhat.com>
15939
15940         * config/m32c/jump.md (untyped_call): Add.
15941
15942         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
15943         for A24 to PSImode.
15944         (m32c_address_cost): Detail costs for indirect offsets.
15945
15946 2008-05-23  Rafael Espíndola  <espindola@google.com>
15947
15948         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
15949         if a node is a SUBREG.
15950         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
15951         is a SUBREG.
15952
15953 2008-05-23  Paul Brook  <paul@codesourcery.com>
15954             Carlos O'Donell  <carlos@codesourcery.com>
15955
15956         * doc/extend.texi: Clarify use of __attribute__((naked)).
15957         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
15958         * target.h (gcc_target): Add allocate_stack_slots_for_args.
15959         * function.c (use_register_for_decl): Use
15960         targetm.calls.allocate_stack_slots_for_args.
15961         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
15962         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
15963         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
15964
15965 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15966
15967         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
15968
15969 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
15970
15971         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
15972         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
15973         is only rounded once.
15974
15975 2008-05-23  Richard Guenther  <rguenther@suse.de>
15976
15977         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
15978
15979 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
15980             Jakub Jelinek  <jakub@redhat.com>
15981
15982         PR target/36079
15983         * configure.ac: Handle --enable-cld.
15984         * configure: Regenerated.
15985         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
15986         * config/i386/i386.h (struct machine_function): Add needs_cld field.
15987         (ix86_current_function_needs_cld): New define.
15988         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
15989         (cld): New isns pattern.
15990         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
15991         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
15992         * config/i386/i386.opt (mcld): New option.
15993         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
15994         TARGET_CLD and ix86_current_function_needs_cld.
15995         (override_options): Use -mcld by default for 32-bit code if
15996         USE_IX86_CLD.
15997
15998         * doc/install.texi (Options specification): Document --enable-cld.
15999         * doc/invoke.texi (Machine Dependent Options)
16000         [i386 and x86-64 Options]: Add -mcld option.
16001         (Intel 386 and AMD x86-64 Options): Document -mcld option.
16002
16003 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
16004         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
16005         (return_in_memory_64): Likewise.
16006         (return_in_memory_ms_64): Likewise.
16007
16008 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16009
16010         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
16011         * builtins.c (fold_builtin_fpclassify): New.
16012         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
16013         * builtins.def (BUILT_IN_FPCLASSIFY): New.
16014         * c-common.c (handle_type_generic_attribute): Adjust to accept
16015         fixed arguments before an elipsis.
16016         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
16017         * doc/extend.texi: Document __builtin_fpclassify.
16018
16019 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
16020
16021         * omp-low.c (gate_expand_omp_ssa): Remove.
16022         (pass_expand_omp_ssa): Remove.
16023         (gate_expand_omp): Do not check for flag_openmp_ssa.
16024         * common.opt (-fopenmp-ssa): Remove.
16025         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
16026
16027 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16028
16029         * config/sh/sh.opt (mfixed-range): New option.
16030         * config/sh/sh-protos.h (sh_fix_range): Declare.
16031         * config/sh/sh.c (sh_fix_range): New function.
16032         * config/sh/sh.h (sh_fixed_range_str): Declare.
16033         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
16034         is not empty.
16035         * doc/invoke.texi (SH Options): Document -mfixed-range.
16036
16037 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
16038
16039         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
16040         it before the redeclaration.
16041
16042 2008-05-22  Anatoly Sokolov <aesok@post.ru>
16043
16044         * config/avr/avr.c (get_sequence_length): Add new function.
16045         (expand_prologue, expand_epilogue): Remove duplicate code.
16046
16047 2008-05-22  Rafael Espíndola  <espindola@google.com>
16048
16049         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
16050         sharing.
16051
16052 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
16053
16054         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
16055         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
16056
16057         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
16058         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
16059         (vect_update_misalignment_for_peel): Likewise.
16060         (vector_alignment_reachable_p): Likewise.
16061         * tree-vect-transform.c (vectorizable_load): Likewise.
16062         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
16063         (get_vectype_for_scalar_type): Pass mode of scalar_type
16064         to UNITS_PER_SIMD_WORD.
16065
16066         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
16067         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
16068         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
16069         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
16070         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
16071
16072 2008-05-22  Ira Rosen  <irar@il.ibm.com>
16073
16074         PR tree-optimization/36293
16075         * tree-vect-transform.c (vect_transform_strided_load): Don't check
16076         if the first load must be skipped because of a gap.
16077
16078 2008-05-22  Richard Guenther  <rguenther@suse.de>
16079
16080         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
16081         more cases of offset disambiguation that is possible if
16082         strict-aliasing rules apply.
16083         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
16084         for basic offset and type-based disambiguation.
16085
16086 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16087
16088         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
16089         ix86_expand_vector_set on V16QImode for SSE4.1.
16090
16091 2008-05-21  Tom Tromey  <tromey@redhat.com>
16092
16093         * c.opt (Wimport): Mark as undocumented.
16094         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
16095         -Wno-import.
16096         (Warning Options): Likewise.
16097         * doc/cppopts.texi: Don't mention -Wimport.
16098
16099 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
16100
16101         PR tree-optimization/36287
16102         PR tree-optimization/36286
16103         * lambda-code.c (build_access_matrix): Do not use the loop->num
16104         for computing the number of induction variables: use the loop depth
16105         instead.
16106
16107 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
16108
16109         PR/36280
16110         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
16111         option -f(no-)leading-underscore.
16112
16113 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16114
16115         * config/i386/i386.c (ix86_expand_vector_init_general): Use
16116         GET_MODE_NUNITS (mode).
16117
16118 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
16119
16120         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
16121         (-mmulhw): Add 464 to description.
16122         (-mdlmzb): Likewise.
16123         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
16124         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
16125         464fp entries.
16126         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
16127         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
16128         * config/rs6000/rs6000.md: Update comments for 464.
16129
16130 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
16131
16132         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
16133
16134 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16135
16136         * config/i386/sse.md (vec_extractv4sf): Removed.
16137         (vec_extractv2df): Likewise.
16138         (vec_extractv2di): Likewise.
16139         (vec_extractv4si): Likewise.
16140         (vec_extractv8hi): Likewise.
16141         (vec_extractv16qi): Likewise.
16142         (vec_extract<mode>): New.
16143
16144 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16145
16146         * config/i386/sse.md (vec_setv4sf): Removed.
16147         (vec_setv2df): Likewise.
16148         (vec_setv2di): Likewise.
16149         (vec_setv4si): Likewise.
16150         (vec_setv8hi): Likewise.
16151         (vec_setv16qi): Likewise.
16152         (vec_set<mode>): New.
16153
16154 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16155
16156         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
16157         goto for vec_concat and vec_interleave.
16158
16159 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16160
16161         * config/i386/sse.md (vec_initv4sf): Removed.
16162         (vec_initv2df): Likewise.
16163         (vec_initv2di): Likewise.
16164         (vec_initv4si): Likewise.
16165         (vec_initv8hi): Likewise.
16166         (vec_initv16qi): Likewise.
16167         (vec_init<mode>): New.
16168
16169 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
16170
16171         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
16172
16173 2008-05-21  Tom Tromey  <tromey@redhat.com>
16174
16175         * ggc-zone.c (lookup_page_table_if_allocated): New function.
16176         (zone_find_object_offset): Likewise.
16177         (gt_ggc_m_S): Likewise.
16178         (highest_bit): Likewise.
16179         * ggc-page.c (gt_ggc_m_S): New function.
16180         * stringpool.c (string_stack): Remove.
16181         (init_stringpool): Update.
16182         (ggc_alloc_string): Use ggc_alloc.
16183         (maybe_delete_ident): New function.
16184         (ggc_purge_stringpool): Likewise.
16185         (gt_ggc_m_S): Remove.
16186         * ggc-common.c (ggc_protect_identifiers): New global.
16187         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
16188         ggc_protect_identifiers.
16189         * ggc.h (ggc_protect_identifiers): Declare.
16190         (gt_ggc_m_S): Update.
16191         (ggc_purge_stringpool): Declare.
16192         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
16193         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
16194         special case.
16195         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
16196
16197 2008-05-21  David S. Miller  <davem@davemloft.net>
16198
16199         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
16200         tmake_file.
16201
16202 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16203
16204         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
16205         once finished.
16206
16207 2008-05-20  David Daney  <ddaney@avtrex.com>
16208
16209         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
16210         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
16211         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16212         UNSPEC_UPDATE_GOT_VERSION): Renumber.
16213         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
16214         (atomic_hiqi_op): New define_code_iterator.
16215         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
16216         mips_expand_compare_and_swap_12.
16217         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
16218         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
16219         (sync_<optab><mode>, sync_old_<optab><mode>,
16220         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
16221         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
16222         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
16223         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
16224         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
16225         (test_and_set_12): New insn.
16226         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
16227         sync_new_<optab><mode>, sync_old_nand<mode>,
16228         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
16229         clobber to operand 0 for SI and DI mode insns.
16230         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
16231         mips_gen_fn_4): New typedefs.
16232         (mips_gen_fn_ptrs): Define new union type.
16233         (mips_expand_compare_and_swap_12): Remove declaration.
16234         (mips_expand_atomic_qihi): Declare function.
16235         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
16236         (mips_expand_atomic_qihi): ... this.  Use new generator function
16237         parameter.
16238         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
16239         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
16240         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
16241         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
16242         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
16243         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
16244         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
16245         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
16246         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
16247         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
16248         New macros.
16249
16250 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16251
16252         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
16253         the missing break.
16254
16255 2008-05-20  Anatoly Sokolov <aesok@post.ru>
16256
16257         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
16258         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
16259         (avr_attribute_table): Add 'OS_main' function attribute.
16260         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
16261         functions with 'OS_main' attribute.
16262
16263 2008-05-20  Richard Guenther  <rguenther@suse.de>
16264
16265         PR tree-optimization/35204
16266         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
16267         helper, split out from ...
16268         (DFS): ... here.  Make the DFS walk non-recursive.
16269
16270 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
16271             Jan Sjodin  <jan.sjodin@amd.com>
16272
16273         PR tree-optimization/36181
16274         * tree-parloops.c (loop_has_vector_phi_nodes): New.
16275         (parallelize_loops): Don't parallelize when the loop has vector
16276         phi nodes.
16277
16278 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16279             Sebastian Pop  <sebastian.pop@amd.com>
16280
16281         * tree-loop-linear.c (gather_interchange_stats): Look in the access
16282         matrix, and never look at the tree representation of the memory
16283         accesses.
16284         (linear_transform_loops): Computes parameters and access matrices.
16285         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
16286         when fails.
16287         (access_matrix_get_index_for_parameter): New.
16288         * tree-data-ref.h (struct access_matrix): New.
16289         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16290         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16291         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
16292         am_vector_index_for_loop): New.
16293         (struct data_reference): Add field access_matrix.
16294         (DR_ACCESS_MATRIX): New.
16295         (compute_data_dependences_for_loop): Update declaration.
16296         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
16297         * lambda.h (lambda_vector_vec_p): Declared.
16298         * lambda-code.c: Depend on pointer-set.h.
16299         (lambda_collect_parameters_from_af, lambda_collect_parameters,
16300         av_for_af_base, av_for_af, build_access_matrix,
16301         lambda_compute_access_matrices): New.
16302         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
16303
16304 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
16305
16306         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
16307         $SOURCEDIR/include.
16308
16309 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16310             Sebastian Pop  <sebastian.pop@amd.com>
16311
16312         PR tree-optimization/36206
16313         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
16314         FOLD_CONVERSIONS.
16315         (instantiate_scev_1): Rename flags to fold_conversions.
16316         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
16317         outeside instantiation_loop.
16318         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
16319         (evolution_function_is_affine_or_constant_p): Removed.
16320         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
16321         instantiate_scev.
16322         (analyze_siv_subscript): Pass in the loop nest number.
16323         Call evolution_function_is_affine_in_loop instead of
16324         evolution_function_is_affine_p.
16325         (analyze_overlapping_iterations): Pass in the loop nest number.
16326
16327 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16328             Sebastian Pop  <sebastian.pop@amd.com>
16329
16330         PR tree-optimization/36206
16331         * tree-chrec.h (chrec_fold_op): New.
16332         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
16333         and other trees.
16334
16335 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
16336
16337         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
16338         (DIRS_EQ): New.
16339         (remove_duplicates): Do not set inode on non-inode systems.
16340         Use DIRS_EQ.
16341
16342 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16343
16344         * config.gcc (tm_file): Update comments about relative pathnames.
16345
16346 2008-05-20  Richard Guenther  <rguenther@suse.de>
16347
16348         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
16349         * tree-ssa-sccvn.c (process_scc): Likewise.
16350         * tree-ssa-sink.c (execute_sink_code): Likewise.
16351         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16352         * tree-vrp.c (process_assert_insertions): Likewise.
16353         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16354         (perform_tree_ssa_dce): Likewise.
16355         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
16356         (dump_dominator_optimization_stats): Likewise.
16357         * tree-vectorizer.c (vectorize_loops): Likewise.
16358
16359 2008-05-20  Richard Guenther  <rguenther@suse.de>
16360
16361         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
16362
16363 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
16364
16365         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
16366         (ix86_i386elf_return_in_memory): Likewise.
16367         (ix86_i386interix_return_in_memory): Likewise.
16368         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
16369         (SUBTARGET_RETURN_IN_MEMORY): New.
16370         * config/i386/i386elf.h: Likewise.
16371         * config/i386/ptx4-i.h: Likewise.
16372         * config/i386/sol2-10.h: Likewise.
16373         * config/i386/sysv4.h: Likewise.
16374         * config/i386/vx-common.h: Likewise.
16375         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
16376         * config/i386/i386.c (ix86_return_in_memory): Made static and
16377         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
16378         (ix86_i386elf_return_in_memory): Removed.
16379         (ix86_i386interix_return_in_memory): Removed.
16380         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
16381         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
16382
16383 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
16384
16385         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
16386
16387 2008-05-19  Xinliang David Li  <davidxl@google.com>
16388
16389         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
16390         * opts.c: Ditto.
16391         * common.opt: Ditto.
16392         * doc/invoke.texi: Ditto.
16393
16394 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16395
16396         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
16397         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
16398
16399 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16400
16401         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
16402         sizes of operand array from 8/4 to 4/2.
16403         (ix86_expand_vector_init_general): Change size of operand array
16404         from 32 to 16.  Remove op0, op1 and half_mode.
16405
16406 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16407
16408         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
16409         (ix86_expand_vector_init_interleave): Likewise.
16410         (ix86_expand_vector_init_general): Use them.  Assert
16411         word_mode == SImode when n_words == 4.
16412
16413 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
16414
16415         * config/i386/i386.c (ix86_secondary_reload): New static function.
16416         (TARGET_SECONDARY_RELOAD): New define.
16417         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
16418         * config/i386/i386.md (reload_outqi): Remove.
16419
16420 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16421
16422         PR middle-end/35509
16423         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
16424         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
16425         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
16426         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
16427         (fold_builtin_1): Likewise.
16428         * builtins.def (BUILT_IN_ISINF_SIGN): New.
16429         c-common.c (check_builtin_function_arguments): Handle
16430         BUILT_IN_ISINF_SIGN.
16431         * doc/extend.texi: Document __builtin_isinf_sign.
16432         * fold-const.c (operand_equal_p): Handle COND_EXPR.
16433
16434 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
16435
16436         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
16437         EH cleanup at the end of the pass, search for those that have been
16438         turned into forwarder blocks and do the cleanup on their successor.
16439
16440 2008-05-18  Richard Guenther  <rguenther@suse.de>
16441
16442         * tree-cfg.c (verify_gimple_expr): Allow conversions from
16443         pointers to sizetype and vice versa.
16444
16445 2008-05-18 Xinliang David Li   <davidxl@google.com>
16446
16447         * gcc/tree-ssa-dce.c: Coding style fix.
16448         (check_pow): Documentation comment.
16449         (check_log): Documenation comment. Coding style fix.
16450         (is_unnecessary_except_errno_call): Ditto.
16451         (gen_conditions_for_pow): Ditto.
16452         (gen_conditions_for_log): Ditto.
16453         (gen_shrink_wrap_conditions): Ditto.
16454         (shrink_wrap_one_built_in_calls): Ditto.
16455         * gcc/doc/invoke.texi: Better documentation string.
16456         * ChangeLog: Fix wrong change log entries from
16457         May 17 checkin on function call DCE.
16458
16459 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
16460
16461         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
16462
16463 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
16464
16465         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
16466         * df-problems.c (simulation routines): Fixed block comment to
16467         properly say how to add forwards scanning functions.
16468
16469 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
16470
16471         * tree-inline.c (setup_one_parameter): Remove dead code.
16472
16473 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
16474
16475         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
16476         a BIT_AND_EXPR only for an INTEGER_TYPE.
16477
16478 2008-05-17 Xinliang David Li   <davidxl@google.com>
16479
16480         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
16481         (check_pow, check_log, is_unnecessary_except_errno_call): New
16482         functions to check for eliminating math functions that are pure
16483         except for setting errno.
16484         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
16485         general condition expressions for shrink-wrapping pow/log calls.
16486         (gen_shrink_wrap_conditions): Ditto.
16487         (shrink_wrap_one_built_in_call): Ditto.
16488         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
16489         (mark_operand_necessary): If debugging, output if OP is necessary.
16490         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
16491         unnecessary.
16492         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
16493         opt level >= 2.
16494         * gcc/common.opt: New user flag -ftree-builtin-dce.
16495         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
16496
16497 2008-05-16  David S. Miller  <davem@davemloft.net>
16498
16499         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
16500         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
16501
16502 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
16503
16504         PR target/36246
16505         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
16506
16507 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16508
16509         * ifcvt.c (dead_or_predicable): Rename
16510         df_simulate_one_insn_backwards to df_simulate_one_insn.
16511         * recog.c (peephole2_optimize): Ditto.
16512         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
16513         Ditto.
16514         * df.h: Rename df_simulate_one_insn_backwards to
16515         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
16516         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
16517         scanning of defs and uses.
16518         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
16519         (df_simulate_one_insn_forwards): Removed.
16520
16521 2008-05-16  Doug Kwan  <dougkwan@google.com>
16522
16523         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
16524         QNaN & SNaN.
16525         (real_from_string): Handle NaNs and Inf as approriate.
16526
16527 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
16528
16529         * doc/gty.texi (Source Files Containing Type Information): Note
16530         that headers should appear first in the gtfiles list.
16531
16532 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16533
16534         * tree.def (COND_EXEC): Properly documented this code.
16535
16536 2008-05-16  Diego Novillo  <dnovillo@google.com>
16537
16538         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
16539         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
16540         the new field.
16541
16542 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16543
16544         * tree-ssa-dse (max_stmt_uid): Removed.
16545         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
16546         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
16547         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
16548         * function.h (cfun.last_stmt_uid): New field.
16549         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
16550         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
16551         New functions.
16552         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
16553         (create_stmt_ann): Initialize the ann->uid field.
16554         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
16555         with new calls.
16556         * tree-flow.h (renumber_gimple_stmt_uids): New function.
16557
16558 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
16559
16560         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
16561         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
16562         (init_empty_tree_cfg): Call it.
16563
16564 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16565
16566         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
16567         Update all users.
16568
16569 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16570
16571         * doc/invoke.text (-fdump-tree-*-verbose): New option.
16572         * tree-dump.c (dump_options): New verbose option.
16573         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
16574         Add verbose dump.
16575         * tree-pass.h (TDF_VERBOSE): New dump flag.
16576         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
16577         (tree-flow.h): Added include.
16578         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
16579
16580 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
16581
16582         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
16583
16584         From Jie Zhang  <jie.zhang@analog.com>
16585         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16586         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
16587         mcpu=bf561-none and mcpu=bf561-0.2.
16588         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16589         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
16590         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16591         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
16592         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
16593         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
16594         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
16595         option.
16596         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
16597         (cputype_selected): Remove.
16598         (bfin_handle_option): Don't use cputype_selected.
16599         (override_options): When no mcpu option, enable all workarounds.
16600         Don't use bfin_workarounds.
16601         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
16602         processor type.
16603         (DEFAULT_CPU_TYPE): Don't define.
16604
16605 2008-05-16  Richard Guenther  <rguenther@suse.de>
16606
16607         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
16608         on deletion of the last stmt.
16609
16610 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16611
16612         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
16613         V8HImode for SSE2 and V16QImode for SSE4.1.
16614
16615 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
16616
16617         * cgraph.h (compute_inline_parameters): Made public.
16618         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
16619         variable_generate_summary, function_write_summary,
16620         variable_write_summary, variable_read_summary.  Added generate_summary,
16621         write_summary, read_summary.
16622         * cgraphunit.c (cgraph_process_new_functions): Changed call from
16623         pass_ipa_inline.function_generate_summary, to
16624         compute_inline_parameters.
16625         * ipa-inline.c (compute_inline_parameters): Made public and added
16626         node parameter.
16627         (compute_inline_parameters_for_current): New function.
16628         (pass_inline_param): Now calls compute_inline_parameters_for_current.
16629         (inline_generate_summary): Removed parameter and made to loop over
16630         all cgraph nodes.
16631         (pass_ipa_inline): Updated for new IPA_PASS structure.
16632         * passes.c (execute_ipa_summary_passes): Now is called once per
16633         pass rather than once per node*pass.
16634
16635 2008-05-15  Anatoly Sokolov <aesok@post.ru>
16636
16637         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
16638         avr_have_mul_p, avr_asm_only_p): Remove variables.
16639         (avr_override_options): Remove initialization of removed variables.
16640         (avr_file_start):  Convert removed variables to fields of
16641         'struct base_arch_s *avr_current_arch'.
16642         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
16643         (AVR_HAVE_MUL): (Ditto.).
16644         (AVR_HAVE_MOVW): (Ditto.).
16645         (AVR_HAVE_LPMX): (Ditto.).
16646         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
16647         avr_asm_only_p): Remove declaration.
16648
16649 2008-05-15  Diego Novillo  <dnovillo@google.com>
16650
16651         * config/arm/arm.c (arm_return_in_memory): Fix return type.
16652         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
16653
16654 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
16655
16656         PR middle-end/36194
16657         * combine.c (check_conversion): Rename back to check_promoted_subreg.
16658         Don't call record_truncated_value from here.
16659         (record_truncated_value): Turn it into a for_each_rtx callback.
16660         (record_truncated_values): New function.
16661         (combine_instructions): Call note_uses with record_truncated_values.
16662         Change name of check_conversion to check_promoted_subreg.
16663
16664 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
16665
16666         * doc/sourcebuild.texi: Document support for torture tests.
16667
16668 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
16669
16670         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
16671         to alternative 4 of operand 2.
16672
16673 2008-05-15  Richard Guenther  <rguenther@suse.de>
16674
16675         * tree-pass.h (current_pass): Declare.
16676         (get_pass_for_id): Likewise.
16677         * passes.c (passes_by_id, passes_by_id_size): New globals.
16678         (set_pass_for_id): New function.
16679         (get_pass_for_id): Likewise.
16680         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
16681         (execute_function_todo): Flush per function statistics.
16682         * toplev.c (compile_file): Init statistics.
16683         (general_init): Do early statistics initialization.
16684         (finalize): Finish statistics.
16685         * statistics.h (statistics_early_init): Declare.
16686         (statistics_init): Likewise.
16687         (statistics_fini): Likewise.
16688         (statistics_fini_pass): Likewise.
16689         (statistics_counter_event): Likewise.
16690         (statistics_histogram_event): Likewise.
16691         * statistics.c: New file.
16692         * Makefile.in (OBJS-common): Add statistics.o.
16693         (statistics.o): Add dependencies.
16694         * doc/invoke.texi (-fdump-statistics): Document.
16695
16696         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
16697         (insert): Likewise.
16698         (execute_pre): Use statistics_counter_event.
16699         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
16700         (substitute_and_fold): Increment it.  Use statistics_counter_event.
16701
16702 2008-05-15  Diego Novillo  <dnovillo@google.com>
16703
16704         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
16705
16706         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
16707         * tree-ssa-alias.c (new_type_alias): Remove references to
16708         sub-variables from comment.
16709         * tree-ssa-operands.c (swap_tree_operands): Likewise.
16710
16711 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16712
16713         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
16714         attribute to 1 only for insertps alternative.
16715
16716 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
16717
16718         * config/bfin/bfin.md (loadbytes): New pattern.
16719         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
16720         (bfin_init_builtins): Initialize it.
16721         (bdesc_1arg): Add it.
16722
16723 2008-05-15  Sa Liu  <saliu@de.ibm.com>
16724
16725         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
16726         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
16727         * testsuite/lib/target-supports.exp: Add
16728         check_effective_target_fortran_integer_16.
16729
16730 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
16731
16732         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
16733         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
16734         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
16735         (TARGET_RETURN_IN_MEMORY): Define.
16736
16737 2008-05-15  Richard Guenther  <rguenther@suse.de>
16738
16739         PR middle-end/36244
16740         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
16741         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
16742         represent unmodifiable vars.
16743
16744 2008-05-15  Richard Guenther  <rguenther@suse.de>
16745
16746         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
16747         INDIRECT_REF and TARGET_MEM_REF.
16748         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16749         TARGET_MEM_REF.
16750
16751 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
16752             H.J. Lu  <hongjiu.lu@intel.com>
16753
16754         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
16755         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
16756         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
16757         insn alternatives.  Add missing alternatives.
16758         (*vec_concatv2di_rex64_sse4_1): Likewise.
16759         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
16760         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
16761         Require TARGET_SSE.
16762
16763 2008-05-15  Richard Guenther  <rguenther@suse.de>
16764
16765         PR tree-optimization/36009
16766         PR tree-optimization/36204
16767         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
16768         (determine_invariantness_stmt): Record the loop a store is
16769         always executed in.
16770         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
16771         dependency.
16772
16773 2008-05-15  Richard Guenther  <rguenther@suse.de>
16774
16775         PR tree-optimization/34330
16776         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
16777         through the pointer will alias the SMT.
16778
16779 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
16780
16781         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
16782
16783 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16784
16785         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
16786
16787 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16788             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16789
16790         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
16791         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
16792         (vashl_optab): New optab for vector/vector shifts.
16793         (vashr_optab): Ditto.
16794         (vlshr_optab): Ditto.
16795         (vrotl_optab): Ditto.
16796         (vrotr_optab): Ditto.
16797         (optab_subtype): New enum for optab_for_tree_code call.
16798         (optab_for_tree_code): Add enum optab_subtype argument.
16799
16800         * optabs.c (optab_for_tree_code): Take an additional argument to
16801         distinguish between a vector shift by a scalar and vector shift by
16802         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
16803         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
16804         vector shift by a vector.
16805         (expand_widen_pattern_expr): Pass additional argument to
16806         optab_for_tree_code.
16807
16808         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
16809         vrotl_optab, vrotr_optab.
16810
16811         * expr.c (expand_expr_real_1): Update calls to
16812         optab_for_tree_code to distinguish between vector shifted by a
16813         scalar and vector shifted by a vector.
16814         * tree-vectorizer.c (supportable_widening_operation): Ditto.
16815         (supportable_narrowing_operation): Ditto.
16816         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
16817         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
16818         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
16819         (vect_create_epilog_for_reduction): Ditto.
16820         (vectorizable_reduction): Ditto.
16821         (vectorizable_operation): Ditto.
16822         (vect_strided_store_supported): Ditto.
16823         (vect_strided_load_supported): Ditto.
16824         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
16825         * expmed.c (expand_shift): Ditto.
16826
16827         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
16828         scalar type.
16829         (ashr@var{m}3): Ditto.
16830         (vashl@var{m}3): Document new vector/vector shift standard name.
16831         (vashr@var{m}3): Ditto.
16832         (vlshr@var{m}3): Ditto.
16833         (vrotl@var{m}3): Ditto.
16834         (vrotr@var{m}3): Ditto.
16835
16836         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
16837         (PPERM_INVERT): Ditto.
16838         (PPERM_REVERSE): Ditto.
16839         (PPERM_REV_INV): Ditto.
16840         (PPERM_ZERO): Ditto.
16841         (PPERM_ONES): Ditto.
16842         (PPERM_SIGN): Ditto.
16843         (PPERM_INV_SIGN): Ditto.
16844         (PPERM_SRC1): Ditto.
16845         (PPERM_SRC2): Ditto.
16846
16847         * config/i386/sse.md (mulv2di3): Add SSE5 support.
16848         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
16849         allows a memory operand to be the value being added, and split it
16850         to improve vectorization.
16851         (sse5_pmacsdqh_mem): Ditto.
16852         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
16853         (sse5_mulv2div2di3_high): Ditto.
16854         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
16855         (vec_pack_trunc_v4si): Ditto.
16856         (vec_pack_trunc_v2di): Ditto.
16857         (sse5_pcmov_<mode>): Remove code that tried to use use
16858         andps/andnps instead of pcmov.
16859         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
16860         pmacsdqh instructions.
16861         (vec_widen_smult_lo_v4si): Ditto.
16862
16863         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
16864         (PPERM_INVERT): Ditto.
16865         (PPERM_REVERSE): Ditto.
16866         (PPERM_REV_INV): Ditto.
16867         (PPERM_ZERO): Ditto.
16868         (PPERM_ONES): Ditto.
16869         (PPERM_SIGN): Ditto.
16870         (PPERM_INV_SIGN): Ditto.
16871         (PPERM_SRC1): Ditto.
16872         (PPERM_SRC2): Ditto.
16873         (ix86_expand_sse_movcc): Move the SSE5 test after the if
16874         true/false tests.
16875         (ix86_expand_int_vcond): If SSE5 generate all possible integer
16876         comparisons.
16877         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
16878         says ignore whether the last reference is a memory operand.
16879
16880 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16881             Paolo Bonzini <bonzini at gnu dot org>
16882
16883         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
16884         shift patterns.
16885
16886         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
16887         (vlshr<mode>3): Rename from vlshr<mode>3.
16888         (vashr<mode>3): Rename from vashr<mode>3.
16889         (mulv4sf3): Change the names of vector shift patterns.
16890         (mulv4si3): Ditto.
16891         (negv4sf2): Ditt.
16892
16893         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
16894         shift insns.
16895
16896         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
16897         (SI_SHLHI): Ditto.
16898         (SI_SHL): Ditto.
16899         (SI_SHLI): Ditto.
16900         (SI_ROTH): Ditto.
16901         (SI_ROTHI): Ditto.
16902         (SI_ROT): Ditto.
16903         (SI_ROTI): Ditto.
16904         (SPU_RL_0): Ditto.
16905         (SPU_RL_1): Ditto.
16906         (SPU_RL_2): Ditto.
16907         (SPU_RL_3): Ditto.
16908         (SPU_RL_4): Ditto.
16909         (SPU_RL_5): Ditto.
16910         (SPU_RL_6): Ditto.
16911         (SPU_RL_7): Ditto.
16912         (SPU_SL_0): Ditto.
16913         (SPU_SL_1): Ditto.
16914         (SPU_SL_2): Ditto.
16915         (SPU_SL_3): Ditto.
16916         (SPU_SL_4): Ditto.
16917         (SPU_SL_5): Ditto.
16918         (SPU_SL_6): Ditto.
16919         (SPU_SL_7): Ditto.
16920
16921         * config/spu/spu.md (v): New iterator macro to add v for vector types.
16922         (floatunssidf2_internal): Change vector/vector shift names.
16923         (floatunsdidf2_internal): Ditto.
16924         (mulv8hi3): Ditto.
16925         (ashrdi3): Ditto.
16926         (ashrti3): Ditto.
16927         (cgt_df): Ditto.
16928         (cgt_v2df): Ditto.
16929         (dftsv): Ditto.
16930         (vashl<mode>3): Rename from ashl<mode>3.
16931         (vashr<mode>3): Rename from ashr<mode>3.
16932         (vlshr<mode>3): Rename from lshr<mode>3.
16933         (vrotl<mode>3): Rename from rotl<mode>3.
16934
16935 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16936
16937         PR target/36224
16938         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
16939         multiply gives the wrong value when doing widening multiplies.
16940         (vec_widen_smult_lo_v4si): Ditto.
16941
16942 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
16943
16944         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
16945         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
16946         emit_library_call_value.
16947         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
16948         * tree.h (ECF_LIBCALL_BLOCK): Removed.
16949         * calls.c (initialize_argument_information, precompute_arguments,
16950         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
16951         (precompute_arguments): Removed flags parameter.
16952         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
16953
16954 2008-05-14  Richard Guenther  <rguenther@suse.de>
16955
16956         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
16957         Make sure to register the store if the use is a PHI_NODE.
16958
16959 2008-05-14  Olivier Hainque  <hainque@adacore.com>
16960
16961         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
16962         memory if the component is to be referenced in BLKmode according
16963         to get_inner_reference.
16964
16965 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
16966
16967         * calls.c (emit_library_call_value_1): Restore code clearing
16968         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
16969
16970 2008-05-14  Olivier Hainque  <hainque@adacore.com>
16971             Nicolas Roche  <roche@adacore.com>
16972
16973         * configure.ac: Add support for a "gcc_subdir" variable in
16974         config-lang.in, to denote a subdirectory where the language/GCC
16975         integration files are to be found.
16976         * configure: Regenerate.
16977
16978 2008-05-14  Ira Rosen  <irar@il.ibm.com>
16979
16980         PR tree-optimization/36098
16981         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
16982         value for the first load in the group in case of a gap.
16983         (vect_build_slp_tree): Check that there are no gaps in loads.
16984
16985 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
16986
16987         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
16988         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
16989         expand_copysign_bit, ): Change call to emit_no_conflict_block to
16990         emit_insn and remove unneeded code to construct extra args.
16991         (emit_no_conflict_block): Removed.
16992         * optabls.h: (emit_no_conflict_block): Removed.
16993         * cse.c (cse_extended_basic_block): Remove search for
16994         REG_NO_CONFLICT note.
16995         * global.c: Removed incorrect comment added in revision 117.
16996         * expr.c (convert_move): Change call to emit_no_conflict_block to
16997         emit_insn.
16998         * recog.c: Change comments so that they do not mention
16999         REG_NO_CONFLICT.
17000         * local_alloc.c (combine_regs): Removed last parameter.
17001         (no_conflict_p): Removed.
17002         (block_alloc): Removed note, no_conflict_combined_regno and set
17003         local vars. Removed all code to process REG_NO_CONFLICT blocks.
17004         (combine_regs): Removed already_dead and code to look for
17005         REG_NO_CONFLICT notes.
17006         * lower_subreg (remove_retval_note): Removed code to look for
17007         REG_NO_CONFLICT block.
17008         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
17009         (resolve_clobber): Remove code to process libcalls that have
17010         REG_NO_CONFLICT notes.
17011         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
17012         case.
17013         * combine.c (can_combine_p, distribute_notes):  Removed
17014         REG_NO_CONFLICT case.
17015         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
17016         to emit_insns.
17017         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
17018         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
17019         Ditto.
17020         * reg-notes.def (NO_CONFLICT): Removed.
17021
17022 2008-05-14  David S. Miller  <davem@davemloft.net>
17023
17024         * config/sparc/sparc.c (sparc_profile_hook): If
17025         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
17026         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
17027         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
17028
17029 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
17030
17031         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
17032
17033 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
17034
17035         PR target/36222
17036         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
17037         and op1 expansion before vector concat to have less live pseudos.
17038
17039 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17040
17041         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
17042         ix86_expand_vector_set if supported.
17043
17044 2008-05-13  Diego Novillo  <dnovillo@google.com>
17045             Kenneth Zadeck  <zadeck@naturalbridge.com>
17046
17047         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
17048
17049         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
17050         phinodes_print_statistics, init_ssanames, fini_ssanames,
17051         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
17052         release_ssa_name, release_defs, replace_ssa_name_symbol,
17053         ssanames_print_statistics): Move ...
17054         * tree-flow.h: ... here.
17055         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
17056         Use FN instead of cfun.
17057         (make_ssa_name_fn): Rename from make_ssa_name.
17058         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
17059         * tree-flow-inline.h (make_ssa_name): Move from
17060         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
17061         * omp-low.c (expand_omp_parallel):
17062         * tree-flow-inline.h (redirect_edge_var_map_result):
17063         * tree-ssa.c (init_tree_ssa): Add argument FN.
17064         Use it instead of cfun.  Update all users.
17065
17066 2008-05-13  Tom Tromey  <tromey@redhat.com>
17067
17068         PR preprocessor/22168:
17069         * doc/cpp.texi (Top): Update menu.
17070         (Alternatives to Wrapper #ifndef): New node.
17071         (Other Directives): Document deprecation.
17072         (Obsolete Features): Remove menu.
17073         (Assertions): Merge node into Obsolete Features.
17074         (Obsolete once-only headers): Move earlier; rename to Alternatives
17075         to Wrapper #ifndef.
17076         * doc/cppopts.texi: Update.
17077         * c.opt (Wdeprecated): Enable for C and ObjC.
17078         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
17079         (C++ Dialect Options): Move -Wno-deprecated from here to...
17080         (Warning Options): ... here.
17081
17082 2008-05-13  Richard Guenther  <rguenther@suse.de>
17083
17084         PR middle-end/36227
17085         * fold-const.c (fold_sign_changed_comparison): Do not allow
17086         changes in pointer-ness.
17087
17088 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17089
17090         PR target/24713
17091         * config/sh/sh.c (sh_expand_prologue): Don't clear
17092         RTX_FRAME_RELATED_P for push insns.
17093
17094 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
17095
17096         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
17097
17098 2008-05-12  Anatoly Sokolov <aesok@post.ru>
17099
17100         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
17101         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
17102         Use 'machine->is_leaf' instead of 'leaf_func_p'.
17103
17104 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17105
17106         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
17107         (*vec_concatv4sf_sse): This.
17108         (*sse2_concatv2si): Renamed to ...
17109         (*vec_concatv2si_sse2): This.
17110         (*sse1_concatv2si): Renamed to ...
17111         (*vec_concatv2si_sse): This.
17112         (*vec_concatv2di_rex): Renamed to ...
17113         (*vec_concatv2di_rex64): This.
17114         (*vec_concatv2si_sse4_1): New.
17115         (*vec_concatv2di_rex64_sse4_1): Likewise.
17116
17117 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
17118
17119         PR rtl-optimization/36111
17120         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
17121         that was created for swappable operands.
17122
17123 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
17124
17125         PR ada/36001
17126         * Makefile.in: Substitute GNATMAKE and GNATBIND.
17127         * configure.ac: Add call to ACX_PROG_GNAT.
17128
17129 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
17130
17131         * optc-gen.awk: Fix comment typo.
17132
17133 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17134
17135         * pretty-print.c (pp_integer_with_precision): Use
17136         HOST_LONG_LONG_FORMAT.
17137
17138 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
17139
17140         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
17141
17142 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17143
17144         * config/i386/i386.c (bdesc_ptest): Removed.
17145         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
17146         (bdesc_args): Add __builtin_ia32_ptestz128,
17147         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
17148         (ix86_init_mmx_sse_builtins): Updated.
17149         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
17150         (ix86_expand_builtin): Updated.
17151
17152 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
17153
17154         * tree-cfg.c (valid_fixed_convert_types_p): New function.
17155         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
17156
17157 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
17158
17159         * value-prof.c (interesting_stringop_to_profile): Do not
17160         return early for BUILT_IN_MEMPCPY.
17161
17162 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17163
17164         * calls.c (expand_call): Don't use callgraph to increase
17165         preferred_stack_boundary.
17166
17167         * cgraph.h (cgraph_rtl_info): Use unsigned on
17168         preferred_incoming_stack_boundary.
17169
17170         * final.c (rest_of_clean_state): Use unsigned on
17171         preferred_stack_boundary.
17172
17173 2008-05-09  Tom Tromey  <tromey@redhat.com>
17174
17175         PR preprocessor/22231:
17176         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
17177         proceeding.
17178
17179 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
17180
17181         PR tree-optimization/36129
17182         * tree-ssa-ccp.c: Include value-prof.h.
17183         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
17184         built-in function was folded to a constant.
17185         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
17186
17187 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
17188             Sebastian Pop  <sebastian.pop@amd.com>
17189
17190         * tree-scalar-evolution.c: Document instantiate_scev.
17191         (instantiate_parameters_1): Renamed instantiate_scev_1.
17192         Don't use the same loop for instantiation_loop and evolution_loop.
17193         (instantiate_scev): New.
17194         (instantiate_parameters): Moved...
17195         (resolve_mixers): Update call to instantiate_scev_1 to pass the
17196         same loop twice.  Maintains the semantics for this function.
17197         * tree-scalar-evolution.h (instantiate_scev): Declare.
17198         (instantiate_parameters): ...here.  Now static inline.
17199         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
17200         instead of resolve_mixers.
17201
17202 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
17203
17204         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
17205
17206 2008-05-09  Tomas Bily  <tbily@suse.cz>
17207
17208         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
17209         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
17210         * tree-ssa-structalias.c (get_constraint_for): Likewise.
17211         * c-common.c (c_common_truthvalue_conversion): Likewise.
17212         * tree-object-size.c (compute_object_offset): Likewise.
17213         * tree-inline.c (estimate_num_insns_1): Likewise.
17214         * varasm.c (const_hash_1, compare_constant, copy_constant)
17215         (compute_reloc_for_constant, output_addressed_constants)
17216         (initializer_constant_valid_p): Likewise.
17217         * c-omp.c (check_omp_for_incr_expr): Likewise.
17218         * gimplify.c (gimplify_expr): Likewise.
17219         * c-typeck.c (c_finish_return): Likewise.
17220         * tree-vectorizer.c (supportable_widening_operation)
17221         (supportable_narrowing_operation): Likewise.
17222         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
17223         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
17224         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
17225         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
17226         (descr_info_loc): Likewise.
17227         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17228         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
17229         (fold_unary): Likewise.
17230         * builtins.c (get_pointer_alignment): Likewise.
17231         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
17232         (instantiate_parameters_1): Likewise.
17233         * tree.c (expr_align, stabilize_reference): Likewise.
17234         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
17235         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
17236         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
17237         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17238         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
17239         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
17240         Likewise.
17241         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
17242         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
17243         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
17244         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
17245         (forward_propagate_comparison)
17246         (tree_ssa_forward_propagate_single_use_vars): Likewise.
17247         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
17248         * emit-rtl.c (component_ref_for_mem_expr)
17249         (set_mem_attributes_minus_bitpos): Likewise.
17250         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
17251         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
17252         Likewise.
17253         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
17254         (build_function_call, pointer_diff, build_compound_expr)
17255         (c_finish_return): Likewise.
17256         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
17257         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
17258         Likewise.
17259         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
17260         * expr.c (is_aligning_offset): Likewise.
17261         * tree-ssa-alias.c (is_escape_site): Likewise.
17262         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
17263         (check_all_va_list_escapes): Likewise.
17264         * tree-ssa-loop-ivopts.c (determine_base_object)
17265         (determine_common_wider_type): Likewise.
17266         * dojump.c (do_jump): Likewise.
17267         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
17268         * tree-gimple.c (is_gimple_cast): Likewise.
17269         * fold-const.c (decode_field_reference, )
17270         (fold_sign_changed_comparison, fold_unary, fold_comparison)
17271         (fold_binary): Likewise.
17272         * tree-ssa-alias-warnings.c (find_alias_site_helper)
17273         (already_warned_in_frontend_p): Likewise.
17274         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
17275         * tree.c (really_constant_p, get_unwidened): Likewise.
17276         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
17277         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
17278         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
17279         Likewise.
17280         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
17281         CONVERT_EXPR_P.
17282         (CONVERT_EXPR_P): Define.
17283         (CASE_CONVERT): Define.
17284
17285 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
17286
17287         PR middle-end/36117
17288         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
17289         (delete_unmarked_insns): When deleting a call, call
17290         delete_unreachable_blocks.
17291         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
17292         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
17293
17294 2008-05-08  Richard Guenther  <rguenther@suse.de>
17295
17296         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
17297         (-ftree-salias): Likewise.
17298         (salias-max-implicit-fields): Remove param documentation.
17299         (salias-max-array-elements): Likewise.
17300         * tree-pass.h (pass_create_structure_vars): Remove.
17301         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
17302         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
17303         * tree-ssa-alias.c (create_structure_vars): Remove.
17304         (gate_structure_vars): Likewise.
17305         (pass_create_structure_vars): Likewise.
17306         (gate_build_alias): Likewise.
17307         (pass_build_alias): Adjust to run always and dump the function.
17308         * common.opt (ftree-salias): Hide.
17309         * passes.c (init_optimization_passes): Remove
17310         pass_create_structure_vars, adjust comment.
17311         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
17312         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
17313         * opts.c (decode_options): Do not set flag_tree_salias.
17314         (common_handle_option): Add OPT_ftree_salias to the backward
17315         compatibility section.
17316
17317 2008-05-08  Richard Guenther  <rguenther@suse.de>
17318
17319         * tree-flow-inline.h (var_can_have_subvars): Move ...
17320         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
17321         * tree-flow.h (var_can_have_subvars): Remove.
17322         (push_fields_onto_fieldstack): Remove.
17323         (sort_fieldstack): Likewise.
17324         (struct fieldoff): Move ...
17325         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
17326         alias_set and base_for_components fields.
17327         (sort_fieldstack): Make static.
17328         (push_fields_onto_fieldstack): Likewise.  Remove code that
17329         handles anything but RECORD_TYPEs.  Remove alias_set and
17330         base_for_components handling.
17331         (create_variable_info_for): Adjust.
17332
17333 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
17334
17335         * common.opt (Wframe-larger-than=): Shorten the help message
17336         to one line.
17337         * doc/invoke.texi (Wframe-larger-than=): Add more description.
17338
17339 2008-05-08  Rafael Espíndola  <espindola@google.com>
17340
17341         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
17342         trap.
17343         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
17344         trap and that both operands are gimple values.
17345         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
17346         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
17347         is a fp operation.
17348
17349 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17350
17351         * read-rtl.c (join_c_conditions): Return the first string if the
17352         two strings are equal.
17353
17354 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17355
17356         * gensupport.h (pred_data): Add a "num_codes" field.
17357         (add_predicate_code): Declare.
17358         * gensupport.c (add_predicate_code): New function.
17359         (std_pred_table): Add an "allows_const_p" field.
17360         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
17361         Remove the (incomplete) list of such codes from the codes field.
17362         (init_predicate_table): Use add_predicate_code.  Add all
17363         RTX_CONST_OBJs if allows_const_p is true.
17364         * genrecog.c (process_define_predicate): Use add_predicate_code.
17365
17366 2008-05-08  David Daney  <ddaney@avtrex.com>
17367             Richard Sandiford  <rsandifo@nildram.co.uk>
17368
17369         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
17370         special case of constant zero operands.
17371         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
17372         old and new values.  Special case constant zero values.
17373         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
17374         fails.
17375         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
17376         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
17377
17378 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
17379
17380         PR target/36090
17381         * simplify-rtx.c (simplify_plus_minus): Create CONST of
17382         similar RTX_CONST_OBJ before CONST_INT.
17383
17384 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
17385
17386         * stmt.c (expand_stack_restore): Change sa mode if needed.
17387
17388 2008-05-08  Richard Guenther  <rguenther@suse.de>
17389
17390         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
17391         return type to bool.
17392         (ix86_sol10_return_in_memory): Likewise.
17393         (ix86_i386elf_return_in_memory): Likewise.
17394         (ix86_i386interix_return_in_memory): Likewise.
17395         * config/i386/i386.c (ix86_return_in_memory): Likewise.
17396         (ix86_sol10_return_in_memory): Likewise.
17397         (ix86_i386elf_return_in_memory): Likewise.
17398         (ix86_i386interix_return_in_memory): Likewise.
17399
17400 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
17401
17402         PR bootstrap/36180
17403         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
17404         fndecl argument.
17405         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
17406         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
17407         declared in front.
17408
17409 2008-05-08  Richard Guenther  <rguenther@suse.de>
17410
17411         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
17412         * tree-data-ref.h (struct dr_alias): Remove subvars field.
17413         (DR_SUBVARS): Remove.
17414         * tree-dfa.c (dump_subvars_for): Remove.
17415         (debug_subvars_for): Likewise.
17416         (dump_variable): Do not dump subvars.
17417         (remove_referenced_var): Do not remove subvars.
17418         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
17419         (lookup_subvars_for_var): Remove.
17420         (get_subvars_for_var): Likewise.
17421         (get_subvars_at): Likewise.
17422         (get_first_overlapping_subvar): Likewise.
17423         (overlap_subvar): Likewise.
17424         * tree-flow.h (subvar_t): Remove.
17425         (struct var_ann_d): Remove subvars field.
17426         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
17427         argument.  Remove special handling of SFTs.
17428         (compute_tag_properties): Likewise.
17429         (set_initial_properties): Likewise.
17430         (compute_call_clobbered): Likewise.
17431         (count_mem_refs): Likewise.
17432         (compute_memory_partitions): Likewise.
17433         (compute_flow_insensitive_aliasing): Likewise.
17434         (setup_pointers_and_addressables): Likewise.
17435         (new_type_alias): Likewise.
17436         (struct used_part): Remove.
17437         (used_portions): Likewise.
17438         (struct used_part_map): Likewise.
17439         (used_part_map_eq): Likewise.
17440         (used_part_map_hash): Likewise.
17441         (free_used_part_map): Likewise.
17442         (up_lookup): Likewise.
17443         (up_insert): Likewise.
17444         (get_or_create_used_part_for): Likewise.
17445         (create_sft): Likewise.
17446         (create_overlap_variables_for): Likewise.
17447         (find_used_portions): Likewise.
17448         (create_structure_vars): Likewise.
17449         * tree.def (STRUCT_FIELD_TAG): Remove.
17450         * tree.h (MTAG_P): Adjust.
17451         (struct tree_memory_tag): Remove base_for_components and
17452         unpartitionable flags.
17453         (struct tree_struct_field_tag): Remove.
17454         (SFT_PARENT_VAR): Likewise.
17455         (SFT_OFFSET): Likewise.
17456         (SFT_SIZE): Likewise.
17457         (SFT_NONADDRESSABLE_P): Likewise.
17458         (SFT_ALIAS_SET): Likewise.
17459         (SFT_UNPARTITIONABLE_P): Likewise.
17460         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
17461         (union tree_node): Remove sft field.
17462         * alias.c (get_alias_set): Remove special handling of SFTs.
17463         * print-tree.c (print_node): Remove handling of SFTs.
17464         * tree-dump.c (dequeue_and_dump): Likewise.
17465         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
17466         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
17467         * tree-predcom.c (set_alias_info): Do not set subvars.
17468         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
17469         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
17470         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
17471         (add_vars_for_offset): Remove.
17472         (add_virtual_operand): Remove special handling of SFTs.
17473         (add_call_clobber_ops): Likewise.
17474         (add_call_read_ops): Likewise.
17475         (get_asm_expr_operands): Likewise.
17476         (get_modify_stmt_operands): Likewise.
17477         (get_expr_operands): Likewise.
17478         (add_to_addressable_set): Likewise.
17479         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
17480         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17481         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
17482         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
17483         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
17484         (tree_node_structure): Likewise.
17485         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
17486         handling of SFTs.
17487         (find_what_p_points_to): Likewise.
17488
17489 2008-05-08  Sa Liu  <saliu@de.ibm.com>
17490
17491         * config/spu/spu.md: Fixed subti3 pattern.
17492
17493 2008-05-08  Richard Guenther  <rguenther@suse.de>
17494
17495         PR middle-end/36154
17496         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17497         sure to create a representative for trailing arrays for PTA.
17498
17499 2008-05-08  Richard Guenther  <rguenther@suse.de>
17500
17501         PR middle-end/36172
17502         * fold-const.c (operand_equal_p): Two objects which types
17503         differ in pointerness are not equal.
17504
17505 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
17506
17507         * calls.c (compute_argument_block_size): Add argument tree fndecl.
17508         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
17509         (emit_library_call_value_1): Add new variable fndecl initialized by
17510         NULL_TREE. It should be the decl type of orgfun, but this information
17511         seems not to be available here, so it uses the default calling abi.
17512         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
17513         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
17514         by TARGET_RETURN_IN_MEMORY.
17515         * config/i386/i386-interix.h: Likewise.
17516         * config/i386/i386.h: Likewise.
17517         * config/i386/i386elf.h: Likewise.
17518         * config/i386/ptx4-i.h: Likewise.
17519         * config/i386/sol2-10.h: Likewise.
17520         * config/i386/sysv4.h: Likewise.
17521         * config/i386/vx-common.h: Likewise.
17522         * config/cris/cris.h: Removed #if 0 clause.
17523         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
17524         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
17525         argument.
17526         (ix86_sol10_return_in_memory): Likewise.
17527         (ix86_i386elf_return_in_memory): New.
17528         (ix86_i386interix_return_in_memory): New.
17529         * config/mt/mt-protos.h (mt_return_in_memory): New.
17530         * config/mt/mt.c: Likewise.
17531         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
17532         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
17533         * config/bfin/bfin.h: Likewise.
17534         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
17535         argument.
17536         * config/bfin/bfin.c: Likewise.
17537         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
17538         * config/alpha/unicosmk.h: Likewise.
17539         * config/i386/cygming.h: Likewise.
17540         * config/iq2000/iq2000.h: Likewise.
17541         * config/mips/mips.h: Likewise.
17542         * config/mn10300/mn10300.h: Likewise.
17543         * config/rs6000/rs6000.h: Likewise.
17544         * config/score/score.h: Likewise.
17545         * config/spu/spu.h: Likewise.
17546         * config/v850/v850.h: Likewise.
17547         * defaults.h: Likewise.
17548         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
17549         * expr.c (emit_block_move): Adjust use of
17550         OUTGOING_REG_PARM_STACK_SPACE.
17551         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
17552         OUTGOING_REG_PARM_STACK_SPACE.
17553         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
17554
17555 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
17556
17557         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
17558         on OMP_RETURN for OMP_FOR.
17559
17560         PR debug/35896
17561         * dwarf2out.c (dw_expand_expr, common_check): Removed.
17562         (fortran_common): New function.
17563         (gen_variable_die): Call fortran_common instead of common_check,
17564         adjust for it returning tree instead of rtx.  Formatting.
17565
17566 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
17567
17568         PR rtl/7335
17569         PR rtl/33826
17570         * see.c (see_copy_insn): Copy new pure const attributes for new call.
17571         * c-decl.c (merge_decls): Ditto.
17572         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
17573         to RTL_CONST_OR_PURE_CALL_P.
17574         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
17575         Initialized DECL_LOOPING_CONST_PURE.
17576         (process_call_operands): Set tree_side_effects properly.
17577         * tree.h (TREE_READONLY_DECL_P): Removed.
17578         (DECL_IS_PURE): Renamed to DECL_PURE_P.
17579         (DECL_LOOPING_OR_CONST_P): New macro.
17580         (struct tree_function_decl): Added looping_const_or_pure_p.
17581         (ECF_*) Renumbered.
17582         (ECF_LOOPING_OR_CONST_P): New macro.
17583         * rtlanal.c (pure_const_p): Removed.
17584         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
17585         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
17586         to RTL_CONST_CALL_P.
17587         * ipa-pure-const.c (pure_const_state_e): Added looping field.
17588         (check_decl, check_tree, check_call, scan_function): Initialize
17589         looping.
17590         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
17591         (static_execute): Set looping true for recursive functions.
17592         Undo setting state to IPA_NEITHER for recursive functions.
17593         * cse.c (cse_insn):
17594         * ifcvt.c (noce_can_store_speculate_p): Changed
17595         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
17596         RTL_CONST_OR_PURE_CALL_P.
17597         * dse.c (scan_insn): Ditto.
17598         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
17599         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
17600         RTL_CONST_OR_PURE_CALL_P.
17601         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
17602         pure_call_p to RTL_CONST_CALL_P.
17603         * gimplify.c (gimplify_call_expr): Clear side effects for
17604         non-looping pure and constant calls.
17605         * calls.c (emit_call_1): Set rtl flags from ecf flags.
17606         (flags_from_decl_or_type): Set ecf flags from decl flags.
17607         (initialize_argument_information): Turn off
17608         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
17609         Change const to pure if callee_copies is true rather than just
17610         turning off const.
17611         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
17612         way of marking pure calls.
17613         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
17614         Remove hack that was supposed to fix pr7335 and remove old
17615         way of marking pure calls.
17616         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
17617         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
17618         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
17619         RTL_CONST_OR_PURE_CALL_P.
17620         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
17621         * loop-invariant.c (find_exits, find_invariant_bb): Changed
17622         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
17623         * sched-deps.c (schedule_analyze): Ditto.
17624         * rtl.h (struct rtx_def): Use call field, unchanging field, and
17625         return_val field of calls to represent pure and const function info.
17626         (CONST_OR_PURE_CALL_P): Deleted macro.
17627         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
17628         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
17629         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
17630         TREE_READONLY.
17631         * tree-optimize.c (execute_fixup_cfg): Added test for
17632         ECF_LOOPING_CONST_OR_PURE.
17633         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
17634         DECL_PURE_P.
17635         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
17636         effects for looping pure or const calls.
17637         (verify_gimple_expr): Added verification code.
17638         * config/alpha/alpha.c (alpha_legitimize_address,
17639         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
17640         RTL_CONST_CALL_P.
17641         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
17642         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
17643         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
17644         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
17645         RTL_CONST_OR_PURE_CALL_P.
17646         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
17647         and const calls to be deleted.
17648
17649 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
17650
17651         PR target/35714
17652         * config/i386/mmx.md (mmx_subv2sf3): New expander.
17653         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
17654         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
17655         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17656         to handle nonimmediate operands.
17657         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
17658         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
17659         to handle nonimmediate operands.
17660         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
17661         (mmx_pmulhrwv4hi3): New expander.  Use
17662         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17663         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
17664         (sse2_umulv1siv1di3): New expander.  Use
17665         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17666         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
17667         (mmx_eq<mode>3): New expander.  Use
17668         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17669         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
17670         (mmx_uavgv8qi3): New expander.  Use
17671         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17672         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
17673         (mmx_uavgv4hi3): New expander.  Use
17674         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17675
17676         * config/i386/sse.md
17677         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
17678         to handle nonimmediate operands.
17679         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
17680         to handle nonimmediate operands.
17681         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
17682         to handle nonimmediate operands.
17683         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
17684         to handle nonimmediate operands.
17685         (sse2_unpckhpd_exp): New expander.  Use
17686         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17687         (sse2_unpcklpd_exp): New expander.  Use
17688         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17689         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
17690         to handle nonimmediate operands.
17691         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
17692         to handle nonimmediate operands.
17693         (*sse2_<plusminus_insn><mode>3): Rename from
17694         sse2_<plusminus_insn><mode>3 insn pattern.
17695         (sse2_<plusminus_insn><mode>3): New expander.  Use
17696         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17697         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
17698         (sse2_umulv2siv2di3): New expander.  Use
17699         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17700         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
17701         (sse4_1_mulv2siv2di3): New expander.  Use
17702         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17703         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
17704         (sse2_pmaddwd): New expander.  Use
17705         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17706         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
17707         (sse2_eq<mode>3): New expander.  Use
17708         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17709         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
17710         (sse4_1_eqv2di3): New expander.  Use
17711         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17712         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
17713         (sse2_uavgv16qi3): New expander.  Use
17714         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17715         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
17716         (sse2_uavgv16qi3): New expander.  Use
17717         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17718         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
17719         (sse2_uavgv8hi3): New expander.  Use
17720         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17721         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
17722         (ssse3_pmulhrswv8hi3): New expander.  Use
17723         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17724         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
17725         (ssse3_pmulhrswv4hi3): New expander.  Use
17726         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17727
17728         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
17729         (<sse>_vmmul<mode>3): Ditto.
17730         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
17731         (divv2df3): Ditto.
17732         (ssse3_pmaddubsw128): Use register_operand for operand 1.
17733         (ssse3_pmaddubsw): Ditto.
17734
17735         * config/i386/i386.c (struct_builtin_description)
17736         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
17737         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
17738         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
17739         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
17740         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
17741         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
17742         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
17743         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
17744         (ix86_fixup_binary_operands): Assert that src1
17745         and src2 must have the same mode when swapped.
17746         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
17747         and ix86_binary_operator_ok.  Do not force operands in registers
17748         when optimizing.
17749
17750 2008-05-07  Jan Hubicka  <jh@suse.cz>
17751
17752         * cgraph.c (dump_cgraph_node): Update.
17753         * cgraph.h (cgraph_local_info): Break out inline summary.
17754         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
17755         hook.
17756         * ipa-inline (inline_summary): New accestor function.
17757         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
17758         cgraph_decide_inlining, compute_inline_parameters): Update.
17759         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
17760
17761 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
17762
17763         Cleanup ColdFire scheduling support and add V4 pipeline model.
17764
17765         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
17766         (define_attr cpu): Add cfv4 value.
17767         (define_attr type, define_attr type1): Merge into a single 'type'
17768         attribute.  Update all uses.
17769         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
17770         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
17771         Update all uses.
17772         (define_attr opx_mem, define_attr opy_mem): Remove.
17773         (define_attr op_mem): Clean up, update comment.
17774         (define_attr size): Use specific values instead of general int.
17775         (define_attr guess, define_attr split): Remove.  Update all uses.
17776         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
17777         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
17778         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
17779         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
17780         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
17781         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
17782         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
17783         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
17784         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
17785         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
17786         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
17787         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
17788         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
17789         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
17790         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
17791         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
17792         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
17793         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
17794         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
17795         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
17796         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
17797         Update or set attributes.
17798         (stack_tie): New fake instruction.
17799
17800         * config/m68k/m68k.h (TUNE_CFV4): New macro.
17801         (m68k_sched_attr_size): Update declaration.
17802         (m68k_sched_attr_type2): Remove.
17803         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
17804         Declare new bypass predicates.
17805
17806         * config/m68k/m68k.c (m68k_sched_issue_rate,
17807         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
17808         implementations.
17809         (TARGET_SCHED_ISSUE_RATE,
17810         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
17811         (override_options): Handle scheduling for ColdFire V4 core.
17812         (m68k_expand_prologue): Emit stack_tie.
17813         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
17814         'OP_TYPE_FPN'.  Update all uses.
17815         (sched_guess_p): Remove.
17816         (sched_address_type): Handle symbolic addresses.
17817         (sched_get_operand): New static function.
17818         (sched_operand_type): Merge into sched_attr_op_type.
17819         (sched_attr_op_type): Handle FP registers, handle quick constants,
17820         update.
17821         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
17822         (m68k_sched_attr_size): Update.  Move logic to ...
17823         (sched_get_attr_size_int): New static function.
17824         (sched_get_opxy_mem_type): New static function.
17825         (m68k_sched_attr_op_mem): Update.
17826         (m68k_sched_attr_type2): Remove.
17827         (sched_cfv4_bypass_data): New static variable.
17828         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
17829         (m68k_sched_issue_rate): Implement scheduler hook.
17830         (struct _sched_ib: enabled_p): New field.
17831         (m68k_sched_variable_issue): Update.  Handle V4.
17832         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
17833         sched_dump_class_func_t, sched_dump_split_class,
17834         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
17835         sched_dump_dfa_class, m68k_sched_dump): Remove.
17836         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
17837         hook.
17838         (m68k_sched_init_global): Remove statisctics dumping, introduce
17839         sanity check that all instructions have pipeline reservations.  Handle
17840         ColdFire V4 core.
17841         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17842         Handle ColdFire V4 core.
17843         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
17844         New static functions.
17845         (m68k_sched_address_bypass_p): New bypass predicate.
17846         (sched_get_indexed_address_scale): New static function.
17847         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
17848
17849         * cf.md: Update comments.
17850         (define_attr type2): Remove.  Use 'type' attribute instead.
17851         Update all uses.
17852         (cf_ib): Rename to cfv123_ib.  Update all uses.
17853         (cf_oep): Rename to cfv123_oep.  Update all uses.
17854         (cf_chr): Rename to cfv123_chr.  Update all uses.
17855         (cf_mem): Rename to cfv123_mem.  Update all uses.
17856         (cf_mac): Move to more appropriate place.
17857         (cfv123_guess): New automaton and cpu_unit.
17858         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
17859         Update uses of 'size' attribute.  Handle before reload scheduling.
17860         (cfv123_guess): New dummy reservation for unhandled instructions.
17861         (cfv4_*): Pipeline description of ColdFire V4 core.
17862         (ignore): New reservation to handle 'ignore' type.
17863
17864 2008-05-07  Ian Lance Taylor  <iant@google.com>
17865
17866         PR middle-end/36013
17867         * gimplify.c (find_single_pointer_decl_1): Don't look through
17868         indirections.
17869         (find_single_pointer_decl): Adjust comments.
17870
17871 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
17872
17873         PR middle-end/36137
17874         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
17875         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
17876
17877         PR middle-end/36106
17878         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
17879         integral type rather than floating point, then VIEW_CONVERT_EXPR
17880         to the floating point type.
17881
17882 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
17883
17884         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
17885         TFmode op0 to register.
17886
17887 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
17888
17889         * c-decl.c (grokdeclarator): Comment typo.
17890
17891 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
17892
17893         * tree-flow.h: Remove prototype for computed_goto_p.
17894         * tree-cfg.c (computed_goto_p): Make static.
17895
17896 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17897
17898         PR target/35657
17899         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
17900         (contains_aligned_value_p): This.  Handle _Decimal128.
17901         (ix86_function_arg_boundary): Only align _Decimal128 to its
17902         natural boundary and handle it properly.
17903
17904 2008-05-06  Martin Jambor  <mjambor@suse.cz>
17905
17906         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
17907         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
17908         (ipcp_method_set_orig_node): Removed.
17909         (ipcp_cval_get_cvalue_type): Removed.
17910         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
17911         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
17912         (ipcp_cval_set_cvalue_type): Removed.
17913         (ipcp_cval_get_cvalue): Removed.
17914         (ipcp_cval_set_cvalue): Removed.
17915         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
17916         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
17917         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
17918         (ipcp_cval_meet): Renamed to ipa_lattice_meet
17919         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
17920         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
17921         (ipcp_get_ith_lattice): Changed parameters.
17922         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
17923         (ipcp_lattice_from_jfunc): Changed parameters.
17924         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
17925         (ipcp_method_cval_print): Added temporary variable info.
17926         (ipcp_redirect): Removed already unused local variable caller.
17927         (ipcp_redirect): New temporary variable orig_callee_info
17928         (ipcp_redirect): Removed newly unused local variable callee.
17929         (ipcp_redirect): Removed (a bit confusing) local variable type.
17930         (ipcp_insert_stage): Added local variable info.
17931         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
17932         renamed too
17933         (ipcp_formal_create): Removed.
17934         (ipcp_method_cval_set): Removed.
17935         (ipcp_propagate_stage): Renamed lattice variables.
17936         (ipcp_method_cval_set_cvalue_type): Removed.
17937         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
17938         (ipcp_print_all_lattices): Changed printed strings to refer to
17939         lattices rather than cvals.
17940         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
17941         (ipcp_propagate_const): Changed formal parameters.
17942         (build_const_val): Changed formal parameters.
17943         (ipcp_insert_stage): Removed useless variable cvalue
17944         (build_const_val): Changed formal parameters.
17945         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
17946         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
17947         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
17948         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
17949         (ipcp_print_func_profile_counts): Changed string from "method" to
17950         "function"
17951         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
17952         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
17953         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
17954         (ipcp_structures_print): Renamed to ipcp_print_all_structures
17955         (ipcp_profile_print): Renamed to ipcp_print_profile_data
17956         (ipcp_lat_is_const): Changed parameters and made inline.
17957         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
17958         (ipcp_redirect): Renamed to ipcp_need_redirect_p
17959         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
17960         the predicate condition directly
17961         (ipcp_propagate_stage): Added local variable args. Removed local
17962         variable callee.  (Both are mere code simplifications.)
17963         (ipcp_method_dont_insert_const): Renamed to
17964         ipcp_node_not_modifiable_p.
17965         (ipcp_node_not_modifiable_p): Made inline.
17966         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
17967         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
17968         (ipcp_print_all_lattices): Removed variable cvalue
17969         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
17970         Updated comments.
17971
17972 2008-05-06  Olivier Hainque  <hainque@adacore.com>
17973
17974         * tree-sra.c (try_instantiate_multiple_fields): Early return
17975         if field has POINTER_TYPE.
17976
17977 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
17978
17979         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
17980         by using 'q' specifier for instruction.
17981         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
17982
17983 2008-05-06  Anatoly Sokolov <aesok@post.ru>
17984
17985         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17986         Change mode of zero_extract from QImode to HImode.
17987         (sign bit tests peepholes): (Ditto.).
17988
17989 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
17990
17991         * config/i386/mmx.md: Remove double backslashes from asm templates.
17992         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
17993         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17994         to handle nonimmediate operands.
17995         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
17996         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17997         to handle nonimmediate operands.
17998         (*mmx_<code>v2sf3_finite): New insn pattern.
17999         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
18000         (mmx_<code>v2sf3): New expander.  Use
18001         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18002         (mmx_<plusminus_insn><mode>3): New expander.  Use
18003         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18004         (*mmx_<plusminus_insn><mode>3): New insn pattern.
18005         (mmx_add<mode>3): Removed.
18006         (mmx_ssadd<mode>3): Ditto.
18007         (mmx_usadd<mode>3): Ditto.
18008         (mmx_sub<mode>3): Ditto.
18009         (mmx_sssub<mode>3): Ditto.
18010         (mmx_ussub<mode>3): Ditto.
18011         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
18012         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
18013         to handle nonimmediate operands.
18014         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
18015         insn pattern.
18016         (mmx_smulv4hi3_highpart): New expander.  Use
18017         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18018         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
18019         insn pattern.
18020         (mmx_umulv4hi3_highpart): New expander.  Use
18021         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18022         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
18023         (mmx_<code>v4hi3): New expander.  Use
18024         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18025         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
18026         (mmx_<code>v8qi3): New expander.  Use
18027         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18028         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
18029         (mmx_<code><mode>3): New expander.  Use
18030         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18031
18032 2008-05-05  Jan Hubicka  <jh@suse.cz>
18033
18034         PR tree-optimization/36118
18035         * passes.c (pass_init_dump_file): Fix dump header.
18036
18037 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18038
18039         PR middle-end/36141
18040         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
18041         VCE for function decls.
18042
18043 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
18044
18045         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
18046
18047 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
18048
18049         * config/i386/i386.md (sat_plusminus): New.
18050         (plusminus_insn): Likewise.
18051         (plusminus_mnemonic): Likewise.
18052         (addsub): Removed.
18053         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
18054         (*<addsub><mode>3_cc_overflow): Renamed to ...
18055         (*<plusminus_insn><mode>3_cc_overflow): This.
18056         (*<addsub>si3_zext_cc_overflow): Renamed to ...
18057         (*<plusminus_insn>si3_zext_cc_overflow): This.
18058
18059         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
18060         (<plusminus_insn><mode>3): This.
18061         (*<addsub><mode>3): Renamed to ...
18062         (*<plusminus_insn><mode>3): This.
18063         (<sse>_vm<addsub><mode>3): Renamed to ...
18064         (<sse>_vm<plusminus_insn><mode>3): This.
18065         (sse3_h<addsub>v4sf3): Renamed to ...
18066         (sse3_h<plusminus_insn>v4sf3): This.
18067         (sse3_h<addsub>v2df3): Renamed to ...
18068         (sse3_h<plusminus_insn>v2df3): This.
18069         (<plusminus_insn><mode>3): New.
18070         (*<plusminus_insn><mode>3): Likewise.
18071         (sse2_<plusminus_insn><mode>3): Likewise.
18072         (add<mode>): Removed.
18073         (*add<mode>3): Likewise.
18074         (sse2_ssadd<mode>3): Likewise.
18075         (sse2_usadd<mode>3): Likewise.
18076         (sub<mode>3): Likewise.
18077         (*sub<mode>3): Likewise.
18078         (sse2_sssub<mode>3): Likewise.
18079         (sse2_ussub<mode>3): Likewise.
18080
18081 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
18082
18083         * gthr-single.h: Add in required interface elements as per gthr.h.
18084         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
18085         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
18086         Generalize UNUSED macro.
18087         (__gthread_once): Add.
18088         (__gthread_key_create): Add.
18089         (__gthread_key_delete): Add.
18090         (__gthread_getspecific): Add.
18091         (__gthread_setspecific): Add.
18092
18093 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
18094
18095         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
18096         the same size types for the indirect reference on the rhs, then
18097         create a VCE.
18098
18099 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
18100
18101         * config/i386/i386.md
18102         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
18103         one insn template instead of template series.
18104         (*xordi_1_rex64): Ditto.
18105         (*xordi_2_rex64): Ditto.
18106
18107 2008-05-05  Ira Rosen  <irar@il.ibm.com>
18108
18109         PR tree-optimization/36119
18110         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
18111         in case of SLP.
18112
18113 2008-06-04  Jan Hubicka  <jh@suse.cz>
18114
18115         tree-optimization/36100
18116         * tree-pass.h (pass_O0_always_inline): Declare.
18117         * ipa-inline.c (inline_transform): Remove dead code.
18118         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
18119         pass_O0_always_inline): New.
18120         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
18121
18122 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
18123
18124         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
18125         mnemonic in this_param move for TARGET_64BIT.
18126
18127 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
18128
18129         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
18130         (*strmovsi_rex_1): Ditto.
18131         (*strsetsi_1): Ditto.
18132         (*strsetsi_rex_1): Ditto.
18133
18134         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
18135         adddicc expanders using SWI mode iterator.
18136
18137 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18138
18139         PR target/36121
18140         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
18141         argument handling.
18142
18143 2008-05-04  David S. Miller  <davem@davemloft.net>
18144
18145         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
18146         (sparc*-*-linux*): Use linux.h in tm_file.
18147         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
18148         compiler defaulting to 32-bit.
18149         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
18150         no longer needed.
18151         * config/sparc/linux.h: Remove definitions now obtained
18152         properly from linux.h
18153         * config/sparc/linux64.h: Likewise.
18154         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
18155         don't want this setting for 32-bit builds in a biarch compiler.
18156         * doc/install.texi: Add sparc-linux to list of targets
18157         supporting --enable-targets=all.
18158
18159 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
18160
18161         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
18162
18163 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
18164
18165         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
18166         after V4SI_FTYPE_V8HI.
18167         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
18168         case V4SI_FTYPE_V2DF.
18169
18170 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
18171
18172         * doc/invoke.texi (max-flow-memory-locations): Removed.
18173         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
18174
18175 2008-05-03  Richard Guenther  <rguenther@suse.de>
18176
18177         PR middle-end/34973
18178         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
18179
18180 2008-05-02  David S. Miller  <davem@davemloft.net>
18181
18182         * config.gcc (need_64bit_hwint): Document libcpp dependency.
18183
18184 2008-05-02  Simon Baldwin <simonb@google.com>
18185
18186         PR bootstrap/36108
18187         * c-common.h (warn_array_subscript_range): Removed.
18188         * c-common.c (warn_array_subscript_range): Ditto.
18189         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
18190         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
18191
18192 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18193
18194         * config/i386/i386.c (ix86_special_builtin_type): New.
18195         (bdesc_special_args): Likewise.
18196         (ix86_expand_special_args_builtin): Likewise.
18197         (ix86_init_mmx_sse_builtins): Updated.
18198         (ix86_expand_builtin): Updated.
18199         (ix86_expand_store_builtin): Removed.
18200         (ix86_expand_unop_builtin): Likewise.
18201
18202         * config/i386/mm3dnow.h (__v2sf): Moved to ...
18203         * config/i386/mmintrin.h (__v2sf): Here.
18204
18205         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
18206         const __v2sf.
18207         (_mm_loadl_pi): Likewise.
18208         (_mm_storeh_pi): Replace __v2si with __v2sf.
18209         (_mm_storel_pi): Likewise.
18210
18211         * doc/extend.texi: Correct __builtin_ia32_loadhps,
18212         __builtin_ia32_loadlps, __builtin_ia32_storehps,
18213         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
18214         __builtin_ia32_loadlpd.
18215
18216 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18217
18218         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
18219         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
18220         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
18221         (ix86_init_mmx_sse_builtins): Updated.
18222         (ix86_expand_args_builtin): Likewise.
18223         (ix86_expand_builtin): Likewise.
18224         (ix86_expand_unop1_builtin): Renamed to ...
18225         (ix86_expand_unop_vec_merge_builtin): This.
18226
18227 2008-05-01  Jan Hubicka  <jh@suse.cz>
18228
18229         PR bootstrap/36100
18230         * ipa-inline.c (inline_generate_summary): Make static.
18231         (inline_transform): Do not call inlining at -O0; make static.
18232         * passes.c (execute_todo): Add sanity check.
18233         (execute_one_ipa_transform_pass): Execute proper flags.
18234
18235 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
18236
18237         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
18238         (DECL_NONADDRESSABLE_P): Likewise.
18239         * alias.c (record_component_aliases): Fix comment.
18240
18241 2008-05-01  Simon Baldwin <simonb@google.com>
18242
18243         * c-common.h (warn_array_subscript_range): New function.
18244         * c-common.c (warn_array_subscript_range): Ditto.
18245         * tree-vrp.c (check_array_ref): Corrected code to agree with
18246         comment, ignoring only arrays of size 0 or size 1.
18247         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
18248
18249 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18250
18251         * config/i386/i386.c (ix86_builtin_type): Replace
18252         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
18253         (bdesc_args): Updated.
18254         (ix86_init_mmx_sse_builtins): Likewise.
18255         (ix86_expand_args_builtin): Likewise.
18256
18257         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
18258         with __v1di.
18259
18260         * doc/extend.texi: Correct __builtin_ia32_palignr.
18261
18262 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18263
18264         PR target/36095
18265         * config/i386/i386.c (bdesc_crc32): Removed.
18266         (ix86_expand_crc32): Likewise.
18267         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
18268         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
18269         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
18270         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
18271         UINT_FTYPE_UINT_UCHAR.
18272         (bdesc_args): Updated. Add crc32 builtins.
18273         (ix86_init_mmx_sse_builtins): Updated.
18274         (ix86_expand_args_builtin): Updated to support subreg.
18275
18276         * doc/extend.texi: Correct __builtin_ia32_crc32di.
18277
18278 2008-05-01  Jan Hubicka  <jh@suse.cz>
18279
18280         * tree-pass.h (opt_pass): Add IPA_PASS.
18281         (varpool_node, cgraph_node): Forward declare.
18282         (ipa_opt_pass): Define.
18283         (pass_ipa_inline): Turn into ipa_opt_pass.
18284         (pass_apply_inline): Remove.
18285         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
18286         (apply_inline): Turn into ....
18287         (inline_transform): ... this one.
18288         (inline_generate_summary): New function.
18289         (pass_apply_inline): Remove.
18290         * function.h (ipa_opt_pass): Forward declare structure; typedef;
18291         vector.
18292         (struct function): Add ipa_transforms_to_apply.
18293         * passes.c (register_one_dump_file): Work on IPA_PASS.
18294         (init_optimization_passes): Remove pass_inline_parameters and
18295         pass_apply_inline.
18296         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
18297         (execute_one_pass) ... here; apply transforms when possible.
18298         (add_ipa_transform_pass, execute_ipa_summary_asses,
18299         execute_one_ipa_transform_pass): New.
18300         (execute_ipa_pass_list): Update for IPA_PASS type.
18301
18302 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18303
18304         * config/i386/i386.c (ix86_builtin_type): Add
18305         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
18306         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
18307         (bdesc_args): Add SSE4a builtins.
18308         (ix86_init_mmx_sse_builtins): Updated.
18309         (ix86_expand_args_builtin): Likewise.
18310         (ix86_expand_builtin): Likewise.
18311
18312 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18313
18314         * config/i386/i386.c (ix86_builtin_type): Add
18315         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
18316         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
18317         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
18318         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
18319         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
18320         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
18321         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
18322         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
18323         and DI_FTYPE_DI_DI_INT.
18324         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
18325         (ix86_init_mmx_sse_builtins): Updated.
18326         (ix86_expand_args_builtin): Likewise.
18327         (ix86_expand_builtin): Likewise.
18328         (ix86_expand_binop_imm_builtin): Removed.
18329
18330         * doc/extend.texi: Correct __builtin_ia32_palignr128.
18331
18332 2008-04-30  Richard Guenther  <rguenther@suse.de>
18333
18334         PR tree-optimization/32921
18335         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
18336
18337 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
18338
18339         * config/arm/arm.c (arm_unwind_emit): Use
18340         crtl->all_throwers_are_sibcalls instead of
18341         cfun->all_throwers_are_sibcalls.
18342         (arm_output_fn_unwind): Likewise.
18343         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
18344         instead of cfun->uses_pic_offset_table.
18345         (frv_expand_prologue): Likewise.
18346         (frv_frame_pointer_required): Likewise.
18347         (frv_expand_fdpic_call): Likewise.
18348         (frv_emit_movsi): Likewise.
18349         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
18350         cfun->returns_pcc_struct instead of
18351         current_function_returns_pcc_struct.
18352         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
18353         instead of cfun->calls_eh_return.
18354         (m32c_pushm_popm): Likewise.
18355         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
18356         "extern" declaration.
18357
18358 2008-04-30  Richard Guenther  <rguenther@suse.de>
18359
18360         PR tree-optimization/21636
18361         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
18362         constant address.
18363         (evaluate_stmt): Print the likely value.
18364         (ccp_visit_stmt): Avoid excessive vertical spacing.
18365
18366 2008-04-30  Rafael Espíndola  <espindola@google.com>
18367
18368         * builtins.c (fold_call_expr): Return realret.
18369         * tree-ssa-threadedge.c
18370         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
18371         __builtin_object_size.
18372
18373 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
18374
18375         * gcc.c (wrapper_string): New variable.
18376         (insert_wrapper): New function.
18377         (execute): New option -wrapper.
18378         * doc/invoke.texi (Overall Options): New driver option -wrapper.
18379
18380 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
18381
18382         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
18383         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
18384         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
18385         from...
18386         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
18387         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
18388         config/rs6000/e500crtres64gprctr.asm,
18389         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
18390         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
18391         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
18392         config/rs6000/e500crtsav64gprctr.asm,
18393         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
18394         config/rs6000/e500crtsavg64gprctr.asm: New files.
18395         * config/rs6000/t-ppccomm: Add build rules for new files.
18396         (LIB2FUNCS_STATIC_EXTRA): Add new files.
18397         * config/rs6000/t-netbsd: Add build rules for new files.
18398         (LIB2FUNCS_STATIC_EXTRA): New variable.
18399         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
18400         (CRTSAVRES_DEFAULT_SPEC): Likewise.
18401         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
18402
18403 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
18404
18405         * config/i386/i386.c (ix86_builtin_type): Add
18406         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
18407         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
18408         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
18409         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
18410         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
18411         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
18412         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
18413         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
18414         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
18415         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
18416         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
18417         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
18418         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
18419         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
18420         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
18421         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
18422         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
18423         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
18424         V1DI_FTYPE_V2SI_V2SI.
18425         (bdesc_2arg): Moved to ...
18426         (bdesc_args): Here.
18427         (ix86_init_mmx_sse_builtins): Updated.
18428         (ix86_expand_args_builtin): Updated.  Take a pointer
18429         to const struct builtin_description.  Handle comparison
18430         builtin functions.
18431         (ix86_expand_sse_compare): Take a new argument for swapping operands.
18432         (ix86_expand_builtin): Updated.
18433
18434         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
18435         (ssse3_pmaddubsw128): This.
18436         (ssse3_pmaddubswv4hi3): Renamed to ...
18437         (ssse3_pmaddubsw): This.
18438
18439         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
18440         (__builtin_ia32_packssdw128): Likewise.
18441         (__builtin_ia32_packuswb128): Likewise.
18442         (__builtin_ia32_pmaddubsw): Likewise.
18443         (__builtin_ia32_pmaddubsw128): Likewise.
18444
18445 2008-04-30  Richard Guenther  <rguenther@suse.de>
18446
18447         PR tree-optimization/14847
18448         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
18449         (recognize_bits_test): Use it.
18450         (recognize_single_bit_test): Likewise.
18451
18452 2008-04-30  Martin Jambor  <mjambor@suse.cz>
18453
18454         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
18455         instead of setting number of formal parameters to zero.
18456         (ipcp_init_stage): Do not set the number of actual parameters to zero
18457         either.
18458         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
18459         which are called with variable number of arguments.
18460         (ipcp_insert_stage): Explicitely skipping all nodes which are
18461         called with variable number of arguments.
18462         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
18463         number of parameters.
18464
18465         * ipa-prop.h (struct ipa_node_params): Added flag
18466         called_with_var_arguments
18467         (ipa_set_param_count): Added.  Changed sole setter to use it.
18468         (ipa_get_param_count): Added.  All readers of param_count
18469         converted to use it instead.
18470         (ipa_set_called_with_variable_arg): Added.
18471         (ipa_is_called_with_var_arguments): Added.
18472         (ipa_get_ith_param): Added.  All readers of param_decls converted
18473         to use it instead.
18474         (ipa_set_cs_argument_count): Added, sole writer to argument_count
18475         changed to use it.
18476         (ipa_get_cs_argument_count): Added, all readers of argument_count
18477         changed to cal it.
18478         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
18479         to use it.
18480
18481         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
18482         (struct ipcp_lattice): Renamed cval_type to type
18483         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
18484
18485         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
18486         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
18487         (ipcp_insert_stage): Changed the type of variable cvalue to tree
18488         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
18489         (build_const_val): Changed the type of parameter cvalue to tree
18490         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
18491         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
18492
18493         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
18494         constant
18495
18496         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
18497         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
18498         (ipa_add_method): Renamed to ipa_push_func_to_list
18499         (ipa_remove_method): Renamed to ipa_pop_func_from_list
18500         (ipa_callsite_param_count): Removed.
18501         (ipa_callsite_param_count_set): Removed.
18502         (ipa_callsite_param): Removed.
18503         (ipa_callsite_callee): Removed.
18504         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
18505         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
18506         (ipa_method_formal_count): Removed.
18507         (ipa_method_formal_count_set): Removed.
18508         (ipa_method_get_tree): Removed.
18509         (ipa_method_tree_map_create): Removed.
18510         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
18511         (ipa_create_param_decls_array): Creates the array itself
18512         (ipa_create_param_decls_array): Temporary variable info instead of
18513         a few dereferences.
18514         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
18515         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
18516         (get_type): Removed.
18517         (ipa_jf_get_info_type): Removed.
18518         (ipa_node_create): Renamed to ipa_create_node_params
18519         (ipa_free): Renamed to ipa_free_all_node_params
18520         (ipa_nodes_create): Renamed to ipa_create_all_node_params
18521         (ipa_edges_create): Renamed to ipa_create_all_edge_args
18522         (ipa_edges_free): Renamed to ipa_free_all_edge_args
18523         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
18524         (ipa_free_all_node_params): Deallocation to jump_functions moved to
18525         ipa_free_all_edge_args
18526         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
18527         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
18528         (ipa_create_methodlist_node): Removed.
18529         (ipa_methodlist_method): Removed.
18530         (ipa_methodlist_method_set): Removed.
18531         (ipa_methodlist_next_method): Removed.
18532         (ipa_methodlist_next_method_set): Removed.
18533         (ipa_method_is_modified): Removed.
18534         (ipa_method_modify_create): Removed.
18535         (ipa_method_modify_init): Temporary variable info instead of a few
18536         dereferences.
18537         (ipa_detect_param_modifications): Temporary variable info instead of
18538         a few dereferences.
18539         (ipa_compute_jump_functions): Temporary variable info instead of
18540         a few dereferences.
18541         (ipa_method_modify_set): Removed.
18542         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
18543         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
18544         than craph_node as the first parameter.
18545         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
18546         (ipa_method_modify_init): Removed.
18547         (ipa_compute_jump_functions): Added a temp variable instead of
18548         repeatadly dereferencing the cgraph_edge.aux pointer
18549         (ipa_callsite_param_set_type): Removed.
18550         (ipa_compute_jump_functions): i renamed to index and moved to
18551         an inner block
18552         (ipa_callsite_param_set_info_type_formal): Removed.
18553         (ipa_callsite_param_set_info_type): Removed.
18554         (ipa_callsite_param_map_create): Removed.
18555         (ipa_callsite_tree): Removed.
18556         (ipa_callsite_caller): Removed.
18557         (ipa_pop_func_from_list): return_method removed to return_func
18558
18559         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
18560         prefixed all values with IPA_. Changed all users.
18561         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
18562         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
18563         and FORMAL_IPATYPE IPA_PASS_THROUGH.
18564         (union parameter_info): Renamed to jump_func_value.
18565         (union jump_func_value): Renamed value to constant
18566         (struct ipa_jump_func): Renamed info_type to value
18567         (struct ipa_node): Renamed to ipa_node_params
18568         (struct ipa_node_params): Renamed ipa_arg_num to param_count
18569         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
18570         (struct ipa_node_params): Renamed ipa_mod to modified_flags
18571         (struct ipa_edge): Renamed to ipa_edge_args
18572         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
18573         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
18574         (struct ipa_methodlist): Renamed to ipa_func_list
18575         (struct ipa_func_list): method_p renamed to node, next_method
18576         renamed to next
18577         (ipa_methodlist_p): Removed, switched all users to struct pointer
18578         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
18579
18580 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
18581
18582         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
18583         (rs6000_emit_epilogue): Use backchain to restore only when we
18584         have a large frame.  Make use of frame pointer to restore if we
18585         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
18586
18587 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
18588
18589         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
18590         Add mode to zero_extract.
18591         (sign bit tests peepholes): (Ditto.).
18592
18593 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18594
18595         * config/i386/i386.c (ix86_builtins): Replace Prescott New
18596         Instructions in comments with SSE3.
18597         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
18598         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
18599         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
18600         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
18601         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
18602         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
18603         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
18604         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
18605         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
18606         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
18607         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
18608         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
18609         (bdesc_sse_args): Renamed to ...
18610         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
18611         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
18612         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
18613         IX86_BUILTIN_FABSQ.
18614         (bdesc_1arg): Moved to ...
18615         (bdesc_args): Here.
18616         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
18617         Instructions in comments with SSE3.
18618         (ix86_expand_sse_operands_builtin): Renamed to ...
18619         (ix86_expand_args_builtin): This.  Updated.
18620         (ix86_expand_unop1_builtin): Update comments.
18621         (ix86_expand_builtin): Updated.
18622
18623 2008-04-29  Richard Guenther  <rguenther@suse.de>
18624
18625         PR tree-optimization/36078
18626         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
18627         Update virtual SSA form after cleaning up the CFG.
18628
18629 2008-04-29  Richard Guenther  <rguenther@suse.de>
18630
18631         PR middle-end/15255
18632         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
18633
18634 2008-04-29  Richard Guenther  <rguenther@suse.de>
18635
18636         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
18637         (compute_may_aliases): Do not call finalize_ref_all_pointers.
18638         (compute_flow_insensitive_aliasing): Do not treat
18639         PTR_IS_REF_ALL pointers special.
18640         (get_smt_for): Likewise.
18641         (may_alias_p): Re-structure.
18642         (is_escape_site): A ref-all pointer conversion is not an escape site.
18643         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
18644         PTR_IS_REF_ALL pointers special.
18645         * tree-ssa-structalias.h (struct alias_info): Remove
18646         ref_all_symbol_mem_tag field.
18647         (PTR_IS_REF_ALL): Remove.
18648
18649 2008-04-29  Richard Guenther  <rguenther@suse.de>
18650
18651         PR middle-end/36077
18652         * fold-const.c (extract_muldiv_1): In combining division constants
18653         make sure to never overflow.
18654
18655 2008-04-29  Nick Clifton  <nickc@redhat.com>
18656
18657         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
18658
18659 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18660
18661         PR bootstrap/35169
18662         * optc-gen.awk: Work around HP-UX/IA awk bug.
18663
18664 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
18665
18666         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
18667         2008-04-25 commit.
18668
18669 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
18670
18671         PR target/36073
18672         * config/i386/i386.md
18673         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
18674         Change operand 1 predicate to nonimmediate_operand.
18675
18676 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
18677
18678         PR debug/36060
18679         * dwarf2out.c (struct die_struct): Mark as chain_circular through
18680         die_sub field.
18681         * gengtype.c (walk_type, write_func_for_structure): Handle
18682         chain_circular.
18683         * doc/gty.texi: Document chain_circular.
18684
18685 2008-04-28  Richard Guenther  <rguenther@suse.de>
18686
18687         PR tree-optimization/36066
18688         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
18689         SCEV and loop.
18690
18691 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
18692
18693         PR target/36064
18694         * config/i386/i386.md
18695         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
18696         Use match_scratch instead of match_operand for operands 3 and 4.
18697
18698 2008-04-27  Richard Guenther  <rguenther@suse.de>
18699
18700         PR tree-optimization/18754
18701         PR tree-optimization/34223
18702         * tree-pass.h (pass_complete_unrolli): Declare.
18703         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
18704         loop size before and after unconditionally of UL_NO_GROWTH in effect.
18705         Rewrite loop into loop closed SSA form if it is not already.
18706         (tree_unroll_loops_completely): Re-structure to iterate over
18707         innermost loops with intermediate CFG cleanups.
18708         Unroll outermost loops only if requested or the code does not grow
18709         doing so.
18710         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
18711         loops are available.
18712         (tree_vectorize): Instead do so here.
18713         (tree_complete_unroll): Also unroll outermost loops.
18714         (tree_complete_unroll_inner): New function.
18715         (gate_tree_complete_unroll_inner): Likewise.
18716         (pass_complete_unrolli): New pass.
18717         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
18718         uses outside of the loop.
18719         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
18720         form if it is available.
18721         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
18722         * passes.c (init_optimization_passes): Schedule complete inner
18723         loop unrolling pass before the first CCP pass after final inlining.
18724
18725 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
18726
18727         * targhooks.h (default_emutls_var_fields,
18728         default_emutls_var_init): Declare.
18729         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
18730         * target.h (struct gcc_target): Add struct emutls member.
18731         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
18732         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
18733         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
18734         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
18735         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
18736         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
18737         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
18738         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
18739         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
18740         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
18741         emit debug information.
18742         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
18743         * varasm.c: Include targhooks.h.
18744         (emutls_object_section, emutls_tmpl_section): New.
18745         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
18746         (EMUTLS_SEPARATOR): New.
18747         (prefix_name): New.
18748         (get_emutls_object_name): New.
18749         (default_emutls_var_fields): New, broken out of ...
18750         (get_emutls_object_type): ... here.  Adjust to use target hooks.
18751         (get_emutls_init_templ_addr): Adjust to use target hooks.
18752         (emutls_decl): Adjust to use target hooks.
18753         (emutls_finish): Likewise.
18754         (default_emutls_var_init): New, broken out of ...
18755         (assemble_variable): ... here.  Adjust to use target hooks.
18756         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
18757         SECCAT_EMUTLS_TMPL.
18758         * c-common.c (handle_section_attribute): Prevent overriding
18759         sections for emulated tls with special sections.
18760         * config/i386/i386.c (x86_64_elf_select_section): Add
18761         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
18762         (x86_64_elf_unique_section): Likewise.
18763         * config/vxworks.c: Include tree.h.
18764         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
18765         (vxworks_override_options): Set TLS scheme.
18766         * doc/tm.texi (Emulated TLS): New node.
18767
18768 2008-04-26  Simon Baldwin <simonb@google.com>
18769
18770         PR c/35652
18771         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
18772         with propagated string constants.
18773
18774 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
18775
18776         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
18777         constraint for operand 2 when operand 0 is memory operand.
18778         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
18779         operand 0 is memory operand.
18780         (fix_trunc<mode>_i387_with_temp): Ditto.
18781         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
18782         operand 2 when operand 1 is memory operand.
18783         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
18784         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
18785         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
18786         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
18787         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
18788         operands 2,3 and 4 when operand 1 is memory operand.
18789         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
18790         is memory operand.
18791         (fistdi2_floor_with_temp): Ditto.
18792         (fist<mode>2_floor_with_temp): Ditto.
18793         (fistdi2_ceil_with_temp): Ditto.
18794         (fist<mode>2_ceil_with_temp): Ditto.
18795         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
18796
18797 2008-04-26  David Daney  <ddaney@avtrex.com>
18798
18799         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
18800         unspec_volitile.
18801         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
18802         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
18803         UNSPEC_UPDATE_GOT_VERSION): Renumber.
18804         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
18805         (compare_and_swap_12): New insn.
18806         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
18807         * config/mips/mips.c (mips_force_binary): New function.
18808         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
18809         (mips_expand_compare_and_swap_12): New function.
18810         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
18811
18812 2008-04-25  Jan Hubicka  <jh@suse.cz>
18813
18814         PR testsuite/35843
18815         * cfgexpand.c (pass_expand): Turn into RTL pass.
18816         * passes.c (execute_one_pass): Do pass typechecking after execution.
18817         * tree-pass.h (pass_expand): Turn into RTL pass.
18818
18819         * function.h (struct rtl_data): Move here fields
18820         accesses_prior_frames, calls_eh_return, saves_all_registers,
18821         has_nonlocal_goto, has_asm_statement, is_thunk,
18822         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
18823         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
18824         arg_pointer_save_area_init from struct function; turn into bool.
18825         (struct function): Move
18826         calls_eh_return, saves_all_registers, has_nonlocal_goto,
18827         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
18828         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
18829         tail_call_emit, arg_pointer_save_area_init
18830         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
18831         (current_function_returns_struct, current_function_returns_pcc_struct,
18832         current_function_calls_setjmp, current_function_calls_alloca,
18833         current_function_accesses_prior_frames,
18834         current_function_calls_eh_return, current_function_is_thunk,
18835         current_function_stdarg, current_function_profile,
18836         current_function_limit_stack, current_function_uses_pic_offset_table,
18837         current_function_uses_const_pool, current_function_has_nonlocal_label,
18838         current_function_saves_all_registers,
18839         current_function_has_nonlocal_goto,
18840         current_function_has_asm_statement): Remove accesor macros.
18841         * ra-conflict.c (global_conflicts): Update.
18842         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
18843         (suitable_for_tail_call_opt_p): Update.
18844         * builtins.c (expand_builtin_return_addr): Update.
18845         (expand_builtin_setjmp_setup): Update.
18846         (expand_builtin_nonlocal_goto): Update.
18847         * final.c (final_start_function): Update.
18848         (profile_function): Update.
18849         (leaf_function_p): Update.
18850         (only_leaf_regs_used): Update.
18851         * df-scan.c (df_get_exit_block_use_set): Update.
18852         * dojump.c (clear_pending_stack_adjust): Update.
18853         * tree-stdarg.c (gate_optimize_stdarg): Update.
18854         * gimple-low.c (lower_function_body): Update.
18855         * global.c (compute_regsets): Update.
18856         (global_alloc): Update.
18857         * dwarf2out.c (dwarf2out_begin_prologue): Update.
18858         * expr.c (expand_assignment): Update.
18859         * dse.c (dse_step0): Update.
18860         (dse_step1): Update.
18861         * c-decl.c (store_parm_decls): Update.
18862         * local-alloc.c (combine_regs): Update.
18863         (find_free_reg): Update.
18864         * function.c (assign_parms_augmented_arg_list): Update.
18865         (assign_parm_find_data_types): Update.
18866         (assign_parms): Update.
18867         (allocate_struct_function): Update.
18868         (expand_function_start): Update.
18869         (expand_function_end): Update.
18870         (get_arg_pointer_save_area): Update.
18871         (thread_prologue_and_epilogue_insns): Update.
18872         (rest_of_match_asm_constraints): Update.
18873         * stor-layout.c (variable_size): Update.
18874         * gcse.c (gcse_main): Update.
18875         (bypass_jumps): Update.
18876         * gimplify.c (gimplify_function_tree): Update.
18877         * calls.c (emit_call_1): Update.
18878         (expand_call): Update.
18879         * bt-load.c (compute_defs_uses_and_gen): Update.
18880         * except.c (sjlj_assign_call_site_values): Update.
18881         (sjlj_emit_function_enter): Update.
18882         (can_throw_external): Update.
18883         (set_nothrow_function_flags): Update.
18884         (expand_builtin_unwind_init): Update.
18885         (expand_eh_return): Update.
18886         (convert_to_eh_region_ranges): Update.
18887         (output_function_exception_table): Update.
18888         * emit-rtl.c (gen_tmp_stack_mem): Update.
18889         * cfgexpand.c (expand_used_vars): Update.
18890         (tree_expand_cfg): Update.
18891         * cfgcleanup.c (rest_of_handle_jump): Update.
18892         * explow.c (allocate_dynamic_stack_space): Update.
18893         * varasm.c (assemble_start_function): Update.
18894         (force_const_mem): Update.
18895         (mark_constant_pool): Update.
18896         * tree-optimize.c (tree_rest_of_compilation): Update.
18897         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
18898         * tree-cfg.c (notice_special_calls): Update.
18899         (is_ctrl_altering_stmt): Update.
18900         (tree_can_make_abnormal_goto): Update.
18901         (tree_purge_dead_abnormal_call_edges): Update.
18902         * config/alpha/predicates.md: Update.
18903         * config/alpha/alpha.c (alpha_sa_mask): Update.
18904         (alpha_sa_size): Update.
18905         (alpha_does_function_need_gp): Update.
18906         (alpha_expand_prologue): Update.
18907         (alpha_start_function): Update.
18908         (alpha_output_function_end_prologue): Update.
18909         (alpha_expand_epilogue): Update.
18910         * config/frv/frv.c (frv_stack_info): Update.
18911         (frv_expand_epilogue): Update.
18912         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
18913         (s390_register_info): Update.
18914         (s390_frame_info): Update.
18915         (s390_init_frame_layout): Update.
18916         (s390_can_eliminate): Update.
18917         (save_gprs): Update.
18918         * config/spu/spu.c (spu_split_immediate): Update.
18919         (need_to_save_reg): Update.
18920         (spu_expand_prologue): Update.
18921         (spu_expand_epilogue): Update.
18922         * config/sparc/sparc.md: Update.
18923         * config/sparc/sparc.c (eligible_for_return_delay): Update.
18924         (sparc_tls_got): Update.
18925         (legitimize_pic_address): Update.
18926         (sparc_emit_call_insn): Update.
18927         (sparc_expand_prologue): Update.
18928         (output_return): Update.
18929         (print_operand): Update.
18930         (sparc_function_ok_for_sibcall): Update.
18931         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
18932         * config/m32r/m32r.md: Update.
18933         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
18934         (m32r_compute_frame_size): Update.
18935         (m32r_expand_prologue): Update.
18936         (m32r_expand_epilogue): Update.
18937         (m32r_legitimize_pic_address): Update.
18938         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
18939         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
18940         * config/i386/i386.c (ix86_frame_pointer_required): Update.
18941         (gen_push): Update.
18942         (ix86_save_reg): Update.
18943         (ix86_compute_frame_layout): Update.
18944         (ix86_expand_prologue): Update.
18945         (ix86_expand_epilogue): Update.
18946         * config/sh/sh.c (output_stack_adjust): Update.
18947         (calc_live_regs): Update.
18948         (sh5_schedule_saves): Update.
18949         (sh_expand_prologue): Update.
18950         (sh_expand_epilogue): Update.
18951         (sh_setup_incoming_varargs): Update.
18952         (sh_allocate_initial_value): Update.
18953         (sh_get_pr_initial_val): Update.
18954         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
18955         * config/sh/sh.md (label:): Update.
18956         * config/avr/avr.c (out_movhi_mr_r): Update.
18957         * config/crx/crx.h (enum): Update.
18958         * config/xtensa/xtensa.h (along): Update.
18959         * config/stormy16/stormy16.c Update.
18960         (xstormy16_compute_stack_layout): Update.
18961         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
18962         (fr30_expand_prologue): Update.
18963         * config/cris/cris.c (cris_conditional_register_usage): Update.
18964         (cris_reg_saved_in_regsave_area): Update.
18965         (cris_initial_frame_pointer_offset): Update.
18966         (cris_simple_epilogue): Update.
18967         (cris_expand_prologue): Update.
18968         (cris_expand_epilogue): Update.
18969         (cris_expand_pic_call_address): Update.
18970         (cris_asm_output_symbol_ref): Update.
18971         (cris_asm_output_label_ref): Update.
18972         * config/cris/cris.md Update.
18973         * config/iq2000/iq2000.c (compute_frame_size): Update.
18974         (iq2000_expand_epilogue): Update.
18975         * config/mt/mt.h (save_direction): Update.
18976         * config/mn10300/mn10300.c (mn10300_function_value): Update.
18977         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18978         (ia64_secondary_reload_class): Update.
18979         * config/m68k/m68k.c (m68k_save_reg): Update.
18980         (m68k_expand_prologue): Update.
18981         (m68k_expand_epilogue): Update.
18982         (legitimize_pic_address): Update.
18983         * config/rs6000/rs6000.c (rs6000_got_register): Update.
18984         (first_reg_to_save): Update.
18985         (first_altivec_reg_to_save): Update.
18986         (compute_vrsave_mask): Update.
18987         (compute_save_world_info): Update.
18988         (rs6000_stack_info): Update.
18989         (spe_func_has_64bit_regs_p): Update.
18990         (rs6000_ra_ever_killed): Update.
18991         (rs6000_emit_eh_reg_restore): Update.
18992         (rs6000_emit_allocate_stack): Update.
18993         (rs6000_emit_prologue): Update.
18994         (rs6000_emit_epilogue): Update.
18995         (rs6000_output_function_epilogue): Update.
18996         (output_profile_hook): Update.
18997         (rs6000_elf_declare_function_name): Update.
18998         * config/rs6000/rs6000.h (rs6000_args): Update.
18999         * config/rs6000/rs6000.md: Update.
19000         * config/mcore/mcore.c (mcore_expand_prolog): Update.
19001         * config/arc/arc.c (arc_output_function_epilogue): Update.
19002         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
19003         * config/darwin.c (machopic_function_base_name): Update.
19004         * config/score/score3.c (score3_compute_frame_size): Update.
19005         (rpush): Update.
19006         (rpop): Update.
19007         (score3_epilogue): Update.
19008         * config/score/score7.c (score7_compute_frame_size): Update.
19009         (score7_prologue): Update.
19010         (score7_epilogue): Update.
19011         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
19012         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
19013         * config/arm/arm.c (use_return_insn): Update.
19014         (require_pic_register): Update.
19015         (arm_load_pic_register): Update.
19016         (arm_compute_save_reg0_reg12_mask): Update.
19017         (arm_compute_save_reg_mask): Update.
19018         (thumb1_compute_save_reg_mask): Update.
19019         (output_return_instruction): Update.
19020         (arm_output_function_prologue): Update.
19021         (arm_output_epilogue): Update.
19022         (arm_get_frame_offsets): Update.
19023         (arm_expand_prologue): Update.
19024         (thumb_pushpop): Update.
19025         (thumb_exit): Update.
19026         (thumb1_expand_prologue): Update.
19027         (thumb1_expand_epilogue): Update.
19028         (arm_unwind_emit): Update.
19029         (arm_output_fn_unwind): Update.
19030         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
19031         * config/arm/arm.md: Update.
19032         * config/pa/pa.md: Update.
19033         * config/pa/pa.c (legitimize_pic_address): Update.
19034         (compute_frame_size): Update.
19035         (hppa_expand_prologue): Update.
19036         (hppa_expand_epilogue): Update.
19037         (borx_reg_operand): Update.
19038         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
19039         (HARD_REGNO_RENAME_OK): Update.
19040         * config/mips/mips.c (mips_global_pointer): Update.
19041         (mips_save_reg_p): Update.
19042         (mips_compute_frame_info): Update.
19043         (mips_frame_pointer_required): Update.
19044         (mips_expand_prologue): Update.
19045         (mips_expand_epilogue): Update.
19046         (mips_can_use_return_insn): Update.
19047         (mips_reorg_process_insns): Update.
19048         * config/v850/v850.c (compute_register_save_size): Update.
19049         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
19050         * config/mmix/mmix.c (along): Update.
19051         (mmix_expand_epilogue): Update.
19052         * config/bfin/bfin.c (legitimize_pic_address): Update.
19053         (must_save_p): Update.
19054         (stack_frame_needed_p): Update.
19055         (add_to_reg): Update.
19056         (bfin_expand_prologue): Update.
19057         * stmt.c (expand_asm_operands): Update.
19058         * reload1.c (reload): Update.
19059         (init_elim_table): Update.
19060
19061 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
19062
19063         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
19064
19065 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
19066
19067         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
19068         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
19069         (mov<mode>): Removed.
19070         (*movv4sf_internal): Likewise.
19071         (*movv2df_internal): Likewise.
19072
19073 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
19074
19075         * config.gcc (crx-*-elf): Remove deprecation.
19076
19077 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
19078
19079         * config/i386/cygming-crtend.c (register_frame_ctor): Register
19080         __gcc_deregister_frame with atexit.
19081         (deregister_frame_dtor): Remove.
19082
19083 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
19084             Nathan Sidwell  <nathan@codesourcery.com>
19085
19086         * config/rs6000/rs6000.opt (mspe): Remove Var property.
19087         (misel): Likewise.
19088         * config/rs6000/rs6000.h (rs6000_spe): Declare.
19089         (rs6000_isel): Likewise.
19090         * config/rs6000/rs6000.c (rs6000_spe): New variable.
19091         (rs6000_isel): New variable.
19092         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
19093
19094 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19095
19096         PR c++/35758
19097         * c-common.c (handle_vector_size_attribute): Call
19098         lang_hooks.types.reconstruct_complex_type instead of
19099         reconstruct_complex_type.
19100         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
19101         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
19102         * langhooks.h (struct lang_hooks_for_types): Add
19103         reconstruct_complex_type hook.
19104         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
19105         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
19106
19107 2008-04-24  Richard Guenther  <rguenther@suse.de>
19108
19109         * c-common.h (check_builtin_function_arguments): Declare.
19110         * c-common.c (validate_nargs): New function.
19111         (check_builtin_function_arguments): Likewise.
19112         * c-typeck.c (build_function_call): Call
19113         check_builtin_function_arguments.
19114         * builtins.c (fold_builtin_classify): Remove error reporting code.
19115         (fold_builtin_unordered_cmp): Likewise.
19116         (fold_builtin_1): Likewise.
19117         (fold_builtin_n): Likewise.
19118
19119 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19120
19121         PR tree-optimization/36008
19122         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
19123         the original op1, rather than delta by step.
19124
19125 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
19126             Sebastian Pop  <sebastian.pop@amd.com>
19127
19128         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
19129         eliminate_local_variables_stmt, eliminate_local_variables,
19130         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
19131         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
19132         of code delimited by two edges in the CFG.
19133         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
19134         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
19135         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
19136         the case of parallelisation of reductions.
19137         (expr_invariant_in_region_p): New.
19138
19139         * tree-flow.h (gather_blocks_in_sese_region): Declared.
19140         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
19141
19142 2008-04-24  Ira Rosen  <irar@il.ibm.com>
19143             Richard Guenther  <rguenther@suse.de>
19144
19145         PR tree-optimization/36034
19146         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
19147         incapable of dealing with loads with gaps.
19148
19149 2008-04-24  Rafael Espíndola  <espindola@google.com>
19150
19151         * tree-flow.h (vrp_evaluate_conditional): Change signature.
19152         * tree-ssa-propagate.c (fold_predicate_in): Update call to
19153         vrp_evaluate_conditional.
19154         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
19155         (vrp_evaluate_conditional): Split the cond argument.
19156         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
19157         (simplify_stmt_for_jump_threading): Update call to
19158         vrp_evaluate_conditional.
19159
19160 2008-04-24  Ira Rosen  <irar@il.ibm.com>
19161
19162         PR tree-optimization/35982
19163         * tree-vect-analyze.c (vect_check_interleaving): Check that the
19164         interleaved data-refs are of the same type.
19165
19166 2008-04-24  Danny Smith  <dannysmith@users.net>
19167
19168         * c-format.c (check_format_info_main): Use strncmp rather than a
19169         magic prefix to handle multichar length specs.
19170         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
19171         Don't prefix "I64" and "I32" with '\0'.
19172
19173 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19174
19175         PR target/36015
19176         * config/i386/i386.c (init_cumulative_args): Don't pass anything
19177         in registers for -m32 only if stdarg_p (fntype).
19178
19179 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
19180
19181         PR rtl-optimization/36006
19182         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
19183         temp to op0 in order to avoid invalid rtx sharing.
19184
19185 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
19186
19187         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
19188         check TREE_INVARIANT.
19189         * tree-gimple.c (is_gimple_address): New.
19190         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
19191         * tree-gimple.h (is_gimple_address): New.
19192         * tree.h (decl_address_invariant_p): New.
19193         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
19194         (build_string): Likewise.
19195         (decl_address_invariant_p): New, from is_gimple_invariant_address.
19196         (tree_invariant_p_1): Likewise.
19197         (save_expr): Use it.
19198         (tree_invariant_p): New.
19199         (skip_simple_arithmetic): Use it.
19200         (stabilize_reference_1): Use it.
19201         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
19202         simplify.
19203         (build1_stat): Drop code to compute TREE_INVARIANT.
19204         (build2_stat): Drop code to compute TREE_INVARIANT.
19205         (build3_stat): Drop code to compute TREE_INVARIANT.
19206         (build4_stat): Drop code to compute TREE_INVARIANT.
19207         (build5_stat): Drop code to compute TREE_INVARIANT.
19208         (build7_stat): Drop code to compute TREE_INVARIANT.
19209         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
19210         * tree.h (struct tree_base): Remove invariant_flag.
19211         (TREE_INVARIANT): Remove.
19212         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
19213         (fold_builtin_expect): Check TREE_CONSTANT.
19214         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
19215         * c-tree.h (c_expr_to_decl): Drop third parameter.
19216         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
19217         (build_c_cast): Don't set TREE_INVARIANT.
19218         (pop_init_level): Don't set TREE_INVARIANT.
19219         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
19220         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
19221         TREE_CONSTANT.
19222         (gimplify_init_constructor): Don't set TREE_INVARIANT.
19223         (gimplify_addr_expr): Adjust comment.
19224         * tree-mudflap.c (mf_build_string):
19225         * print-tree.c (print_node): Don't print TREE_INVARIANT.
19226         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
19227         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
19228         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
19229         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
19230         * langhooks.h (struct lang_hooks): Drop third parameter from
19231         expr_to_decl.
19232
19233 2008-04-23  Richard Guenther  <rguenther@suse.de>
19234
19235         PR tree-optimization/27799
19236         PR tree-optimization/32921
19237         PR tree-optimization/32624
19238         * tree-ssa-structalias.c (merge_smts_into): Only merge the
19239         SMTs aliases and the tag itself into the solution.
19240         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
19241         merge the points-to solution back into the SMT aliases.
19242         (may_alias_p): Use alias_set_subset_of instead of
19243         aliases_conflict_p.  A pointer which points to
19244         memory with alias set zero may access any variable.
19245
19246 2008-04-23  Richard Guenther  <rguenther@suse.de>
19247
19248         * alias.c (alias_set_subset_of): Correctly handle asking
19249         if zero is a subset of an alias set with zero child.
19250         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
19251         (compute_flow_insensitive_aliasing): Correctly walk all
19252         pointers.  Do not unnecessarily union sets.
19253
19254 2008-04-23  Richard Guenther  <rguenther@suse.de>
19255
19256         PR middle-end/36021
19257         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
19258
19259 2008-04-22  Tomas Bily  <tbily@suse.cz>
19260
19261         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
19262         unreachable case.
19263         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
19264         NON_LVALUE_EXPR.
19265         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19266         * tree-ssa-structalias.c (get_constraint_for): Likewise.
19267         * tree-inline.c (estimate_num_insns_1): Likewise.
19268         * varasm.c (const_hash_1, compare_constant, copy_constant)
19269         (compute_reloc_for_constant, output_addressed_constants): Likewise.
19270         * emit-rtl.c (component_ref_for_mem_expr)
19271         (set_mem_attributes_minus_bitpos): Likewise.
19272         * expr.c (highest_pow2_factor, expand_expr_real_1, )
19273         (is_aligning_offset): Likewise.
19274         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
19275         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
19276         * dojump.c (do_jump): Likewise.
19277         * builtins.c (get_pointer_alignment, get_memory_rtx)
19278         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
19279         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
19280
19281 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
19282
19283         PR rtl-optimization/36017
19284         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
19285         expanding the library call.
19286
19287 2008-04-22  Ian Lance Taylor  <iant@google.com>
19288
19289         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
19290         than size_in_bytes.
19291
19292 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
19293
19294         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
19295         of LR/CTR moves for Power6.
19296
19297 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
19298
19299         PR middle-end/36003
19300         * passes.c (init_optimization_passes): Remove
19301         pass_fast_rtl_byte_dce.
19302
19303 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
19304
19305         PR target/29096
19306         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
19307         builtin functions to generate faster code.
19308         (_mm_cvtpu16_ps): Ditto.
19309         (_mm_cvtpi32x2_ps): Ditto.
19310
19311 2008-04-22  Nick Clifton  <nickc@redhat.com>
19312
19313         * common.opt (ftree-loop-distribution): Add Optimization
19314         attribute.
19315
19316         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
19317         (frv_expand_builtin_va_start): Likewise.
19318
19319         * config/arm/arm.c (thumb_find_work_register): Fix location of
19320         argument register count.
19321
19322 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19323
19324         Support scheduling for ColdFire V1 and V3 microarchitecture.
19325         Improve scheduling of multiplication instructions.
19326
19327         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
19328         (mac): New instruction attribute.
19329         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
19330         (m68k_sched_mac): New variable.
19331         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
19332         Handle cfv1 and cfv3.
19333         (max_insn_size): New static variable.
19334         (struct _sched_ib): New type.
19335         (sched_ib): New static variable.
19336         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
19337         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
19338         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
19339         Update.
19340         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
19341         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
19342         new variables.  Update.
19343         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19344         Add modeling of cfv3 instruction buffer.  Update.
19345         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
19346         * config/m68k/m68k.h (TUNE_CFV3): New macro.
19347         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
19348         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
19349         a particular reservation applies to.
19350         (type2): Reorganize attribute values.  Rename alu to alu_reg,
19351         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
19352         to mul_l and mul_w.
19353         (cf_ib_*): Simplify description of instruction buffer.
19354         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
19355         (cf_mem): Split into cf_mem1 and cf_mem2.
19356         (cf_v2_move_??): Rename to cfv12_alu_??.
19357         (cf_v2_move_l_??): Rename to cfv12_omove_??.
19358         (cf_v2_mul_??): Remove reservations.
19359         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
19360         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
19361         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
19362         appropriate place.
19363         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
19364         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
19365         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
19366         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
19367         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
19368         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
19369         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
19370         expansions of the above reservations for instructions of sizes
19371         1, 2 and 3 words.
19372
19373 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19374
19375         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
19376
19377 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
19378
19379         * coverage.c: Include tree-pass.h.
19380         (coverage_counter_alloc): Print da_file_name to the dump file.
19381
19382 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
19383
19384         * sbitmap.c (sbitmap_range_empty_p): New function.
19385         * sbitmap.h (sbitmap_range_empty_p): New function.
19386         * bitmap.h: Now includes obstack.h.
19387
19388 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
19389             Kenneth Zadeck  <zadeck@naturalbridge.com>
19390
19391         * dbgcnt.def (ra_byte_scan): Added.
19392         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
19393         when the last hit happens for a counter.
19394         * timevar.def (TV_DF_BYTE_LR): New variable.
19395         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
19396         * passes.c (pass_fast_rtl_byte_dce): New pass.
19397         * fwprop.c (update_df): Added mode to call df_ref_create.
19398         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
19399         DF_REF_EXTRACT_OFFSET.
19400         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
19401         DF_BYTE_LR_OUT, df_byte_lr): New macro.
19402         (df_mm): New enum.
19403         (df_ref_extract): Added mode field.
19404         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
19405         DF_REF_EXTRACT_OFFSET.
19406         (DF_REF_EXTRACT_MODE): New macro.
19407         (df_byte_lr_bb_info): New structure.
19408         (df_print_byte_regset, df_compute_accessed_bytes,
19409         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
19410         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
19411         df_byte_lr_simulate_uses,
19412         df_byte_lr_simulate_artificial_refs_at_top,
19413         df_byte_lr_simulate_artificial_refs_at_end,
19414         df_compute_accessed_bytes): New function.
19415         (df_ref_create): Add parameter.
19416         (df_byte_lr_get_bb_info): New inline function.
19417         * df-scan.c (df_ref_record, df_uses_record,
19418         df_ref_create_structure): Added mode parameter.
19419         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
19420         df_defs_record, df_uses_record, df_get_conditional_uses,
19421         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
19422         df_entry_block_defs_collect, df_exit_block_uses_collect):
19423         Added mode parameter to calls to df_ref_record, df_uses_record,
19424         df_ref_create_structure.
19425         (df_ref_equal_p, df_ref_compare): Added test for modes.
19426         (df_ref_create_structure): Added code to set mode.  Renamed
19427         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
19428         DF_REF_EXTRACT_OFFSET.
19429         * df-core.c (df_print_byte_regset): New function.
19430         * df-byte-scan.c: New file.
19431         * df-problems.c (df_rd_transfer_function): Removed unnecessary
19432         calls to BITMAP_FREE.
19433         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
19434         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
19435         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
19436         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
19437         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
19438         df_byte_lr_local_compute, df_byte_lr_init,
19439         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
19440         df_byte_lr_transfer_function, df_byte_lr_free,
19441         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
19442         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
19443         df_byte_lr_simulate_uses,
19444         df_byte_lr_simulate_artificial_refs_at_top,
19445         df_byte_lr_simulate_artificial_refs_at_end): New function.
19446         * dce.c (byte_dce_process_block): New function.
19447         (dce_process_block): au is now passed in rather than computed
19448         locally.  Changed loops that look at artificial defs to not look
19449         for conditional or partial ones, because there never are any.
19450         (fast_dce): Now is able to drive byte_dce_process_block or
19451         dce_process_block depending on the kind of dce being done.
19452         (rest_of_handle_fast_dce): Add parameter to fast_dce.
19453         (rest_of_handle_fast_byte_dce): New function.
19454         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
19455         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
19456
19457 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
19458
19459         PR fortran/35019
19460         * gcc.h: Added fortran options that take arguments to
19461         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
19462         macros.
19463
19464 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
19465
19466         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
19467         scalarization if on the LHS and not a full access.
19468
19469 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19470
19471         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
19472
19473 2008-04-18  Rafael Espíndola  <espindola@google.com>
19474
19475         * tree-vrp.c (find_case_label_index): Fix the binary search.
19476         (find_case_label_range): New.
19477         (vrp_visit_switch_stmt): Use find_case_label_range.
19478         (simplify_switch_using_ranges): Use find_case_label_range.
19479
19480 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19481
19482         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
19483         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
19484
19485 2008-04-18  Tom Tromey  <tromey@redhat.com>
19486
19487         PR libcpp/15500:
19488         * doc/cpp.texi (Implementation-defined behavior): Mention
19489         -finput-charset.
19490
19491 2008-04-18  Ian Lance Taylor  <iant@google.com>
19492
19493         * fold-const.c (pointer_may_wrap_p): New static function.
19494         (fold_comparison): Add another test for pointer overflow.  Use
19495         pointer_may_wrap_p to disable some false positives.
19496
19497 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
19498
19499         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
19500         (fname_as_string): Match updated cpp_interpret_string prototype.
19501         (fix_string_type): Support char16_t* and char32_t*.
19502         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
19503         derivative) nodes.  Register as builtin if C++0x.
19504         (c_parse_error): Support CPP_CHAR{16,32}.
19505         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
19506         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
19507         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
19508         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
19509         CTI_CHAR32_ARRAY_TYPE>: New elements.
19510         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
19511         char32_type_node, signed_char32_type_node, char16_array_type_node,
19512         char32_array_type_node): New defines.
19513         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
19514         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
19515         (lex_string): Support CPP_STRING{16,32}, match updated
19516         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
19517         (lex_charconst): Support CPP_CHAR{16,32}.
19518         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
19519         and CPP_STRING{16,32}.
19520
19521 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19522
19523         PR bootstrap/35457
19524         * aclocal.m4: Regenerate.
19525         * configure: Regenerate.
19526
19527 2008-04-18  Jan Hubicka  <jh@suse.cz>
19528
19529         * except.c (dw2_size_of_call_site_table,
19530         sjlj_size_of_call_site_table): Use vector API for call_site_record.
19531
19532         * cgraphbuild.c (build_cgraph_edges): Update.
19533         * tree-pass.h: Update comment.
19534         * final.c (leaf_function_p): Update.
19535         (leaf_renumber_regs): Update.
19536         (rest_of_clean_state): Update.
19537         * omp-low.c (expand_omp_parallel): Update.
19538         * ipa-reference.c (analyze_function): Update.
19539         * reorg.c (find_end_label): Update.
19540         (optimize_skip): Update.
19541         (fill_simple_delay_slots): Update.
19542         (fill_simple_delay_slots): Update.
19543         (make_return_insns): Update.
19544         (dbr_schedule): Update.
19545         * gimple-low.c (record_vars_into): Update.
19546         * cfgbuild.c (make_edges): Update.
19547         * function.c (assign_stack_local): Update.
19548         (assign_parm_adjust_stack_rtl): Update.
19549         (locate_and_pad_parm): Update.
19550         (allocate_struct_function): Do not initialize stack_alignment_needed
19551         and preferred_stack_boundary here.
19552         (stack_protect_prologue): Update.
19553         (stack_protect_epilogue): Update.
19554         (expand_function_start): Initialize stack_alignment_needed,
19555         preferred_stack_boundary and max_jumptable_ents.
19556         (expand_function_end): Update.
19557         (free_after_compilation): Do not NULLify epilogue_delay_list.
19558         * function.h (struct rtl_data): Add stack_protect_guard,
19559         stack_alignment_needed,
19560         preferred_stack_boundary, epilogue_delay_list.
19561         (struct function): Remove value_histograms, stack_alignment_needed,
19562         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
19563         last_label_uid,
19564         unexpanded_var_list, stack_protect_guard.
19565         (current_function_epilogue_delay_list): Remove.
19566         * ipa-type-escape.c (analyze_function): Update.
19567         * gimplify.c (pop_gimplify_context): Update comment.
19568         * calls.c (expand_call): Update.
19569         (emit_library_call_value_1): Update.
19570         * except.c (set_nothrow_function_flags): Update.
19571         * cfgexpand.c (get_decl_align_unit): Update.
19572         (create_stack_guard): Update.
19573         (estimated_stack_frame_size): Update.
19574         (expand_used_vars): Update.
19575         (tree_expand_cfg): Free histogram earliers, init expansion variables.
19576         * explow.c (allocate_dynamic_stack_space): Update.
19577         * tree-ssa-live.c (remove_unused_locals): Update.
19578         * varasm.c (mark_constant_pool): Update.
19579         * tree-inline.c (remap_decls): Update.
19580         (initialize_cfun): Update.
19581         (declare_return_variable): Update.
19582         (inline_forbidden_p): Update.
19583         (expand_call_inline): Update.
19584         (declare_inline_vars): Update.
19585         (tree_function_versioning): Update.
19586         * tree-flow.h (value_histograms): New.
19587         (VALUE_HISTOGRAMS): New macro.
19588         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
19589         last_label_uid.
19590         * tree-cfg.c (set_bb_for_stmt): Update.
19591         (replace_by_duplicate_decl): Update.
19592         (move_block_to_fn): Update.
19593         (new_label_mapper): Update.
19594         (dump_function_to_file): Update.
19595         * ipa-struct-reorg.c (build_data_structure): Update.
19596         * cfgrtl.c (print_rtl_with_bb): Update.
19597         * reload1.c (reload): Update.
19598         (reload): Update.
19599         * config/i386/i386.c (setup_incoming_varargs_64,
19600         ix86_compute_frame_layout): Update.
19601         * config/arc/arc.c (arc_output_function_epilogue): Update.
19602
19603 2008-04-18  Marius Strobl <marius@FreeBSD.org>
19604
19605         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
19606         for FreeBSD as well.
19607         * gthr-posix95.h: Likewise.
19608
19609 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
19610
19611         PR rtl-optimization/35838
19612         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
19613         out the byte offset of the first subreg.
19614
19615 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
19616
19617         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
19618         to split_ti instead of three separate calls with single member arrays.
19619         (subti3 splitter): Ditto.
19620         (adddi3 splitter): Ditto with split_di.
19621         (subdi3 splitter): Ditto.
19622         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
19623         two separate calls with single member arrays.  Swap match_dup
19624         operands 1 and 2 to better fit into the array.
19625         (negdi2 splitter): Ditto with split_di.
19626         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
19627         two separate calls with single member arrays.  Swap match_dup operands
19628         6 and 7 to better fit into the array.
19629
19630 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
19631
19632         * config/i386/i386.c (sse_builtin_type): New.
19633         (bdesc_sse_args): Likewise.
19634         (bdesc_sse_3arg): Removed.
19635         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
19636         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
19637         IX86_BUILTIN_ROUNDPS.
19638         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
19639         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
19640         IX86_BUILTIN_ROUNDPS.
19641         (ix86_expand_sse_4_operands_builtin): Removed.
19642         (ix86_expand_sse_operands_builtin): New.
19643         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
19644         and CODE_FOR_sse4_1_roundps.
19645         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
19646         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
19647
19648 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
19649
19650         PR target/35907
19651         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
19652         regs before frame pop when needed.  If use_backchain_to_restore_sp
19653         then load backchain into a temp reg to restore vr and vrsave.  Add
19654         code to restore vr after frame pop if possible.
19655
19656 2008-04-17  Richard Guenther  <rguenther@suse.de>
19657
19658         * tree-vn.c (expressions_equal_p): Do not check type
19659         equality or compatibility before calling operand_equal_p.
19660         * fold-const.c (operand_equal_p): Check equivalence of
19661         integer constants before bailing out due to signedness or
19662         precision differences.
19663         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
19664         spurious differences in type qualification.  Ignore types
19665         for COMPONENT_REFs at all.
19666
19667 2008-04-17  Christian Bruel  <christian.bruel@st.com>
19668
19669         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
19670         msw_skip comparison.
19671
19672 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
19673
19674         PR c/35739
19675         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
19676         reg type.
19677
19678         PR tree-optimization/35899
19679         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
19680         rather than TREE_OPERAND.
19681
19682 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
19683
19684         PR target/35944
19685         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
19686         temporary registers.  Change operand predicate to general_operand.
19687         (remainderxf3): Ditto.
19688
19689 2008-04-16  Richard Guenther  <rguenther@suse.de>
19690
19691         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
19692         * tree-affine.c (aff_combination_expand): Look through some
19693         conversions.
19694
19695 2008-04-15  Doug Kwan  <dougkwan@google.com>
19696
19697         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
19698         for hex printing.
19699         * tree-pretty-print.c (dump_generic_node): Ditto.
19700         * final.c (output_addr_const): Ditto.
19701         * dwarf2out.c (output_cfi): Ditto.
19702         * c-pretty-print.c (pp_c_integer_constant): Ditto.
19703         * print-rtl.c (print_rtx): Ditto.
19704         * print-tree.c (print_node_brief, print_node): Ditto.
19705         * c-common.c (match_case_to_enum_1): Ditto.
19706         * sched-vis.c (print_value): Ditto.
19707         * config/i386/i386.c (print_operand): Cast to long unsigned int
19708         for hex printing.
19709
19710 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
19711         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
19712         MS Windows VirtualProtect function.
19713
19714 2008-04-15  Jan Hubicka  <jh@suse.cz>
19715
19716         * gengtype.c (write_root): Param_is argument is OK.
19717         * expr.c (expand_expr_real_1): Update call of get_exception_*.
19718         * function.h: Include varray.h
19719         (rtl_eh): New stucture based on except.c one.
19720         (call_site_record): New forward declaration and vector type.
19721         * calls.c (emit_call_1): Do not call
19722         note_current_region_may_contain_throw.
19723         * except.c (eh_status): Remove cur_region, try_region since they are
19724         unused.
19725         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
19726         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
19727         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
19728         Remove call_site_data_used, call_site_data_size.
19729         Turn call_site_record into vector in function.h.
19730         (note_current_region_may_contain_throw): Remove.
19731         (get_exception_pointer, get_exception_filter): Do not take struct
19732         function argument; update.
19733         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
19734         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
19735         build_post_landing_pads, dw2_build_landing_pads,
19736         sjlj_assign_call_site_values, sjlj_mark_call_sites,
19737         sjlj_emit_function_enter, sjlj_emit_function_enter,
19738         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
19739         sjlj_build_landing_pads, finish_eh_generation,
19740         remove_exception_handler_label, remove_eh_handler,
19741         maybe_remove_eh_handler, add_reachable_handler,
19742         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
19743         add_action_record, collect_one_action_chain, add_call_site,
19744         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
19745         sjlj_output_call_site_table, output_function_exception_table,
19746         * except.h (note_current_region_may_contain_throw): Remove
19747         (get_exception_pointer, get_exception_filter): Do not take struct
19748         function argument.
19749         * Makefile.in (GTFILES): Put varargs before struct function.
19750
19751 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19752
19753         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
19754         punt for STRING_CST.
19755         (get_constraint_for): Deal with STRING_CST here instead.
19756
19757 2008-04-15  Richard Guenther  <rguenther@suse.de>
19758
19759         * tree-ssa-propagate.c (substitute_and_fold): Substitute
19760         statements in a basic-block with a backward walk.  Do not
19761         substitute into dead statements but instead remove those.
19762
19763 2008-04-15  Richard Guenther  <rguenther@suse.de>
19764
19765         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
19766         to zero, thus disable creation of SFTs.
19767
19768 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19769
19770         * tree-predcom.c (suitable_reference_p): Return false if the
19771         reference can throw.
19772
19773 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
19774
19775         PR c/35751
19776         * c-decl.c (finish_decl): If extern or static var has variable
19777         size, set TREE_TYPE (decl) to error_mark_node.
19778
19779 2008-04-15  Rafael Espíndola  <espindola@google.com>
19780
19781         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
19782         variable arg1.
19783
19784 2008-04-15  Richard Guenther  <rguenther@suse.de>
19785
19786         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
19787         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
19788         (visit_reference_op_load): Do walk vuse-vdef chains on
19789         vn_reference_lookup.
19790         (visit_reference_op_store): But do not here.
19791         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
19792         vn_reference_lookup.
19793         (vn_lookup_with_vuses): But do so here.
19794
19795 2008-04-14  Ian Lance Taylor  <iant@google.com>
19796
19797         * fold-const.c (fold_overflow_warning): Remove assertion.
19798
19799 2008-04-15  Ben Elliston  <bje@au.ibm.com>
19800
19801         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
19802         temp1 local variables.
19803
19804 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
19805
19806         PR target/35661
19807         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
19808         ".text.unlikely" section as executable.
19809
19810 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
19811
19812         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19813         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
19814         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
19815         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
19816         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
19817         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
19818         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
19819
19820 2008-04-14  Ian Lance Taylor  <iant@google.com>
19821
19822         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
19823         * fold-const.c (fold_comparison): If appropriate, test
19824         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
19825         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
19826         reassociating a pointer type.
19827         * doc/invoke.texi (Optimize Options): Document that
19828         -fstrict-overflow applies to pointer wraparound.
19829
19830 2008-04-13  Jan Hubicka  <jh@suse.cz>
19831
19832         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
19833
19834 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
19835
19836         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
19837         we are going to "save the world".
19838
19839 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
19840
19841         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
19842         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
19843         operand 0 constraint, not "=".
19844
19845 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
19846
19847         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
19848
19849 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
19850
19851         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
19852         of size of positions_needed * CHAR_BIT.
19853
19854 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
19855
19856         PR middle-end/35897
19857         * dse.c (store_info): Change positions_needed to unsigned
19858         HOST_WIDE_INT.
19859         (lowpart_bitmask): New.
19860         (record_store): Cast to unsigned HOST_WIDE_INT for
19861         positions_needed.  Assert width <= size of positions_needed *
19862         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
19863         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
19864         lowpart_bitmask to set mask.
19865
19866 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
19867
19868         * config/bfin/constraints.md: New file.
19869         * config/bfin/bfin.md: Include it.
19870         (adddi3): Use satisfies_constraint functions instead of the old macros.
19871         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
19872         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
19873         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
19874         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
19875         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
19876         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
19877         EXTRA_CONSTRAINT): Delete.
19878         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
19879         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
19880         of the old macros.
19881         * config/bfin/bfin.c: Include "tm-constrs.h".
19882         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
19883         Use satisfies_constraint functions instead of the old macros.
19884         * doc/md.texi (Blackfin Constraints): Update file name reference.
19885
19886 2008-04-11  Richard Guenther  <rguenther@suse.de>
19887
19888         PR tree-optimization/35869
19889         * tree-vrp.c (execute_vrp): Move switch statement update after
19890         jump threading.  Schedule another cfg cleanup run.
19891
19892 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
19893
19894         PR c/35744
19895         * attribs.c (decl_attributes): Return early on errorneous node.
19896
19897 2008-04-10  Oleg Ryjkov  <olegr@google.com>
19898
19899         * tree.h (struct tree_base): Added a new flag default_def_flag.
19900         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
19901
19902 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
19903
19904         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
19905
19906 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19907
19908         PR target/35768
19909         * pa.md: Define mode iterator P.  Define mode attribute dwc.
19910         (dcacheflush): Update pattern to use iterator P and attribute dwc.
19911         (icacheflush): Likewise.
19912         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
19913         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
19914
19915 2008-04-11  Ben Elliston  <bje@au.ibm.com>
19916
19917         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
19918
19919 2008-04-10  Rafael Espíndola  <espindola@google.com>
19920
19921         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
19922         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
19923         (extract_range_from_expr): The same.
19924
19925 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
19926
19927         * config/mips/mips.md (GPR2): New mode iterator.
19928         (seq): Add comment.
19929         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
19930         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
19931         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
19932         Rewrite these to take two modes, the mode of comparison and the
19933         mode of the destination.
19934         * config/mips/mips.c (mips_expand_scc): Instead of having
19935         paradoxical subreg as destination, expand "narrowing" scc if mode
19936         of comparison is SI and target is requested in DI mode.
19937         (mips_emit_int_order_test): Update comment.  Make mode of
19938         comparison match CMP0 rather than TARGET.  When creating inverse
19939         target use mode of TARGET.
19940
19941 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
19942
19943         * gcov-dump.c (tag_summary): Only print summaries for the first
19944         GCOV_COUNTERS_SUMMABLE counters.
19945
19946 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
19947
19948         * config/i386/i386.md (absneg): New code iterator.
19949         (absnegprefix): New code attribute.
19950         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
19951         patterns using absneg code iterator.
19952         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
19953         using absneg code iterator.
19954         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
19955         *neg<mode>2 patterns using absneg code iterator.
19956         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
19957         *negextendsfdf2 patterns using absneg code iterator.
19958         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
19959         *negextendsfxf2 patterns using absneg code iterator.
19960         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
19961         *negextendsfdf2 patterns using absneg code iterator.
19962         * config/i386/sse.md (<code><mode>2): Macroize expander from
19963         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
19964
19965 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
19966
19967         * config/s390/s390.h: Remove the remains of the recent search
19968         & replace action of current_function_outgoing_args_size.
19969
19970 2008-04-10  Ira Rosen  <irar@il.ibm.com>
19971
19972         PR tree-optimization/35821
19973         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
19974         NEW_STMT_LIST is not NULL.
19975
19976 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
19977
19978         PR libstdc++/35597
19979         * toplev.c (process_options): Remove -ffunction-sections debugging
19980         warning.
19981
19982 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
19983
19984         PR middle-end/PR28690
19985         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
19986         than gen_rtx_fmt_ee to perform more canonicalizations.
19987
19988 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19989
19990         PR driver/35665
19991         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
19992
19993 2008-04-09  Richard Guenther  <rguenther@suse.de>
19994
19995         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
19996         (dump_function_to_file): Dump function arguments with types.
19997
19998 2008-04-08  Richard Guenther  <rguenther@suse.de>
19999
20000         * fold-const.c (fold_widened_comparison): Do not allow
20001         sign-changes that change the result.
20002
20003 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
20004
20005         PR target/35839
20006         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
20007         kinds of indirect references.
20008
20009 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
20010
20011         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
20012         GNU Fortran language string.
20013
20014 2008-04-08  Rafael Espíndola  <espindola@google.com>
20015
20016         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
20017         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
20018         * tree.h (tree_call_nonnegative_warnv_p): New.
20019
20020 2008-04-08  Jan Hubicka  <jh@suse.cz>
20021
20022         * function.c (free_after_compilation): Clear out regno_reg_rtx
20023         pointer.
20024
20025 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
20026
20027         Revert
20028         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
20029
20030         PR middle-end/PR28690
20031         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
20032         same precedence as REG_POINTER and MEM_POINTER operands.
20033
20034 2008-04-08  Richard Guenther  <rguenther@suse.de>
20035
20036         PR middle-end/35834
20037         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
20038         for adding index to base.
20039
20040 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
20041
20042         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
20043         (MINGW_ENABLE_EXECUTE_STACK): New.
20044         (IN_LIBGCC2): For libgcc include windows.h file for
20045         function declarations.
20046
20047 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
20048
20049         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
20050         and tem2 if tem1 is not a REG or MULT.
20051
20052 2008-04-08  Jan Hubicka  <jh@suse.cz>
20053
20054         * function.h (incomming_args): Break out of struct function.
20055         (function_subsections): Break out of struct function.
20056         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
20057         return_rtx and hard_reg_initial_vals from struct function.
20058         Kill inl_max_label_num.
20059         (current_function_pops_args, current_function_args_info,
20060         current_function_args_size, current_function_args_size,
20061         current_function_pretend_args_size,
20062         current_function_outgoing_args_size,
20063         current_function_internal_arg_pointer, current_function_return_rtx):
20064         Kill compatibility accestor macros.
20065         * builtins.c (expand_builtin_apply_args_1): Update.
20066         (expand_builtin_next_arg): Update.
20067         * df-scan.c (df_get_call_refs): Update.
20068         * dbxout.c (dbxout_function_end): Update.
20069         * dwarf2out.c (dwarf2out_switch_text_section): Update.
20070         (output_line_info): Update.
20071         (secname_for_decl): Update.
20072         (dwarf2out_var_location): Update.
20073         * function.c (free_after_compilation): Update.
20074         (assign_parm_find_stack_rtl): Update.
20075         (assign_parms): Update.
20076         (expand_dummy_function_end): Update.
20077         (expand_function_end): Update.
20078         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
20079         (expand_call): Update.
20080         (emit_library_call_value_1): Update.
20081         (store_one_arg): Update.
20082         * varasm.c (initialize_cold_section_name): Update.
20083         (unlikely_text_section): Update.
20084         (unlikely_text_section_p): Update.
20085         (assemble_start_function): Update.
20086         (assemble_end_function): Update.
20087         (default_section_type_flags): Update.
20088         (switch_to_section): Update.
20089         * integrate.c (set_decl_abstract_flags): Update.
20090         (get_hard_reg_initial_val): Update.
20091         (has_hard_reg_initial_val): Update.
20092         (allocate_initial_values): Update.
20093         * resource.c (init_resource_info): Update.
20094         * config/alpha/alpha.c (NUM_ARGS): Update.
20095         (direct_return): Update.
20096         (alpha_va_start): Update.
20097         (alpha_sa_size): Update.
20098         (alpha_initial_elimination_offset): Update.
20099         (alpha_expand_prologue): Update.
20100         (alpha_start_function): Update.
20101         (alpha_expand_epilogue): Update.
20102         (unicosmk_initial_elimination_offset):
20103         * config/alpha/alpha.md (call expander): Update.
20104         * config/s390/s390.c (s390_register_info): Update.
20105         (s390_register_info): Update.
20106         (s390_frame_info): Update.
20107         (s390_initial_elimination_offset): Update.
20108         (s390_build_builtin_va_list): Update.
20109         (s390_va_start): Update.
20110         * config/spu/spu.c (direct_return): Update.
20111         (spu_expand_prologue): Update.
20112         (spu_initial_elimination_offset): Update.
20113         (spu_build_builtin_va_list): Update.
20114         (spu_va_start): Update.
20115         * config/sparc/sparc.c (sparc_init_modes): Update.
20116         (sparc_compute_frame_size): Update.
20117         (function_value): Update.
20118         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
20119         * config/i386/i386.md (return expander): Update.
20120         * config/i386/i386.c (ix86_va_start): Update.
20121         (ix86_can_use_return_insn_p): Update.
20122         (ix86_compute_frame_layout): Update.
20123         (ix86_expand_epilogue): Update.
20124         * config/sh/sh.c (output_stack_adjust): Update.
20125         (calc_live_regs): Update.
20126         (sh_expand_prologue): Update.
20127         (sh_builtin_saveregs): Update.
20128         (sh_va_start): Update.
20129         (initial_elimination_offset): Update.
20130         (sh_allocate_initial_value): Update.
20131         (sh_function_ok_for_sibcall): Update.
20132         (sh_get_pr_initial_val): Update.
20133         * config/sh/sh.md (return expander): Update.
20134         * config/avr/avr.c (frame_pointer_required_p): UPdate.
20135         * config/crx/crx.c (crx_compute_frame): UPdate.
20136         (crx_initial_elimination_offset): UPdate.
20137         * config/xtensa/xtensa.c (compute_frame_size): Update
20138         (xtensa_builtin_saveregs): Update.
20139         (xtensa_va_start): Update.
20140         (order_regs_for_local_alloc): Update.
20141         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
20142         (xstormy16_expand_builtin_va_start): Update.
20143         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
20144         * config/m68hc11/m68hc11.md (return expanders): Update.
20145         * config/m68hc11/m68hc11.c (expand_prologue): Update.
20146         (expand_epilogue): Update.
20147         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
20148         (cris_simple_epilogue): Update.
20149         (cris_expand_prologue): Update.
20150         (cris_expand_epilogue): Update.
20151         * config/iq2000/iq2000.c (iq2000_va_start): Update.
20152         (compute_frame_size): Update.
20153         * config/mt/mt.c (mt_compute_frame_size): Update.
20154         * config/mn10300/mn10300.c (expand_prologue): Update.
20155         (expand_epilogue): Update.
20156         (initial_offset): Update.
20157         (mn10300_builtin_saveregs):
20158         * config/mn10300/mn10300.md (return expander): Update.
20159         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20160         (ia64_initial_elimination_offset): Update.
20161         (ia64_initial_elimination_offset): Update.
20162         (ia64_expand_prologue): Update.
20163         * config/m68k/m68k.md (return expander): Update.
20164         * config/rs6000/rs6000.c (rs6000_va_start): Update.
20165         (rs6000_stack_info): Update.
20166         * config/mcore/mcore.c (layout_mcore_frame): Update.
20167         (mcore_expand_prolog): Update.
20168         * config/arc/arc.c (arc_compute_frame_size): Update.
20169         * config/score/score3.c (score3_compute_frame_size): Update.
20170         * config/score/score7.c (score7_compute_frame_size): Update.
20171         * config/arm/arm.c (use_return_insn): Update.
20172         (thumb_find_work_register): Update.
20173         (arm_compute_save_reg_mask): Update.
20174         (arm_output_function_prologue): Update.
20175         (arm_output_epilogue): Update.
20176         (arm_size_return_regs): Update.
20177         (arm_get_frame_offsets): Update.
20178         (arm_expand_prologue): Update.
20179         (thumb_exit): Update.
20180         (thumb_unexpanded_epilogue): Update.
20181         (thumb1_output_function_prologue): Update.
20182         * config/pa/pa.md (return expander): Update.
20183         * config/pa/pa.c (compute_frame_size): Update.
20184         (hppa_builtin_saveregs): Update.
20185         * config/mips/mips.c (mips_va_start): Update.
20186         (mips16_build_function_stub): Update.
20187         (mips_compute_frame_info): Update.
20188         (mips_restore_gp): Update.
20189         (mips_output_function_prologue): Update.
20190         (mips_expand_prologue): Update.
20191         * config/v850/v850.c (compute_frame_size): Update.
20192         (expand_prologue): * config/mmix/mmix.c (along): update.
20193         (mmix_initial_elimination_offset): update.
20194         (mmix_reorg): update.
20195         (mmix_use_simple_return): update.
20196         (mmix_expand_prologue): update.
20197         (mmix_expand_epilogue): Update.
20198         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
20199         (emit_link_insn): Update.
20200
20201 2008-04-08  Anatoly Sokolov <aesok@post.ru>
20202
20203         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
20204         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
20205         instructions.
20206         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
20207         atmega103 device.
20208
20209 2008-04-07  Jan Hubicka  <jh@suse.cz>
20210
20211         * function.h (rtl): Rename to x_rtl.
20212         (crtl): New define.
20213         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
20214         frame_offset, stack_check_probe_note, arg_pointer_save_area,
20215         used_temp_slots avail_temp_slots, temp_slot_level,
20216         nonlocal_goto_handler_labels): Update accesstors.
20217         (rtl): New global variable.
20218         (struct function): Move some fileds to rtl_data.
20219         (get_arg_pointer_save_area): Update prototype.
20220         * builtins.c (expand_builtin_setjmp_receiver): Update call of
20221         get_arg_pointer_save_area.
20222         * expr.c (init_expr): Update
20223         * function.c (get_frame_size): Update
20224         (assign_stack_local): Update
20225         (expand_function_end): Update.
20226         (get_art_pointer_save_area): Update
20227         * function.h
20228         * emit-rtl.c (rtl): Declare.
20229         (regno_reg_rtx): Declare.
20230         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
20231         Update.
20232         (gen_reg_rtx): Update.
20233         * varasm.c (n_deferred_constatns): Update accestor.
20234         (init_varasm_status): Do not allocate varasm_status.
20235         (force_const_mem, get_pool_size, output_constant_pool): Update.
20236         * stmt.c (force_label_rtx): Do not use x_ prefixes.
20237         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
20238         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
20239         * sparc/sparc.h (INIT_EXPANDERS): Update.
20240         * ia64/ia64.h (INIT_EXPANDERS): Update.
20241
20242 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
20243
20244         * reload.c (push_secondary_reload): Add missing break to for loop.
20245
20246 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
20247
20248         PR middle-end/PR28690
20249         * rtlanal.c: Update copyright years.
20250         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
20251         as REG_POINTER and MEM_POINTER operands.
20252         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
20253         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
20254         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
20255         * gcse.c: Update copyright years.
20256         (pre_delete): Call gen_reg_rtx_and_attrs.
20257         (hoist_code): Likewise.
20258         (build_store_vectors): Likewise.
20259         (delete_store): Likewise.
20260         * loop-invariant.c (move_invariant_reg): Likewise.
20261         Update copyright years.
20262
20263 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
20264
20265         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
20266         control string instead of quoted.
20267
20268 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
20269
20270         * doc/rtl.texi: Rewrite of subreg section.
20271
20272 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
20273
20274         PR/35842
20275         * config/i386/i386.c (legitimize_pic_address): Add treating
20276         of dllimport SYM_REF's.
20277         (legitimize_dllimport_symbol): Add prototype.
20278
20279 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20280
20281         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
20282         reference in constructor with non self-referential type.
20283
20284 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20285
20286         Removal of Return with Depressed Stack Pointer support
20287         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
20288         (ECF_SP_DEPRESSED): Likewise.
20289         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
20290         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
20291         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20292         (expand_call): Do not test ECF_SP_DEPRESSED.
20293         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20294         * function.c (keep_stack_depressed): Delete.
20295         (handle_epilogue_set): Likewise.
20296         (update_epilogue_consts): Likewise.
20297         (emit_equiv_load): Likewise.
20298         (thread_prologue_and_epilogue_insns): Remove support for Return with
20299         Depressed Stack Pointer.
20300         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20301
20302 2008-04-06  Richard Guenther  <rguenther@suse.de>
20303
20304         PR tree-optimization/35400
20305         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
20306         information from SSA_NAMEs.
20307
20308 2008-04-06  Anatoly Sokolov <aesok@post.ru>
20309
20310         * config/avr/avr.h (avr_mega_p): Remove declaration.
20311         (AVR_MEGA): Remove macro.
20312         * config/avr/avr.c (avr_mega_p): Remove variable.
20313         (avr_override_options): Remove inicializion of avr_mega_p.
20314         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
20315         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
20316         (avr_jump_mode): (Ditto.).
20317         (avr_output_progmem_section_asm_op): (Ditto.).
20318         (avr_asm_init_sections): (Ditto.).
20319         (avr_asm_init_sections): (Ditto.).
20320         (avr_rtx_costs): (Ditto.).
20321         * config/avr/avr.md: (Ditto.).
20322         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
20323         '__AVR_MEGA__'.
20324
20325 2008-04-06  Richard Guenther  <rguenther@suse.de>
20326
20327         PR tree-optimization/35842
20328         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
20329         is_gimple_invariant_address.
20330
20331 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20332
20333         * gcc.c (default_compilers): Sync Fortran extensions list with
20334         that in fortran/lang-specs.h.
20335         * doc/invoke.texi: Likewise.
20336         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
20337         * dwarf2out.c (gen_compile_unit_die): Likewise.
20338
20339 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
20340
20341         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
20342
20343 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
20344
20345         PR target/12329
20346         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
20347         attribute is used for nested functions.
20348
20349 2008-04-05  Jan Hubicka  <jh@suse.cz>
20350
20351         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
20352
20353         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
20354         letter argument.
20355         (dump_files): Update.
20356         (enable_rtl_dump_file): Do not accept letter argument.
20357         * tree-pass.h (dump_file_info): Remove letter argument.
20358         * toplev.c (decode_d_option): Update -da handling.
20359         * toplev.h (enable_rtl_dump_file): Update prototype.
20360         * passes.c (register_one_dump_file): Do not accept IPA argument; work
20361         it out based on pass type.
20362         (register_dump_files_1): Likewise.
20363         (init_optimization_passes): Update register_one_dump_file calls.
20364         (execute_one_pass): Sanity check that IPA passes are called at IPA
20365         level and RTL passes at RTL level.
20366         (execute_pass_list): IPA pass can not be after or subpass of
20367         GIMPLE/RTL pass.
20368         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
20369         disallov RTL subpasses of IPA subpasses.
20370
20371 2008-04-05  Ben Elliston  <bje@au.ibm.com>
20372
20373         * tree-cfg.c (need_fake_edge_p): Return false for calls to
20374         builtins that return exactly once and do not throw. Cache call to
20375         call_expr_flags.
20376
20377 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
20378
20379         PR rtl-optimization/34916
20380         PR middle-end/35519
20381         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
20382         between instruction pairs.
20383
20384 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
20385
20386         * doc/invoke.texi: Document -mbitops for SH.
20387         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
20388         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
20389         * config/sh/sh.c (print_operand): Add %t operand code.
20390         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
20391         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
20392         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
20393         (extendqihi2): Likewise.
20394         (movqi_i): Likewise.
20395         (insv): Use bset, bclr and bst instructions for SH2A if possible.
20396         (extv): Use bld instruction for SH2A if possible.
20397         (extzv): Likewise.
20398         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
20399         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
20400         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
20401         (bset.b, bclr.b): Define peepholes.
20402         * config/sh/sh.opt (mbitops): New option.
20403
20404 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
20405
20406         PR target/35620
20407         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
20408         and view convert expression.
20409
20410 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
20411
20412         PR target/35364
20413         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
20414
20415 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
20416
20417         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
20418
20419         * config/i386/cpuid.h (bit_AES): New.
20420         (bit_PCLMUL): Likewise.
20421
20422         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
20423         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
20424         SSE2 if AES or PCLMUL is enabled.
20425         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
20426         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
20427         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
20428         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
20429         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
20430         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
20431         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
20432         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
20433         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
20434         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
20435         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
20436         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
20437         __builtin_ia32_aeskeygenassist128 and
20438         __builtin_ia32_pclmulqdq128.
20439         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
20440         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
20441         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
20442
20443         * config/i386/i386.h (TARGET_AES): New.
20444         (TARGET_PCLMUL): Likewise.
20445         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
20446
20447         * config/i386/i386.md (UNSPEC_AESENC): New.
20448         (UNSPEC_AESENCLAST): Likewise.
20449         (UNSPEC_AESDEC): Likewise.
20450         (UNSPEC_AESDECLAST): Likewise.
20451         (UNSPEC_AESIMC): Likewise.
20452         (UNSPEC_AESKEYGENASSIST): Likewise.
20453         (UNSPEC_PCLMUL): Likewise.
20454
20455         * config/i386/i386.opt (maes): New.
20456         (mpclmul): Likewise.
20457
20458         * config/i386/sse.md (aesenc): New pattern.
20459         (aesenclast): Likewise.
20460         (aesdec): Likewise.
20461         (aesdeclast): Likewise.
20462         (aesimc): Likewise.
20463         (aeskeygenassist): Likewise.
20464         (pclmulqdq): Likewise.
20465
20466         * config/i386/wmmintrin.h: New.
20467
20468         * doc/extend.texi: Document AES and PCLMUL built-in function.
20469
20470         * doc/invoke.texi: Document -maes and -mpclmul.
20471
20472 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
20473
20474         * function.c (free_after_parsing): Replace with
20475         cxx_push_function_context from C++ front-end.
20476         (allocate_struct_function): Don't call langhook.
20477         * langhooks.h (struct lang_hooks_for_functions): Delete.
20478         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
20479         member "function".
20480         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
20481         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
20482         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
20483         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
20484         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
20485         remove LANG_HOOKS_FUNCTION_INITIALIZER.
20486         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
20487
20488         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
20489         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
20490
20491 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
20492
20493         PR c/35440
20494         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
20495         for all types.
20496
20497 2008-04-04  Richard Guenther  <rguenther@suse.de>
20498
20499         PR middle-end/35823
20500         * fold-const.c (optimize_minmax_comparison): Use the correct
20501         type for the constant in the simplified comparison.
20502
20503 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
20504
20505         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
20506         Pass L2 size as "--param l2-cache-size" to the compiler.
20507         (decode_l2_cache): New function to decode L2 cache parameters using
20508         0x8000006 extended cpuid function.
20509         (detect_caches_amd): Determine parameters of L2 cache using
20510         decode_l2_caches function.
20511         (decode_caches_intel): Decode L2 cache parameters.
20512         (detect_caches_intel): Determine L2 cache parameters using
20513         decode_caches_intel and decode_l2_caches functions.
20514
20515 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
20516
20517         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
20518         secondary input reload for subword loads from the constant pool.
20519
20520 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
20521
20522         PR target/35713
20523         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
20524           constants of the appropriate size for runtime calculations.
20525
20526         PR c/35712
20527         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
20528           decimal-float literal constant zero.
20529
20530 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
20531
20532         PR c/35738
20533         * c-parser.c (c_parser_omp_atomic): Call
20534         default_function_array_conversion on the RHS.
20535
20536         PR middle-end/35818
20537         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
20538         call is_variable_sized if decl has incomplete type.
20539
20540 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
20541
20542         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
20543
20544 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
20545
20546         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
20547         iterators.
20548         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
20549         (sgt<u>): Merge sgt and sgtu into new expander.
20550         (sgt, sgtu): Remove expanders.
20551         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
20552         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
20553         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
20554         *sgtu_<mode>_mips16 into new pattern.
20555         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
20556         (sge<u>): Merge sge and sgeu into new expander.
20557         (sge, sgeu): Remove expanders.
20558         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
20559         new pattern.
20560         (*sge_<mode>, second *sge_<mode>): Remove patterns.
20561         (slt<u>): Merge slt and sltu into new expander.
20562         (slt, sltu): Remove expanders.
20563         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
20564         (*slt_<mode>, *sltu_<mode>): Remove patterns.
20565         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
20566         *sltu_<mode>_mips16 into new pattern.
20567         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
20568         (sle<u>): Merge sle and sleu into new expander.
20569         (sle, sleu): Remove expanders.
20570         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
20571         (*sle_<mode>, *sleu_<mode>): Remove patterns.
20572         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
20573         *sleu_<mode>_mips16 into new pattern.
20574         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
20575
20576 2008-04-03  Jan Hubicka  <jh@suse.cz>
20577
20578         PR tree-optimization/35795
20579         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
20580         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
20581         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
20582         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
20583         * score/score3.c (score3_output_mi_thunk): Likewise.
20584         * score/score7.c (score7_output_mi_thunk): Likewise.
20585         * mips/mips.c (mips_output_mi_thunk): Likewise.
20586
20587 2008-04-03  Richard Guenther  <rguenther@suse.de>
20588
20589         * tree-vrp.c (extract_range_from_unary_expr): Handle all
20590         conversions.  Simplify code.
20591
20592 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
20593
20594         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
20595
20596 2008-04-03  Tom Tromey  <tromey@redhat.com>
20597             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20598
20599         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20600         * config/bfin/t-bfin-linux (generated_files): Add
20601         linux-sysroot-suffix.h.
20602         * doc/install.texi (Prerequisites): Require make 3.80.
20603         * doc/sourcebuild.texi (Front End Directory): Document new
20604         variable.
20605         * Makefile.in (generated_files): New variable.
20606         (ALL_HOST_OBJS): New variable.
20607         ($(ALL_HOST_OBJS)): New target.
20608
20609 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
20610
20611         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
20612         (remap_block): Call id->transform_lang_insert_block instead
20613         of langhook.
20614         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
20615         Set id.transform_lang_insert_block to NULL.
20616         (clone_body): Move to cp/optimize.c
20617         * tree-inline.h (struct copy_body_data): Change
20618         transform_lang_insert_block to function pointer.
20619         (copy_generic_body, copy_decl_no_change): Export.
20620         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
20621         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
20622         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
20623
20624         * c-tree.h (insert_block): Kill.
20625         * c-decl.c (insert_block): Kill.
20626
20627 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
20628
20629         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
20630         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
20631         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
20632         argument.
20633         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
20634         argument, call {push,pop}_function_context from here.
20635         * c-parser.c: Use c_{push,pop}_function_context.
20636
20637         * function.c (push_function_context_to): Move meat ...
20638         (push_function_context): ... here.  Simplify.
20639         * function.c (pop_function_context_from): Move meat ...
20640         (pop_function_context): ... here.  Simplify.
20641         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
20642         leave_nested).
20643         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
20644         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
20645         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
20646         * tree.h (push_function_context_to, pop_function_context_from): Remove.
20647
20648 2008-04-03  Ben Elliston  <bje@au.ibm.com>
20649
20650         * expmed.c (extract_force_align_mem_bit_field): Remove.
20651
20652 2008-04-03  Richard Guenther  <rguenther@suse.de>
20653
20654         PR middle-end/35800
20655         * expr.h (try_casesi): Adjust prototype.
20656         * expr.c (try_casesi): Take fallback label as extra parameter.
20657         Use that for gen_casesi if default_label is NULL.
20658         * stmt.c (expand_case): Pass fallback label to try_casesi,
20659         make sure to fill gaps with a fallback label if default_label
20660         is not present.
20661
20662 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
20663
20664         PR target/35801
20665         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
20666
20667 2008-04-03  Ben Elliston  <bje@au.ibm.com>
20668
20669         * expmed.c (extract_split_bit_field): Remove if (0) code.
20670         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
20671         (do_ds_constraint): Likewise.
20672
20673 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
20674
20675         * doc/cppopts.texi (-dU): Document.
20676         * c-common.h (flag_dump_macros): Update comment.
20677         * c-opts.c (handle_OPT_d): Handle -dU.
20678         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
20679         dump_queued_macros, cb_used_define, cb_used_undef): New.
20680         (init_pp_output): Handle -dU.
20681         (cb_line_change): Call dump_queued_macros.
20682         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
20683
20684 2008-04-02  Anatoly Sokolov <aesok@post.ru>
20685
20686         * config/avr/predicates.md (io_address_operand): New predicate.
20687         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
20688         * config/avr/avr.c (avr_io_address_p): Remove function.
20689         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
20690         'avr_io_address_p' function.
20691         (out_movhi_r_mr): (Ditto.).
20692         (out_movqi_mr_r): (Ditto.).
20693         (out_movhi_mr_r): (Ditto.).
20694         (avr_address_cost): (Ditto.).
20695
20696 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
20697
20698         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
20699         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
20700         in 32bit mode when XMM registers are available to avoid store
20701         forwarding stalls.
20702         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
20703         corresponding post-reload splitters.
20704
20705 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
20706
20707         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
20708         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
20709         __builtin_ia32_roundss.
20710         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
20711         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
20712         __builtin_ia32_roundss.
20713         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
20714         IX86_BUILTIN_SHUFPD here.
20715
20716 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
20717
20718         * config/i386/i386.md (plogic): New.
20719         (plogicprefix): Likewise.
20720
20721         * config/i386/mmx.md (mmx_<code><mode>3): New.
20722         (mmx_and<mode>3): Removed.
20723         (mmx_ior<mode>3): Likewise.
20724         (mmx_xor<mode>3): Likewise.
20725
20726         * config/i386/sse.md (<code><mode>3): New.
20727         (*<code><mode>3): Likewise.
20728         (*<code><mode>3): Likewise.
20729         (<code><mode>3): Likewise.
20730         (*sse_<code><mode>3): Likewise.
20731         (*sse2_<code><mode>3): Likewise.
20732         (<code>tf3): Likewise.
20733         (*<code>tf3): Likewise.
20734         (and<mode>3): Likewise.
20735         (*and<mode>3): Likewise.
20736         (ior<mode>3): Removed.
20737         (*ior<mode>3): Likewise.
20738         (xor<mode>3): Likewise.
20739         (*xor<mode>3): Likewise.
20740         (*and<mode>3): Likewise.
20741         (*ior<mode>3): Likewise.
20742         (*xor<mode>3): Likewise.
20743         (and<mode>3): Likewise.
20744         (*sse_and<mode>3): Likewise.
20745         (*sse2_and<mode>3): Likewise.
20746         (andtf3): Likewise.
20747         (*andtf3): Likewise.
20748         (ior<mode>3): Likewise.
20749         (*sse_ior<mode>3): Likewise.
20750         (*sse2_ior<mode>3): Likewise.
20751         (iortf3): Likewise.
20752         (*iortf3): Likewise.
20753         (xor<mode>3): Likewise.
20754         (*sse_xor<mode>3): Likewise.
20755         (*sse2_xor<mode>3): Likewise.
20756         (xortf3): Likewise.
20757         (*xortf3): Likewise.
20758
20759 2008-04-02  Richard Guenther  <rguenther@suse.de>
20760
20761         PR tree-optimization/14495
20762         PR tree-optimization/34793
20763         * tree-vrp.c (struct switch_update): New structure.
20764         (to_remove_edges, to_update_switch_stmts): New VECs.
20765         (simplify_switch_using_ranges): New function.  Remove not taken
20766         case labels and edges.
20767         (simplify_stmt_using_ranges): Call it.
20768         (identify_jump_threads): Mark edges we have queued for removal
20769         so we don't thread them.
20770         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
20771         case label vector.
20772         * tree-cfg.c (group_case_labels): Deal with missing default label.
20773         (tree_verify_flow_info): Allow missing default label.
20774         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
20775         (emit_case_nodes): Likewise.
20776         (expand_case): Do not rely on the default label to be present.
20777         * expr.c (try_casesi): Deal with NULL default_label.
20778         (do_tablejump): Likewise.
20779
20780 2008-04-02  Richard Guenther  <rguenther@suse.de>
20781
20782         PR tree-optimization/14495
20783         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
20784         SWITCH_EXPR here ...
20785         (vrp_visit_switch_stmt): ... but here (new function).
20786         (find_case_label_index): New helper function.
20787         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
20788
20789 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20790
20791         * fwprop.c: Fix ISO-C99ism.
20792
20793 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20794
20795         PR bootstrap/35752
20796         * Makefile.in (objdir): Set it here.
20797         * configure.ac: Not here.  Find dynamic linker characteristics.
20798         * exec-tool.in: Use them.
20799         * aclocal.m4: Regenerate.
20800         * configure: Regenerate.
20801
20802 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20803
20804         * expr.c (expand_var): Delete it.
20805         * expr.h (expand_var): Delete prototype.
20806         * function.c (expand_function_start): Use expand_decl instead.
20807         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
20808         langhook.
20809
20810 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
20811
20812         PR rtl-optimization/35542
20813         * fwprop.c (forward_propagate_and_simplify): Replace
20814         loc_reg_mentioned_in_p with reg_mentioned_p.
20815
20816 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20817
20818         PR rtl-optimization/35281
20819         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
20820         (propagate_rtx_1): Handle PR_HANDLE_MEM.
20821         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
20822         (varying_mem_p): Move above propagate_rtx.
20823         (all_uses_available_at): Do not check MEMs.
20824
20825 2008-04-02  Rafael Espíndola  <espindola@google.com>
20826
20827         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
20828         (register_edge_assert_for_2): Split the cond argument.
20829         (register_edge_assert_for_1): Adjust for the change in
20830         register_edge_assert_for_2.
20831         (register_edge_assert_for): Split the cond argument.
20832         (find_switch_asserts): Adjust for the change in
20833         register_edge_assert_for.
20834
20835 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
20836
20837         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
20838         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
20839         offsets for 64-bit mingw.
20840         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
20841         abi for x86_64-pc-mingw.
20842
20843 2008-04-02  Richard Guenther  <rguenther@suse.de>
20844
20845         * tree-vrp.c (extract_range_from_assert): Make sure to not
20846         produce range min/max with TREE_OVERFOW set.
20847         If merging a anti-range and a range keep the anti-range if
20848         the range covers all values of the type.
20849         (register_edge_assert_for_2): Only allow sign-changing
20850         conversions in detecting canonical range checks.  Also
20851         register an assert for the unsigned name if useful.
20852
20853         PR tree-optimization/35787
20854         * tree-vrp.c (vrp_val_max): New function.
20855         (vrp_val_min): Likewise.
20856         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
20857         (vrp_val_is_min): Likewise.
20858         (supports_overflow_infinity): Use vrp_val_{min,max}.
20859         (negative_overflow_infinity): Likewise.
20860         (positive_overflow_infinity): Likewise.
20861         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
20862         (is_positive_overflow_infinity): Likewise.
20863         (is_overflow_infinity): Likewise.
20864         (avoid_overflow_infinity): Use vrp_val_{min,max} and
20865         vrp_val_is_{min,max}.
20866         (set_and_canonicalize_value_range): Canonicalize anti-ranges
20867         to ranges if possible.  Avoid empty ranges.
20868
20869 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20870
20871         PR middle-end/35705
20872         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
20873         the expression is a function address.
20874
20875 2008-04-01  George Helffrich  <george@gcc.gnu.org>
20876
20877         PR fortran/35154, fortran/23057
20878         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
20879         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
20880         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
20881         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
20882         in common.
20883         (dbxout_syms): Check for COMMON-based symbol and wrap in
20884         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
20885         in bracket for efficiency.
20886
20887         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
20888         using DW_TAG_common_block + member offset.
20889         (add_pubname_string): New function.
20890         (dw_expand_expr): New function to find block name and offset for
20891         COMMON var.
20892         (common_check): New function to check whether symbol in Fortran COMMON.
20893         (gen_variable_die): If COMMON, use DW_TAG_common_block.
20894
20895 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
20896
20897         PR c/35436
20898         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
20899
20900 2008-04-02  Ben Elliston  <bje@au.ibm.com>
20901
20902         * config/v850/v850.md (casesi): Remove if (0) code.
20903         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20904         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
20905
20906 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
20907
20908         * config/i386/i386.md (rex64suffix): New mode attribute.
20909         (floathi<mode>2): Disable expander for SSE math.
20910         (*floathi<mode>2_1): New insn insn_and_split pattern.
20911         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
20912         corresponding post-reload splitters.
20913         (*floathi<mode>2_i387): New macroized insn pattern.
20914         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
20915         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
20916         insn_and_split pattern.
20917         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
20918         New macroized instruction patterns and corresponding post-reload
20919         splitters.
20920         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
20921         and corresponding post-reload splitters.
20922         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
20923         New macroized instruction patterns.
20924         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
20925         macroized instruction patterns and corresponding post-reload splitters.
20926         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
20927         corresponding post-reload splitters.
20928         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
20929         New macroized instruction patterns.
20930         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
20931         corresponding post-reload splitters.
20932         (*floatsi<mode>2_i387): New macroized instruction patterns.
20933
20934 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
20935
20936         * config/i386/i386.md (smaxmin): New.
20937         (umaxmin): Likewise.
20938         (maxminiprefix): Likewise.
20939         (maxminfprefix): Likewise.
20940         (<code><mode>3): Likewise.
20941         (smin<mode>3): Removed.
20942         (smax<mode>3): Likewise.
20943
20944         * config/i386/mmx.md (mmx_<code>v2sf3): New.
20945         (mmx_<code>v4hi3): Likewise.
20946         (mmx_<code>v8qi3): Likewise.
20947         (mmx_smaxv2sf3): Removed.
20948         (mmx_sminv2sf3): Likewise.
20949         (mmx_umaxv8qi3): Likewise.
20950         (mmx_smaxv4hi3): Likewise.
20951         (mmx_uminv8qi3): Likewise.
20952         (mmx_sminv4hi3): Likewise.
20953
20954         * config/i386/sse.md (<addsub><mode>3): New.
20955         (*<addsub><mode>3): Likewise.
20956         (<sse>_vm<addsub><mode>3): Likewise.
20957         (<maxmin><mode>3): Likewise.
20958         (*<maxmin><mode>3_finite): Likewise.
20959         (*<maxmin><mode>3): Likewise.
20960         (<sse>_vm<maxmin><mode>3): Likewise.
20961         (sse3_h<addsub>v4sf3): Likewise.
20962         (sse3_h<addsub>v2df3): Likewise.
20963         (<maxmin>v16qi3): Likewise.
20964         (*<maxmin>v16qi3): Likewise.
20965         (<maxmin>v8hi3): Likewise.
20966         (*<maxmin>v8hi3): Likewise.
20967         (*sse4_1_<maxmin><mode>3): Likewise.
20968         (*sse4_1_<maxmin><mode>3): Likewise.
20969         (add<mode>3): Removed.
20970         (*add<mode>3): Likewise.
20971         (<sse>_vmadd<mode>3): Likewise.
20972         (sub<mode>3): Likewise.
20973         (*sub<mode>3): Likewise.
20974         (<sse>_vmsub<mode>3): Likewise.
20975         (smin<mode>3): Likewise.
20976         (*smin<mode>3_finite): Likewise.
20977         (*smin<mode>3): Likewise.
20978         (<sse>_vmsmin<mode>3): Likewise.
20979         (smax<mode>3): Likewise.
20980         (*smax<mode>3_finite): Likewise.
20981         (*smax<mode>3): Likewise.
20982         (<sse>_vmsmax<mode>3): Likewise.
20983         (sse3_haddv4sf3): Likewise.
20984         (sse3_haddv2df3): Likewise.
20985         (sse3_hsubv4sf3): Likewise.
20986         (sse3_hsubv2df3): Likewise.
20987         (umaxv16qi3): Likewise.
20988         (*umaxv16qi3): Likewise.
20989         (smaxv8hi3): Likewise.
20990         (*smaxv8hi3): Likewise.
20991         (*sse4_1_smax<mode>3): Likewise.
20992         (*sse4_1_umax<mode>3): Likewise.
20993         (uminv16qi3): Likewise.
20994         (*uminv16qi3): Likewise.
20995         (sminv8hi3): Likewise.
20996         (*sminv8hi3): Likewise.
20997         (*sse4_1_smin<mode>3): Likewise.
20998         (*sse4_1_umin<mode>3): Likewise.
20999
21000 2008-04-01  Rafael Espíndola  <espindola@google.com>
21001
21002         * tree-cfg.c (verify_expr): remove in_phi.
21003         (verify_stmt): Don't call walk_tree with verify_expr. Use
21004         is_gimple_min_invariant instead of is_gimple_val.
21005
21006 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
21007
21008         * doc/include/gpl_v3.texi: Update for manpage generation.
21009         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
21010         gpl.texi.
21011         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
21012         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
21013         gpl_v3.texi instead of gpl.texi.
21014         (gpl.pod): New.
21015
21016 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
21017
21018         PR pch/13675
21019         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
21020
21021 2008-04-01  Rafael Espíndola  <espindola@google.com>
21022
21023         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
21024         (extract_code_and_val_from_cond): Use
21025         extract_code_and_val_from_cond_with_ops.
21026
21027 2008-04-01  Jan Hubicka  <jh@suse.cz>
21028
21029         * function.c (free_after_compilation): Free epilogue_delay_list.
21030         (prepare_function_start): Assert that previous compilation was freed.
21031
21032 2008-04-01  Jan Hubicka  <jh@suse.cz>
21033             Jim Wilson  <wilson@tuliptree.org>
21034             Andreas Tobler <andreast@gcc.gnu.org>
21035
21036         PR middle-end/35781
21037         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
21038         rtl.emit instead cfun->emit.
21039         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
21040         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
21041
21042 2008-04-01  Ben Elliston  <bje@au.ibm.com>
21043
21044         * doc/c-tree.texi (Function Basics): Fix grammatical error.
21045
21046 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
21047
21048         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
21049         New options
21050         (fprofile-use): Add var flag_profile_use
21051         * coverage.c (coverage_begin_output): Do not open a gcno file for
21052         output only if -ftest-coverage is set.
21053         Do not add getpwd() to gcda file path.
21054         (build_gcov_info): Check the new flag
21055         flag_profile_datafile_relative_path.
21056         (coverage_init): Use profile_data_prefix.
21057         Read profile counter only if flag_profile_use is set.
21058         * opts.c (common_handle_option): New option fprofile-use=,
21059         fprofile-dir=, fprofile-generate=.
21060         * toplev.c (profile_data_prefix): New variable definition.
21061         * toplev.h (profile_data_prefix): New declaration.
21062         * doc/invoke.tex (Option Summary, Optimization Options):
21063         Add new options.
21064
21065 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
21066
21067         * varasm.c (output_constant_pool_1): In LABEL_REF check,
21068         use tmp consistently.
21069
21070         PR target/35695
21071         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
21072         * config/ia64/ia64.c (rtx_needs_barrier): Handle
21073         UNSPEC_FR_RECIP_APPROX_RES.
21074         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
21075
21076 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
21077
21078         PR c/35750
21079         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
21080
21081 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21082
21083         PR middle-end/30186
21084         * fold-const.c (fold_indirect_ref_1): Support accessing non first
21085         element of the vector via a pointer.
21086
21087 2008-03-31  Ian Lance Taylor  <iant@google.com>
21088
21089         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
21090
21091 2008-03-31  Jan Hubicka  <jh@suse.cz>
21092
21093         * builtins.c (expand_builtin_setjmp_receiver): Update call of
21094         get_arg_pointer_save_area.
21095         * expr.c (init_expr): Just clear out rtl.expr.
21096         * function.c (free_after_compilation): Clear out whole RTL structure.
21097         (get_func_frame_size): Merge into ...
21098         (get_frame_size): ... this one.
21099         (assign_stack_local_1): Merge into ...
21100         (assign_stack_local): ... this one.
21101         (expand_function_end): Update call of get_arg_pointer_save_area.
21102         (get_art_pointer_save_area): Remove cfun argument.
21103         * function.h (emit_status): regno_pointer_align does not need length
21104         attribute. Move x_regno_reg_rtx to ...
21105         (regno_reg_rtx): ... new global array.
21106         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
21107         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
21108         apply_args_value, forced_labels, stack_pointer_delta):
21109         Update accestors.
21110         (struct varasm_status): Move here from varasm.c
21111         (struct rtl_data): New. Move here some fields from struct function.
21112         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
21113         frame_offset, stack_check_probe_note, arg_pointer_save_area,
21114         used_temp_slots avail_temp_slots, temp_slot_level,
21115         nonlocal_goto_handler_labels): Update accesstors.
21116         (rtl): New global variable.
21117         (struct function): Move some fileds to rtl_data.
21118         (get_arg_pointer_save_area): Update prototype.
21119         * emit-rtl.c (rtl): Declare.
21120         (regno_reg_rtx): Declare.
21121         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
21122         Update.
21123         (gen_reg_rtx): Update.
21124         (init_virtual_regs): Do not tate emit_status argument.
21125         (init_emit): Do not allocate emit.
21126         * varasm.c (varasm_statuc): Move to function.h.
21127         (n_deferred_constatns): Update accestor.
21128         (init_varasm_status): Do not allocate varasm_status.
21129         (force_const_mem, get_pool_size, output_constant_pool): Update.
21130         * stmt.c (force_label_rtx): Do not use x_ prefixes.
21131         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
21132
21133 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
21134
21135         PR rtl-optimization/35729
21136         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
21137         references.
21138
21139 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
21140
21141         PR target/32000
21142         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
21143         load/store if memory is unaligned.
21144         (*movti_rex64): Likewise.
21145
21146         * config/i386/predicates.md (misaligned_operand): New.
21147
21148 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
21149
21150         PR tree-opt/35431
21151         * tree-ssa-phiopt.c (conditional_replacement): Return early for
21152         complex types.
21153
21154 2008-03-31  Jan Beulich  <jbeulich@novell.com>
21155
21156         * config/ia64/constraints.md: Add 'j' constraint.
21157         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
21158         (movdi_internal): Likewise.
21159
21160 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
21161
21162         PR c/35748
21163         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
21164
21165 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
21166
21167         PR target/35757
21168         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
21169         proper error message for the third argument on blendpd and
21170         blendps.
21171
21172         * config/i386/sse.md (blendbits): New.
21173         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
21174
21175 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
21176
21177         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
21178
21179 2008-03-30  Richard Guenther  <rguenther@suse.de>
21180
21181         PR middle-end/31023
21182         * fold-const.c (fold_sign_changed_comparison): Do leave
21183         conversions to base-types alone.
21184
21185 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21186
21187         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
21188         the link register if one altivec register is be saved.
21189
21190 2008-03-30  Ben Elliston  <bje@au.ibm.com>
21191
21192         * final.c (final_scan_insn): Remove if (0) code.
21193
21194 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
21195
21196         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
21197
21198 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21199
21200         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
21201         of V4SFmode to ix86_binary_operator_ok.
21202
21203 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
21204
21205         * config/i386/i386.c (override_options): Initialize
21206         ix86_veclib_handler to ix86_veclibabi_svml when
21207         -mveclibabi=svml is used.
21208         (ix86_veclibabi_svml): New function for SVML ABI style
21209         vectorization support.
21210         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
21211
21212 2008-03-28  Rafael Espíndola  <espindola@google.com>
21213
21214         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
21215         (tree_binary_nonnegative_warnv_p): Make it public.
21216         (tree_single_nonnegative_warnv_p): Make it public.
21217         (tree_invalid_nonnegative_warnv_p): Make it public.
21218         (tree_unary_nonzero_warnv_p): Make it public.
21219         (tree_binary_nonzero_warnv_p): Make it public
21220         (tree_single_nonzero_warnv_p): Make it public.
21221         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
21222         (extract_range_from_binary_expr): Split the expr argument.
21223         (extract_range_from_unary_expr): Split the expr argument.
21224         (extract_range_from_comparison): Split the expr argument.
21225         (extract_range_from_expr): Use the new aux functions.
21226         (vrp_evaluate_conditional_warnv): Use
21227         vrp_evaluate_conditional_warnv_with_ops.
21228         * tree.h (tree_unary_nonzero_warnv_p): Declare.
21229         (tree_binary_nonzero_warnv_p): Declare.
21230         (tree_single_nonzero_warnv_p): Declare.
21231         (tree_expr_nonzero_warnv_p): Declare.
21232         (tree_unary_nonnegative_warnv_p): Declare.
21233         (tree_binary_nonnegative_warnv_p): Declare.
21234         (tree_single_nonnegative_warnv_p): Declare.
21235         (tree_invalid_nonnegative_warnv_p): Declare.
21236
21237 2008-03-28  Richard Guenther  <rguenther@suse.de>
21238
21239         PR tree-optimization/30317
21240         PR tree-optimization/30911
21241         PR tree-optimization/34793
21242         * tree-vrp.c (set_and_canonicalize_value_range): New function.
21243         (struct assert_locus_d): New member EXPR.
21244         (register_new_assert_for): Add EXPR parameter to support
21245         ASSERT_EXPR <name, expr OP limit>.
21246         (register_edge_assert_for_1): Adjust callers.
21247         (find_assert_locations): Likewise.
21248         (process_assert_insertions_for): Build condition from expression.
21249         (extract_range_from_assert): Handle ASSERT_EXPRs
21250         of the form ASSERT_EXPR <name, expr OP limit>.
21251         (register_edge_assert_for_2): New helper registering
21252         asserts for comparisons.  Recognize range tests of the form
21253         (unsigned)i - CST1 OP CST2.
21254         (register_edge_assert_for_1): Use it.
21255         (register_edge_assert_for): Likewise.
21256         (needs_overflow_infinity): Integer sub-types
21257         do not need overflow infinities.
21258         (vrp_val_is_max): The extreme values of integer sub-types
21259         are those of the base type.
21260         (vrp_val_is_min): Likewise.
21261         * tree.def (ASSERT_EXPR): Document extra allowed conditional
21262         expressions.
21263
21264 2008-03-28  Nick Clifton  <nickc@redhat.com>
21265
21266         PR target/31110
21267         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
21268         Return GENERAL_REGS for stack adjustment reloads.
21269
21270 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21271
21272         PR target/31334
21273         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
21274         const_vector when all the vectors are constant.
21275
21276 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
21277
21278         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
21279         comparisons.
21280         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
21281         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
21282         (scc_sf): New.
21283         (s<code>_sf): Use new scc_sf attribute for opcode names.
21284
21285 2008-03-27  Tom Tromey  <tromey@redhat.com>
21286
21287         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
21288         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
21289         config/spu/t-spu-elf, config/i386/t-interix,
21290         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
21291         config/i386/x-darwin, config/i386/x-mingw32,
21292         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
21293         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
21294         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
21295         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
21296         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
21297         config/rs6000/x-darwin, config/rs6000/t-rs6000,
21298         config/score/t-score-elf, config/arm/t-strongarm-pe,
21299         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
21300         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
21301         Revert automatic dependency patch.
21302
21303 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21304
21305         PR target/35657
21306         * config/i386/i386.c (ix86_function_arg_boundary): Align
21307         decimal floating point to its natural boundary.
21308
21309 2008-03-27  Richard Guenther  <rguenther@suse.de>
21310
21311         PR middle-end/35716
21312         * fold-const.c (fold_comparison): Restrict distinct decl
21313         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
21314         solely rely on operand_equal_p.
21315
21316 2008-03-27  Richard Guenther  <rguenther@suse.de>
21317
21318         PR c/32511
21319         * c-common.c (handle_weak_attribute): Reject combination of
21320         weak and inline.
21321
21322 2008-03-27  Richard Guenther  <rguenther@suse.de>
21323
21324         PR tree-optimization/32810
21325         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
21326         conversions from DECL_INITIAL.
21327         (fold_const_aggregate_ref): Likewise from constructor elements.
21328
21329 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
21330
21331         * tree-affine.h (aff_combination_expand): Declare.
21332         (get_inner_reference_aff): Likewise.
21333         * tree-affine.c (aff_combination_expand): Split out from
21334         tree_to_aff_combination_expand.
21335         (get_inner_reference_aff): New function.
21336         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
21337         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
21338         (struct lim_aux_data): sm_done field removed.
21339         (mem_ref_loc_p, mem_ref_locs_p): New types.
21340         (struct mem_ref): Added id, stored, accesses_in_loop,
21341         indep_loop, dep_loop, indep_ref, dep_ref fields.
21342         Removed is_stored, locs and next fields.
21343         (memory_accesses): New variable.
21344         (movement_possibility): Do not allow moving statements
21345         that store to memory.
21346         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
21347         New functions.
21348         (determine_max_movement): For statements with memory references,
21349         find the outermost loop in that the reference is independent.
21350         (move_computations_stmt): Mark the virtual operands for renaming.
21351         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
21352         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
21353         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
21354         add_vop_ref_mapping, create_vop_ref_mapping_loop,
21355         create_vop_ref_mapping, analyze_memory_references,
21356         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
21357         get_all_locs_in_loop, ref_always_accessed_p,
21358         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
21359         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
21360         store_motion_loop, store_motion): New functions.
21361         (struct vop_to_refs_elt): New type.
21362         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
21363         memref_hash, memref_eq, hoist_memory_references): Rewritten.
21364         (schedule_sm): Replaced by...
21365         (execute_sm): ... this.
21366         (determine_lsm_ref, hoist_memory_references,
21367         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
21368         find_more_ref_vops, free_mem_ref, free_mem_refs,
21369         determine_lsm_loop, determine_lsm): Removed.
21370         (tree_ssa_lim_finalize): Free data structures used by store motion.
21371         (tree_ssa_lim): Call analyze_memory_references.  Use
21372         store_motion instead of determine_lsm.
21373
21374 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
21375
21376         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
21377         rename tmake_file to m68hc11/t-m68hc11.
21378         (mcore): Set inhibit_libc to true.
21379         * config.host (alpha*-dec-*vms*): Set extra_programs.
21380         (interix3*): Don't use host_xmake_file.
21381         * configure.ac: Let config.gcc override inhibit_libc.
21382         * configure: Regenerate.
21383
21384         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
21385         * config/t-openbsd-thread: Remove commented out lines.
21386
21387         * config/x-interix: Remove.
21388
21389         * config/m68hc11/t-m68hc11-gas: Rename to...
21390         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
21391
21392         * config/mcore/t-mcore: Remove T_CFLAGS.
21393         * config/mcore/t-mcore-pe: Likewise.
21394
21395 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
21396
21397         * configure.ac: Replace custom __GNU_SOURCE test with
21398         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
21399         * aclocal.m4: Regenerate.
21400         * configure: Regenerate.
21401         * config.in: Regenerate.
21402
21403 2008-03-27  Richard Guenther  <rguenther@suse.de>
21404
21405         * fold-const.c (target.h): Include.
21406         (fold_comparison): Fold comparison of addresses of decls
21407         that bind locally or of constants.  Consolidate address folding code.
21408         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
21409         results from fold_binary_to_constant.
21410         (compare_values_warnv): Likewise.
21411
21412 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
21413
21414         PR middle-end/35429
21415         * fold-const.c (fold_truthop): Check for integeral types when folding
21416         a == 0 && b == 0 and a != 0 || b != 0 .
21417
21418 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21419
21420         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
21421
21422 2008-03-26  Andreas Schwab  <schwab@suse.de>
21423
21424         * doc/invoke.texi: Fix use of @item vs. @itemx.
21425
21426 2008-03-26  Tom Tromey  <tromey@redhat.com>
21427
21428         * Makefile.in (build/gensupport.o, build/print-rtl.o,
21429         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
21430         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
21431         build/gencodes.o, build/genconditions.o, build/genconfig.o,
21432         build/genconstants.o, build/genemit.o, build/genextract.o,
21433         build/genflags.o, build/genmddeps.o, build/genopinit.o,
21434         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
21435         options.h.
21436
21437 2008-03-26  Richard Guenther  <rguenther@suse.de>
21438
21439         Revert
21440         2008-03-26  Richard Guenther  <rguenther@suse.de>
21441
21442         * fold-const.c (target.h): Include.
21443         (fold_comparison): Fold comparison of addresses of two decls
21444         that bind locally.  Consolidate address folding code.
21445
21446 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21447
21448         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
21449         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
21450         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
21451         dconstsqrt2, dconstthird, dconste and/or dconst10.
21452         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
21453         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
21454         dconstsqrt2, dconste): Delete.
21455         (init_emit_once): Likewise.  Simplify initializing dconstm1.
21456         Constify variable.
21457         * real.c (get_real_const): New.
21458         * real.h (dconst3, dconst10, dconstm2, dconstthird,
21459         dconstsqrt2, dconste): Delete.
21460         (real_value_const, get_real_const): New.
21461
21462 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
21463
21464         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
21465
21466         * config/i386/i386.c (ix86_function_arg_boundary): Check
21467         BIGGEST_ALIGNMENT instead of 128.
21468         (setup_incoming_varargs_64): Likewise.
21469
21470 2008-03-26  Tom Tromey  <tromey@redhat.com>
21471
21472         * Makefile.in (DEPFILES): Add missing '/'.
21473
21474 2008-03-26  Richard Guenther  <rguenther@suse.de>
21475
21476         * fold-const.c (target.h): Include.
21477         (fold_comparison): Fold comparison of addresses of two decls
21478         that bind locally.  Consolidate address folding code.
21479
21480 2008-03-26  Nick Clifton  <nickc@redhat.com>
21481
21482         PR target/31232
21483         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
21484         not allow INT+INT as a legitimate addressing mode.
21485
21486 2008-03-26  Richard Guenther  <rguenther@suse.de>
21487
21488         * tree-flow.h (widen_bitfield): Remove declaration.
21489         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
21490         (widen_bitfield): Remove function.
21491         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
21492         code.
21493
21494 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21495
21496         PR target/31558
21497         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
21498         error_mark_node's.
21499
21500 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
21501
21502         PR rtl-optimization/35232
21503         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
21504         (forget_old_reloads_1, forget_marked_reloads): Don't clear
21505         reg_reloaded_call_part_clobbered here.
21506         (reload_regs_reach_end_p): New function.
21507         (reload_reg_rtx_for_input): New variable.
21508         (reload_reg_rtx_for_output): Likewise.
21509         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
21510         when reassigning a pseudo register.  Load reloadreg from
21511         reload_reg_rtx_for_input, moving the mode and register
21512         calculation to...
21513         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
21514         instead of the original when deciding whether an input reload
21515         would be a no-op or whether an output reload can be deleted.
21516         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
21517         when setting up new_spill_reg_store.  Load it from
21518         reload_reg_rtx_for_output, moving the mode and register
21519         calculation to...
21520         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
21521         instead of the original when deciding whether an output reload
21522         would be a no-op.  Do the same when modifying insn notes.
21523         Use rtx_equal_p instead of == to compare the registers.
21524         (inherit_piecemeal_p): Take a mode and two register numbers
21525         as argument.
21526         (emit_reload_insns): Clear new_spill_reg_store for every hard
21527         register in the reload register.  Remove spill registers
21528         from reg_reloaded_valid before considering whether to record
21529         inheritance information for them.  Use reload_reg_rtx_for_output
21530         instead of reg_rtx when recording output reloads.  Use
21531         reload_reg_rtx_for_input instead of reg_rtx when recording
21532         input reloads.  Set or clear reg_reloaded_call_part_clobbered
21533         at the same time as setting reg_reloaded_valid.
21534         (delete_output_reload): Add a new_reload_reg parameter and use it
21535         instead of rld[j].reg_rtx.
21536         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
21537         calls accordingly.
21538
21539 2008-03-25  Tom Tromey  <tromey@redhat.com>
21540
21541         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
21542         (build/genattr.o): Likewise.
21543         (build/genattrtab.o): Likewise.
21544         (build/gencodes.o): Likewise.
21545         (build/genconfig.o): Likewise.
21546         (build/genconstants.o): Likewise.
21547         (build/genemit.o): Likewise.
21548         (build/genextract.o): Likewise.
21549         (build/genflags.o): Likewise.
21550
21551 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
21552
21553         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
21554         instead of size_int for integer types.
21555         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
21556         to match type of MINUS_EXPR.
21557
21558 2008-03-25  Tom Tromey  <tromey@redhat.com>
21559
21560         * configure: Rebuilt.
21561         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
21562         Makefile.
21563
21564 2008-03-25  Tom Tromey  <tromey@redhat.com>
21565
21566         * config/x-solaris (host-solaris.o): Update.
21567         * config/x-linux (host-linux.o): Update.
21568         * config/x-hpux (host-hpux.o): Update.
21569         * config/x-darwin (host-darwin.o): Update.
21570         * config/v850/t-v850e (v850-c.o): Update.
21571         * config/v850/t-v850 (v850-c.o): Update.
21572         * config/t-vxworks (vxworks.o): Update.
21573         * config/t-sol2 (sol2-c.o, sol2.o): Update.
21574         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
21575         * config/spu/t-spu-elf (spu-c.o): Update.
21576         (spu.o): Remove.
21577         * config/sh/t-symbian (sh-c.o): Update.
21578         (symbian.o): Update.
21579         * config/sh/t-sh (sh-c.o): Update.
21580         * config/score/t-score-elf (score7.o, score3.o): Update.
21581         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
21582         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
21583         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
21584         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
21585         (rs6000.o): Remove.
21586         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
21587         * config/m32c/t-m32c (m32c-pragma.o): Update.
21588         * config/ia64/t-ia64 (ia64-c.o): Update.
21589         * config/i386/x-mingw32 (host-mingw32.o): Update.
21590         * config/i386/x-i386 (driver-i386.o): Update.
21591         * config/i386/x-darwin (host-i386-darwin.o): Update.
21592         * config/i386/x-cygwin (host-cygwin.o): Update.
21593         * config/i386/t-nwld (nwld.o): Update.
21594         * config/i386/t-netware (netware.o): Update.
21595         * config/i386/t-interix (winnt.o): Update.
21596         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
21597         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
21598         msformat-c.o): Update.
21599         * config/bfin/t-bfin-linux (generated_files): Add
21600         linux-sysroot-suffix.h.
21601         * config/arm/t-wince-pe (pe.o): Update.
21602         * config/arm/t-strongarm-pe (pe.o): Update.
21603         * config/arm/t-pe (pe.o): Update.
21604         * config/arm/t-arm (arm-c.o): Update.
21605         * doc/install.texi (Prerequisites): Require make 3.80.
21606         * Makefile.in: Remove .o targets.
21607         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
21608         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
21609         (simple_generated_h, simple_generated_c): Move earlier.
21610         (generated_files): New variable.
21611         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
21612         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
21613         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
21614         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
21615         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
21616         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
21617         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
21618         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
21619         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
21620         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
21621         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
21622         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
21623         (.c.o): Remove.
21624         (COMPILE.base, COMPILE): New variables.
21625         (%.o): New pattern rule.
21626         (ALL_HOST_OBJS): New variable.
21627         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
21628         (dummy-checksum.o, cc1-checksum.o): Remove.
21629         (DRIVER_SHLIB): New variable.
21630         (DRIVER_DEFINES): Use it.
21631         (gencondmd.c): Move out of build/.
21632         (s-conditions): Update.
21633         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
21634         (ALL_BUILD_OBJS): Likewise.
21635         (build/%.o): Use BUILDCOMPILE.
21636         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
21637         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
21638         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
21639         build/gencheck.o, build/gencodes.o, build/genconditions.o,
21640         build/genconfig.o, build/genconstants.o, build/genemit.o,
21641         build/genextract.o, build/genflags.o, build/genmddeps.o,
21642         build/genopinit.o, build/genoutput.o, build/genpeep.o,
21643         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
21644         build/gen-protos.o, build/scan.o, build/fix-header.o,
21645         build/scan-decls.o): Simplify.
21646         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
21647         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
21648         prefix.o, toplev.o): Reduce to variable setting.
21649         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
21650         ($(out_object_file), gcc-options.o): New targets.
21651         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
21652         * configure: Rebuilt.
21653         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
21654         * doc/sourcebuild.texi (Front End Directory): Document new variable.
21655
21656 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
21657
21658         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
21659         complain when we hit an error, return ERROR_MARK_NODE.
21660
21661 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21662
21663         * config/sh/constraints.md (Pso, Psz): New constraints.
21664         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
21665         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
21666
21667 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21668
21669         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
21670         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
21671
21672 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21673
21674         * config/sh/sh.md (prefetch): Add condition for SH2A target.
21675         (prefetch_sh2a): New.
21676
21677 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
21678             Naveen.H.S  <naveen.hs@kpitcummins.com>
21679
21680         * config/sh/constraints.md (I28): New constraint.
21681         * config/sh/sh.c (broken_move): Add support for movi20s.
21682         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
21683
21684 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
21685             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
21686             Naveen.H.S  <naveen.hs@kpitcummins.com>
21687
21688         * config/sh/sh.c (SH_ATTRIBUTES): Define.
21689         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
21690         (print_operand): Handle resbank in %@ operand code.
21691         (sh_encode_section_info): New.
21692         (push_regs): Add conditions for resbank.
21693         (sh_expand_epilogue): Likewise.
21694         (sh_insert_attributes): Likewise.
21695         (sh_attribute_table): Likewise.
21696         (sh_handle_resbank_handler_attribute): New.
21697         (sh2a_handle_function_vector_handler_attribute): New.
21698         (sh2a_is_function_vector_call): New.
21699         (sh2a_get_function_vector_number): New.
21700         (sh2a_function_vector_p): New.
21701         (sh_cfun_resbank_handler_p): New.
21702         * config/sh/sh.md (calli): Emit jsr/n if possible.
21703         (calli_tbr_rel): New.
21704         (calli_pcrel): Emit jsr/n if possible.
21705         (return_i): Emit rts/n if possible.
21706         (call_valuei_tbr_rel): New.
21707         (call_valuei_pcrel): Add condition for SH2A target.
21708         (call_value): Likewise.
21709         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
21710         (sh2a_get_function_vector_number): Likewise.
21711         (sh2a_is_function_vector_call): Likewise.
21712         * doc/extend.texi: Document TBR relative addressing of SH2A.
21713         (resbank): Add description for SH2A.
21714
21715 2008-03-24  Richard Guenther  <rguenther@suse.de>
21716
21717         PR c/22371
21718         * gimplify.c (gimplify_modify_expr): For frontend type-correct
21719         pointer assignments change conversions according to middle-end rules.
21720         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
21721         * configure.ac: Include type checking in yes.
21722         * configure: Regenerate.
21723
21724 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21725
21726         * diagnostic.c (diagnostic_count_diagnostic): Delete.
21727         (diagnostic_report_diagnostic): Update. Handle ICEs here.
21728
21729 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
21730
21731         * gthr-vxworks.h (UNUSED): Define.
21732
21733 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
21734
21735         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
21736
21737 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
21738
21739         * doc/extend.texi (Function Attributes): Add missing comma in the
21740         example of the "alloc_size" attribute.
21741
21742 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
21743
21744         Revert:
21745         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21746
21747         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21748         32bit host.
21749
21750         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
21751
21752         PR target/35496
21753         * stor-layout.c (update_alignment_for_field): Set minimum alignment
21754         of the underlying type of a MS bitfield layout to the natural
21755         alignment of the type.
21756
21757         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
21758
21759         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
21760         to their natural alignment to avoid store forwarding stalls.
21761
21762 2008-03-22  Richard Guenther  <rguenther@suse.de>
21763
21764         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
21765         For PHI nodes verify the address is invariant.
21766         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
21767         (get_symbol_constant_value): Use is_gimple_min_invariant.
21768         (maybe_fold_stmt_indirect): Likewise.
21769
21770 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
21771
21772         PR rtl-optimization/33927
21773         * Makefile.in (dse.o): Depend on $(TM_P_H).
21774         * expr.h (extract_low_bits): Declare.
21775         * expmed.c (extract_low_bits): New function.
21776         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
21777         * dse.c: Include tm_p.h.
21778         (find_shift_sequence): Remove the read_reg argument and return the
21779         read value.  Emit the instructions instead of returning them.
21780         Iterate on new_mode rather than calculating it each time.
21781         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
21782         source to NEW_MODE and extract_low_bits to convert the shifted
21783         value to READ_MODE.
21784         (replace_read): Allow the load and store to have different mode
21785         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
21786         or extraction instructions before trying the replacement.  Update
21787         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
21788
21789 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
21790
21791         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
21792         to their natural alignment to avoid store forwarding stalls.
21793
21794 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21795
21796         PR target/27946
21797         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
21798         encouraging but not allowing gprs for input;
21799         change the input constraint to !f#r.
21800         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
21801         gprs for output;
21802         change the output constraint to !f#r.
21803
21804 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
21805
21806         PR target/13958
21807         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
21808         corresponding post-reload splitters.
21809         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
21810         when x87 FP math is selected.
21811         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
21812         New function prototype.
21813         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
21814         unreachable function to ease macroization of insn patterns.
21815
21816 2008-03-21  Martin Jambor  <mjambor@suse.cz>
21817
21818         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
21819         reference dumps if ddr is NULL or dependence is unknown.
21820
21821 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21822
21823         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
21824         unsigned extension into account.
21825         (ATOMIC_COMPARE_AND_SWAP): Likewise.
21826         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
21827         Do computations on a scratch register.
21828
21829 2008-03-21  Richard Guenther  <rguenther@suse.de>
21830
21831         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21832         Use is_gimple_min_invariant instead of TREE_INVARIANT.
21833         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
21834         * tree-ssa-dom.c (record_equality): Likewise.
21835         * tree-inline.c (copy_body_r): Likewise.
21836         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
21837         TREE_INVARIANT.
21838
21839 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21840
21841         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
21842         as 'delete_unused' argument.
21843
21844 2008-03-20  Richard Guenther  <rguenther@suse.de>
21845
21846         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
21847         special casing of constant qualifiers.
21848         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
21849         care about them in general.
21850         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
21851         regardless of their type.
21852         (fold_stmt_r): Forcefully fold *& if we end up with that.
21853
21854 2008-03-20  Paul Brook  <paul@codesourcery.com>
21855
21856         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
21857         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
21858         linker flags.
21859         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
21860         definition.
21861         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
21862         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
21863
21864 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
21865
21866         * common.opt (Wmudflap): New option.
21867         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
21868         (mx_register_decls): Likewise.
21869         (mudflap_finish_file): Likewise.
21870         * doc/invoke.texi: Document -Wno-mudflap.
21871
21872 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
21873
21874         * c-format.c (replace_format_name_to_system_name): New.
21875         (cmp_attribs): New.
21876         (convert_format_name_to_system_name): New.
21877         (decode_format_attr): Add use of convert_format_name_to_system_name.
21878         (format_types_orig): Add gnu_ prefix to names.
21879         (check_format_info_main): Special treating of \0 escaped names for
21880         supporting multi-character format specifiers as I32, I64.
21881         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
21882         (gnu_target_overrides_format_attributes): New.
21883         * c-format.h: Add structure target_ovr_attr to hold
21884         system specific formatter names.
21885         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
21886         msformat-c.o file to c_target_objs and cxx_target_objs.
21887         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
21888         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
21889         (TARGET_N_FORMAT_TYPES): New.
21890         * config/i386/msformat-c.c: New.
21891         * config/i386/t-cygming: Add build rule for msformat-c.o.
21892         * doc/extend.texi: Add new format names gnu_* and ms_* and
21893         further details.
21894         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
21895
21896 2008-03-20  Ira Rosen  <irar@il.ibm.com>
21897
21898         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
21899         optimizations turned on under -O3.
21900         (ftree-vectorize): Add that the flag is turned on with -O3.
21901
21902 2008-03-20  Ben Elliston  <bje@au.ibm.com>
21903
21904         * regmove.c (try_auto_increment): Fix spelling error in comment.
21905         * final.c (final_scan_insn): Likewise.
21906
21907 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
21908
21909         PR target/14552
21910         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
21911         allocator preferences for "y" and "r" class registers.
21912         ("*mov<mode>_internal"): Ditto.
21913         ("*movv2sf_internal_rex64"): Ditto.
21914         ("*movv2sf_internal"): Ditto.
21915
21916 2008-03-19  Michael Matz  <matz@suse.de>
21917
21918         PR middle-end/35616
21919         * calls.c (expand_call): Check overlap of arguments with call
21920         address for sibcalls.
21921
21922 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
21923
21924         PR target/35496
21925         * stor-layout.c (update_alignment_for_field): Set minimum alignment
21926         of the underlying type of a MS bitfield layout to the natural
21927         alignment of the type.
21928
21929 2008-03-19  Jan Hubicka  <jh@suse.cz>
21930
21931         PR other/35094
21932         * toplev.c (decode_d_option): Handle all CPP flags.
21933         * tree-vrp.c: Update tree_pass descriptors.
21934         * regrename.c: Update tree_pass descriptors.
21935         * fwprop.c: Update tree_pass descriptors.
21936         * doc/invoke.texi: Remove documentation of dropped -d? flags.
21937         * tree-into-ssa.c: Update tree_pass descriptors.
21938         * tree-dump.c: Update tree_pass descriptors.
21939         * tree-complex.c: Update tree_pass descriptors.
21940         * tree-dump.h: Update tree_pass descriptors.
21941         * see.c: Update tree_pass descriptors.
21942         * cgraphbuild.c: Update tree_pass descriptors.
21943         * tracer.c: Update tree_pass descriptors.
21944         * tree-loop-distribution.c: Update tree_pass descriptors.
21945         * cgraph.c: Update tree_pass descriptors.
21946         * postreload-gcse.c: Update tree_pass descriptors.
21947         * postreload.c: Update tree_pass descriptors.
21948         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
21949         * tree-tailcall.c: Update tree_pass descriptors.
21950         * tree-pass.h (tree_opt_pass): Rename to ...
21951         (opt_pass) ... this one; add "type" field and remove letter field.
21952         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
21953         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
21954         all_lowering_passes): Update declaration.
21955         * ipa-cp.c: Update tree_pass descriptors.
21956         * final.c: Update tree_pass descriptors.
21957         * omp-low.c: Update tree_pass descriptors.
21958         * tree-ssa-dse.c: Update tree_pass descriptors.
21959         * ipa-reference.c: Update tree_pass descriptors.
21960         * tree-ssa-uncprop.c: Update tree_pass descriptors.
21961         * auto-inc-dec.c: Update tree_pass descriptors.
21962         * reorg.c: Update tree_pass descriptors.
21963         * cgraphunit.c: Update tree_pass descriptors.
21964         * tree-ssa-copyrename.c: Update tree_pass descriptors.
21965         * tree-ssa-ccp.c: Update tree_pass descriptors.
21966         * df-core.c: Update tree_pass descriptors.
21967         * mode-switching.c: Update tree_pass descriptors.
21968         * tree-nomudflap.c: Update tree_pass descriptors.
21969         * modulo-sched.c: Update tree_pass descriptors.
21970         * ipa-pure-const.c: Update tree_pass descriptors.
21971         * cse.c: Update tree_pass descriptors.
21972         * web.c: Update tree_pass descriptors.
21973         * tree-stdarg.c: Update tree_pass descriptors.
21974         * tree-ssa-math-opts.c: Update tree_pass descriptors.
21975         * tree-ssa-dom.c: Update tree_pass descriptors.
21976         * tree-nrv.c: Update tree_pass descriptors.
21977         * tree-ssa-alias.c: Update tree_pass descriptors.
21978         * loop-init.c: Update tree_pass descriptors.
21979         * gimple-low.c: Update tree_pass descriptors.
21980         * ipa-inline.c: Update tree_pass descriptors.
21981         * tree-ssa-sink.c: Update tree_pass descriptors.
21982         * global.c: Update tree_pass descriptors.
21983         * ifcvt.c: Update tree_pass descriptors.
21984         * jump.c: Update tree_pass descriptors.
21985         * predict.c: Update tree_pass descriptors.
21986         * tree-ssa-loop.c: Update tree_pass descriptors.
21987         * recog.c: Update tree_pass descriptors.
21988         * dse.c: Update tree_pass descriptors.
21989         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
21990         * tree-eh.c: Update tree_pass descriptors.
21991         * regmove.c: Update tree_pass descriptors.
21992         * local-alloc.c
21993         * function.c: Update tree_pass descriptors.
21994         * tree-vectorizer.c: Update tree_pass descriptors.
21995         * gcse.c: Update tree_pass descriptors.
21996         * ipa-type-escape.c: Update tree_pass descriptors.
21997         * tree-if-conv.c: Update tree_pass descriptors.
21998         * init-regs.c: Update tree_pass descriptors.
21999         * ipa.c: Update tree_pass descriptors.
22000         * tree-ssa-phiopt.c: Update tree_pass descriptors.
22001         * rtl-factoring.c: Update tree_pass descriptors.
22002         * lower-subreg.c: Update tree_pass descriptors.
22003         * bt-load.c: Update tree_pass descriptors.
22004         * tree-dfa.c: Update tree_pass descriptors.
22005         * except.c: Update tree_pass descriptors.
22006         * emit-rtl.c: Update tree_pass descriptors.
22007         * cfgexpand.c: Update tree_pass descriptors.
22008         * tree-cfgcleanup.c: Update tree_pass descriptors.
22009         * cfgcleanup.c: Update tree_pass descriptors.
22010         * tree-ssa-pre.c: Update tree_pass descriptors.
22011         * tree-sra.c: Update tree_pass descriptors.
22012         * tree-mudflap.c: Update tree_pass descriptors.
22013         * tree-ssa-copy.c: Update tree_pass descriptors.
22014         * cfglayout.c: Update tree_pass descriptors.
22015         * tree-ssa-forwprop.c: Update tree_pass descriptors.
22016         * tree-ssa-dce.c: Update tree_pass descriptors.
22017         * tree-ssa.c: Update tree_pass descriptors.
22018         * regclass.c: Update tree_pass descriptors.
22019         * integrate.c: Update tree_pass descriptors.
22020         * tree-optimize.c: Update tree_pass descriptors.
22021         * tree-ssa-phiprop.c: Update tree_pass descriptors.
22022         * tree-object-size.c: Update tree_pass descriptors.
22023         * combine.c: Update tree_pass descriptors.
22024         * tree-outof-ssa.c: Update tree_pass descriptors.
22025         * bb-reorder.c: Update tree_pass descriptors.
22026         * stack-ptr-mod.c: Update tree_pass descriptors.
22027         * var-tracking.c: Update tree_pass descriptors.
22028         * tree-profile.c: Update tree_pass descriptors.
22029         * tree-vect-generic.c: Update tree_pass descriptors.
22030         * reg-stack.c: Update tree_pass descriptors.
22031         * sched-rgn.c: Update tree_pass descriptors.
22032         * tree-ssa-structalias.c: Update tree_pass descriptors.
22033         * tree-cfg.c: Update tree_pass descriptors.
22034         * passes.c (current_pass): Update declaration.
22035         (finish_optimization_passes): Update.
22036         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
22037         (register_one_dump_file, register_dump_files_1, next_pass_1):
22038         Update arguments.
22039         (init_optimization_passes): Update handling of new types.
22040         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
22041         * ipa-struct-reorg.c: Update tree_pass descriptors.
22042         * tree-ssa-reassoc.c: Update tree_pass descriptors.
22043         * combine-stack-adj.c: Update tree_pass descriptors.
22044         * cfgrtl.c: Update tree_pass descriptors.
22045         * dce.c: Update tree_pass descriptors.
22046         * tree-ssanames.c: Update tree_pass descriptors.
22047
22048 2008-03-19  Richard Guenther  <rguenther@suse.de>
22049
22050         PR middle-end/35609
22051         * tree-ssa.c (walk_data): New structure.
22052         (warn_uninitialized_var): If not always_executed warn with "maybe"
22053         instead of "is".
22054         (execute_early_warn_uninitialized): Compute post-dominators.
22055         Initialize always_executed before processing each basic block.
22056
22057 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
22058
22059         PR target/35504
22060         * config/i386/i386.c (x86_this_parameter): Calculate correct location
22061         of "this" pointer when "regparm = N" or "fastcall" is in effect.
22062
22063 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22064
22065         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
22066
22067 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
22068
22069         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
22070         is true.
22071         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
22072         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
22073         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
22074         target after ignore has been set, and move there also the commputation
22075         of subtarget and original_target.
22076         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
22077         (LANG_HOOKS_INITIALIZER): Remove it.
22078         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
22079
22080 2008-03-18  Richard Guenther  <rguenther@suse.de>
22081
22082         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
22083         found an expression with constants, note that in the VN for the lhs.
22084         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
22085         fold them to constants if possible.  Run cleanup_cfg if done so.
22086         (execute_pre): Return todo.
22087         (do_pre): Likewise.
22088         (execute_fre): Likewise.
22089         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
22090         of constants.
22091         (get_prop_source_stmt): Look through pointer conversions.
22092
22093 2008-03-18  Jan Hubicka  <jh@suse.cz>
22094
22095         * tree-pretty-print.c: Include predict.h.
22096         (dump_generic_node): Dump predictor.
22097         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
22098         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
22099         * gimple-low.c (lower_stmt): Likewise.
22100         * expr.c (expand_expr_real): Likewise.
22101         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
22102         them.
22103         (build_predict_expr, build_predict_expr): New.
22104         * predict.h (predictor_name, build_predict_expr): Update.
22105         * c-typeck.c (c_finish_bc_stmt): Add prediction.
22106         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
22107         * predict.def (PRED_CONTINUE): Update hitrate.
22108         * tree.def (PREDICT_EXPR): Define.
22109         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
22110         do not handle BIND_EXPR.
22111         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
22112         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
22113         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
22114         operands.
22115
22116 2008-03-18  Michael Matz  <matz@suse.de>
22117
22118         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
22119
22120 2008-03-18  Richard Guenther  <rguenther@suse.de>
22121
22122         * tree-gimple.h (is_gimple_invariant_address): Declare.
22123         (is_gimple_constant): Likewise.
22124         * tree-gimple.c (is_gimple_constant): New function.
22125         (is_gimple_invariant_address): Likewise.
22126         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
22127         and is_gimple_invariant_address.
22128         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
22129         previous change.
22130         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
22131         an addressable base.
22132
22133 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
22134
22135         PR middle-end/35611
22136         * gimplify.c (gimplify_expr): Gimplify second operand of
22137         OMP_ATOMIC_LOAD.
22138
22139 2008-03-17  Richard Guenther  <rguenther@suse.de>
22140
22141         PR tree-optimization/19637
22142         * fold-const.c (fold_unary): Remove restrictions of removing
22143         intermediate pointer-conversions (P2)(P1)P0.
22144         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
22145         conversion to void pointer.
22146         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
22147
22148 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
22149
22150         PR debug/31510
22151         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
22152         emulated thread local variables.
22153
22154 2008-03-16  Richard Guenther  <rguenther@suse.de>
22155
22156         PR middle-end/35607
22157         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22158         expand TREE_INVARIANT operations that are not gimple invariant.
22159
22160 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
22161
22162         * doc/extend.texi (Alignment): Say that the ABI controls
22163         the __alignof__ for non-strict-alignment targets rather
22164         than being a recommendation.
22165
22166 2008-03-15  Paul Brook  <paul@codesourcery.com>
22167
22168         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
22169         annotations.
22170         (arm_output_fn_unwind): Mark functions that can not be unwound.
22171
22172 2008-03-15  Paul Brook  <paul@codesourcery.com>
22173
22174         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
22175         extension instructions.
22176
22177 2008-03-15  Richard Guenther  <rguenther@suse.de>
22178
22179         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
22180         and fold constant aggregate refs.
22181         (fold_const_aggregate_ref): Handle string constants
22182         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
22183         (evaluate_stmt): Simplify now that ccp_fold folds constant
22184         aggregate refs.
22185
22186 2008-03-15  Paul Brook  <paul@codesourcery.com>
22187
22188         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
22189         (extzv): Use gen_extzv_t2.
22190         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
22191
22192 2008-03-15  Richard Guenther  <rguenther@suse.de>
22193
22194         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
22195         (fold_const_aggregate_ref): Likewise.
22196         (get_value): Return NULL if we don't have any values.
22197         (ccp_finalize): Set const_val to NULL after freeing it.
22198         * tree-flow.h (get_symbol_constant_value): Declare.
22199         (fold_const_aggregate_ref): Likewise.
22200         * tree-ssa-sccvn.c (try_to_simplify): Use them.
22201
22202 2008-03-15  Richard Guenther  <rguenther@suse.de>
22203
22204         PR middle-end/35593
22205         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
22206         to not produce negative array indices if not allowed.  Add
22207         parameter to indicate that.
22208         (maybe_fold_offset_to_component_ref): Allow negative array
22209         indices only for the first member of a structure.
22210         (maybe_fold_offset_to_reference): Allow negative array indices.
22211         (maybe_fold_stmt_addition): Likewise.
22212
22213 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
22214             Anatoly Sokolov <aesok@post.ru>
22215
22216         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
22217         (avr_arch): Add ARCH_AVR6.
22218         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
22219         (initial_elimination_offset): Initialize and use 'avr_pc_size'
22220         instead of fixed value 2.
22221         (print_operand_address): Use gs() asm specifier instead of pm().
22222         (avr_assemble_integer): (Ditto.).
22223         (avr_output_addr_vec_elt): (Ditto.).
22224         (print_operand): Handle "!" code.
22225         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
22226         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
22227         (AVR_HAVE_EIJMP_EICALL): Define.
22228         (AVR_3_BYTE_PC): Redefine.
22229         (AVR_2_BYTE_PC): (Ditto.).
22230         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
22231         (LINK_SPEC): Add atmega2560 and atmega2561.
22232         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
22233         (crtm2561.o).
22234         * config/avr/avr.md (call_insn): Use eicall instead of icall
22235         for 3 byte PC devices.
22236         (call_value_insn): (Ditto.).
22237         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
22238         (indirect_jump): Use only for for 2 byte PC devices.
22239         (*tablejump): (Ditto.).
22240         (*indirect_jump_avr6): Add insn.
22241         (*tablejump_rjmp): Don't use for 3 byte PC devices.
22242         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
22243         instead of ijmp for 3 byte PC devices.
22244         (__tablejump2__): (Ditto.).
22245         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
22246         (MULITLIB_DIRNAMES): (Ditto.).
22247         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
22248
22249 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
22250
22251         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
22252         "sse2_umulsidi3".  Use V1DI mode for operand 0.
22253         ("mmx_psadbw"): Use V1DI mode for operand 0.
22254         * config/i386/i386-modes.def (V1SI): New vector mode.
22255         * config/i386/i386.c (struct builtin_description)
22256         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
22257         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
22258         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
22259         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
22260         v1di_ftype_v8qi_v8qi type.
22261         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
22262
22263         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
22264         __builtin_ia32_pmuludq]: Fix the mode of return value.
22265
22266 2008-03-15  Richard Guenther  <rguenther@suse.de>
22267
22268         PR middle-end/35595
22269         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
22270         being a PHI_NODE.
22271
22272 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
22273
22274         * doc/invoke.texi (Option Summary, Xtensa Options): Document
22275         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
22276         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
22277         unless TARGET_SERIALIZE_VOLATILE is enabled.
22278         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
22279         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
22280         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
22281
22282 2008-03-14  Richard Guenther  <rguenther@suse.de>
22283
22284         PR tree-optimization/34172
22285         * tree-flow.h (refs_may_alias_p): Declare.
22286         (get_single_def_stmt): Likewise.
22287         (get_single_def_stmt_from_phi): Likewise.
22288         (get_single_def_stmt_with_phi): Likewise.
22289         * tree-dfa.c (refs_may_alias_p): New function.
22290         (get_single_def_stmt): Likewise.
22291         (get_single_def_stmt_from_phi): Likewise.
22292         (get_single_def_stmt_with_phi): Likewise.
22293         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
22294         (vn_reference_lookup_1): New helper function.
22295         (vn_reference_lookup): Walk the virtual use-def chain to
22296         continue searching for a match if the def does not alias the
22297         reference we are looking for.
22298
22299 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
22300
22301         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
22302         archive and Perzl.  Update The Written Word listing.
22303
22304 2008-03-14  Richard Guenther  <rguenther@suse.de>
22305
22306         PR tree-optimization/34043
22307         PR tree-optimization/33989
22308         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
22309         when doing FRE.
22310         (bitmap_find_leader): Use extra argument to verify dominance
22311         relationship inside a basic-block.
22312         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
22313         (find_leader_in_sets): Adjust.
22314         (create_component_ref_by_pieces): Take extra argument for
22315         dominance check, handle lookup failures.
22316         (find_or_generate_expression): Likewise.
22317         (create_expression_by_pieces): Likewise.
22318         (insert_into_preds_of_block): Adjust.
22319         (create_value_expr_from): If asked for, verify all operands
22320         are in the blocks AVAIL_OUT set.
22321         (make_values_for_stmt): Check for SSA_NAMEs that are life
22322         over an abnormal edge.
22323         (compute_avail): Remove such check.
22324         (do_SCCVN_insertion): New function.
22325         (eliminate): If we do not find a leader suitable for replacement
22326         insert a replacement expression from SCCVN if available.
22327         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
22328         (struct vn_ssa_aux): Add needs_insertion flag.
22329         * tree-ssa-sccvn.c (may_insert): New global flag.
22330         (copy_reference_ops_from_ref): Value-number union member access
22331         based on its size, not type and member if insertion is allowed.
22332         (visit_reference_op_load): For a weak match from union type
22333         punning lookup a view-converted value and insert a SSA_NAME
22334         for that value if that is not found.
22335         (visit_use): Make dumps shorter.  Do not disallow value numbering
22336         SSA_NAMEs that are life over an abnormal edge to constants.
22337         (free_scc_vn): Release inserted SSA_NAMEs.
22338         (run_scc_vn): New flag to specify whether insertion is allowed.
22339         Process SSA_NAMEs in forward order.
22340         * tree-ssa-loop-im.c (for_each_index): Handle invariant
22341         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
22342         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
22343         pointer type to/from integral types that do not change the
22344         precision to regular conversions.
22345
22346 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
22347
22348         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
22349         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
22350         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
22351         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
22352         input arguments and the mode of return value.  Built-in functions
22353         that operate on whole 64-bit MMX register now use V1DI mode.
22354
22355 2008-03-13  Alon Dayan  <alond@il.ibm.com>
22356             Olga Golovanevsky  <olga@il.ibm.com>
22357
22358         PR tree-optimization/35041
22359         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
22360         to locate the right position in a statement.
22361
22362 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
22363
22364         PR target/34000
22365         PR target/35553
22366         * config/i386/xmmintrin.h:  Change all static inline functions to
22367         extern inline and add __gnu_inline__ attribute.
22368         * config/i386/bmintrin.h: Ditto.
22369         * config/i386/smmintrin.h: Ditto.
22370         * config/i386/tmmintrin.h: Ditto.
22371         * config/i386/mmintrin-common.h: Ditto.
22372         * config/i386/ammintrin.h: Ditto.
22373         * config/i386/emmintrin.h: Ditto.
22374         * config/i386/pmmintrin.h: Ditto.
22375         * config/i386/mmintrin.h: Ditto.
22376         * config/i386/mm3dnow.h: Ditto.
22377
22378 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
22379
22380         PR middle-end/35185
22381         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
22382         (lower_omp_2): New function.
22383         (lower_omp_1, lower_omp): Rewritten.
22384
22385 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
22386
22387         PR 35054
22388         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
22389         with the phrase "Microsoft Windows compilers".
22390         (Push/Pop Macro Pragmas): New subsection. Document
22391         #pragma push_macro and pragma pop_macro.
22392
22393 2008-03-12  Paul Brook  <paul@codesourcery.com>
22394
22395         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
22396
22397 2008-03-12  Paul Brook  <paul@codesourcery.com>
22398
22399         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
22400         (thumb2_alusi3_short): Exclude PLUS and MINUS.
22401         (thumb2_addsi_shortim): Rename ...
22402         (thumb2_addsi_short): ... to this.  Allow register operands.
22403         (thumb2_subsi_short): New pattern.
22404         (thumb2_one_cmplsi2_short,
22405         thumb2_negsi2_short): New patterns and peepholes.
22406
22407 2008-03-12  Paul Brook  <paul@codesourcery.com>
22408
22409         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
22410
22411 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
22412
22413         * config/i386/i386.md (int_cond): New code iterator.
22414         (fp_cond): Ditto.
22415         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
22416         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
22417         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
22418         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
22419         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
22420         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
22421         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
22422         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
22423
22424 2008-03-12  Paul Brook  <paul@codesourcery.com>
22425
22426         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
22427         instead of {arm,thumb}_compute_save_reg_mask.
22428         (output_return_instruction): Ditto.
22429         (thumb_unexpanded_epilogue): Ditto.
22430         (thumb1_expand_prologue): Ditto.
22431         (thumb1_output_function_prologue): Ditto.
22432         (arm_set_return_address): Ditto.
22433         (thumb_set_return_address): Ditto.
22434         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
22435         regs to achieve stack alignment.
22436         (thumb1_compute_save_reg_mask): Fix compiler warning.
22437         (arm_output_epilogue): Use offsets->saved_regs_mask.
22438         Adjust stack pointer by poping call clobered registers.
22439         (arm_expand_prologue): Use offsets->saved_regs_mask.
22440         Adjust stack pointer by pushing extra registers.
22441         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
22442
22443 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
22444
22445         PR tree-opt/35422
22446         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
22447         conversion to the operands of a multiplication.
22448
22449 2008-03-12  Richard Guenther  <rguenther@suse.de>
22450
22451         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
22452         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
22453         * timevar.def (TV_TREE_PHIPROP): Add.
22454         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
22455         pass description.  Use TV_TREE_PHIPROP.
22456         * tree-ssa-forwprop.c: Remove phiprop code.
22457
22458 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
22459
22460         PR middle-end/35549
22461         * omp-low.c (maybe_lookup_decl): Constify first argument.
22462         (use_pointer_for_field): Change last argument from bool to
22463         omp_context *.  Disallow shared copy-in/out in nested
22464         parallel if decl is shared in outer parallel too.
22465         (build_outer_var_ref, scan_sharing_clauses,
22466         lower_rec_input_clauses, lower_copyprivate_clauses,
22467         lower_send_clauses, lower_send_shared_vars): Adjust callers.
22468
22469 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
22470             Ira Rosen  <irar@il.ibm.com>
22471
22472         * tree-vectorizer.c (free_stmt_vec_info): New function.
22473         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
22474         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
22475         * tree-vectorizer.h (free_stmt_vec_info): Declare.
22476         * tree-vect-transform.c (vectorizable_conversion): Free
22477         vec_oprnds0 if it was allocated.
22478         (vect_permute_store_chain): Remove unused VECs.
22479         (vectorizable_store): Free VECs that are allocated in the..
22480         function.
22481         (vect_transform_strided_load, vectorizable_load): Likewise.
22482         (vect_remove_stores): Simplify the code.
22483         (vect_transform_loop): Move code to vect_remove_stores().
22484         Call vect_remove_stores() and free_stmt_vec_info().
22485
22486 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22487
22488         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
22489         TARGET_HPUX.  Revise comment.
22490         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
22491         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
22492         Use sr4 variant of `be' instruction when not generating PIC code.
22493         (attr_length_call): Adjust for above change.
22494
22495 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22496
22497         * ipa-reference.c (static_execute): Remove module_statics_const and
22498         associated setting code.
22499
22500 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
22501
22502         PR target/35540
22503         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
22504         predicate for operand 1.
22505         (paritysi2_cmp): Use register_operand predicate for operand 2.
22506         Use earlyclobber modifier for operand 1.  Remove support for
22507         memory operands.
22508         (paritydi2_cmp): Use register_operand predicate for operand 3.
22509         Use earlyclobber modifier for operand 1.  Remove support for
22510         memory operands.
22511
22512 2008-03-11  Paul Brook  <paul@codesourcery.com>
22513             Vladimir Prus  <vladimir@codesourcery.com>
22514
22515         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
22516         (arm_compute_save_reg0_reg12_mask): Always
22517         check if register 11 must be saved.  Always safe hard frame pointer
22518         when frame_pointer_needeed.
22519         (arm_compute_save_reg_mask): Save IP and PC
22520         only with apcs frames.
22521         (arm_output_epilogue): Adjust Thumb2 codepath to
22522         be also invoked and work for ARM non-apcs frames.
22523         (arm_expand_prologue): Don't bother saving IP
22524         for non-apcs frame, since it's not clobbered by
22525         prologue code.  Implement non-apcs frame
22526         layout.
22527
22528 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
22529
22530         PR rtl-optimization/35281
22531         * expr.c (convert_move): Use a new pseudo for the intermediate
22532         from_mode->word_mode result.
22533
22534 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
22535
22536         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
22537         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
22538         * toplev.c (compile_file): Don't call it.
22539
22540 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
22541
22542         PR middle-end/35526
22543         * expr.c (store_expr): Call emit_block_move if the mode
22544         of "temp" RTX is BLKmode.
22545
22546 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22547             Richard Guenther  <rguenther@suse.de>
22548
22549         PR tree-optimization/31358
22550         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
22551         the step with a NULL_TREE.
22552         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
22553         to sizetype if type is a pointer type.
22554         (add_candidate_1): Don't convert the base and step to
22555         the generic type if the orginal type is a pointer type.
22556         (add_iv_value_candidates): Use sizetype for the step
22557         if type is a pointer type.
22558         (cand_value_at): Likewise.
22559         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
22560         for pointer types.
22561         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
22562         Don't convert the tem affine to the type.
22563         (add_elt_to_tree): Use sizetype for the step if a pointer.
22564         Use POINTER_PLUS_EXPR for pointers.
22565         (aff_combination_to_tree): Use sizetype for the step if a
22566         pointer.
22567
22568 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
22569
22570         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
22571         Remove commutativity hint.
22572
22573 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
22574
22575         PR c/35438
22576         PR c/35439
22577         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
22578         errorneous type.  Check that v is a VAR_DECL.
22579
22580         PR middle-end/35099
22581         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
22582
22583 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
22584
22585         PR tree-optimization/35494
22586         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
22587         may be overriden at link and run time.
22588
22589 2008-03-10  Richard Guenther  <rguenther@suse.de>
22590
22591         PR tree-optimization/34677
22592         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
22593         (poolify_tree): Likewise.
22594         (modify_expr_template): Likewise.
22595         (poolify_modify_stmt): Likewise.
22596         (insert_fake_stores): Handle all component-ref style stores
22597         in addition to INDIRECT_REF.  Also handle complex types.
22598         Do not poolify the inserted load.
22599         (realify_fake_stores): Do not rebuild the tree but only
22600         make it a SSA_NAME copy.
22601         (init_pre): Remove initialzation of modify_expr_template.
22602         Do not allocate modify_expr_node_pool.
22603         (fini_pre): Do not free modify_expr_node_pool.
22604
22605 2008-03-10  Paul Brook  <paul@codesourcery.com>
22606
22607         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
22608         to avoid conflicts.
22609
22610 2008-03-10  Paul Brook  <paul@codesourcery.com>
22611             Mark Shinwell  <shinwell@codesourcery.com>
22612
22613         * config/arm/cortex-r4.md: New.
22614         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
22615         insn attributes.
22616         * config/arm/arm.md: Include cortex-r4.md.
22617         (insn): Add smmls, sdiv and udiv values.
22618         (generic_sched): Don't use generic scheduling for Cortex-R4.
22619         (arm_issue_rate): New function.
22620         (TARGET_SCHED_ISSUE_RATE): Define.
22621
22622 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
22623
22624         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
22625
22626 2008-03-10  Richard Guenther  <rguenther@suse.de>
22627
22628         * tree-ssa-pre.c (get_sccvn_value): Simplify.
22629         (compute_avail): Do not add stmt uses to AVAIL_OUT.
22630
22631 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
22632
22633         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
22634         Set default to true.
22635
22636 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22637
22638         * c.opt (Wsynth): Deprecate.
22639         * doc/invoke.texi (Option Summary, Warning Options): Document
22640         -Wno-format-contains-nul.
22641
22642 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
22643
22644         PR target/35496
22645         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
22646         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
22647
22648 2008-03-09  Ira Rosen  <irar@il.ibm.com>
22649
22650         * config/rs6000/rs6000.c (builtin_description): Rename vector
22651         left shift operations.
22652         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
22653         (altivec_vsl<VI_char>): Rename to ...
22654         (ashl<mode>3): ... new name.
22655         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
22656         gen_ashlv4si3.
22657         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
22658
22659 2008-03-08  Richard Guenther  <rguenther@suse.de>
22660
22661         * coverage.h (tree_coverage_counter_addr): Declare.
22662         * coverage.c (tree_coverage_counter_addr): New function.
22663         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
22664         before using again.
22665         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
22666         (tree_gen_one_value_profiler): Likewise.
22667         (tree_gen_ic_profiler): Likewise.
22668         (tree_gen_average_profiler): Likewise.
22669         (tree_gen_ior_profiler): Likewise.
22670
22671 2008-03-08  Richard Guenther  <rguenther@suse.de>
22672
22673         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
22674         (vn_binary_op_insert): Likewise.
22675         (vn_unary_op_lookup): Likewise.
22676         (vn_unary_op_insert): Likewise.
22677         (vn_nary_op_lookup): Declare.
22678         (vn_nary_op_insert): Likewise.
22679         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
22680         and binary hashes, use a single obstack for unary_op_pool
22681         and binary_op_pool.
22682         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
22683         a single struct vn_nary_op_s.  Store tree code length and
22684         a variable number of operands.
22685         (struct vn_reference_op_struct): Remove unused op2.
22686         (vn_reference_op_eq): Do not compare op2.
22687         (vn_reference_op_compute_hash): Do not compute hash of op2.
22688         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
22689         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
22690         with vn_nary_op_compute_hash.
22691         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
22692         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
22693         vn_nary_op_lookup.
22694         (vn_unary_op_insert, vn_binary_op_insert): Replace with
22695         vn_nary_op_insert.
22696         (visit_unary_op): Call nary functions.
22697         (visit_binary_op): Likewise.
22698         (process_scc): Adjust for struct vn_tables_s changes.
22699         (allocate_vn_table): Likewise.
22700         (free_vn_table): Likewise.
22701         * tree-vn.c (vn_add): Call nary functions.
22702         (vn_lookup): Likewise.
22703
22704 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
22705
22706         PR target/35498
22707         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
22708         wdst back after sync_compare_and_swapqhi_internal.
22709
22710 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
22711
22712         PR target/22152
22713         * config/i386/i386-modes.def (V1DI): New vector mode.
22714         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
22715         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
22716         (MMXMODE248): Ditto.
22717         (MMXMODE): Add V1DI mode.
22718         (mmxvecsize): Change DI mode to V1DI mode.
22719         ("mov<mode>): Use MMXMODEI8 mode iterator.
22720         ("*mov<mode>_internal_rex64"): Ditto.
22721         ("*mov<mode>_internal"): Ditto.
22722         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
22723         ("mmx_sub<mode>3"): Ditto.
22724         ("mmx_adddi3"): Remove insn pattern.
22725         ("mmx_subdi3"): Ditto.
22726         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
22727         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
22728         ("mmx_ashl<mode>3"): Ditto.
22729         ("mmx_lshrdi3"): Remove insn pattern.
22730         ("mmx_ashldi3"): Ditto.
22731         * config/i386/i386.c (classify_argument): Handle V1DImode.
22732         (function_arg_advance_32): Ditto.
22733         (function_arg_32): Ditto.
22734         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
22735         mmx_addv1di3 insn pattern.
22736         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
22737         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
22738         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
22739         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
22740         Remove definitions of built-in functions.
22741         (V1DI_type_node): New node.
22742         (v1di_ftype_v1di_int): Ditto.
22743         (v1di_ftype_v1di_v1di): Ditto.
22744         (v2si_ftype_v2si_si): Ditto.
22745         (v4hi_ftype_v4hi_di): Remove node.
22746         (v2si_ftype_v2si_di): Ditto.
22747         (ix86_init_mmx_sse_builtins): Handle V1DImode.
22748         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
22749         Redefine builtins using def_builtin_const with *_ftype_*_int node.
22750         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
22751         Add new builtins using def_builtin_const.
22752         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
22753         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
22754         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
22755         * config/i386/mmintrin.h (__v1di): New typedef.
22756         (_mm_add_si64): Cast arguments to __v1di type.
22757         (_mm_sub_si64): Ditto.
22758         (_mm_sll_pi16): Cast __count to __v4hi type.
22759         (_mm_sll_pi32): Cast __count to __v2si type.
22760         (_mm_sll_si64): Cast arguments to __v1di type.
22761         (_mm_srl_pi16): Cast __count to __v4hi type.
22762         (_mm_srl_pi32): Cast __count to __v2si type.
22763         (_mm_srl_si64): Cast arguments to __v1di type.
22764         (_mm_sra_pi16): Cast __count to __v4hi type.
22765         (_mm_sra_pi32): Cast __count to __v2si type.
22766         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
22767         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
22768         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
22769         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
22770         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
22771         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
22772         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
22773         (_mm_srai_pi32): Use __builtin_ia32_psradi.
22774         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
22775         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
22776         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
22777         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
22778
22779 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
22780
22781         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
22782
22783 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
22784
22785         PR target/35373
22786         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
22787         reg+const addressing for Altivec modes.  Don't generate reg+reg
22788         addressing for TFmode or TDmode quantities.
22789
22790 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
22791
22792         * c-common.c (vector_types_convertible_p): Call langhook
22793         instead of comptypes.
22794
22795 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22796
22797         PR tree-opt/35402
22798         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
22799         integral and scalar float variables which have a
22800         NULL DECL_INITIAL.
22801
22802 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
22803
22804         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
22805         dwarf_register_span hook when emitting unwind information for
22806         register-to-memory saves.
22807         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
22808         (rs6000_frame_related): Remove call to spe_synthesize_frame.
22809
22810 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
22811
22812         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
22813         for the same VAR_DECL.
22814
22815 2008-03-06  Tom Tromey  <tromey@redhat.com>
22816
22817         * treelang: Delete.
22818         * doc/standards.texi (Standards): Don't mention treelang.
22819         * doc/invoke.texi (Overall Options): Don't mention treelang.
22820         * doc/install.texi (Prerequisites): Don't mention bison or
22821         treelang.
22822         (Configuration): Don't mention treelang.
22823         (Building): Likewise.
22824         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
22825
22826 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
22827
22828         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
22829         word-extractions out of a multi-word object.
22830
22831 2008-03-06  Richard Guenther  <rguenther@suse.de>
22832
22833         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
22834         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
22835         result type and precision.
22836         * expr.c (get_inner_reference): Set unsignedp based on the result
22837         type of BIT_FIELD_REF.
22838         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
22839         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
22840         (try_instantiate_multiple_fields): Likewise.  Use the correct type
22841         for BIT_FIELD_REF.
22842         (sra_build_assignment): Likewise.
22843         (sra_build_elt_assignment): Likewise.
22844         (sra_explode_bitfield_assignment): Likewise.
22845         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
22846         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
22847         set BIT_FIELD_REF_UNSIGNED.
22848         (vectorizable_load): Likewise.
22849
22850 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
22851
22852         * cse.c (cse_extended_basic_block): Invalidate artificial defs
22853         at bb start.
22854
22855 2008-03-06  Richard Guenther  <rguenther@suse.de>
22856
22857         * alias.c (struct alias_set_entry): Move has_zero_child field
22858         to pack with alias_set.
22859
22860 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
22861
22862         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22863         32bit host.
22864
22865 2008-03-05  Ian Lance Taylor  <iant@google.com>
22866
22867         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
22868
22869 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
22870
22871         * fwprop.c (update_df): Support width and offset parameters of
22872         df_ref_create.
22873         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
22874         global_conflicts): Change DF_REF_EXTRACT to either
22875         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22876         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22877         * df-scan.c (df_ref_record, df_defs_record,
22878         df_ref_create_structure, df_def_record_1, df_uses_record,
22879         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
22880         df_bb_refs_collect, df_entry_block_defs_collect,
22881         df_exit_block_uses_collect): Support new width and offset fields.
22882         (ref_extract_pool): New storage pool.
22883         (df_free_ref): New function.
22884         (df_reg_chain_unlink, df_free_collection_rec,
22885         df_sort_and_compress_refs): Call df_free_ref.
22886         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
22887         of df_ref_extract.
22888         (df_ref_create_structure): Allocate df_ref_extract if offset and
22889         width fields are used.
22890         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
22891         (df_uses_record): Get offset and width from ZERO_EXTRACT
22892         and SIGN_EXTRACT.
22893         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
22894         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22895         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22896         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
22897         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22898         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22899         (df_ref_extract): New structure.
22900         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
22901         (df_ref_create): Add width and offset parameters.
22902
22903 2008-03-05  Richard Guenther  <rguenther@suse.de>
22904
22905         * tree-ssa-structalias.c (get_constraint_for_component_ref):
22906         Use ranges_overlap_p.
22907         (offset_overlaps_with_access): Rename
22908         to ranges_overlap_p and move ...
22909         * tree-flow-inline.h (ranges_overlap_p): ... here.
22910
22911         * tree.h (get_inner_reference, handled_component_p): Update
22912         comments.
22913
22914         * tree.h (record_component_aliases, get_alias_set,
22915         alias_sets_conflict_p, alias_sets_must_conflict_p,
22916         objects_must_conflict_p): Move declarations ...
22917         * alias.h (record_component_aliases, get_alias_set,
22918         alias_sets_conflict_p, alias_sets_must_conflict_p,
22919         objects_must_conflict_p): ... here.
22920         Include coretypes.h.
22921         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
22922
22923 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
22924
22925         * cfg.c: Include tree-flow.h.
22926         (remove_edge_raw): Call redirect_edge_var_map_clear.
22927         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
22928         * tree-flow-inline.h (redirect_edge_var_map_def): New.
22929         (redirect_edge_var_map_result): New.
22930         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
22931         PENDING_STMT use with redirect_edge_var_map_*.
22932         * tree-ssa.c (edge_var_maps): New definition.
22933         (redirect_edge_var_map_add): New.
22934         (redirect_edge_var_map_clear): New.
22935         (redirect_edge_var_map_dup): New.
22936         (redirect_edge_var_map_vector): New.
22937         (redirect_edge_var_map_destroy): New.
22938         (ssa_redirect_edge): Replace PENDING_STMT use with
22939         redirect_edge_var_map_*.
22940         (flush_pending_stmts): Same.
22941         (delete_tree_ssa): Destroy edge var map.
22942         * tree-flow.h (struct _edge_var_map): New.
22943         Define edge_var_map vector type.
22944         Declare redirect_edge_var_map_* prototypes.
22945         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
22946         * tree-cfg.c (reinstall_phi_args): Replace
22947         PENDING_STMT use with redirect_edge_var_map_*.
22948
22949 2008-03-05  Richard Guenther  <rguenther@suse.de>
22950
22951         PR tree-optimization/35472
22952         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
22953         whose single use_stmt has a overlapping set of loaded and
22954         stored symbols as that use_stmt might be a noop assignment then.
22955
22956 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
22957
22958         * gthr-rtems.h: Implement __gthread_mutex_destroy.
22959
22960 2008-03-05  Richard Guenther  <rguenther@suse.de>
22961
22962         PR c++/35336
22963         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
22964         should be constants.
22965         * tree-cfg.c (verify_expr): Verify it.
22966         * fold-const.c (fold_truthop): Remove code generating
22967         BIT_FIELD_REFs of structure bases.
22968         (fold_binary): Likewise.
22969         (fold_ternary): Position and size of BIT_FIELD_REFs are
22970         always host integers.
22971         (make_bit_field_ref): Remove.
22972         (optimize_bit_field_compare): Remove.
22973         (all_ones_mask_p): Remove.
22974
22975 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
22976
22977         PR gcc/33009
22978         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
22979         (split_block_and_df_analyze): New. Split basic block and rebuild
22980         dataflow.
22981         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
22982         SPLIT_BLOCK.
22983         (split_pattern_seq): Likewise.
22984         (erase_matching_seqs): Likewise.
22985         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
22986
22987 2008-03-04  Geoff Keating  <geoffk@apple.com>
22988
22989         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
22990         declaration and code.
22991         (tree_invalid_nonnegative_warnv_p): Likewise.
22992
22993 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
22994
22995         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
22996         examples.  Truncate option-names then causing overfull hbox.
22997
22998 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22999
23000         PR target/35222
23001         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
23002         on hpux10.
23003         * configure: Rebuilt.
23004
23005 2008-03-04  Rafael Espíndola  <espindola@google.com>
23006
23007         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
23008         (tree_unary_nonnegative_warnv_p): New.
23009         (tree_binary_nonnegative_warnv_p): New.
23010         (tree_single_nonnegative_warnv_p): New.
23011         (tree_invalid_nonnegative_warnv_p): New.
23012         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
23013
23014 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23015
23016         PR 28322
23017         * opts.c (handle_option): Postpone 'unknown option' errors only for
23018         warning options.
23019
23020 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
23021
23022         PR target/35453
23023         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
23024         (_SIDD_XXX): This.
23025
23026 2008-03-04  Rafael Espíndola  <espindola@google.com>
23027
23028         * fold-const.c (tree_unary_nonzero_warnv_p): New.
23029         (tree_binary_nonzero_warnv_p): New.
23030         (tree_single_nonzero_warnv_p): New.
23031         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
23032
23033 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
23034
23035         PR middle-end/35456
23036         * fold-const.c (fold_cond_expr_with_comparison): Prevent
23037         transformations for modes that have signed zeros.
23038         * ifcvt.c (noce_try_abs): Ditto.
23039
23040 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
23041
23042         * config/i386/i386.c (override_options): Force
23043         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
23044
23045 2008-03-04  Jan Hubicka  <jh@suse.cz>
23046
23047         PR c++/35262
23048         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
23049         in last commit.
23050
23051 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
23052
23053         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
23054         label to probe the stack.
23055
23056 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
23057
23058         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
23059         (__gthr_win32_mutex_destroy): Declare.
23060         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
23061         __gthr_win32_mutex_destroy.
23062         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
23063
23064 2008-03-03  Jan Hubicka  <jh@suse.cz>
23065
23066         PR c++/35262
23067         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
23068         aggressive on inlining cold calls.
23069
23070 2008-03-03  Richard Guenther  <rguenther@suse.de>
23071
23072         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
23073         struct copies into the expression table.
23074         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
23075         (try_to_simplify): Likewise.
23076         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
23077         integral and pointer arguments which do not change the
23078         precision to NOP_EXPRs.
23079         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
23080         VIEW_CONVERT_EXPR case.
23081
23082 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
23083
23084         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
23085         defined in a loop at depth 0 is invariant.
23086         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
23087         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
23088         be called at loop depth 0.
23089
23090 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
23091
23092         PR driver/35420
23093         * gcc.c (process_command): Update copyright notice dates.
23094         * gcov.c (print_version): Likewise.
23095         * gcov-dump.c (print_version): Likewise.
23096         * mips-tfile.c (main): Likewise.
23097         * mips-tdump.c (main): Likewise.
23098
23099 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23100
23101         PR 24924
23102         * c-common.c (flag_permissive): Delete.
23103         (constant_expression_warnings): Check flags first.
23104         (constant_expression_error): New.
23105         * c-common.h (flag_permissive): Delete.
23106         (constant_expression_error): Declare.
23107         * flags.h (flag_permissive): Declare. Update description.
23108         * diagnostic.c (pedwarn): Update.
23109         (permerror): New.
23110         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
23111         (permissive_error_kind): New.
23112         * toplev.c (flag_permissive): Define. Update description.
23113         * toplev.h (permissive_error_kind): Declare.
23114         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
23115         (pedwarn_c90): Use pedantic_warning_kind.
23116         * c-opts.c (c_common_post_options): flag_permissive does not affect
23117         flag_pedantic_errors.
23118
23119 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
23120
23121         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
23122         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
23123         __absvsi2, __absvDI2): Use unsigned arithmetic.
23124
23125 2008-03-02  Andi Kleen  <ak@suse.de>
23126             Richard Guenther  <rguenther@suse.de>
23127
23128         * struct-equiv.c: Remove file.
23129         * cfg_cleanup.c (condjump_equiv_p): Remove.
23130         * Makefile.in (OBJS-common): Remove struct-equiv.o.
23131         (struct-equiv.o): Remove rule.
23132         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
23133         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
23134         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
23135
23136 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23137
23138         * ifcvt.c (noce_process_if_block): Try to handle only the then
23139         block if the else block exists but isn't suitable.
23140
23141 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
23142
23143         PR gcc/35063
23144         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
23145         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
23146         regression from previous patch.
23147
23148 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
23149
23150         PR gcc/35063
23151         * gthr.h: Add __gthread_mutex_destroy as a function that must be
23152         implemented.
23153         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
23154         * gthr-single.h (__gthread_mutex_destroy): Likewise.
23155         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
23156         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
23157         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
23158         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
23159         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
23160         (__gthread_mutex_destroy_function): Rename to
23161         __gthread_mutex_destroy.
23162         * gthr-dce.h (__gthread_mutex_destroy): Call
23163         pthread_mutex_destroy.
23164         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
23165         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
23166         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
23167
23168 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23169
23170         * df-scan.c (df_ref_chain_change_bb): Simplify.
23171         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
23172         set_block_for_insn if there's any change.
23173         * df.h ((df_insn_change_bb): Fix prototype.
23174         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
23175         df_insn_change_bb, don't call set_block_for_insn.
23176         * emit-rtl.c (reorder_insns): Likewise.
23177         * haifa-sched.c (move_insn): Likewise.
23178
23179 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23180
23181         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
23182
23183 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23184
23185         * tree-flow-inline.h (next_readonly_imm_use): Return
23186         NULL_USE_OPERAND_P after the end.
23187
23188 2008-03-01  Richard Guenther  <rguenther@suse.de>
23189
23190         PR tree-optimization/35411
23191         * tree-sra.c (sra_build_assignment): Split conversion to
23192         final type to a separate statement if we are not assigning
23193         to a register.
23194
23195 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
23196
23197         * fold-const.c (fold_convertible_p): Correct the logic to follow
23198         that in fold_convert().
23199
23200 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
23201
23202         PR c++/35315
23203         * tree-inline.c (build_duplicate_type): When we make a
23204         duplicate type, make it unique in the canonical types system.
23205
23206 2008-02-29  Tom Tromey  <tromey@redhat.com>
23207
23208         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
23209         input_file_stack_history, input_file_stack_restored): Remove.
23210         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
23211         * input.h (struct file_stack): Remove.
23212         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
23213         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
23214         Likewise.
23215         * diagnostic.h (struct diagnostic_context) <last_module>: Change
23216         type.
23217         (diagnostic_last_module_changed): Add 'map' argument.
23218         (diagnostic_set_last_function): Likewise.
23219         * diagnostic.c (undiagnostic_report_current_module): Iterate using
23220         line map, not input_file_stack.
23221         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
23222
23223 2008-02-29  Paul Brook  <paul@codesourcery.com>
23224
23225         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
23226
23227 2008-02-29  Paul Brook  <paul@codesourcery.com>
23228
23229         * config/arm/ieee754-df.S (muldf3): Use RET macros.
23230
23231 2008-02-29  Richard Guenther  <rguenther@suse.de>
23232
23233         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
23234         vn_lookup_or_add.
23235         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
23236         value for comparing for a store match.
23237         (simplify_unary_expression): Do nothing for SSA_NAMEs.
23238         (try_to_simplify): Do not do a full-blown reference lookup.
23239
23240 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23241
23242         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
23243         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
23244
23245         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
23246
23247 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
23248
23249         * tree-loop-linear.c (try_interchange_loops): Compare memory access
23250         strides against cache sizes.
23251
23252 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23253
23254         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
23255         constant to fpul.
23256
23257 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
23258
23259         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
23260         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
23261         is smaller than the original promoted value.
23262         (simplify_subreg): If OP is a SUBREG, try to preserve its
23263         SUBREG_PROMOTED_VAR_P information.
23264
23265 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
23266
23267         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
23268         (VN_INFO_GET): Allocate new objects on the obstack.
23269         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
23270         for rpo_numbers_temp, for consistency.
23271         (free_scc_vn): Free the obstack.
23272
23273 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
23274
23275         * doc/invoke.texi: Document -ftree-loop-distribution.
23276         * tree-loop-distribution.c: New.
23277         * tree-pass.h (pass_loop_distribution): New.
23278         * graphds.h (struct graph): Add htab_t indices.
23279         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
23280         * tree-vectorizer.c (rename_variables_in_loop): Extern.
23281         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
23282         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
23283         * tree-data-ref.c (debug_data_dependence_relations): New.
23284         (dump_data_dependence_relation): Also print data references.
23285         (free_data_ref): Extern.
23286         (same_access_functions): Moved...
23287         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
23288         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
23289         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
23290         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
23291         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
23292         (stmts_from_loop): Skip LABEL_EXPR.
23293         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
23294         New.
23295         (build_rdg): Initialize rdg->indices htab.
23296         (free_rdg, stores_from_loop, ref_base_address,
23297         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
23298         have_similar_memory_accesses_1, ref_base_address_1,
23299         remove_similar_memory_refs): New.
23300         * tree-data-ref.h: Depend on tree-chrec.h.
23301         (debug_data_dependence_relations, free_data_ref): Declared.
23302         (same_access_functions): ... here.
23303         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
23304         New.
23305         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
23306         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
23307         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
23308         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
23309         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
23310         rdg_vertex_for_stmt): Declared.
23311         (struct rdg_edge): Add level.
23312         (RDGE_LEVEL): New.
23313         (free_rdg, stores_from_loop, remove_similar_memory_refs,
23314         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
23315         Declared.
23316         (rdg_has_similar_memory_accesses): New.
23317         * tree-vect-analyze.c: Remove unused static decls.
23318         * lambda.h (dependence_level): New.
23319         * common.opt (ftree-loop-distribution): New.
23320         * tree-flow.h (mark_virtual_ops_in_bb,
23321         slpeel_tree_duplicate_loop_to_edge_cfg,
23322         rename_variables_in_loop): Declared.
23323         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
23324         (OBJS-common): Add tree-loop-distribution.o.
23325         (tree-loop-distribution.o): New rule.
23326         * tree-cfg.c (mark_virtual_ops_in_bb): New.
23327         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
23328         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
23329
23330 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
23331
23332         PR target/33963
23333         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
23334         other than structures and unions.
23335
23336 2008-02-28  Richard Guenther  <rguenther@suse.de>
23337
23338         Revert:
23339         2008-02-26  Richard Guenther  <rguenther@suse.de>
23340
23341         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23342         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23343         (lookup_decl_from_uid): Declare.
23344         (remove_decl_from_map): Likewise.
23345         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23346         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23347         (decl_for_uid_map): New global hashtable mapping DECL_UID
23348         to the decl tree.
23349         (init_ttree): Allocate it.
23350         (insert_decl_to_uid_decl_map): New helper function.
23351         (make_node_stat): Insert new decls into the map.
23352         (copy_node_stat): Likewise.
23353         (lookup_decl_from_uid): New function.
23354         (remove_decl_from_map): Likewise.
23355         (print_decl_for_uid_map_statistics): New helper.
23356         (dump_tree_statistics): Call it.
23357
23358         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23359         (referenced_var_iterator): Adjust.
23360         (FOR_EACH_REFERENCED_VAR): Adjust.
23361         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23362         (num_referenced_vars): Adjust.
23363         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23364         (first_referenced_var): Remove.
23365         (end_referenced_vars_p): Likewise.
23366         (next_referenced_var): Likewise.
23367         (referenced_var_iterator_set): New helper function.
23368         * tree-dfa.c (referenced_var_lookup): Adjust.
23369         (referenced_var_check_and_insert): Likewise.
23370         (remove_referenced_var): Likewise.
23371         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23372         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23373         (verify_call_clobbering): Likewise.
23374         (verify_memory_partitions): Likewise.
23375         (init_tree_ssa): Allocate bitmap instead of hashtable for
23376         referenced_vars.
23377         (delete_tree_ssa): Adjust.
23378         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23379         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23380         (compute_tag_properties): Likewise.
23381         (set_initial_properties): Likewise.
23382         (find_partition_for): Likewise.
23383         (update_reference_counts): Likewise.
23384         (dump_may_aliases_for): Likewise.
23385         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23386         (add_call_clobber_ops): Likewise.
23387         (add_call_read_ops): Likewise.
23388         (get_asm_expr_operands): Likewise.
23389         * tree-into-ssa.c (dump_decl_set): Likewise.
23390         (update_ssa): Likewise.
23391         * tree-sra.c (scan_function): Likewise.
23392         (decide_instantiations): Likewise.
23393         (scalarize_parms): Likewise.
23394         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23395         (dsa_named_for): Likewise.
23396         * tree-ssa-structalias.c (update_alias_info): Likewise.
23397         (merge_smts_into): Likewise.
23398
23399 2008-02-27  David Daney  <ddaney@avtrex.com>
23400
23401         PR target/34409
23402         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
23403         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
23404         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
23405         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
23406         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
23407
23408 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
23409
23410         PR target/25477
23411         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
23412         (BUILT_IN_NEXTTOWARD): Remove.
23413         (BUILT_IN_NEXTTOWARDF): Ditto.
23414         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
23415         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
23416
23417 2008-02-27  Tom Tromey  <tromey@redhat.com>
23418
23419         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
23420         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
23421
23422 2008-02-27  Jan Beulich  <jbeulich@novell.com>
23423
23424         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
23425         update the respective field on newdecl.
23426
23427 2008-02-27  Revital Eres  <eres@il.ibm.com>
23428
23429         PR rtl-optimization/34999
23430         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
23431         crossing edges that ends with a call insn.
23432         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
23433         call insn and clear the EDGE_CROSSING flag of the crossing edge
23434         when fixing fallthru edges.
23435
23436 2008-02-27  Richard Guenther  <rguenther@suse.de>
23437
23438         PR middle-end/35390
23439         * fold-const.c (fold_unary): Return the correct argument,
23440         converted to the result type.
23441
23442 2008-02-27  Richard Guenther  <rguenther@suse.de>
23443
23444         PR middle-end/34971
23445         * expr.c (expand_expr_real_1): Assert on rotates that operate
23446         on partial modes.
23447         * fold-const.c (fold_binary): Use the types precision, not the
23448         bitsize of the mode if folding rotate expressions.  Build rotates
23449         only for full modes.
23450
23451 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
23452
23453         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
23454         and CPP_PRAGMA_EOL.
23455         * c-pragma.c (pragma_ns_name): New typedef.
23456         (registered_pp_pragmas): New variable.
23457         (c_pp_lookup_pragma): New function.
23458         (c_register_pragma_1): If flag_preprocess_only, do nothing
23459         for non-expanded pragmas, for expanded ones push pragma's
23460         namespace and name into registered_pp_pragmas vector.
23461         (c_invoke_pragma_handler): Register OpenMP pragmas even when
23462         flag_preprocess_only, don't register GCC pch_preprocess
23463         pragma if flag_preprocess_only.
23464         * c-opts.c (c_common_init): Call init_pragma even if
23465         flag_preprocess_only.
23466         * c-pragma.c (c_pp_lookup_pragma): New prototype.
23467         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
23468         cpp_register_pragma if flag_preprocess_only.
23469
23470 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23471
23472         PR c/28800
23473         * c-parser.c (c_parser_translation_unit): Warn for empty
23474         translation unit, not empty source file.
23475
23476 2008-02-26  Paul Brook  <paul@codesourcery.com>
23477
23478         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
23479         operand for Thumb-2.
23480         * config/arm/arm.h (reg_class): Add CORE_REGS.
23481         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
23482         (BASE_REG_CLASS): Use CORE_REGS.
23483         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
23484         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
23485         (REGNO_OK_FOR_INDEX_P): Exclude SP.
23486         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
23487         ARM_REGNO_OK_FOR_INDEX_P.
23488         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
23489         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
23490         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
23491         (ldm/stm peepholes): Ditto.
23492         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
23493         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
23494         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
23495         * config/arm/constraints.md: Enable "k" constraint on ARM.
23496
23497 2008-02-27  Ben Elliston  <bje@au.ibm.com>
23498
23499         * config/rs6000/rs6000.c: Annotate cache line size field in all
23500         instances of struct processor_costs.
23501
23502 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
23503
23504         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
23505         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
23506         jump_bypass): New counters.
23507         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
23508         * dce.c (gate_ud_dce): Same.
23509         (gate_fast_dce): Same.
23510         * dse.c (gate_dse1): New function.
23511         (gate_dse2): New function.
23512         (gate_dse): Merge results of new gate functions.
23513         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
23514         (gate_handle_jump_bypass): Add dbg_cnt.
23515         (gate_handle_gcse): Add dbg_cnt.
23516         * ifcvt.c (gate_handle_if_conversion): Same.
23517         (gate_handle_if_after_combine): Same.
23518         (gate_handle_if_after_reload): Same.
23519         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
23520
23521 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
23522
23523         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
23524         line sizes.
23525         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
23526
23527 2008-02-26  Jason Merrill  <jason@redhat.com>
23528
23529         PR c++/35315
23530         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
23531         alone if it's the naming decl for the type's main variant.
23532
23533 2008-02-26  Tom Tromey  <tromey@redhat.com>
23534
23535         * system.h (USE_MAPPED_LOCATION): Poison.
23536         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
23537         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
23538         (make_goto_expr_edges): Likewise.
23539         (remove_bb): Likewise.
23540         (execute_warn_function_return): Likewise.
23541         * basic-block.h (struct edge_def) <goto_locus>: Change type to
23542         location_t.
23543         * c-common.c (fname_decl): Remove old location code.
23544         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
23545         location code.
23546         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
23547         variant.
23548         (ASM_INPUT_SOURCE_LOCATION): Likewise.
23549         (gen_rtx_ASM_INPUT): Likewise.
23550         (gen_rtx_ASM_INPUT_loc): Likewise.
23551         (get_rtx_asm_OPERANDS): Remove.
23552         * cfglayout.c (insn_locators_alloc): Remove old location code.
23553         (set_curr_insn_source_location): Likewise.
23554         (curr_insn_locator): Likewise.
23555         * print-tree.c (print_node): Remove old location code.
23556         * tree-mudflap.c (mf_varname_tree): Remove old location code.
23557         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
23558         * cfgexpand.c (expand_gimple_cond_expr): Don't use
23559         location_from_locus.
23560         (construct_exit_block): Remove old location code.
23561         * emit-rtl.c (force_next_line_note): Remove old location code.
23562         * profile.c (branch_prob): Remove old location code.
23563         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
23564         LOC_LINE): Remove old-location variants.
23565         * langhooks.c (lhd_print_error_function): Remove old location
23566         code.
23567         * configure, config.in: Rebuilt.
23568         * configure.ac (--enable-mapped-location): Remove.
23569         * c-decl.c (c_init_decl_processing): Remove old location code.
23570         (finish_function): Likewise.
23571         * recog.c (decode_asm_operands): Remove old location code.
23572         * c-pch.c (c_common_read_pch): Remove old location code.
23573         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
23574         variants.
23575         * gimple-low.c (lower_function_body): Remove old location code.
23576         * toplev.c (unknown_location): Remove.
23577         (push_srcloc): Remove old-location variant.
23578         (process_options): Remove old location code.
23579         (lang_dependent_init): Likewise.
23580         * input.h (UNKNOWN_LOCATION): Move definition.
23581         (location_t): Undeprecate.
23582         (source_locus): Remove.
23583         (location_from_locus): Remove.
23584         (struct location_s): Remove.
23585         Remove all old-location code.
23586         (input_line, input_filename): Remove.
23587         * final.c (final_scan_insn): Remove old location code.
23588         * diagnostic.c (diagnostic_build_prefix): Remove
23589         USE_MAPPED_LOCATION test.
23590         * tree.h (gimple_stmt) <locus>: Now a location_t.
23591         (tree_exp) <locus>: Likewise.
23592         (DECL_IS_BUILTIN): Remove old-location variant.
23593         (annotate_with_file_line, annotate_with_locus): Likewise.
23594         (expr_locus, set_expr_locus): Update.
23595         * tree.c (build1_stat): Remove old location code.
23596         (last_annotated_node): Remove.
23597         (annotate_with_file_line): Remove old-location variant.
23598         (annotate_with_locus): Likewise.
23599         (expr_location): Remove old location code.
23600         (set_expr_location): Likewise.
23601         (expr_has_location): Likewise.
23602         (expr_locus): Likewise.
23603         (set_expr_locus): Likewise.
23604         (expr_filename): Don't use location_from_locus.
23605         (expr_lineno): Likewise.
23606         * rtl-error.c (location_for_asm): Remove old location code.
23607         * c-lex.c (cb_line_change): Remove old location code.
23608         (fe_file_change): Likewise.
23609         (cb_def_pragma): Likewise.
23610         (c_lex_with_flags): Likewise.
23611         * gengtype.c (do_typedef): Don't special-case location types.
23612         (define_location_structures): Remove.
23613         (main): Don't call define_location_structures.
23614         * tree-pretty-print.c (dump_implicit_edges): Remove old location
23615         code.
23616
23617 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23618
23619         PR 26264
23620         * builtins.def (BUILT_IN_STDARG_START): Remove.
23621         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
23622         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
23623         * tree-inline.c (inline_forbidden_p_1): Likewise.
23624
23625 2008-02-26  Richard Guenther  <rguenther@suse.de>
23626
23627         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23628         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23629         (lookup_decl_from_uid): Declare.
23630         (remove_decl_from_map): Likewise.
23631         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23632         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23633         (decl_for_uid_map): New global hashtable mapping DECL_UID
23634         to the decl tree.
23635         (init_ttree): Allocate it.
23636         (insert_decl_to_uid_decl_map): New helper function.
23637         (make_node_stat): Insert new decls into the map.
23638         (copy_node_stat): Likewise.
23639         (lookup_decl_from_uid): New function.
23640         (remove_decl_from_map): Likewise.
23641         (print_decl_for_uid_map_statistics): New helper.
23642         (dump_tree_statistics): Call it.
23643
23644         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23645         (referenced_var_iterator): Adjust.
23646         (FOR_EACH_REFERENCED_VAR): Adjust.
23647         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23648         (num_referenced_vars): Adjust.
23649         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23650         (first_referenced_var): Remove.
23651         (end_referenced_vars_p): Likewise.
23652         (next_referenced_var): Likewise.
23653         (referenced_var_iterator_set): New helper function.
23654         * tree-dfa.c (referenced_var_lookup): Adjust.
23655         (referenced_var_check_and_insert): Likewise.
23656         (remove_referenced_var): Likewise.
23657         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23658         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23659         (verify_call_clobbering): Likewise.
23660         (verify_memory_partitions): Likewise.
23661         (init_tree_ssa): Allocate bitmap instead of hashtable for
23662         referenced_vars.
23663         (delete_tree_ssa): Adjust.
23664         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23665         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23666         (compute_tag_properties): Likewise.
23667         (set_initial_properties): Likewise.
23668         (find_partition_for): Likewise.
23669         (update_reference_counts): Likewise.
23670         (dump_may_aliases_for): Likewise.
23671         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23672         (add_call_clobber_ops): Likewise.
23673         (add_call_read_ops): Likewise.
23674         (get_asm_expr_operands): Likewise.
23675         * tree-into-ssa.c (dump_decl_set): Likewise.
23676         (update_ssa): Likewise.
23677         * tree-sra.c (scan_function): Likewise.
23678         (decide_instantiations): Likewise.
23679         (scalarize_parms): Likewise.
23680         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23681         (dsa_named_for): Likewise.
23682         * tree-ssa-structalias.c (update_alias_info): Likewise.
23683         (merge_smts_into): Likewise.
23684
23685 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23686
23687         PR 34351
23688         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
23689         * c-opts.c (c_common_handle_option): Wall enables
23690         Wvolatile-register-var.
23691         * common.opt: Move Wvolatile-register-var to...
23692         * c.opt: ...here.
23693
23694 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23695
23696         * common.opt (Wlarger-than=): New.
23697         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
23698         -Wlarger-than=.
23699         * opts.c (common_handle_option): Handle -Wlarger-than=.
23700         * optc-gen.awk: Likewise.
23701         * opth-gen.awk: Likewise.
23702         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
23703         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23704
23705 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23706
23707         * c-common.c (match_case_to_enum_1): Add appropriate
23708         OPT_W* parameter to warning.
23709         (c_do_switch_warnings): Likewise.
23710         * c-typeck.c (warning_init): Add one more parameter following
23711         'warning' function.
23712         (push_init_level): Update call to warning_init.
23713         (pop_init_level): Likewise.
23714         (add_pending_init): Likewise.
23715         (output_init_element: Likewise.
23716
23717 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23718
23719         PR 28322
23720         * toplev.c (toplev_main): If there are warnings or error, print
23721         errors for ignored options.
23722         * opts.c (ignored_options): New static variable.
23723         (postpone_unknown_option_error): New.
23724         (print_ignored_options): New.
23725         (handle_option): Postpone errors for unknown -Wno-* options.
23726         * opts.h (print_ignored_options): Declare.
23727
23728 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
23729
23730         * config/mips/mips.md (loadgp_blockage, blockage): Change type
23731         to "ghost".
23732
23733 2008-02-25  Richard Guenther  <rguenther@suse.de>
23734
23735         Revert:
23736         2008-02-25  Richard Guenther  <rguenther@suse.de>
23737
23738         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23739         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23740         (lookup_decl_from_uid): Declare.
23741         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23742         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23743         (decl_for_uid_map): New global hashtable mapping DECL_UID
23744         to the decl tree.
23745         (init_ttree): Allocate it.
23746         (insert_decl_to_uid_decl_map): New helper function.
23747         (make_node_stat): Insert new decls into the map.
23748         (copy_node_stat): Likewise.
23749         (lookup_decl_from_uid): New function.
23750         (print_decl_for_uid_map_statistics): New helper.
23751         (dump_tree_statistics): Call it.
23752
23753         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23754         (referenced_var_iterator): Adjust.
23755         (FOR_EACH_REFERENCED_VAR): Adjust.
23756         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23757         (num_referenced_vars): Adjust.
23758         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23759         (first_referenced_var): Remove.
23760         (end_referenced_vars_p): Likewise.
23761         (next_referenced_var): Likewise.
23762         (referenced_var_iterator_set): New helper function.
23763         * tree-dfa.c (referenced_var_lookup): Adjust.
23764         (referenced_var_check_and_insert): Likewise.
23765         (remove_referenced_var): Likewise.
23766         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23767         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23768         (verify_call_clobbering): Likewise.
23769         (verify_memory_partitions): Likewise.
23770         (init_tree_ssa): Allocate bitmap instead of hashtable for
23771         referenced_vars.
23772         (delete_tree_ssa): Adjust.
23773         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23774         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23775         (compute_tag_properties): Likewise.
23776         (set_initial_properties): Likewise.
23777         (find_partition_for): Likewise.
23778         (update_reference_counts): Likewise.
23779         (dump_may_aliases_for): Likewise.
23780         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23781         (add_call_clobber_ops): Likewise.
23782         (add_call_read_ops): Likewise.
23783         (get_asm_expr_operands): Likewise.
23784         * tree-into-ssa.c (dump_decl_set): Likewise.
23785         (update_ssa): Likewise.
23786         * tree-sra.c (scan_function): Likewise.
23787         (decide_instantiations): Likewise.
23788         (scalarize_parms): Likewise.
23789         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23790         (dsa_named_for): Likewise.
23791         * tree-ssa-structalias.c (update_alias_info): Likewise.
23792         (merge_smts_into): Likewise.
23793
23794 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
23795
23796         PR fortran/29549
23797         * doc/invoke.texi (-fcx-limited-range): Document new option.
23798         * toplev.c (process_options): Handle -fcx-fortran-rules.
23799         * common.opt: Add documentation for -fcx-fortran-rules.
23800
23801 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
23802
23803         PR c/35162
23804         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
23805         actual behaviour and C99.
23806
23807 2008-02-26  Ben Elliston  <bje@au.ibm.com>
23808
23809         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
23810         (ASM_CPU_POWER6_SPEC): Likewise.
23811         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
23812         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
23813         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
23814
23815 2008-02-25  Richard Guenther  <rguenther@suse.de>
23816
23817         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23818         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23819         (lookup_decl_from_uid): Declare.
23820         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23821         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23822         (decl_for_uid_map): New global hashtable mapping DECL_UID
23823         to the decl tree.
23824         (init_ttree): Allocate it.
23825         (insert_decl_to_uid_decl_map): New helper function.
23826         (make_node_stat): Insert new decls into the map.
23827         (copy_node_stat): Likewise.
23828         (lookup_decl_from_uid): New function.
23829         (print_decl_for_uid_map_statistics): New helper.
23830         (dump_tree_statistics): Call it.
23831
23832         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23833         (referenced_var_iterator): Adjust.
23834         (FOR_EACH_REFERENCED_VAR): Adjust.
23835         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23836         (num_referenced_vars): Adjust.
23837         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23838         (first_referenced_var): Remove.
23839         (end_referenced_vars_p): Likewise.
23840         (next_referenced_var): Likewise.
23841         (referenced_var_iterator_set): New helper function.
23842         * tree-dfa.c (referenced_var_lookup): Adjust.
23843         (referenced_var_check_and_insert): Likewise.
23844         (remove_referenced_var): Likewise.
23845         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23846         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23847         (verify_call_clobbering): Likewise.
23848         (verify_memory_partitions): Likewise.
23849         (init_tree_ssa): Allocate bitmap instead of hashtable for
23850         referenced_vars.
23851         (delete_tree_ssa): Adjust.
23852         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23853         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23854         (compute_tag_properties): Likewise.
23855         (set_initial_properties): Likewise.
23856         (find_partition_for): Likewise.
23857         (update_reference_counts): Likewise.
23858         (dump_may_aliases_for): Likewise.
23859         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23860         (add_call_clobber_ops): Likewise.
23861         (add_call_read_ops): Likewise.
23862         (get_asm_expr_operands): Likewise.
23863         * tree-into-ssa.c (dump_decl_set): Likewise.
23864         (update_ssa): Likewise.
23865         * tree-sra.c (scan_function): Likewise.
23866         (decide_instantiations): Likewise.
23867         (scalarize_parms): Likewise.
23868         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23869         (dsa_named_for): Likewise.
23870         * tree-ssa-structalias.c (update_alias_info): Likewise.
23871         (merge_smts_into): Likewise.
23872
23873 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
23874
23875         PR target/35258
23876         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
23877         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
23878         * alias.h (nonoverlapping_memrefs_p): Likewise.
23879
23880 2008-02-25  Jan Beulich  <jbeulich@novell.com>
23881
23882         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
23883         * config/i386/netware-libgcc.exp: Add __bswap?i2,
23884         __emultls_get_address, __emultls_register_common,
23885         __floatundi?f, and _Unwind_GetIPInfo.
23886         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
23887         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
23888         (gen_regparm_prefix): Likewise.
23889         (i386_nlm_encode_section_info): Sync with
23890         config/i386/winnt.c:i386_pe_encode_section_info().
23891         (i386_nlm_maybe_mangle_decl_assembler_name): New.
23892         i386_nlm_mangle_decl_assembler_name): New.
23893         (netware_override_options): New.
23894         * config/i386/netware.h (netware_override_options): Declare.
23895         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
23896         (i386_nlm_mangle_decl_assembler_name): Declare.
23897         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
23898
23899 2008-02-25  Ben Elliston  <bje@au.ibm.com>
23900
23901         PR other/32948
23902         * c-decl.c (grokdeclarator): Remove unused local variables
23903         `typedef_type' and `type_as_written'.
23904         * bb-reorder.c
23905         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
23906         unused local variable `has_hot_blocks'.
23907         (fix_crossing_conditional_branches): Remove unused local variable
23908         `prev_bb'.
23909
23910 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
23911
23912         PR middle-end/19984
23913         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
23914         using DEF_C99_BUILTIN.
23915         (BUILT_IN_NANF): Ditto.
23916         (BUILT_IN_NANL): Ditto.
23917
23918 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
23919             Revital Eres  <eres@il.ibm.com>
23920
23921         * modulo-sched.c (calculate_must_precede_follow): Address TODO
23922         regarding the order of two dependent insns in the same row.
23923
23924 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23925
23926         * stor-layout.c (layout_decl): Do not bump the alignment of a
23927         bit-field to more than byte alignment if it is packed.
23928
23929 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
23930
23931         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
23932         e300c2 and e300c3.
23933
23934 2008-02-24  Diego Novillo  <dnovillo@google.com>
23935
23936         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
23937
23938         PR 33738
23939         * tree-vrp.c (vrp_evaluate_conditional): With
23940         -Wtype-limits, emit a warning when comparing against a
23941         constant outside the natural range of OP0's type.
23942         * c.opt (Wtype-limits): Move ...
23943         * common.opt (Wtype-limits): ... here.
23944
23945 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
23946
23947         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
23948         * config/rs6000/e300c2c3.md: New file.
23949         * config/rs6000/rs6000.c (processor_costs): Add new costs for
23950         e300c2 and e300c3.
23951         (rs6000_override_options): Add e300c2 and e300c3 cases to
23952         processor_target_table. Do not allow usage of Altivec or Spe
23953         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
23954         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
23955         * config/rs6000/rs6000.h (processor_type): Add
23956         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
23957         (ASM_CPU_SPEC): Add e300c2 and e300c3.
23958         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
23959         and ppce300c3. Include e300c2c3.md.
23960
23961 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
23962
23963         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
23964         instead of TARGET_STRICT_ALIGN.
23965
23966 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
23967
23968         * explow.c (memory_address): Assert that the generated address is
23969         valid.
23970
23971 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
23972
23973         PR target/25477
23974         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
23975         * config/darwin-ppc-ldouble-patch.def: New file.
23976         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
23977         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
23978         SUBTARGET_INIT_BUILTINS if defined.
23979         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
23980         New functions.
23981
23982 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23983
23984         PR rtl-opt/33512
23985         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
23986         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
23987
23988 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23989
23990         PR pch/35027
23991         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
23992         file" warning condtional on -Winvalid-PCH.
23993
23994 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
23995
23996         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
23997
23998 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
23999
24000         PR target/22076
24001         PR target/34256
24002         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
24003         prevent reload from using MMX registers.
24004         (*mov<mode>_internal): Ditto.
24005         (*movv2sf_internal_rex64): Ditto.
24006         (*movv2sf_internal): Ditto.
24007
24008 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24009
24010         PR documentation/31569
24011         * doc/install.texi2html: Use makeinfo --no-number-sections.
24012
24013 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
24014
24015         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
24016         ensure that we can address an entire entity > 8 bytes.  Don't
24017         generate reg+reg addressing for such data.
24018
24019 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
24020
24021         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
24022         strings when optimizing for size, unless the target cares about
24023         alignment.
24024
24025 2008-02-22  Tom Tromey  <tromey@redhat.com>
24026
24027         * regclass.c (current_pass): Remove declaration.
24028
24029 2008-02-22  Anatoly Sokolov <aesok@post.ru>
24030
24031         * config/avr/libgcc.S (__RAMPZ__): Define.
24032         (__do_copy_data): Add for devices with 128KB code memory.
24033
24034 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
24035
24036         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
24037         Use spe_abi.
24038         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
24039
24040 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
24041
24042         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
24043         GENNONACR_REGS.
24044
24045 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24046
24047         PR c/19999
24048         * c-typeck.c (build_binary_op): Warn about floating point
24049         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
24050
24051 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
24052
24053         PR target/34526
24054         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
24055         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
24056         add vrsave.
24057         (rs6000_override_options): Set altivec_abi as default, not override,
24058         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
24059         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
24060         is used; use new member spe_abi.
24061         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
24062         spe_abi and altivec_abi.
24063
24064 2008-02-22  Tomas Bily  <tbily@suse.cz>
24065
24066         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
24067
24068 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24069
24070         PR bootstrap/35273
24071         * config.build (build_file_translate): Set to `CMD //c' only if
24072         it works.
24073         * Makefile.in (build_file_translate): Improve comment.
24074
24075 2008-02-21  Jan Hubicka  <jh@suse.cz>
24076
24077         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
24078         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
24079         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
24080
24081 2008-02-21  Michael Matz  <matz@suse.de>
24082
24083         PR target/35264
24084         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
24085
24086 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
24087
24088         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
24089         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
24090         as insn constraint.
24091         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
24092         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
24093         SSE_VEC_FLOAT_MODE_P as insn constraint.
24094         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
24095         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
24096         sse4a_movntdf using MODEF mode iterator.
24097         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
24098         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
24099         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
24100         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
24101         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
24102         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
24103         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
24104
24105 2008-02-21  Richard Guenther  <rguenther@suse.de>
24106
24107         * tree.def (PAREN_EXPR): New tree code.
24108         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
24109         and PAREN_EXPR.
24110         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
24111         * expr.c (expand_expr_real_1): Likewise.
24112         * tree-inline.c (estimate_num_insns_1): Likewise.
24113         * tree-complex.c (expand_complex_move): Likewise.
24114         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
24115         as plain x.
24116
24117 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24118
24119         PR target/35225
24120         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
24121
24122 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24123
24124         PR target/35190
24125         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
24126
24127         * config/sh/sh.c (find_barrier): Don't go past
24128         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
24129
24130 2008-02-20  DJ Delorie  <dj@redhat.com>
24131
24132         * config/h8300/h8300.md (insv): Force source operand to be a register.
24133
24134         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
24135         as a jump, not as a plain insn.
24136
24137 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
24138
24139         * doc/invoke.texi (Warning Options): Add new option
24140         -Wframe-larger-than=.
24141         (-Wframe-larger-than): Document.
24142
24143         * flags.h (warn_frame_larger_than, frame_larger_than_size):
24144         Add declarations for new option variables.
24145
24146         * final.c (final_start_function): Check the frame size
24147         before emission and issue a Wframe-larger-than warning.
24148
24149         * opts.c (warn_frame_larger_than, frame_larger_than_size):
24150         Add definitions for new option variables.
24151         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
24152
24153         * common.opt (Wframe-larger-than=): New option.
24154
24155 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
24156
24157         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
24158         (<sse>_div<mode>3): Ditto.
24159         (<sse>_vmdiv<mode>3): Ditto.
24160         (<sse>_vmsqrt<mode>2): Ditto.
24161         (*smax<mode>3): Ditto.
24162         (sse5_frcz<mode>2): Ditto.
24163         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
24164         as insn constraint.
24165
24166 2008-02-20  Richard Guenther  <rguenther@suse.de>
24167
24168         PR middle-end/35265
24169         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
24170         be happy with INTEGRAL_TYPE_P.
24171
24172 2008-02-20  Richard Guenther  <rguenther@suse.de>
24173
24174         * fold-const.c (split_tree): Associate floatig-point expressions
24175         if flag_associative_math is set.
24176
24177 2008-02-20  Richard Guenther  <rguenther@suse.de>
24178
24179         * tree.h (fold_real_zero_addition_p): Declare.
24180         * fold-const.c (fold_real_zero_addition_p): Export.
24181         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
24182         floating-point operations with zero and one.
24183
24184 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
24185
24186         * doc/install.texi: Correct references to CFLAGS, replacing them
24187         with BOOT_CFLAGS.  Document flags used during bootstrap for
24188         target libraries.
24189
24190 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
24191
24192         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
24193         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
24194         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
24195         insn constraint.
24196         (smin<mode>3): Ditto from similar patterns.
24197         (smax<mode>3): Ditto.
24198         (*ieee_smin<mode>3): Ditto.
24199         (*ieee_smax<mode>3): Ditto.
24200         * config/i386/sse.md (sse): New mode attribute.
24201         (mov<mode>): Macroize expander from movv4sf and movv2df using
24202         SSEMODEF2P mode iterator.
24203         (<sse>_movnt<mode>): Ditto from similar patterns. Use
24204         SSE_VEC_FLOAT_MODE_P as insn constraint.
24205         (storent<mode>): Ditto.
24206         (storent<mode>): Macroize expander from storentsf and storentdf using
24207         MODEF mode iterator.
24208         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
24209         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
24210         (abs<mode>2): Ditto from similar patterns.
24211         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
24212         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
24213         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
24214         (<sse>_vmsqrt<mode>2): Ditto.
24215         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
24216         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
24217         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
24218         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
24219         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
24220         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
24221         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
24222         insn constraint.
24223         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
24224         iterator and SSE_FLOAT_MODE_P as insn constraint.
24225         (<sse>_ucomi): Ditto from similar patterns.
24226         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
24227         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
24228         SSE_VEC_FLOAT_MODE_P as insn constraint.
24229         (vcond<mode>): Ditto from similar patterns.
24230         (and<mode>3, *and<mode>3): Ditto.
24231         (<sse>_nand<mode>3): Ditto.
24232         (ior<mode>3, *ior<mode>3): Ditto.
24233         (xor<mode>3, *xor<mode>3): Ditto.
24234         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
24235         iterator and SSE_FLOAT_MODE_P as insn constraint.
24236         (*nand<mode>3): Ditto from similar patterns.
24237         (*ior<mode>3): Ditto.
24238         (*xor<mode>3): Ditto.
24239
24240 2008-02-20  Ira Rosen  <irar@il.ibm.com>
24241
24242         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
24243         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
24244         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
24245
24246 2008-02-19  Jan Hubicka  <jh@suse.cz>
24247
24248         * predict.c (tree_bb_level_predictions): Remove variable next
24249         mistakely introduced by previous commit.
24250
24251 2008-02-19  Jan Hubicka  <jh@suse.cz>
24252
24253         * predict.c (predict_paths_leading_to): Rewrite.
24254         (predict_paths_for_bb): New.
24255         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
24256
24257 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24258
24259         PR bootstrap/35218
24260         * Makefile.in (build_file_translate): New.
24261         (gcc-vers.texi): Use it for translating $(abs_srcdir).
24262         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
24263         * configure.ac (build_file_translate): Substitute it.
24264         * configure: Regenerate.
24265
24266 2008-02-19  Jan Hubicka  <jh@suse.cz>
24267
24268         PR rtl-optimization/34408
24269         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
24270         invalid sharing.
24271
24272 2008-02-19  Jan Hubicka  <jh@suse.cz>
24273
24274         PR middle-end/28779
24275         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
24276         call_expr.
24277
24278 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
24279
24280         PR Ada/35186
24281         * config/i386/i386-modes.def: Revert the last DI alignment
24282         change until Ada people can look into it.
24283
24284 2008-02-19  Nick Clifton  <nickc@redhat.com>
24285
24286         * opts.c (print_specific_help): Fix typo in --help text.
24287
24288 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
24289
24290         PR target/35239
24291         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
24292         32-bit inline asm without asm alternatives for host GCC < 3.0.
24293
24294 2008-02-19  Richard Guenther  <rguenther@suse.de>
24295
24296         PR tree-optimization/34989
24297         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
24298         Allow propagation to INDIRECT_REF if we can simplify only.
24299
24300 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24301
24302         * c-common.c (warn_for_collisions_1): Use appropriate option when
24303         warning.
24304
24305 2008-02-19  Nick Clifton  <nickc@redhat.com>
24306
24307         PR other/31349
24308         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
24309         (handle_options): Fix indentation.
24310         (print_filtered_help): If no language-specific options were
24311         displayed tell the user how to list all the options supported by
24312         the language's front-end.
24313         (print_specific_help): Fix indentation and remove duplicate line.
24314         (common_handle_option): Handle the -v option.
24315         For --help enable the display of undocumented options if the -v
24316         switch has been included on the command line.
24317         For --help= check for overlaps in the arguments between the option
24318         classes and the language names and issue a warning when they
24319         cannot be disambiguated.
24320         * c.opt (v): Pass on to the common option handler.
24321
24322 2008-02-19  Revital Eres  <eres@il.ibm.com>
24323
24324         * modulo-sched.c (sms_schedule): Change dump message when
24325         create_ddg function fails.
24326         (try_scheduling_node_in_cycle): Rename row to cycle.
24327         (print_partial_schedule): Rename CYCLE to ROW.
24328
24329 2008-02-19  Christian Bruel  <christian.bruel@st.com>
24330             Zdenek Dvorak  <ook@ucw.cz>
24331
24332         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
24333
24334 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
24335
24336         PR target/33555
24337         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
24338         (*x86_movdicc_0_m1_se): Ditto.
24339
24340 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
24341
24342         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
24343         (CMPtype): Define as __gcc_CMPtype.
24344         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
24345         (CMPtype): Define as __gcc_CMPtype.
24346
24347 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
24348
24349         Support valgrind 3.3 for --enable-checking=valgrind.
24350         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
24351         here.
24352         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
24353         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
24354         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
24355         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
24356         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
24357         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
24358         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
24359         respectively.
24360         * ggc-zone.c: Similar.
24361         * ggc-page.c: Similar.
24362
24363 2008-02-19  Paul Brook  <paul@codesourcery.com>
24364
24365         PR target/35071
24366         * config/arm/ieee754-df.S: Fix do_it typo.
24367         * config/arm/ieee754-sf.S: Fix do_it typo.
24368
24369 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
24370
24371         PR target/35189
24372         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
24373         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
24374         (OPTION_MASK_ISA_SSE_SET): Likewise.
24375         (OPTION_MASK_ISA_SSE2_SET): Likewise.
24376         (OPTION_MASK_ISA_SSE3_SET): Likewise.
24377         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
24378         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
24379         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
24380         (OPTION_MASK_ISA_SSE4_SET): Likewise.
24381         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
24382         (OPTION_MASK_ISA_SSE5_SET): Likewise.
24383         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
24384         (OPTION_MASK_ISA_MMX_UNSET): Updated.
24385         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
24386         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
24387         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
24388         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
24389         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
24390         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
24391         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
24392         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
24393         (OPTION_MASK_ISA_SSE4): Removed.
24394         (ix86_handle_option): Turn on bits in ix86_isa_flags and
24395         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
24396         (override_options): Don't turn on implied SSE/MMX bits in
24397         ix86_isa_flags.
24398
24399 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
24400
24401         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24402         32bit host.
24403
24404 2008-02-18  Joey Ye  <joey.ye@intel.com>
24405
24406         PR middle-end/34921
24407         * tree-nested.c (insert_field_into_struct): Set type alignment
24408         to field alignment if the former is less than the latter.
24409
24410 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
24411
24412         * BASE-VER: Set to 4.4.0.
24413
24414 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24415
24416         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
24417         * doc/cfg.texi: Likewise.
24418         * doc/extend.texi: Likewise.
24419         * doc/gty.texi: Likewise.
24420         * doc/invoke.texi: Likewise.
24421         * doc/loop.texi: Likewise.
24422         * doc/md.texi: Likewise.
24423         * doc/passes.texi: Likewise.
24424         * doc/rtl.texi: Likewise.
24425         * doc/sourcebuild.texi: Likewise.
24426         * doc/tm.texi: Likewise.
24427         * doc/tree-ssa.texi: Likewise.
24428
24429 2008-02-17  Richard Guenther  <rguenther@suse.de>
24430
24431         PR middle-end/35227
24432         * tree-complex.c (init_parameter_lattice_values): Handle parameters
24433         without default definition.
24434
24435 2008-02-17  Richard Guenther  <rguenther@suse.de>
24436
24437         PR tree-optimization/35231
24438         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
24439         if A | B != 1.
24440
24441 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
24442
24443         Revert:
24444         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24445         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
24446         libgcc_cmp_return mode.
24447
24448 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24449
24450         PR c/28368
24451         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
24452
24453 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
24454
24455         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
24456         multilibs.
24457
24458 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24459
24460         * doc/c-tree.texi: Use `@.' where appropriate.
24461         * doc/extend.texi: Likewise.
24462         * doc/install.texi: Likewise.
24463         * doc/invoke.texi: Likewise.
24464         * doc/loop.texi: Likewise.
24465         * doc/makefile.texi: Likewise.
24466         * doc/md.texi: Likewise.
24467         * doc/passes.texi: Likewise.
24468         * doc/standards.texi: Likewise.
24469         * doc/tm.texi: Likewise.
24470
24471 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
24472
24473         PR middle-end/35196
24474         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
24475         in entry_bb.
24476         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
24477         rather than in entry_bb.
24478
24479 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24480
24481         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
24482         libgcc_cmp_return mode.
24483
24484 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
24485
24486         PR middle-end/35130
24487         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
24488         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
24489
24490 2008-02-15  Richard Guenther  <rguenther@suse.de>
24491             Zdenek Dvorak  <ook@ucw.cz>
24492
24493         PR tree-optimization/35164
24494         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
24495         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
24496         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24497         Only propagate addresses which do not have abnormal SSA_NAMEs
24498         in their operands.
24499
24500 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
24501
24502         PR target/35088
24503         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
24504
24505 2008-02-15  Jan Hubicka  <jh@suse.cz>
24506
24507         PR middle-end/35149
24508         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
24509
24510 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24511
24512         PR middle-end/34621
24513         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
24514         when calculating alignment_pad.
24515
24516 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24517
24518         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
24519         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
24520         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
24521         and STACK_BOUNDARY define.
24522
24523 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
24524
24525         PR preprocessor/35061
24526         * c-pragma.c (handle_pragma_pop_macro): Check that
24527         pushed_macro_table has been allocated.
24528
24529 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24530
24531         PR middle-end/35136
24532         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
24533         (force_gimple_operand): Likewise.
24534         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
24535         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
24536         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
24537         (find_interesting_uses_address): Check addressability and alignment
24538         of the base expression only after substituting bases of IVs into it.
24539
24540 2008-02-14  Michael Matz  <matz@suse.de>
24541
24542         PR target/34930
24543         * function.c (instantiate_virtual_regs_in_insn): Reload address
24544         before falling back to reloading the whole operand.
24545
24546 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
24547
24548         * config/s390/s390.c (s390_mainpool_start): Emit the pool
24549         before the first section switch note.
24550
24551 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24552
24553         * doc/bugreport.texi: Update copyright years.
24554         * doc/c-tree.texi: Likewise.
24555         * doc/cfg.texi: Likewise.
24556         * doc/cpp.texi: Likewise.
24557         * doc/cppinternals.texi: Likewise.
24558         * doc/fragments.texi: Likewise.
24559         * doc/frontends.texi: Likewise.
24560         * doc/gcc.texi: Likewise.
24561         * doc/gty.texi: Likewise.
24562         * doc/hostconfig.texi: Likewise.
24563         * doc/implement-c.texi: Likewise.
24564         * doc/libgcc.texi: Likewise.
24565         * doc/loop.texi: Likewise.
24566         * doc/makefile.texi: Likewise.
24567         * doc/options.texi: Likewise.
24568         * doc/passes.texi: Likewise.
24569         * doc/rtl.texi: Likewise.
24570         * doc/sourcebuild.texi: Likewise.
24571         * doc/standards.texi: Likewise.
24572         * doc/tree-ssa.texi: Likewise.
24573         * doc/trouble.texi: Likewise.
24574
24575         * doc/extend.texi: Use @: or add comma where appropriate.
24576         * doc/invoke.texi: Likewise.
24577         * doc/tm.texi: Likewise.
24578
24579 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
24580
24581         PR target/34393
24582         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
24583         to a reg.
24584
24585 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
24586
24587         * doc/md.texi (clz, ctz): Add reference.
24588         * doc/rtl.texi (clz, ctz): Likewise.
24589
24590 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24591
24592         PR other/35148
24593         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
24594         srcdir.
24595
24596 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
24597
24598         * config/s390/s390.c (struct constant_pool): New field
24599         emit_pool_after added.
24600         (s390_mainpool_start): Set the emit_pool_after flag according
24601         to the section switch notes.
24602         (s390_mainpool_finish): Consider emit_pool_after when emitting
24603         the literal pool at the end of the function.
24604         (s390_chunkify_start): Force literal pool splits at section
24605         switch notes.
24606
24607 2008-02-13  Michael Matz  <matz@suse.de>
24608
24609         PR debug/35065
24610         * var-tracking.c (clobber_variable_part): Correctly traverse the
24611         list.
24612
24613 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24614
24615         PR 29673
24616         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
24617         Add -fdump-ipa-inline.
24618         * tree-dump.c (dump_files): Remove tree-inlined dump.
24619         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
24620
24621 2008-02-12  Richard Guenther  <rguenther@suse.de>
24622
24623         PR tree-optimization/35171
24624         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
24625         default defs.
24626
24627 2008-02-12  Richard Guenther  <rguenther@suse.de>
24628
24629         PR middle-end/35163
24630         * fold-const.c (fold_widened_comparison): Use get_unwidened in
24631         value-preserving mode.  Disallow final truncation.
24632
24633 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24634
24635         PR middle-end/35136
24636         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
24637         code from here to...
24638         (force_gimple_operand): ...here.
24639
24640 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
24641
24642         PR c++/35144
24643         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
24644         non-compatible pointers.
24645         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
24646         different FIELD_DECLs, try harder by comparing field offsets, sizes
24647         and types.
24648
24649         PR inline-asm/35160
24650         * function.c (match_asm_constraints_1): Don't replace the same input
24651         multiple times.
24652
24653 2008-02-12  Anatoly Sokolov <aesok@post.ru>
24654
24655         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
24656         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
24657         (expand_epilogue): Restore RAMPZ register.
24658         * config/avr/avr.md (RAMPZ_ADDR): New constant.
24659
24660 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
24661
24662         * config/i386/cygwin.asm: (__alloca): Correct calling
24663         convention and alignment.
24664         (__chkstk): Force 8 byte stack alignment.
24665
24666 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
24667             Richard Guenther  <rguenther@suse.de>
24668
24669         PR tree-optimization/33992
24670         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
24671         the zero we compare against.
24672
24673 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
24674
24675         PR libfortran/35063
24676         * gthr-win32.h (__gthread_mutex_destroy_function): New function
24677         to CloseHandle after unlocking to prevent accumulation of handle
24678         count.
24679
24680 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24681
24682         PR middle_end/34150
24683         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
24684         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
24685         and update LABEL_NUSES during and after reload.
24686
24687 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
24688
24689         PR middle-end/34627
24690         * combine.c (simplify_if_then_else): Make sure the comparison is
24691         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
24692
24693 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
24694
24695         PR bootstrap/35051
24696         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
24697         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
24698         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
24699         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
24700         * tree.h (get_type_static_bounds): Likewise.
24701
24702 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24703
24704         * doc/invoke.texi (Option Summary, C++ Dialect Options)
24705         (Objective-C and Objective-C++ Dialect Options, Warning Options):
24706         Make -Wfoo language annotations match what the compiler outputs.
24707
24708 2008-02-08  Sa Liu  <saliu@de.ibm.com>
24709
24710         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
24711         intrinsics spu_convts, spu_convtu, spu_convtf.
24712
24713 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
24714
24715         * doc/extend.texi (Function Attributes) <noinline>: Mention
24716         asm ("") as method to keep calls.
24717
24718 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24719
24720         PR other/32754
24721         * doc/options.texi (Options): Replace references to opts.sh with
24722         optc-gen.awk.
24723         * opts-common.c: Likewise.
24724         * optc-gen.awk: Likewise.
24725
24726 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
24727
24728         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
24729
24730 2008-02-07  Richard Henderson  <rth@redhat.com>
24731
24732         PR rtl-opt/33410
24733         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
24734         EXPR_LIST for the REG_EQUAL instead of a comparison with a
24735         funny mode.
24736
24737 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
24738
24739         PR tree-optimization/35085
24740         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
24741         for operand entry oe2 in addition to operand entry oe3 in order to
24742         expose more opportunities for vectorizer sum reduction.
24743
24744 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24745
24746         PR other/35107
24747         * Makefile.in (LIBS): Remove $(GMPLIBS).
24748         (cc1-dummy, cc1): Add $(GMPLIBS).
24749
24750 2008-02-06  Jan Hubicka  <jh@suse.cz>
24751
24752         PR target/23322
24753         * i386.md (moddf_integer): Do not produce partial memory stalls for
24754         targets where it hurts.
24755
24756 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
24757
24758         PR target/35083
24759         * optabs.c (expand_float): Do not check for decimal modes when
24760         expanding unsigned integer through signed conversion.
24761
24762 2008-02-06  Nick Clifton  <nickc@redhat.com>
24763
24764         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
24765         inside the clobber with a match_operand and duplicated operand
24766         number in the constraint.
24767         (ineqbranchsi): Delete redundant comment.
24768
24769 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
24770
24771         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
24772         builtin_define ("__USE_INIT_FINI__").
24773         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
24774         -msx multilibs.
24775         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
24776
24777 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24778
24779         PR documentation/30330
24780         * doc/invoke.texi (C++ Dialect Options)
24781         (Objective-C and Objective-C++ Dialect Options, Warning Options):
24782         For each warning option -Wfoo that allows -Wno-foo, ensure both
24783         -Wfoo and -Wno-foo are listed in the option index.  Fix index
24784         entry of -Wswitch-default, index -Wnormalized= including the
24785         `=', and -Wlarger-than-@var{len} including @var{len}.
24786
24787 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
24788
24789         * config/i386/i386.md (floatunssisf2): Use
24790         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
24791         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
24792         Macroize expander using MODEF mode iterator.
24793
24794 2008-02-05  Diego Novillo  <dnovillo@google.com>
24795
24796         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
24797
24798         PR 33738
24799         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
24800
24801 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24802
24803         PR other/35070
24804         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
24805
24806 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
24807
24808         PR target/35084
24809         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
24810         to indicate if a message should be generated.
24811         (init_cumulative_args): Updated.
24812         (function_value_32): Likewise.
24813
24814 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
24815
24816         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
24817
24818 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
24819
24820         PR target/35083
24821         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
24822         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
24823
24824 2008-02-04  Diego Novillo  <dnovillo@google.com>
24825
24826         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
24827
24828         PR 33738
24829         * tree-vrp.c (vrp_evaluate_conditional): With
24830         -Wtype-limits, emit a warning when comparing against a
24831         constant outside the natural range of OP0's type.
24832
24833 2008-02-04  Richard Guenther  <rguenther@suse.de>
24834
24835         PR middle-end/33631
24836         * expr.c (count_type_elements): Give for unions instead of
24837         guessing.
24838
24839 2008-02-04  Richard Guenther  <rguenther@suse.de>
24840
24841         PR middle-end/35043
24842         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
24843         to TYPE_DOMAINs base type instead of using bitsizetype here.
24844
24845 2008-02-03  Jason Merrill  <jason@redhat.com>
24846
24847         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
24848
24849 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24850
24851         PR other/29972
24852         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
24853         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
24854         (RS/6000 and PowerPC Options): Fix typos and markup.
24855         * doc/passes.texi (Tree-SSA passes): Likewise.
24856
24857 2008-02-02  Michael Matz  <matz@suse.de>
24858
24859         PR target/35045
24860         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
24861         from record_last_reg_set_info.
24862         (record_last_reg_set_info): Take an RTX argument, iterate over all
24863         constituent hardregs.
24864         (record_last_set_info, record_opr_changes): Change calls to
24865         new signature or to record_last_reg_set_info_regno.
24866
24867 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24868
24869         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
24870
24871 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
24872
24873         PR rtl-optimization/34773
24874         * reg-notes.def (EQUAL): Mention significance of combination of
24875         REG_EQUAL and REG_RETVAL.
24876         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
24877         insn that has a REG_RETVAL.
24878
24879 2008-02-01  Roger Sayle  <roger@eyesopen.com>
24880
24881         PR bootstrap/33781
24882         * configure.ac (--enable-fixed-point): Disable unless explicitly
24883         requested on IRIX.
24884         * configure: Regenerate.
24885
24886 2008-02-01  Richard Guenther  <rguenther@suse.de>
24887
24888         PR other/35042
24889         * invoke.texi (-finline-limit): Remove no longer true parts
24890         of the documentation.  Note that there is no default value.
24891
24892 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
24893             Mark Mitchell  <mark@codesourcery.com>
24894             Ben Elliston  <bje@au.ibm.com>
24895
24896         PR c/29326
24897         * doc/extend.texi (Other Builtins): Document.
24898
24899 2008-01-31  Tom Browder <tom.browder@gmail.com>
24900
24901         * doc/c-tree.texi (Types): Fix grammar.
24902         (Expression trees): Ditto.
24903         * doc/passes.texi (Tree-SSA passes): Ditto.
24904
24905         * doc/configterms.texi (Configure Terms): Fix typo.
24906         * doc/cpp.texi (Common Predefined Macros): Ditto.
24907         * doc/md.texi (Machine Constraints): Ditto.
24908
24909         * doc/makefile.texi (Makefile): Add comma.
24910
24911 2008-01-31  Tom Browder  <tom.browder@gmail.com>
24912             Gerald Pfeifer  <gerald@pfeifer.com>
24913
24914         * doc/sourcebuild.texi (Front End): Remove references to CVS
24915         and CVSROOT/modules.
24916         (Texinfo Manuals): Replace reference to CVS by one to SVN.
24917         (Back End): Remove reference to CVS.
24918
24919 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
24920
24921         PR target/34900
24922         * config/mips/mips.c (gen_load_const_gp): New function, taking a
24923         comment from...
24924         (mips16_gp_pseudo_reg): ...here.
24925         * config/mips/mips.md (load_const_gp): Replace with...
24926         (load_const_gp_<mode>): ...this :P-based insn.
24927
24928 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24929
24930         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
24931         options. Minor fixes.
24932         (-std): Move reference to standards closer to where language
24933         standards are first mentioned.
24934
24935 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
24936
24937         PR rtl-optimization/34995
24938         * reload.c (alternative_allows_const_pool_ref): Take an rtx
24939         parameter and return a bool.  If the rtx parameter is nonnull,
24940         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
24941         (find_reloads): Update call accordingly.  Pass the new operand
24942         if it needed no address reloads, otherwise pass null.
24943
24944 2008-01-30  Richard Henderson  <rth@redhat.com>
24945
24946         PR c/34993
24947         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
24948         for unbounded arrays.
24949
24950 2008-01-30  Silvius Rus  <rus@google.com>
24951
24952         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
24953
24954 2008-01-30  Jan Hubicka  <jh@suse.cz>
24955
24956         PR target/34982
24957         * i386.c (init_cumulative_args): Use real function declaration when
24958         calling locally.
24959
24960 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
24961
24962         PR rtl-optimization/34998
24963         * global.c (build_insn_chain): Treat non-subreg_lowpart
24964         SUBREGs of pseudos as clobbering all the words covered by the
24965         SUBREG, not just all the bytes.
24966         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
24967         original df_ref rather than an extract parameter.
24968         (global_conflicts): Update call accordingly.
24969
24970 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
24971
24972         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
24973         the overflow check to make it easier to read.
24974         (__fixtfdi): Change the type of the ll member in union
24975         long_double to UDItype_x.
24976
24977 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
24978
24979         PR middle-end/34969
24980         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
24981         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
24982         * tree-inline.c (fold_marked_statements): Call
24983         cgraph_update_edges_for_call_stmt if folding a call statement.
24984         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
24985         debug_generic_stmt calls, reset it back afterwards.
24986
24987         PR c/35017
24988         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
24989         static decls.
24990         * c-typeck.c (build_external_ref): Don't pedwarn about
24991         static vars in current function's scope.
24992
24993 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
24994
24995         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
24996
24997 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
24998
24999         PR c/35002
25000         * ipa-struct-reorg.c: Fix spelling.
25001         * params.def: Ditto.
25002
25003 2008-01-29  Richard Guenther  <rguenther@suse.de>
25004
25005         PR middle-end/35006
25006         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
25007         field.
25008         * tree-inline.c (remap_type): Increment remapping_type_depth
25009         around remapping types.
25010         (copy_body_r): Only add referenced variables if they are referenced
25011         from code, not types.
25012
25013 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
25014
25015         PR c++/34055
25016         PR c++/34103
25017         PR c++/34219
25018         PR c++/34606
25019         PR c++/34753
25020         PR c++/34754
25021         PR c++/34755
25022         PR c++/34919
25023         PR c++/34961
25024         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
25025         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
25026
25027 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
25028
25029         PR target/34412
25030         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
25031         pointer for tiny stack.
25032
25033 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
25034
25035         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
25036
25037 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
25038
25039         * config/vx-common.h: Fix typo in comment.
25040
25041 2008-01-28  Ian Lance Taylor  <iant@google.com>
25042
25043         PR c++/34862
25044         PR c++/33407
25045         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25046         coalesce pointers if they have different DECL_NO_TBAA_P values.
25047         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
25048         between variables with different DECL_NO_TBAA_P values.
25049
25050 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
25051
25052         PR 31535
25053         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
25054         are not legitimate small data references on SPE targets.
25055
25056 2008-01-28  David Daney  <ddaney@avtrex.com>
25057
25058         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
25059
25060 2008-01-28  David Daney  <ddaney@avtrex.com>
25061
25062         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
25063
25064 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
25065
25066         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
25067         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
25068         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
25069         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
25070         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
25071         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
25072         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
25073         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
25074
25075 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25076
25077         * basic-block.h (condjump_equiv_p): Fix comment.
25078
25079 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25080
25081         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
25082         print_generic_stmt_indented): Fix comment.
25083
25084 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25085
25086         * configure.ac (__stack_chk_fail): Add detecion for availability
25087         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
25088         * configure: Regenerate.
25089
25090 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
25091
25092         PR middle-end/34688
25093         * final.c (output_addr_const): Handle TRUNCATE.
25094
25095 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
25096
25097         PR target/34711
25098         * tree-ssa-loop-ivopts.c (comp_cost): New type.
25099         (zero_cost, infinite_cost): New constants.
25100         (struct cost_pair): Change type of cost to comp_cost.
25101         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
25102         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
25103         New functions.
25104         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
25105         split_address_cost, ptr_difference_cost, difference_cost,
25106         get_computation_cost_at, get_computation_cost,
25107         determine_use_iv_cost_generic, determine_use_iv_cost_address,
25108         determine_use_iv_cost_condition, determine_use_iv_costs,
25109         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
25110         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
25111         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
25112         Change type of cost to comp_cost.
25113         (determine_iv_cost): Increase cost of non-original ivs, instead
25114         of decreasing the cost of original ones.
25115         (get_address_cost): Indicate the complexity of the addressing mode
25116         in comp_cost.
25117         (try_add_cand_for): Prefer using ivs not specific to some object.
25118         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
25119
25120 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
25121             Janis Johnson  <janis187@us.ibm.com>
25122
25123         PR target/34814
25124         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
25125         (TARGET_INSTANTIATE_DECLS): Likewise.
25126         * target.h (expand_to_rtl_hook): New target hook.
25127         (instantiate_decls): Likewise.
25128         * function.c (instantiate_decl): Make non-static.  Rename to...
25129         (instantiate_decl_rtl): ... this.
25130         (instantiate_expr): Use instantiate_decl_rtl.
25131         (instantiate_decls_1): Likewise.
25132         (instantiate_decls): Likewise.
25133         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
25134         * function.h (instantiate_decl_rtl): Add prototype.
25135         * cfgexpand.c (target.h): New include.
25136         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
25137         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
25138         (TARGET_INSTANTIATE_DECLS): Likewise.
25139         (TARGET_INITIALIZER): New target hooks added.
25140         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
25141         New prototype.
25142         * config/rs6000/rs6000.c (tree-flow.h): New include.
25143         (machine_function): Add sdmode_stack_slot field.
25144         (rs6000_alloc_sdmode_stack_slot): New function.
25145         (rs6000_instantiate_decls): Likewise.
25146         (rs6000_secondary_memory_needed_rtx): Likewise.
25147         (rs6000_check_sdmode): Likewise.
25148         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
25149         (TARGET_INSTANTIATE_DECLS): Likewise.
25150         (rs6000_hard_regno_mode_ok): Allow SDmode.
25151         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
25152         (rs6000_emit_move): Handle SDmode.
25153         (function_arg_advance): Likewise.
25154         (function_arg): Likewise.
25155         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
25156         SDmode var args for 32-bit compiles.
25157         (rs6000_secondary_reload_class): Handle SDmode.
25158         (rs6000_output_function_epilogue): Likewise.
25159         (rs6000_function_value): Simplify if statement.
25160         (rs6000_libcall_value): Likewise.
25161         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
25162         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
25163         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
25164         (movsd_hardfloat): New define_insn.
25165         (movsd_softfloat): Likewise.
25166         (movsd_store): Likewise.
25167         (movsd_load): Likewise.
25168         (extendsddd2): Likewise.
25169         (extendsdtd2): Likewise.
25170         (truncddsd2): Likewise.
25171         (movdd_hardfloat64): Fixup comment.
25172         (UNSPEC_MOVSD_LOAD): New constant.
25173         (UNSPEC_MOVSD_STORE): Likewise.
25174
25175 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
25176
25177         PR c++/34965
25178         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
25179         TRUTH_XOR_EXPR.
25180         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
25181         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
25182         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
25183         and TRUTH_XOR_EXPR.
25184
25185 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
25186
25187         PR target/34794
25188         * config.gcc: Separate AIX 5.3 from AIX 6.1.
25189         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
25190         __LONGDOUBLE128 too.
25191         * config/rs6000/aix61.h: New file.
25192
25193 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
25194
25195         PR rtl-optimization/34959
25196         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
25197         popcount and parity rtxes the same mode as their operand.
25198         Truncate or extend the result to the return value's mode
25199         if necessary.
25200
25201 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
25202
25203         PR target/34981
25204         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
25205         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
25206         to GOT_VERSION_REGNUM.
25207         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
25208         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
25209         * config/mips/mips.c (mips_emit_call_insn): New function.
25210         (mips_call_tls_get_addr): Call mips_expand_call directly.
25211         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
25212         emit_call_insn.
25213         (mips16_build_call_stub): Likewise.  Return the call insn or null.
25214         (mips_expand_call): Update the call to mips16_build_call_stub
25215         accordingly and a remove redundant condition.  Assert that MIPS16
25216         stubs do not use lazy binding.  Use mips_emit_call_insn and return
25217         the call insn.
25218         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
25219         TARGET_USE_GOT.
25220         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
25221         (mips_avoid_hazard): Remove hazard_set handling.
25222         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
25223         (UNSPEC_RESTORE_GP): ...this.
25224         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
25225         (FAKE_CALL_REGNO): Rename to...
25226         (GOT_VERSION_REGNUM): ...this.
25227         (type): Add "ghost" value.  Add an associated insn reservation.
25228         (hazard_set): Remove.
25229         (exception_receiver): Rename to...
25230         (restore_gp): ...this and update the unspec identifier accordingly.
25231         (exception_receiver, nonlocal_got_receiver): New expanders.
25232         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
25233         FAKE_CALL_REGNO.  Remove hazard_set attribute.
25234         (set_got_version, update_got_version): New patterns.
25235
25236 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
25237
25238         PR target/34970
25239         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
25240
25241 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
25242
25243         PR other/31955
25244         * doc/install.texi2html: Generate gcc-vers.texi.
25245
25246 2008-01-25  DJ Delorie  <dj@redhat.com>
25247
25248         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
25249
25250 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
25251
25252         * config/c4x: Remove directory.
25253         * config.gcc (crx-*, mt-*): Mark obsolete.
25254         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
25255         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
25256         sh-*-rtemscoff*): Remove cases.
25257         * defaults.h (C4X_FLOAT_FORMAT): Remove.
25258         * real.c (encode_c4x_single, decode_c4x_single,
25259         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
25260         c4x_extended_format): Remove.
25261         * real.h (c4x_single_format, c4x_extended_format): Remove.
25262         * doc/extend.texi (interrupt, naked): Remove mention of attributes
25263         on C4x.
25264         (Pragmas): Remove comment about c4x pragmas.
25265         * doc/install.texi (c4x): Remove target-specific instructions.
25266         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
25267         * doc/md.texi (Machine Constraints): Remove C4x documentation.
25268         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
25269         refer to C4x source files as examples.
25270         (C4X_FLOAT_FORMAT): Remove documentation.
25271
25272 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
25273
25274         * config/bfin/bfin.c (override_options): Reorder tests so that
25275         flag_pic gets enabled for -msep-data.
25276
25277 2008-01-25  Richard Guenther  <rguenther@suse.de>
25278
25279         PR middle-end/32244
25280         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
25281         to its bitfield precision if required.
25282
25283 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
25284
25285         PR middle-end/33880
25286         * tree-nested.c (walk_omp_for): New function.
25287         (convert_nonlocal_reference, convert_local_reference): Call
25288         walk_omp_for on OMP_FOR.
25289         (convert_call_expr): Call walk_body on OMP_FOR's
25290         OMP_FOR_PRE_INIT_BODY.
25291
25292 2008-01-25  Richard Guenther  <rguenther@suse.de>
25293
25294         PR tree-optimization/34966
25295         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
25296         default defs and PHI_NODEs we have to insert after the
25297         defining statement.
25298
25299 2008-01-24  Nick Clifton  <nickc@redhat.com>
25300
25301         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
25302         Provide a default definition.
25303         (LIBGCC2_UNITS_PER_WORD): Likewise.
25304
25305         * config/stormy16/stormy16.c: Include df.h for the prototype
25306         for df_regs_ever_live_p.
25307         (xstormy16_expand_builtin_va_start): Convert the stack offset
25308         into a component_ref and then use POINTER_PLUS_EXPR to add it
25309         to the incoming_virtual_args_rtx.
25310         (xstormy16_gimplify_va_arg_expr): Rename to
25311         xstormy16_gimplify_va_arg_expr.
25312         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
25313         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
25314         xstormy16_gimplify_va_arg_expr.
25315         Fix up some formatting issues.
25316
25317         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
25318         Move to predicates.md.
25319         (xs_hi_general_operand): Likewise.
25320         (xs_hi_nonmemory_operand): Likewise.
25321         * config/stormy16/predicates.md:
25322         (xstormy16_carry_plus_operand): New predicate.
25323         (xs_hi_general_operand): New predicate.
25324         (xs_hi_nonmemory_operand): New predicate.
25325         * config/stormy16/stormy16-protos.h:
25326         (xstormy16_carry_plus_operand): Delete prototype.
25327         (xs_hi_general_operand): Likewise.
25328         (xs_hi_nonmemory_operand): Likewise.
25329
25330         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
25331         modifiers as they are no longer needed and they can trigger
25332         reload spill failures.
25333
25334         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
25335         with a match_operand in order to help reload.
25336
25337         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
25338         constraint with 'e' for the 8th alternative as this version of
25339         the mov.w instruction only accepts the lower 8 registers.
25340
25341 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
25342
25343         PR target/34856
25344         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
25345         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
25346         vector elements.
25347
25348 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
25349
25350         PR middle-end/33333
25351         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
25352
25353 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
25354
25355         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
25356         New functions.
25357         (remove_structure): Update allocations list before removing structure.
25358
25359 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
25360
25361         * ipa-struct-reorg.c (is_safe_cond_expr,
25362         create_new_stmts_for_cond_expr): Use integer_zerop function,
25363         that recognize not only zero-pointer, but zero-integer too.
25364
25365 2008-01-25  Ben Elliston  <bje@au.ibm.com>
25366
25367         PR other/22232
25368         * fixproto: Escape "." in sed expression that strips leading "./".
25369
25370 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25371
25372         PR driver/34904
25373         * gcc.c (SWITCH_OK): Removed.
25374         (SWITCH_LIVE): Changed to bit.
25375         (SWITCH_FALSE): Likewise.
25376         (SWITCH_IGNORE): Likewise.
25377         (switchstr): Change live_cond to unsigned int.
25378         (process_command): Replace SWITCH_OK with 0.
25379         (do_self_spec): Likewise.
25380         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
25381         (give_switch): Likewise.
25382         (used_arg): Likewise.
25383         (do_spec_1): Set the SWITCH_IGNORE bit.
25384         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
25385         bits.  Set the SWITCH_LIVE bit.
25386
25387 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25388
25389         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
25390
25391 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
25392
25393         PR tree-optimization/34472
25394         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
25395         parameter to a "bool *" and set *DATA to false if there is
25396         an unsafe access.  Do not delete the structure here.
25397         (check_cond_exprs): Delete it here instead.
25398         (check_cond_exprs, exclude_cold_structs): Do not increase
25399         I when removing a structure.
25400
25401 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
25402
25403         PR target/34856
25404         * config/i386/i386.c (ix86_expand_vector_init): Consider only
25405         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
25406
25407 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
25408
25409         PR middle-end/34934
25410         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
25411         a fixed vector for stack.
25412
25413 2008-01-24  Ben Elliston  <bje@au.ibm.com>
25414
25415         PR c++/25701
25416         * doc/gcc.texi (Software development): Add a direntry for g++.
25417
25418 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
25419
25420         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
25421         stale and straggling -fforce-addr comments above.
25422
25423         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
25424         define.
25425         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
25426         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
25427
25428 2008-01-23  Michael Matz  <matz@suse.de>
25429
25430         PR debug/34895
25431         * dwarf2out.c (force_type_die): Use modified_type_die instead of
25432         gen_type_die.
25433
25434 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
25435
25436         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
25437         malloc result type.
25438
25439 2008-01-23 Anatoly Sokolov <aesok@post.ru>
25440
25441         * config/avr/avr.c (avr_current_arch): New variable.
25442         (avr_arch_types): Add 'avr31' and 'avr51' entries.
25443         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
25444         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
25445         (avr_override_options): Init 'avr_current_arch'.
25446         (base_arch_s): Move from here...
25447         * config/avr/avr.h (base_arch_s): ... here. Add new members
25448         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
25449         'mega' to 'have_jmp_call'.
25450         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
25451         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
25452         macros.
25453         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
25454         architectures.
25455         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25456         MULTILIB_MATCHES): Ditto.
25457
25458 2008-01-23  Richard Guenther  <rguenther@suse.de>
25459
25460         PR middle-end/31529
25461         * cgraphunit.c (cgraph_reset_node): Always mark the node
25462         not reachable if it is not queued already.
25463
25464 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
25465
25466         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
25467         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
25468         (cputype_selected): New static variable.
25469         (bfin_handle_option): Set it if -mcpu is used.
25470         (override_option): Select default set of workarounds if no cpu type
25471         selected on the command line.
25472         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
25473
25474         From  Michael Frysinger  <michael.frysinger@analog.com>
25475         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
25476         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
25477
25478         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
25479         for bf547, bf523, bf524, and bf526.
25480         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
25481         bf526.
25482         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
25483         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
25484         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
25485         __ADSPBF547__ and __ADSPBF54x__ for bf547.
25486         * doc/invoke.texi (Blackfin Options): Document that
25487         -mcpu now accept bf547, bf523, bf524, and bf526.
25488
25489 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
25490
25491         PR rtl-optimization/34628
25492         * combine.c (try_combine): Stop and undo after the first combination
25493         if an autoincrement side-effect on the first insn has effectively
25494         been lost.
25495
25496 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
25497
25498         PR target/34529
25499         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25500         Offset addresses are not valid for Altivec or paired float modes.
25501
25502 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
25503
25504         PR c++/34607
25505         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
25506         if DECL_INITIAL (decl) is error_mark_node.
25507
25508         PR c++/34914
25509         * c-common.c (handle_vector_size_attribute): Only allow
25510         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
25511         the same way as pointer, array etc. types.
25512         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
25513
25514         PR c++/34917
25515         * tree.c (build_type_attribute_qual_variant): Call
25516         build_qualified_type if attributes are equal, but quals are not.
25517
25518 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25519
25520         PR 32102
25521         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
25522         * flags.h (warn_strict_aliasing): Remove.
25523         (warn_strict_overflow): Remove.
25524         * opts.c (warn_strict_aliasing): Remove.
25525         (warn_strict_overflow): Remove.
25526         * c-opts.c (c_common_handle_option): -Wall only sets
25527         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
25528         (c_common_post_options): Give default values to -Wstrict-aliasing
25529         and -Wstrict-overflow if they are uninitialized.
25530         * common.opt (Wstrict-aliasing): Specify Var and Init.
25531         (Wstrict-overflow): Likewise.
25532
25533 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
25534
25535         PR rtl-optimization/26854
25536         PR rtl-optimization/34400
25537         PR rtl-optimization/34884
25538         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
25539         DF_RD->gen.
25540         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
25541         (df_rd_bb_info.expanded_lr_out): Deleted
25542         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
25543         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
25544         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
25545         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
25546         Removed code to allocate, initialize or free expanded_lr_out.
25547         (df_rd_bb_local_compute_process_def): Restructured to make more
25548         understandable.
25549         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
25550         sets if the sets are being trimmed.
25551
25552 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
25553
25554         PR bootstrap/32287
25555         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
25556         (as_vers): Likewise.
25557         * configure: Regenerated.
25558
25559 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25560
25561         PR middle-end/33092
25562         * tree-pass.h (pass_build_alias): New pass.
25563         * tree-ssa-alias.c (gate_build_alias): New.
25564         (pass_build_alias): New.
25565         * passes.c (init_optimization_passes): Add pass_build_alias after
25566         pass_create_structure_vars.
25567
25568 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
25569
25570         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
25571         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
25572         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
25573         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
25574         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
25575         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
25576         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
25577         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
25578         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
25579         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
25580         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
25581         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
25582         * config/s390/s390.md (FP_ALL): New mode iterator.
25583         (_d): New mode attribute.
25584         ("*signbit<mode>2>"): Changed mode of first operand.
25585         ("isinf<mode>2"): Changed mode of first operand.
25586         ("*TDC_insn"): Adaptation for DFP modes.
25587
25588 2008-01-22  Ben Elliston  <bje@au.ibm.com>
25589
25590         * tree.c (check_qualified_type): Improve function description.
25591
25592 2008-01-21  Jason Merrill  <jason@redhat.com>
25593
25594         PR c++/34196
25595         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
25596         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
25597         if it is set.
25598
25599 2008-01-21  DJ Delorie  <dj@redhat.com>
25600
25601         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
25602         return zero.
25603
25604 2008-01-21  Richard Guenther  <rguenther@suse.de>
25605
25606         PR middle-end/34856
25607         * tree-cfg.c (verify_expr): Allow all invariant expressions
25608         instead of just constant class ones as reference argument.
25609         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
25610         like any other constant.
25611         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25612
25613 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
25614
25615         * regmove.c (fixup_match_1): Update call crossed frequencies.
25616
25617 2008-01-21  Richard Guenther  <rguenther@suse.de>
25618
25619         PR c/34885
25620         * tree-inline.c (setup_one_parameter): Deal with mismatched
25621         types using a VIEW_CONVERT_EXPR.
25622
25623 2008-01-21  Alon Dayan  <alond@il.ibm.com>
25624             Olga Golovanevsky  <olga@il.ibm.com>
25625
25626         PR tree-optimization/34701
25627         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
25628         when the structure size is not a power of 2.
25629
25630 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
25631
25632         * doc/install.texi: Add doc for --enable-checking=df.
25633
25634 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
25635
25636         PR rtl-optimization/34808
25637         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
25638
25639 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
25640
25641         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
25642         input.
25643
25644 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
25645
25646         PR rtl-optimization/26854
25647         PR rtl-optimization/34400
25648         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
25649         DF_RD->gen.
25650         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
25651         (df_rd_bb_info.expanded_lr_out): New.
25652         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
25653         * loop_iv.c (iv_analysis_loop_init): Ditto.
25654         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
25655         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
25656         Added code to allocate, initialize or free expanded_lr_out.
25657         (df_rd_bb_local_compute_process_def): Restructured to make
25658         more understandable.
25659         (df_rd_confluence_n): Add code to do nothing with fake edges and
25660         code to no apply invalidate_by_call sets if the sets are being trimmed.
25661         (df_lr_local_finalize): Renamed to df_lr_finalize.
25662         (df_live_local_finalize): Renamed to df_live_finalize.
25663
25664 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
25665
25666         PR target/34831
25667         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
25668         deciding whether to use reciprocal instructions.
25669
25670 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
25671
25672         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
25673         dwarf2out_note_section_used if cold_text_section is NULL.
25674
25675 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
25676
25677         PR gcov-profile/34610
25678         * tree-cfg.c (make_edges): Mark both outgoing edges from
25679         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
25680         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
25681         from OMP_FOR and OMP_CONTINUE outgoing edges.
25682
25683         * tree-profile.c (tree_profiling): Return early if
25684         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
25685         at the end.
25686         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
25687         from cfun to child_cfun.
25688         * function.h (struct function): Add after_tree_profile bit.
25689
25690 2008-01-19 Anatoly Sokolov <aesok@post.ru>
25691
25692         * config/avr/avr.S (_exit): Disable interrupt.
25693
25694 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
25695             Steven Bosscher  <stevenb.gcc@gmail.com>
25696
25697         PR rtl-optimization/26854
25698         PR rtl-optimization/34400
25699         * df-problems.c (df_live_scratch): New scratch bitmap.
25700         (df_live_alloc): Allocate df_live_scratch when doing df_live.
25701         (df_live_reset): Clear the proper bitmaps.
25702         (df_live_bb_local_compute): Only process the artificial defs once
25703         since the order is not important.
25704         (df_live_init): Init the df_live sets only with the variables
25705         found live by df_lr.
25706         (df_live_transfer_function): Use the df_lr sets to prune the
25707         df_live sets as they are being computed.
25708         (df_live_free): Free df_live_scratch.
25709
25710 2008-01-18  Ian Lance Taylor  <iant@google.com>
25711
25712         * common.opt: Add fmerge-debug-strings.
25713         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
25714         flag_merge_debug_strings rather than flag_merge_constants.
25715         * doc/invoke.texi (Option Summary): Mention
25716         -fmerge-debug-strings.
25717         (Debugging Options): Document -fmerge-debug-strings.
25718
25719 2008-01-18  Ian Lance Taylor  <iant@google.com>
25720
25721         PR c++/33407
25722         * tree.h (DECL_IS_OPERATOR_NEW): Define.
25723         (struct tree_function_decl): Add new field operator_new_flag.
25724         * tree-inline.c (expand_call_inline): When inlining a call to
25725         operator new, force the return value to go into a variable, and
25726         set DECL_NO_TBAA_P on that variable.
25727         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
25728
25729 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
25730
25731         PR debug/34484
25732         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
25733         DWARF2_DEBUGGING_INFO.
25734         (dwarf2out_note_section_used): Ditto.  Add prototype.
25735         (have_multiple_function_sections, text_section_used,
25736         cold_text_section_used, *cold_text_sections): Move declarations
25737         before their uses.
25738
25739 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
25740
25741         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
25742         field and add signal_ra.
25743         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
25744         assignments to frame state pc.  Move end of stack check after
25745         MD_FALLBACK_FRAME_STATE_FOR.
25746         (uw_update_context_1): Use frame state signal_regs if set, instead
25747         of checking signal_frame flag.
25748         (uw_update_context): Use frame state signal_ra if set.
25749         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
25750         * config/xtensa/linux-unwind.h: New file.
25751
25752 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
25753
25754         * modulo-sched.c (get_sched_window): Fix comment typo.
25755
25756 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
25757
25758         PR tree-optimization/34648
25759         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
25760
25761 2008-01-17  Anatoly Sokolov <aesok@post.ru>
25762
25763         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
25764         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
25765
25766 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
25767
25768         PR rtl-optimization/34400
25769         * df-core.c (df_worklist_dataflow_overeager,
25770         df_worklist_dataflow_doublequeue): New functions.
25771         (df_worklist_dataflow): Two different worklist solvers.
25772         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
25773         New param.
25774
25775 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25776
25777         PR testsuite/34821
25778         * doc/invoke.texi: Document the dependence on pthread for fopenmp
25779         and ftree-parallelize-loops.
25780
25781 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
25782
25783         PR rtl-optimization/34826
25784         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
25785
25786 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
25787
25788         * global.c (find_reg): Mark the eh regs as used if necessary.
25789         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
25790         * ra.h (struct allocno): no_eh_reg field added.  Changed
25791         no_stack_reg type to bitfield.
25792
25793 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
25794
25795         * tree.c (substitute_in_expr): Add missing 'break'.
25796
25797 2008-01-17  Richard Guenther  <rguenther@suse.de>
25798
25799         PR tree-optimization/34825
25800         * tree-ssa-math-opts.c (is_division_by): Do not recognize
25801         x / x as division to handle.
25802
25803 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25804
25805         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
25806         "-pthread" is specified.
25807         * pa-hpux11.h (LIB_SPEC): Likewise.
25808
25809 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
25810             Peter Bergner  <bergner@vnet.ibm.com>
25811
25812         PR rtl-optimization/33796
25813         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
25814
25815 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25816
25817         PR libgfortran/34699
25818         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
25819         static links.
25820         * pa-hpux10.h (LINK_SPEC): Likewise.
25821         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
25822
25823 2008-01-16  Richard Guenther  <rguenther@suse.de>
25824
25825         PR middle-end/32628
25826         * fold-const.c (fold_convert_const_int_from_int): Do not
25827         set overflow if that occured only because of a sign extension
25828         change when converting from/to a sizetype with the same
25829         precision and signedness.
25830
25831 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
25832
25833         PR debug/34249
25834         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
25835         location address to the correct place.  Update copyright year.
25836
25837 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25838
25839         * lambda-code.c (lambda_transform_legal_p): Handle the case of
25840         no dependences in the dependence_relations vector.
25841
25842 2008-01-16  Jan Hubicka  <jh@suse.cz>
25843
25844         PR rtl-optimization/31396
25845         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
25846         * cfg.c (dump_reg_info): Print it.
25847         * regs.h (struct reg_info_t): add freq_calls_crossed.
25848         (REG_FREQ_CALLS_CROSSED): New macro.
25849         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
25850         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
25851         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
25852         regmove_optimize): Update call crossed frequencies.
25853         * local-alloc.c (struct qty): Add freq_calls_crossed.
25854         (alloc_qty): Copute freq_calls_crossed.
25855         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
25856         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
25857         * ra.h (struct allocno): Add freq_calls_crossed.
25858
25859 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25860
25861         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
25862         libgomp when compiling with ftree-parallelize-loops.
25863         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
25864
25865 2008-01-16  Richard Guenther  <rguenther@suse.de>
25866
25867         PR tree-optimization/34769
25868         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
25869         * tree.c (int_cst_value): Instead make this function more
25870         permissive in what it accepts as valid input.  Document this
25871         function always sign-extends the value.
25872
25873 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
25874             Richard Guenther  <rguenther@suse.de>
25875
25876         PR c/34668
25877         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
25878         (gimple_fold_indirect_ref_rhs): ... this.
25879         (gimple_fold_indirect_ref): New function with foldings
25880         that preserve lvalueness.
25881         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
25882         * tree-flow.h (gimple_fold_indirect_ref): Declare.
25883         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
25884         to fold an INDIRECT_REF, fall back to the old use of
25885         fold_indirect_ref_1.
25886
25887 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25888
25889         * tree-data-ref.c (subscript_dependence_tester_1): Call
25890         free_conflict_function.
25891         (compute_self_dependence): Same.
25892
25893 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
25894
25895         PR debug/34249
25896         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
25897         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
25898         function global.
25899         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
25900         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
25901         for DWARF2_UNWIND_INFO targets.
25902
25903 2008-01-16  Richard Guenther  <rguenther@suse.de>
25904
25905         PR c/34768
25906         * c-typeck.c (common_pointer_type): Do not merge inconsistent
25907         type qualifiers for function types.
25908
25909 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
25910
25911         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
25912         loop_iterator li from previous commit.
25913
25914 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
25915
25916         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
25917
25918 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
25919
25920         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
25921         (parallelize_loops): Don't parallelize irreducible components.
25922
25923 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25924
25925         PR c++/24924
25926         * c-opts (c_common_post_options): Do not enable CPP
25927         flag_pedantic_errors by default.
25928
25929 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
25930
25931         PR rtl-optimization/31944
25932         * cse.c (remove_pseudo_from_table): New function.
25933         (merge_equiv_classes): Use above function to remove pseudo-registers.
25934         (invalidate): Likewise.
25935
25936 2008-01-13  Richard Guenther  <rguenther@suse.de>
25937
25938         PR middle-end/34601
25939         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
25940         instead of TYPE_MODE to deal with calls from expand_one_error_var.
25941
25942 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
25943
25944         * gcse.c (cprop_jump): Call validate_unshare_change instead of
25945         validate_change to unshare the source of the PC set.
25946
25947 2008-01-12  Jan Hubicka  <jh@suse.cz>
25948
25949         PR middle-end/32135
25950         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
25951         references above array bounds.  This might trigger bounds checks for
25952         pointers to arrays.
25953
25954 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
25955
25956         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
25957         new_replaceable_dependencies.
25958
25959 2008-01-12  Doug Kwan  <dougkwan@google.com>
25960
25961         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
25962         instead of OPT_Wreturn_type in warning due to ignored return type
25963         qualifiers.
25964         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
25965         options included in -Wextra.
25966         * c.opt: New option -Wignored_qualifiers.
25967         * doc/invoke.texi (Warning Options, -Wextra): Add new option
25968         -Wignore_qualifiers.
25969         (-Wignored-qualifiers): Document.
25970         (-Wreturn-type): Remove description of functionality now handled
25971         by -Wignored-qualifiers.
25972
25973 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
25974
25975         PR ada/33788
25976         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
25977         NOP_EXPR if it is between integral types with the same precision.
25978
25979 2008-01-12  Jan Hubicka  <jh@suse.cz>
25980
25981         PR other/28023
25982         * invoke.texi (max-inline-recursive-depth): Fix default value.
25983
25984 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
25985
25986         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
25987         correct type.
25988
25989 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
25990
25991         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
25992
25993 2008-01-11  James E. Wilson  <wilson@specifix.com>
25994
25995         PR target/26015
25996         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
25997
25998 2008-01-11  Anatoly Sokolov <aesok@post.ru>
25999
26000         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
26001         save/restore frame pointer register and don't use 'call-prologues'
26002         optimization in function with "OS_task" attribute.
26003
26004 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
26005
26006         PR middle-end/31309
26007         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
26008         when copying to memory.
26009
26010 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
26011
26012         PR rtl-optimization/30905
26013         * cfgcleanup.c: Include dce.h
26014         (crossjumps_occured): New global variable.
26015         (try_crossjump_bb): Exit loop after finding a fallthru edge.
26016         If something changed, set crossjumps_occured to true.
26017         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
26018         Don't add/remove fake edges to exit here...
26019         (cleanup_cfg): ...but do it here, when crossjumping.
26020         Run a fast DCE when successful crossjumps occured in the latest
26021         iteration of try_optimize_cfg.
26022
26023 2008-01-11  Richard Guenther  <rguenther@suse.de>
26024
26025         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
26026         (struct vn_unary_op_s): Likewise.
26027         (vn_reference_insert): Free old reference on hash collision.
26028
26029 2008-01-10  Raksit Ashok  <raksit@google.com>
26030
26031         PR rtl-optimization/27971
26032         * combine.c (find_split_point): Split PLUS expressions which are
26033         inside a MEM rtx, and whose first operand is complex.
26034
26035 2008-01-10  DJ Delorie  <dj@redhat.com>
26036
26037         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
26038         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
26039         (m32c_hard_regno_ok): Call the underlying function.
26040
26041 2008-01-10  Richard Guenther  <rguenther@suse.de>
26042
26043         PR middle-end/34683
26044         * tree-cfg.c (tree_merge_blocks): Do not go through the
26045         full-blown folding and stmt updating path if we just deal
26046         with virtual operands.
26047         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
26048         test for abnormal SSA_NAMEs.
26049
26050 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
26051
26052         PR middle-end/34641
26053         * reload.c (push_reload): Add assertions.  All constants from
26054         reg_equiv_constant should have been used for replacing the respective
26055         pseudo earlier.
26056         (find_reloads_address): Invoke find_reloads_address_part for
26057         constant taken from the reg_equiv_constant array.
26058
26059 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
26060
26061         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
26062         field (valnum) the first in the struct.  Replace bools with
26063         unit bit fields.
26064
26065 2008-01-10  Richard Guenther  <rguenther@suse.de>
26066
26067         PR tree-optimization/34651
26068         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
26069         types and ordering for masking and converting.
26070
26071 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
26072
26073         PR tree-optimization/34017
26074         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
26075         also for PHI_NODE expressions.
26076
26077 2008-01-09  Jan Hubicka  <jh@suse.cz>
26078
26079         PR tree-optimization/34708
26080         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
26081         based on number of case labels.
26082         (init_inline_once): Remove switch_cost.
26083         * tree-inline.h (eni_weights_d): Remove switch_cost.
26084
26085 2008-01-09  Richard Guenther  <rguenther@suse.de>
26086         Andrew Pinski  <andrew_pinski@playstation.sony.com>
26087
26088         PR middle-end/30132
26089         * gimplify.c (gimplify_cond_expr): Do not create an addressable
26090         temporary if an rvalue is ok or an lvalue is not required.
26091
26092 2008-01-09  Richard Guenther  <rguenther@suse.de>
26093
26094         PR middle-end/34458
26095         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
26096         adjust return type.
26097
26098 2008-01-09  Richard Guenther  <rguenther@suse.de>
26099
26100         PR middle-end/34679
26101         * tree.c (host_integerp): Check for sizetype only if the
26102         type is an integer type.
26103
26104 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
26105
26106         PR debug/26364
26107         * opts.c (decode_options): Disable inlining of functions called
26108         once if not in unit-at-a-time mode.
26109
26110 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
26111
26112         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
26113
26114 2008-01-08  Richard Guenther  <rguenther@suse.de>
26115
26116         PR middle-end/31863
26117         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
26118         out early if the result will be unused.
26119
26120 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
26121
26122         PR target/34709
26123         Revert:
26124
26125         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26126         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
26127         for TARGET_RECIP.
26128
26129 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
26130
26131         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
26132         for vectorization tuned.
26133
26134 2008-01-08  Richard Guenther  <rguenther@suse.de>
26135
26136         PR tree-optimization/34683
26137         * tree-ssa-operands.c (operand_build_cmp): Export.
26138         * tree-ssa-operands.h (operand_build_cmp): Declare.
26139         * tree-vn.c (vuses_compare): Remove.
26140         (sort_vuses): Use operand_build_cmp.
26141         (sort_vuses_heap): Likewise.
26142         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
26143         to re-use old VEC if available.  Do not sort already sorted VUSEs.
26144         (vdefs_to_vec): Do not sort already sorted VDEFs.
26145
26146 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
26147
26148         PR middle-end/34694
26149         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
26150
26151 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
26152
26153         PR target/34702
26154         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
26155         limitations of reciprocal sequences on x86 targets.
26156
26157 2008-01-08  Richard Guenther  <rguenther@suse.de>
26158
26159         PR tree-optimization/34683
26160         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
26161
26162 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
26163
26164         PR target/34622
26165         * config/darwin.c (darwin_mergeable_string_section): Don't use
26166         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
26167
26168 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
26169
26170         PR target/34682
26171         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
26172         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
26173         predicates of op0 and op1 to register_operand.
26174         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
26175         expander using X87MODEF mode iterator.  Change predicates of
26176         op0 and op1 to register_operand.
26177         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
26178         corresponding patterns and macroize using MODEF macro.  Change
26179         predicates of op0 and op1 to register_operand and remove
26180         "m" constraint. Disparage "r" alternative with "!".
26181         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
26182         macroize using X87MODEF macro.  Change predicates of op0 and op1
26183         to register_operand and remove "m" constraint.  Disparage "r"
26184         alternative with "!".
26185         (absneg splitter with memory operands): Remove.
26186         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
26187         patterns and macroize using X87MODEF mode iterator.
26188         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
26189         Change predicate of op1 to register_operand.
26190         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
26191         for memory operands.
26192
26193 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
26194
26195         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
26196
26197 2008-01-07  Richard Guenther  <rguenther@suse.de>
26198
26199         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
26200         fields.
26201
26202 2008-01-07  Richard Guenther  <rguenther@suse.de>
26203
26204         PR tree-optimization/34683
26205         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
26206         VOPs of the needed size to save memory.  Use VEC_quick_push
26207         to save compile-time.
26208         (vdefs_to_vec): Likewise.
26209
26210 2008-01-07  Sa Liu  <saliu@de.ibm.com>
26211
26212         * config/spu/spu.md (divdf3): Genetate inline code for double
26213         division.  The implementation doesn't handle INF or NAN, therefore it
26214         only applies when -ffinite-math-only is given.
26215
26216 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
26217
26218         PR libstdc++/34680
26219         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
26220         * doc/cpp.texi ([Common Predefined Macros]): Document.
26221
26222 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
26223
26224         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
26225         order to use commutative addition instead of subtraction.
26226
26227 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26228             Mircea Namolaru  <namolaru@il.ibm.com>
26229             Vladimir Yanovsky  <yanov@il.ibm.com>
26230             Revital Eres  <eres@il.ibm.com>
26231
26232         PR tree-optimization/34263
26233         * tree-outof-ssa.c (process_single_block_loop_latch,
26234         contains_tree_r): New functions.
26235         (analyze_edges_for_bb): Call process_single_block_loop_latch
26236         function to empty single-basic-block latch block if possible.
26237
26238 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26239
26240         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
26241         for TARGET_RECIP.
26242         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
26243
26244 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
26245
26246         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
26247
26248 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
26249
26250         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
26251
26252 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
26253
26254         PR tree-optimization/34618
26255         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
26256         flag from T.
26257
26258 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26259
26260         PR target/34673
26261         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
26262         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
26263         Update copyright year.
26264
26265         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
26266         Update copyright year.
26267         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
26268         using NR fixup.
26269
26270 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
26271
26272         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
26273         edge does not point to current bb before changing need_assert.
26274
26275 2008-01-04  Richard Guenther  <rguenther@suse.de>
26276
26277         PR middle-end/34029
26278         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
26279         for verifying purposes if they are is_gimple_min_invariant.
26280
26281 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
26282
26283         PR tree-optimization/34448
26284         PR tree-optimization/34465
26285         * gimplify.c (gimplify_init_constructor): Add new parameter
26286         notify_temp_creation.  Use it.
26287         (gimplify_modify_expr_rhs): Take volatiles into account when
26288         optimizing constructors.
26289         Do not optimize constructors if gimplify_init_constructor will dump to
26290         memory.
26291         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
26292         * gcc.c-torture/compile/pr34448.c: New.
26293
26294 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
26295
26296         PR gcov-profile/34609
26297         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
26298         return_slot if result is TREE_ADDRESSABLE.
26299
26300 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
26301
26302         * config/mips/mips.md (sqrt_condition): Tweak comment.
26303         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
26304
26305 2008-01-03  Tom Tromey  <tromey@redhat.com>
26306
26307         PR c/34457
26308         * c-common.c (c_type_hash): Handle VLAs.
26309
26310 2008-01-03  Jan Hubicka  <jh@suse.cz>
26311
26312         PR tree-optimization/31081
26313         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
26314         0 when inlining and not inlining to first basic block.
26315         (remap_decl): When var is initialized to 0, don't set default_def.
26316         (expand_call_inline): Set entry_bb.
26317         * tree-inline.h (copy_body_data): Add entry_bb.
26318
26319 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
26320
26321         PR c++/34619
26322         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
26323         before returning.
26324
26325         PR tree-optimization/29484
26326         * tree-inline.c (inline_forbidden_p_2): New function.
26327         (inline_forbidden_p): Disallow inlining if some static var
26328         has an address of a local LABEL_DECL in its initializer.
26329         * doc/extend.texi (Labels as Values): Document &&foo behaviour
26330         vs. inlining.
26331
26332 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
26333
26334         PR tree-optimization/34635
26335         * tree-data-ref.c (add_other_self_distances): Make sure that the
26336         evolution step is constant.
26337
26338 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
26339
26340         PR middle-end/34608
26341         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
26342
26343 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
26344
26345         * tree-sra.c (scalarize_init): Insert the generate_element_init
26346         statements after the generate_element_zero statements.
26347
26348 2008-01-02  Richard Guenther  <rguenther@suse.de>
26349
26350         PR middle-end/34093
26351         PR middle-end/31976
26352         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
26353         for very large number of operands instead of ICEing.
26354
26355 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
26356
26357         PR target/34013
26358         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
26359         while stack probing.
26360
26361 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
26362
26363         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
26364         in C++0x mode.
26365
26366 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
26367
26368         PR libmudflap/26442
26369         * tree-mudflap.c (mx_register_decls): Guard warning by
26370         !DECL_ARTIFICIAL check.
26371
26372 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
26373
26374         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
26375         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
26376         sse5_perm<mode>): Fix constraints.