OSDN Git Service

* gimple.c (recalculate_side_effects) <tcc_constant>: New case.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-12-07  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * gimple.c (recalculate_side_effects) <tcc_constant>: New case.
4
5 2008-12-07  Richard Guenther  <rguenther@suse.de>
6
7         PR tree-optimization/38405
8         * tree-vrp.c (simplify_truth_ops_using_ranges): Make sure to
9         not sign-extend truth values.
10
11 2008-12-07  Eric Botcazou  <ebotcazou@adacore.com>
12
13         * tree-sra.c (scalarize_use): Create another temporary with the proper
14         type for signed types in the use_all && !is_output bitfield case.
15
16 2008-12-06  Steven Bosscher  <steven@gcc.gnu.org>
17
18         PR rtl-optimization/36365
19         * df-core.c (df_worklist_dataflow_overeager): Remove.
20         (df_worklist_dataflow): Don't call it, use double-queue only.
21         * params.def (PARAM_DF_DOUBLE_QUQUQ_THRESHOLD_FACTOR): Remove.
22
23 2008-12-06  Jakub Jelinek  <jakub@redhat.com>
24
25         PR middle-end/38428
26         * tree-ssa-operands.c (get_expr_operands) <case BIT_FIELD_REF>: Set
27         gimple_set_has_volatile_ops if the BIT_FIELD_REF is volatile.
28
29 2008-12-07  Ben Elliston  <bje@au.ibm.com>
30
31         * gthr-single.h (__gthread_once): Adjust prototype to match all
32         other gthreads models.
33
34 2008-12-06  Jakub Jelinek  <jakub@redhat.com>
35
36         * config/i386/i386.c (override_options): Use CPU_AMDFAM10
37         instead of PROCESSOR_AMDFAM10 for barcelona's schedule.
38
39         PR middle-end/38422
40         * fold-const.c (fold_unary) <CASE_CONVERT>: Don't convert MULT_EXPR
41         operands to mult_type if it isn't narrower than op0's type.
42
43 2008-12-06  Jan Hubicka  <jh@suse.cz>
44             Jakub Jelinek <jakub@redhat.com>
45
46         PR tree-optimization/38074
47         * cgraphbuild.c (compute_call_stmt_bb_frequency): Fix handling of 0
48         entry frequency.
49         * predict.c (combine_predictions_for_bb): Ignore predictor predicting
50         in both dirrection for first match heuristics.
51         (tree_bb_level_predictions): Disable noreturn heuristic when there
52         is no returning path.
53
54 2008-12-05  Bernd Schmidt  <bernd.schmidt@analog.com>
55
56         PR rtl-optimization/38272
57         * reload1.c (choose_reload_regs): Keep reload_spill_index correct
58         in all cases.
59
60 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
61
62         PR c++/35336
63         * c-pretty-print.c (pp_c_postfix_expression): Handle BIT_FIELD_REF.
64         (pp_c_expression): Likewise.
65
66 2008-12-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
67
68         PR c/38416
69         * c-parser.c (struct c_token): Make pragma_kind 8 bits.
70
71 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
72
73         PR middle-end/37248
74         * fold-const.c (make_bit_field_ref): Change bitpos and bitsize
75         arguments to HOST_WIDE_INT.  If type has different signedness
76         than unsignedp or different precision from bitsize, create
77         the right type for BIT_FIELD_REF and cast to type.
78         (fold_truthop): Change first_bit and end_bit to HOST_WIDE_INT.
79
80         Revert:
81         2008-03-05  Richard Guenther  <rguenther@suse.de>
82         PR c++/35336
83         * fold-const.c (fold_truthop): Remove code generating
84         BIT_FIELD_REFs of structure bases.
85         (fold_binary): Likewise.
86         (make_bit_field_ref): Remove.
87         (optimize_bit_field_compare): Remove.
88         (all_ones_mask_p): Remove.
89
90 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
91
92         * tree-sra.c (sra_explode_bitfield_assignment): Always
93         call unsigned_type_for, if the precision is higher than
94         needed, call build_nonstandard_integer_type.
95
96         PR debug/38367
97         * function.c (assign_parm_find_stack_rtl): If promoted_mode
98         is wider than DECL_MODE, adjust MEM_OFFSET (stack_parm) for
99         big endian.
100
101         PR middle-end/38338
102         * builtins.c (expand_builtin_apply_args): Put before parm_birth_insn
103         only if internal_arg_pointer is a non-virtual pseudo.
104
105 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
106
107         * config/rs6000/rs6000.md (move_from_CR_gt_bit): Enable for
108         TARGET_HARD_FLOAT && !TARGET_FPRS, not TARGET_E500.
109         * config/rs6000/spe.md (e500_cr_ior_compare): Likewise.
110
111 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
112
113         PR tree-optimization/37716
114         * gimplify.c (gimplify_expr): Allow COND_EXPR if
115         gimplify_ctxp->allow_rhs_cond_expr.
116
117 2008-12-05  Uros Bizjak  <ubizjak@gmail.com>
118
119         * config/alpha/alpha.c (alpha_fold_vector_minmax): Create
120         VIEW_CONVERT_EXPR to convert output to long_integer_type_node.
121
122         (alpha_emit_conditional_branch): Do not generate direct branch
123         for UNORDERED comparisons.
124
125 2008-12-05  Andreas Schwab  <schwab@suse.de>
126
127         * config/rs6000/linux-unwind.h (frob_update_context): Check for
128         NULL lr.
129
130 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
131
132         PR c/38408
133         * fold-const.c (fold_checksum_tree): Change buf type to union
134         tree_node.
135
136 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
137
138         PR bootstrap/38262
139         * Makefile.in (LIBS): Remove GMPLIBS, CLOOGLIBS and PPLLIBS.
140         (BACKENDLIBS): New.
141         (cc1-dummy, cc1): Add BACKENDLIBS, remove GMPLIBS.
142
143 2008-12-05  Ben Elliston  <bje@au.ibm.com>
144
145         * c-parser.c (c_parser_enum_specifier): Initialise ident_loc and
146         comma_loc.
147         (c_parser_initelt): Initialise des_loc and ellipsis_loc.
148
149 2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>
150             Gary Funck  <gary@intrepid.com>
151
152         * cse.c (lookup_as_function): Delete mode frobbing code.
153         (equiv_constant): Re-implement it there for SUBREGs.
154
155 2008-12-04  Richard Guenther  <rguenther@suse.de>
156
157         PR middle-end/36509
158         * Makefile.in (tree-ssa-alias-warnings.o): Remove.
159         (tree-ssa-structalias.o): Remove errors.h dependency.
160         (tree-ssa-reassoc.o): Likewise.
161         * tree-ssa-reassoc.c: Do not include errors.h.
162         * tree-ssa-alias-warnings.c: Remove.
163         * tree-ssa-alias.c (compute_may_aliases): Remove call to
164         strict_aliasing_warning_backend.
165         * tree-ssa-structalias.c (emit_pointer_definition): New function.
166         (emit_alias_warning): Likewise.
167         (set_uids_in_ptset): Warn for clear cases of type-punning.
168         * tree-inline.c (remap_gimple_op_r): Preserve TREE_NO_WARNING
169         on INDIRECT_REFs.
170
171 2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>
172
173         * cse.c (equiv_constant): Fix pasto.
174
175 2008-12-04  Nick Clifton  <nickc@redhat.com>
176
177         * config/stormy16/stormy16.md: Remove extraneous spaces and quotes.
178         * config/stormy16/stormy16.c: Remove extraneous spaces and fix up
179         formatting of quotes.
180
181 2008-12-04  Jakub Jelinek  <jakub@redhat.com>
182
183         PR middle-end/38371
184         * fold-const.c (fold_checksum_tree): Allow modification of
185         TYPE_NEXT_VARIANT.
186
187 2008-12-03  Jakub Jelinek  <jakub@redhat.com>
188
189         PR middle-end/38360
190         * tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't
191         have the right number of arguments.
192
193 2008-12-03  Richard Guenther  <rguenther@suse.de>
194
195         PR middle-end/36326
196         * gimplify.c (is_gimple_mem_or_call_rhs): Remove work-around for
197         non-BLKmode types.
198
199 2008-12-03  Tomas Bily  <tbily@suse.cz>
200
201         PR middle-end/38250
202         * tree-loop-distribution.c (build_size_arg): New function.
203         (generate_memset_zero): Checks if dr_analyze_innermost succeed.
204         Reorganized generating of stmts.
205         * testsuite/gcc.dg/tree-ssa/pr38250.c: New file.
206         * tree-data-ref.c (dr_analyze_innermost): Returns bool.
207         Indicate if analysis succeed.
208         * tree-data-ref.h (dr_analyze_innermost): Returns bool.
209         * tree-predcom.c (valid_initializer_p, find_looparound_phi):
210         Uses new definition of dr_analyze_innermost.
211
212 2008-12-03  Ben Elliston  <bje@au.ibm.com>
213
214         * tree-ssa-pre.c (do_regular_insertion): Initialise edoubleprime.
215
216 2008-12-03  Jakub Jelinek  <jakub@redhat.com>
217
218         PR tree-optimization/37716
219         * tree-sra.c (sra_build_assignment): For scalar bitfield SRC construct
220         all the needed operations as trees and gimplify_assign it to dst.
221
222         PR target/37610
223         * configure.ac (gcc_cv_readelf): Look for readelf.
224         (gcc_cv_as_cfi_advance_working): Check for working
225         cfi advances with code alignment factor > 1.
226         (HAVE_GAS_CFI_DIRECTIVE): Don't define if cfi advances
227         don't work properly.
228         * configure: Regenerated.
229
230 2008-12-03  Eric Botcazou  <ebotcazou@adacore.com>
231             Jakub Jelinek  <jakub@redhat.com>
232             Andrew Pinski  <andrew_pinski@playstation.sony.com>
233
234         PR rtl-optimization/38281
235         * combine.c (distribute_notes): When invoking SET_INSN_DELETED on i2,
236         set it to NULL_RTX afterwards.
237
238         * emit-rtl.c (set_insn_deleted): Fix formatting.
239
240 2008-12-02  Richard Sandiford  <rdsandiford@googlemail.com>
241
242         * config/mips/mips.c (mips_expand_builtin): Fix the mode of the
243         error return value.
244         * config/mips/mips.md (IMOVE32): New mode iterator.
245         (movsi): Generalize with IMOVE32.
246         (*movsi_internal): Likewise.
247         (*mov<mode>_mips16): Likewise.
248         (*lwxs): Likewise.
249
250 2008-12-02  Nathan Sidwell  <nathan@codesourcery.com>
251             Maxim Kuvyrkov  <maxim@codesourcery.com>
252
253         * config/m68k/lb1sf68.asm (PICCALL, PICJUMP): Use GOT instead of
254         PC-relative addressing when compiling for uclinux PIC.
255         (__cmpdf_internal, __cmpsf_internal): Hide.
256         (__cmpdf, __cmpsf): Use PIC call sequence.
257
258 2008-12-02  Andreas Tobler  <a.tobler@schweiz.org>
259             Jack Howarth <howarth@bromo.med.uc.edu>
260
261         * config/i386/t-darwin64: Add m32 multilib support.
262
263 2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>
264
265         * testsuite/gcc.dg/darwin-comm.c: Expand to darwin10 and later.
266
267 2008-12-02  Jakub Jelinek  <jakub@redhat.com>
268
269         PR middle-end/38343
270         * builtins.c (fold_builtin_memory_op): Convert len to sizetype
271         before using it in POINTER_PLUS_EXPR.
272
273 2008-12-02  Richard Guenther  <rguenther@suse.de>
274
275         PR tree-optimization/38359
276         * fold-const.c (fold_binary): Fold -1 >> x to -1 only for
277         non-negative x.
278
279 2008-12-02  Martin Jambor  <mjambor@suse.cz>
280
281         PR middle-end/37861
282         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not check
283         for INDIRECT_REFs.
284         (forward_propagate_addr_into_variable_array_index): Check that the
285         offset is not computed from a MULT_EXPR, use is_gimple_assign rather
286         than the gimple code directly.
287
288 2008-12-02  Ben Elliston  <bje@au.ibm.com>
289
290         * config/spu/float_disf.c (__floatdisf): Prototype.
291         * config/spu/float_unsdisf.c (__float_undisf): Likewise.
292         * config/spu/float_unssidf.c (__float_unssidf): Constify cast.
293         * config/spu/float_unsdidf.c (__float_unsdidf): Likewise.
294
295 2008-12-02  DJ Delorie  <dj@redhat.com>
296
297         * config/stormy16/stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate.
298         (DWARF_CIE_DATA_ALIGNMENT): Define.
299
300         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout):
301         Invert add/sub for INCOMING_FRAME_SP_OFFSET.
302         (xstormy16_expand_prologue): Likewise.
303         (xstormy16_expand_builtin_va_start): Likewise.
304         (xstormy16_gimplify_va_arg_expr): Likewise.
305
306 2008-12-02  Jakub Jelinek  <jakub@redhat.com>
307
308         PR middle-end/38343
309         * builtins.c (expand_builtin_mempcpy_args): Handle COMPOUND_EXPRs
310         potentially returned from folding memcpy.
311         (expand_builtin_stpcpy_args): Similarly for folding strcpy.
312         (fold_builtin_2): Handle BUILT_IN_STPCPY if result is ignored.
313
314 2008-12-02  Danny Smith  <dannysmith@users.sourceforge.net>
315
316         PR target/38054
317         * config/i386/winnt.c (i386_pe_encode_section_info): Condition stdcall
318         decoration of function RTL names here on Ada language.
319
320 2008-12-01  Vladimir Makarov  <vmakarov@redhat.com>
321
322         PR rtl-optimization/38280
323         * ira-build.c (loop_is_inside_p, regno_allocno_order_compare_func,
324         ira_rebuild_regno_allocno_list): New functions.
325         (regno_allocnos): New static variable.
326         (remove_unnecessary_allocnos): Allocate/deallocate regno_allocnos.
327         Call ira_rebuild_regno_allocno_list.
328
329 2008-12-01  David Daney  <ddaney@caviumnetworks.com>
330             Adam Nemet  <anemet@caviumnetworks.com>
331
332         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add
333         LINUX_DRIVER_SELF_SPECS.
334
335 2008-12-01  Vladimir Makarov  <vmakarov@redhat.com>
336
337         PR rtl-optimization/37514
338         * reload1.c (reload_as_needed): Invalidate reg_last_reload
339         from previous insns.
340
341 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
342
343         PR c++/38348
344         * c-omp.c (c_finish_omp_for): Only transform pointer
345         ++ or -- into MODIFY_EXPR if second argument is non-NULL.
346
347         PR rtl-optimization/38245
348         * tree-vrp.c (abs_extent_range): New function.
349         (extract_range_from_binary_expr): Compute range
350         for *_DIV_EXPR even if vr1 is VR_VARYING, VR_ANTI_RANGE
351         or includes zero or if vr1 is VR_RANGE and op0 has some
352         other range.
353
354 2008-12-01  Uros Bizjak  <ubizjak@gmail.com>
355
356         PR middle-end/37908
357         * config/alpha/alpha.c (alpha_split_atomic_op): Properly handle NAND
358         case by calculating ~(new_reg & val) instead of (~new_reg & val).
359         * config/alpha/sync.md (sync_nand<mode>): Change insn RTX
360         to (not:I48MODE (and:I48MODE (...))).
361         (sync_old_nand<mode>): Ditto.
362         (sync_new_nand<mode>): Ditto.
363
364 2008-12-01  Nick Clifton  <nickc@redhat.com>
365
366         * config/stormy16/stormy16.md (CARRY_REG): New constant.
367         Replace uses of the "y" register class with direct references to
368         the CARRY_REG register.
369         * config/stormy16/stormy16.c: Replace clobbers of a BImode scratch
370         register with clobbers of the carry register.
371         (xstormy16_secondary_reload_class): Do not return CARRY_REGS.
372         (xstormy16_split_cbranch): Remove redundant carry parameter.
373         (xstormy16_expand_arith): Likewise.
374         * config/stormy16/stormy16.h (enum reg_class): Remove CARRY_REGS.
375         (IRA_COVER_CLASSES, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
376         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
377         (CARRY_REGNUM): Define.
378         * config/stormy16/stormy16-protos.h (xstormy16_split_cbranch):
379         Update prototype.
380         (xstormy16_expand_arith): Likewise.
381
382 2008-12-01  Chen Liqin  <liqin.chen@sunplusct.com>
383
384         * config/score/score.h (IRA_COVER_CLASSES): Define.
385
386 2008-11-30  Eric Botcazou  <ebotcazou@adacore.com>
387
388         PR target/38287
389         * config/sparc/sparc.md (divsi3 expander): Remove constraints.
390         (divsi3_sp32): Add new alternative with 'K' for operand #2.
391         (cmp_sdiv_cc_set): Factor common string.
392         (udivsi3_sp32): Add new alternative with 'K' for operand #2.
393         Add TARGET_V9 case.
394         (cmp_udiv_cc_set): Factor common string.
395
396 2008-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
397
398         PR middle-end/38283
399         * varasm.c (emutls_finish): Fix common registration.
400
401 2008-11-29  Jakub Jelinek  <jakub@redhat.com>
402
403         PR target/29987
404         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
405
406 2008-11-29  David Edelsohn  <edelsohn@gnu.org>
407
408         * config/rs6000/rs6000.c (rs6000_emit_sync): Remove support for
409         operand wrapped in NOT.  Emit NAND as (ior (not X) (not Y)).
410         (rs6000_split_atomic_op): Emit NAND as (ior (not X) (not Y)).
411         * config/rs6000/sync.md (sync_nand<mode>): Represent NAND in RTL.
412         Call rs6000_emit_sync with CODE=NOT and unmodified operands.
413         Ignore sub-word case for now.
414         (sync_nand<mode>_internal): Represent NAND in RTL.
415         (sync_old_nand<mode): Same.
416         (sync_old_name<mode>_internal): Same.
417         (sync_new_nand<mode>): Same.
418         (sync_new_nand<mode>_internal): Same.
419         (sync_boolcshort_internal): Expect NAND.
420
421 2008-11-28  Richard Guenther  <rguenther@suse.de>
422
423         PR tree-optimization/37955
424         PR tree-optimization/37742
425         * tree-vect-transform.c (vectorizable_store): Remove assert for
426         compatible aliases.
427         (vectorizable_load): Likewise.
428
429 2008-11-27  Richard Guenther  <rguenther@suse.de>
430
431         * tree-ssa-structalias.c (intra_create_variable_infos): Make
432         a constraint for the static chain parameter.
433
434 2008-11-27  Bernd Schmidt  <bernd.schmidt@analog.com>
435
436         * config/bfin/bfin.opt (micplb): New option.
437         * config/bfin/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Set it.
438         * config/bfin/bfin-protos.h (WA_INDIRECT_CALLS,
439         ENABLE_WA_INDIRECT_CALLS): New macros.
440         * config/bfin/bfin.c (bfin_cpus): Add WA_INDIRECT_CALLS to
441         all 54x CPUs.
442         (indirect_call_p): New function.
443         (workaround_speculation): Handle anomaly 05-00-0426 when
444         ENABLE_WA_INDIRECT_CALLS is true.
445         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
446         __WORKAROUND_INDIRECT_CALLS if ENABLE_WA_INDIRECT_CALLS.
447         * doc/invoke.texi (Blackfin Options): Document -micplb.
448
449 2008-11-26  DJ Delorie  <dj@redhat.com>
450
451         * config/m32c/mov.md ("extendhipsi2"): New.
452
453         * config/m32c/bitops.md (bset_qi): Add memsym_operand predicate.
454
455         * config/m32c/bitops.md (andhi3_24, iorhi3_24): Don't prefer HL class.
456         * config/m32c/mov.md (zero_extendqihi2): Likewise.
457
458 2008-11-26  Adam Nemet  <anemet@caviumnetworks.com>
459
460         * config/mips/mips.md (clear_hazard): Rename to
461         clear_hazard_<mode>.  Use mode-specific addition.
462         (clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
463         or gen_clear_hazard_di depending on the size of Pmode.
464
465 2008-11-26  DJ Delorie  <dj@redhat.com>
466
467         * configure.ac: Test m32c-elf-gas for .loc.
468         * configure: Likewise.
469
470 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
471
472         PR testsuite/28870
473         * doc/sourcebuild.texi (Test Directives): Add dg-timeout and
474         dg-timeout-factor.
475
476 2008-11-26  Uros Bizjak  <ubizjak@gmail.com>
477
478         * config/i386/sync.md (memory_barrier_nosse): Disable also for
479         TARGET_64BIT.  Remove special asm template for TARGET_64BIT case.
480         (memory_barrier): Do not generate memory_barrier_nosse instruction
481         for TARGET_64BIT.
482         * config/i386/sse.md (*sse2_mfence): Also enable for TARGET_64BIT.
483
484 2008-11-26  Fredrik Unger  <fred@tree.se>
485
486         * config/soft-fp/floatuntisf.c (__floatuntisf): Correct
487         function name from __floatundisf.
488         * config/soft-fp/fixdfti.c (__fixdfti): Correct argument type to
489         DFtype.
490
491 2008-11-25  Daniel Berlin  <dberlin@dberlin.org>
492             Richard Guenther  <rguenther@suse.de>
493
494         PR tree-optimization/37869
495         * tree-ssa-structalias.c (struct constraint_graph): Remove
496         pt_used and number_incoming members.
497         (build_pred_graph): Do not allocate them.
498         (condense_visit): Do not use them.
499         (label_visit): Likewise.
500         (free_var_substitution_info): Do not free them.
501
502 2008-11-25  Vladimir Makarov  <vmakarov@redhat.com>
503
504         * doc/invoke.texi (ira-max-loops-num): Change semantics.
505
506         * ira-int.h (struct ira_loop_tree_node): New member to_remove_p.
507
508         * ira-color.c (allocno_spill_priority): New function.
509         (remove_allocno_from_bucket_and_push, push_allocno_to_spill):
510         Print more info about the spilled allocno.
511         (push_allocnos_to_stack): Use allocno_spill_priority.  Add more
512         checks on bad spill.
513
514         * ira-build.c (loop_node_to_be_removed_p): Remove.
515         (loop_compare_func, mark_loops_for_removal): New functions.
516         (remove_uneccesary_loop_nodes_from_loop_t): Use member
517         to_remove_p.
518         (remove_unnecessary_allocnos): Call mark_loops_for_removal.
519
520         * ira.c (ira): Don't change flag_ira_algorithm.
521
522         * params.def (ira-max-loops-num): Change the value.
523
524 2008-11-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
525
526         * config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up.
527         Disable unsupported alternative for ColdFire,
528         add new alternative that ColdFire can handle.
529
530 2008-11-25  Eric Botcazou  <ebotcazou@adacore.com>
531
532         * regrename.c (merge_overlapping_regs): Add registers artificially
533         defined at the top of the basic block to the set of live ones just
534         before the first insn.
535
536 2008-11-25  H.J. Lu  <hongjiu.lu@intel.com>
537             Joey Ye  <joey.ye@intel.com>
538
539         PR middle-end/37843
540         * config/i386/i386.c (ix86_function_ok_for_sibcall): Return
541         false if we need to align the outgoing stack.
542         (ix86_update_stack_boundary): Check parm_stack_boundary.
543
544 2008-11-25  Richard Guenther  <rguenther@suse.de>
545
546         PR middle-end/38151
547         PR middle-end/38236
548         * tree-ssa-alias.c (struct alias_info): Remove written_vars.
549         Remove dereferenced_ptrs_store and dereferenced_ptrs_load
550         in favor of dereferenced_ptrs.
551         (init_alias_info): Adjust.
552         (delete_alias_info): Likewise.
553         (compute_flow_insensitive_aliasing): Properly
554         include all aliased variables.
555         (update_alias_info_1): Use dereferenced_ptrs.
556         (setup_pointers_and_addressables): Likewise.
557         (get_smt_for): Honor ref-all pointers and pointers with known alias
558         set properly.
559         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers.
560
561 2008-11-25  Uros Bizjak  <ubizjak@gmail.com>
562
563         PR target/38254
564         * config/i386/sync.md (memory_barrier_nosse): New insn pattern.
565         (memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.
566
567 2008-11-24  Maxim Kuvyrkov  <maxim@codesourcery.com>
568
569         * config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.
570
571 2008-11-24  Richard Sandiford  <rdsandiford@googlemail.com>
572
573         * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
574
575 2008-11-24  Maxim Kuvyrkov  <maxim@codesourcery.com>
576
577         PR target/35018
578         * config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes.
579         (addsi_lshrsi_31): Add ColdFire-friendly alternatives.
580
581 2008-11-24  Uros Bizjak  <ubizjak@gmail.com>
582
583         * config/i386/i386.md (UNSPECV_CMPXCHG): Rename from
584         UNSPECV_CMPXCHG_[12].
585         * config/i386/sync.md: Use UNSPECV_CMPXCHG instead of
586         UNSPECV_CMPXCHG_[12].
587
588         PR target/36793
589         * config/i386/sync.md (memory_barrier): New expander.
590
591 2008-11-24  Jakub Jelinek  <jakub@redhat.com>
592
593         PR middle-end/37135
594         * dse.c (find_shift_sequence): Optimize extraction from a constant.
595
596 2008-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
597
598         * pa.c (function_arg): Revert 2008-10-26 change.
599
600 2008-11-23  Helge Deller  <deller@gmx.de>
601
602         * pa/linux-atomic.c (EBUSY): Define if not _LP64.
603         (__kernel_cmpxchg): Return -EBUSY if the kernel LWS call
604         succeeded and lws_ret is not equal to oldval.
605
606 2008-11-23  Kaz Kojima  <kkojima@gcc.gnu.org>
607
608         * config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.
609
610 2008-11-22  Andreas Schwab  <schwab@suse.de>
611
612         * varasm.c (default_file_start): Suppress ASM_APP_OFF also with
613         -dA and -dP.
614
615 2008-11-22  Adam Nemet  <anemet@caviumnetworks.com>
616
617         * config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
618         Use constant 1 as the operand.
619         * config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode.
620         Rename gen_rdhwr to gen_rdhwr_synci_step_si or
621         gen_rdhwr_synci_step_di depending on the size of Pmode.
622
623 2008-11-22  Uros Bizjak  <ubizjak@gmail.com>
624
625         PR target/38222
626         * config/i386/i386.md (SWI248): New mode iterator.
627         (SWI32): Remove mode iterator.
628         (popcount<mode>2): Rename from popcounthi2, popcountsi2 and
629         popcounthi2 insn patterns. Macroize pattern using SWI248 mode
630         iterator.  Generate popcnt mnemonic without mode extensions
631         for Darwin x86 targets.
632         (*popcount<mode>2_cmp): Ditto.
633         (*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode
634         extensions for Darwin x86 targets.
635
636 2008-11-22  Eric Botcazou  <ebotcazou@adacore.com>
637
638         * config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define
639         only if HAVE_AS_SPARC_UA_PCREL is defined.
640
641 2008-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
642
643         * ira-costs.c (find_allocno_class_costs): Work out the maximum
644         allocno_costs value of the classees with the lowest total_costs
645         value.  Use this to set ALLOCNO_COVER_CLASS_COST here...
646         (setup_allocno_cover_class_and_costs): ...rather than here.
647         Use the ALLOCNO_COVER_CLASS_COST for all registers in the
648         preferred class.
649
650 2008-11-22  Jakub Jelinek  <jakub@redhat.com>
651
652         PR middle-end/37323
653         * builtins.c (expand_builtin_apply_args): Emit sequence before
654         parm_birth_insn instead of after entry_of_function's first insn.
655
656         PR middle-end/37316
657         * function.c (assign_parm_remove_parallels): Pass
658         data->passed_type as third argument to emit_group_store.
659
660         PR target/37170
661         * final.c (mark_symbol_refs_as_used): New function.
662         * output.h (mark_symbol_refs_as_used): New prototype.
663         * config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
664         (s390_output_pool_entry): Use mark_symbol_refs_as_used.
665         * config/arm/arm.md (consttable_4): Likewise.
666
667         PR target/37880
668         * doc/invoke.texi: Adjust wording of -mcmodel=medium description.
669
670 2008-11-21  Jakub Jelinek  <jakub@redhat.com>
671
672         PR middle-end/38200
673         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
674         propagate x = &a into *x = b if conversion from b to a's type is
675         useless.
676
677 2008-11-21  Eric Botcazou  <ebotcazou@adacore.com>
678
679         * caller-save.c (insert_one_insn): Take into account REG_INC notes
680         for the liveness computation of the new insn.
681
682 2008-11-21  DJ Delorie  <dj@redhat.com>
683
684         * config/stormy16/stormy16.md (movqi_internal, movhi_internal):
685         Moves to/from below100 space (W) can only use r0-r7.
686
687 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
688
689         PR other/38214
690         * doc/invoke.texi (Optimization Options): Fix typo.
691
692 2008-11-21  H.J. Lu  <hongjiu.lu@intel.com>
693             Xuepeng Guo  <xuepeng.guo@intel.com>
694
695         * config.gcc (extra_headers): For x86 and x86-64, remove
696         gmmintrin.h, add immintrin.h and avxintrin.h.
697
698         * config/i386/gmmintrin.h: Renamed to ...
699         * config/i386/avxintrin.h: This.  Issue an error if
700         _IMMINTRIN_H_INCLUDED is undedined.
701
702         * config/i386/immintrin.h: New.
703
704 2008-11-21  Jakub Jelinek  <jakub@redhat.com>
705
706         PR target/38208
707         * reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
708         mode of PLUS, not mode of the eliminated register.
709
710 2008-11-21  Uros Bizjak  <ubizjak@gmail.com>
711
712         * config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3.
713         * config/i386/sse.md (avx_nand<mode>3): Rename to avx_andnot<mode>3.
714         (<sse>_nand<mode>3): Rename to <sse>_andnot<mode>3.
715         (sse2_nand<mode>3): Rename to sse2_andnot<mode>3.
716         (*sse_nand<mode>3): Rename to *sse_andnot<mode>3.
717         (*avx_nand<mode>3): Rename to *avx_andnot<mode>3.
718         (*nand<mode>3): Rename to *andnot<mode>3.
719         (*nandtf3): rename to *andnottf3.
720         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_PANDN]:
721         Use CODE_FOR_mmx_andnotv2si3.
722         [IX86_BUILTIN_ANDNPS]: Use CODE_FOR_sse_andnotv4sf3.
723         [IX86_BUILTIN_ANDNPD]: Use CODE_FOR_sse2_andnotv2df3.
724         [IX86_BUILTIN_PANDN128]: Use CODE_FOR_sse2_andnotv2di3.
725         [IX86_BUILTIN_ANDNPS256]: Use CODE_FOR_avx_andnotv8sf3.
726         [IX86_BUILTIN_ANDNPD256]: Use CODE_FOR_avx_andnotv4df3.
727
728 2008-11-21  Uros Bizjak  <ubizjak@gmail.com>
729
730         PR middle-end/37908
731         * config/ia64/ia64.c (ia64_expand_atomic_op): Properly handle NAND
732         case by calculating ~(new_reg & val) instead of (~new_reg & val).
733         * config/ia64/sync.md (sync_nand<mode>): Change insn RTX
734         to (not:IMODE (and:IMODE (...))).
735         (sync_old_nand<mode>): Ditto.
736         (sync_new_nand<mode>): Ditto.
737
738 2008-11-20  Joseph Myers  <joseph@codesourcery.com>
739
740         * config/arm/thumb2.md (thumb2_casesi_internal,
741         thumb2_casesi_internal_pic): Use earlyclobber for scratch operand 4.
742
743 2008-11-20  Andreas Krebbel  <krebbel1@de.ibm.com>
744
745         * gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
746         nand to the changed 4.4 semantic.
747
748 2008-11-20  Jakub Jelinek  <jakub@redhat.com>
749
750         PR middle-end/29215
751         * builtins.c (SLOW_UNALIGNED_ACCESS): Define if not defined.
752         (fold_builtin_memory_op): Handle even the case where just one
753         of src and dest is an address of a var decl component, using
754         TYPE_REF_CAN_ALIAS_ALL pointers.  Remove is_gimple_min_invariant
755         and readonly_data_expr src check.
756         * tree-ssa-sccvn.c (DFS): Use clear_and_done_ssa_iter to shut
757         up warnings.
758
759         PR rtl-optimization/36998
760         * dwarf2out.c (stack_adjust_offset): Add cur_args_size and cur_offset
761         arguments.  Handle sp = reg and (set (foo) (mem (pre_inc (reg sp)))).
762         (compute_barrier_args_size_1, dwarf2out_frame_debug_expr): Adjust
763         stack_adjust_offset callers.
764         (dwarf2out_stack_adjust): Likewise.  Handle insns in annulled
765         branches properly.
766         (compute_barrier_args_size): Handle insns in annulled branches
767         properly.
768
769 2008-11-20  Uros Bizjak  <ubizjak@gmail.com>
770
771         PR target/38151
772         * config/i386/i386.c (classify_argument) [integer mode size <= 64bit]:
773         Handle cases when integer argument crosses argument register boundary.
774
775 2008-11-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
776
777         PR bootstrap/33100
778         * config.gcc (i[34567]86-*-solaris2*): Don't include
779         i386/t-crtstuff here.
780         Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
781         * config/i386/t-sol2: Move to libgcc/config/i386.
782
783 2008-11-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
784
785         PR driver/21706
786         * tlink.c: Include "libiberty.h".
787         (initial_cwd): Change type into char *.
788         (tlink_init): Call getpwd instead of getcwd.
789
790 2008-11-19  Zdenek Dvorak  <ook@ucw.cz>
791
792         PR rtl-optimization/32283
793         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Use type of the base
794         of the induction variable to decide whether it may wrap.
795         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Emit the
796         initialization of the bound before the loop.
797         * simplify-rtx.c (simplify_binary_operation_1): Add two
798         simplifications regarding AND.
799         (simplify_plus_minus): Only fail if no simplification is possible.
800         * loop-iv.c (simple_rhs_p): Consider reg + reg and reg << cst simple.
801
802 2008-11-20  Jakub Jelinek  <jakub@redhat.com>
803
804         PR c++/36631
805         * gimplify.c (gimplify_call_expr): Defer most of the cannot inline
806         checking until GIMPLE lowering.
807         * gimple-low.c (check_call_args): New function.
808         (lower_stmt) <case GIMPLE_CALL>: Call it.
809
810 2008-11-19  Adam Nemet  <anemet@caviumnetworks.com>
811
812         * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize
813         with the same type as the first operand of the AND expression.
814
815 2008-11-19  Vladimir Makarov  <vmakarov@redhat.com>
816
817         PR bootstrap/37859
818         * ira-int.h (struct ira_loop_tree_node): New member
819         entered_from_non_parent_p.
820
821         * ira-color.c (print_loop_title): Print loop bbs.
822
823         * ira-emit.c (entered_from_non_parent_p,
824         setup_entered_from_non_parent_p): New functions.
825         (not_modified_p): Rename to store_can_be_removed_p.  Check there
826         is no side entries.
827         (generate_edge_moves): Use store_can_be_removed_p instead of
828         not_modified_p.
829         (ira_emit): Call setup_entered_from_non_parent_p.
830
831         * ira-build.c (copy_info_to_removed_store_destinations):
832         Accumulate CALL_FREQ, CALL_CROSSED_NUM, and
833         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
834         (ira_flattening): Don't CHECK MEM_OPTIMIZED_DEST[_P], always
835         update all accumulated attributes.
836
837 2008-11-19  Vladimir Makarov  <vmakarov@redhat.com>
838
839         PR bootstrap/37790
840         * ira-int.h (ira_copy_allocno_live_range_list,
841         ira_merge_allocno_live_ranges, ira_allocno_live_ranges_intersect_p,
842         ira_finish_allocno_live_range_list): New prototypes.
843         (ira_allocno_live_ranges_intersect_p,
844         ira_pseudo_live_ranges_intersect_p): Remove.
845
846         * ira-conflicts.c (ira_allocno_live_ranges_intersect_p,
847         ira_pseudo_live_ranges_intersect_p): Rename to
848         allocnos_have_intersected_live_ranges_p and
849         pseudos_have_intersected_live_ranges_p.  Move them from here to ...
850
851         * ira-color.c: ... here
852         (coalesced_allocno_conflict_p): Use
853         allocnos_have_intersected_live_ranges_p.
854         (coalesced_allocnos_living_at_program_points,
855         coalesced_allocnos_live_at_points_p,
856         set_coalesced_allocnos_live_points): Remove.
857         (slot_coalesced_allocnos_live_ranges,
858         slot_coalesced_allocno_live_ranges_intersect_p,
859         setup_slot_coalesced_allocno_live_ranges): New.
860         (coalesce_spill_slots): Use ranges of coalesced allocnos.
861         (ira_sort_regnos_for_alter_reg): Use
862         allocnos_have_intersected_live_ranges_p.
863         (ira_reuse_stack_slot): Use
864         pseudos_have_intersected_live_ranges_p.
865
866         * global.c (pseudo_for_reload_consideration_p): Check
867         flag_ira_share_spill_slots too.
868
869         * ira-build.c (copy_allocno_live_range_list): Rename to
870         ira_copy_allocno_live_range_list.  Make it external.
871         (merge_ranges): Rename to ira_merge_allocno_live_ranges.  Make it
872         external.
873         (ira_allocno_live_ranges_intersect_p): New.
874         (ira_finish_allocno_live_range_list): New.
875         (finish_allocno): Use it.
876         (remove_unnecessary_allocnos): Use ira_merge_allocno_live_ranges.
877         (copy_info_to_removed_store_destinations): Ditto.  Use
878         ira_copy_allocno_live_range_list.
879         (ira_flattening): Use ira_merge_allocno_live_ranges.
880
881         * ira.c (too_high_register_pressure_p): New function.
882         (ira): Switch off sharing spill slots if the pressure is too high.
883
884 2008-11-19  Richard Guenther  <rguenther@suse.de>
885
886         * tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with
887         non-sizetype offsets if their precision matches that of the pointer.
888         * expr.c (expand_expr_real_1): Always sign-extend the offset
889         operand of a POINTER_PLUS_EXPR.
890
891 2008-11-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
892
893         * config.gcc: Unobsolete mips-sgi-irix[56]*.
894         (mips-sgi-irix[56]*): No need to use fixproto.
895
896 2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
897             Paul Brook  <paul@codesourcery.com>
898
899         * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
900         executable stack.
901
902 2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
903
904         * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
905
906 2008-11-19  Razya Ladelsky  <razya@il.ibm.com>
907
908         PR target/38156
909         * tree-parloops.c (loop_parallel_p): NULL vect_dump.
910         (separate_decls_in_region): Create shared struct even when there
911         are only reductions.
912
913 2008-11-19  Hariharan Sandanagobalane <hariharan@picochip.com>
914
915         * config/picochip/picochip.c (headers): Remove an unnecessary
916         header file.
917
918 2008-11-19  Andrew Stubbs  <ams@codesourcery.com>
919
920         PR target/36133
921         * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines.
922         * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for
923         shift instructions.
924         * config/m68k/m68k.md: Adjust all conditional branches that use the
925         carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE.
926
927 2008-11-18  Uros Bizjak  <ubizjak@gmail.com>
928
929         PR target/37362
930         * config/mips/mips.md (move_doubleword_fpr<mode>): Check that "high"
931         is a register or zero operand in the correct mode before generating
932         mtch1 insn or a register operand in the correct mode before generating
933         mfch1 insn.
934         (mtch1<mode>): Correct operand 1 predicate to reg_or_0_operand.
935
936 2008-11-18  Adam Nemet  <anemet@caviumnetworks.com>
937
938         * config.gcc (mips*-sde-elf*): Handle mipsisa64r2*.
939         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add new cases to
940         mipsisa*-*-elf*.  Handle mipsisa64r2*.
941         * config/mips/sde.h (LINK_SPEC): Handle -mips64r2.
942         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
943         mips64r2.
944         (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.
945         * config/mips/t-sde (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
946         mips64r2.
947         (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.  Add mips64r2/mips16.
948         Fix mips16 if mips64 or mips64r2 are multilib defaults.
949         * config/mips/t-sdemtk (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
950         mips64r2.
951
952 2008-11-18  Jakub Jelinek  <jakub@redhat.com>
953
954         PR target/38130
955         * config/i386/i386.md (allocate_stack_worker_32,
956         allocate_stack_worker_64): Don't use match_dup between input and
957         output operand.
958         (allocate_stack): Adjust gen_stack_worker_{32,64} caller.
959         * config/i386/i386.c (ix86_expand_prologue): Likewise.
960
961 2008-11-18  Kai Tietz  <kai.tietz@onevision.com>
962
963         * config/i386/t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def
964         is forced when trying to do a symbol link for it.
965
966 2008-11-17  Adam Nemet  <anemet@caviumnetworks.com>
967
968         * expmed.c (extract_bit_field_1): Also use a temporary and
969         convert_extracted_bit_field when the conversion from ext_mode to
970         the target mode requires explicit truncation.
971
972 2008-11-17  Richard Sandiford  <rdsandiford@googlemail.com>
973
974         * config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first.
975         Tweak formatting.
976         * config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator
977         registers when not optimizing.
978
979 2008-11-17  Richard Sandiford  <rdsandiford@googlemail.com>
980
981         * config/mips/mips.md (*mul_acc_si): Remove middle alternative
982         and its associated define_split.  Expose the all-d alternative
983         to the register allocator, but mark it with "?".  Mark the first
984         alternative with "*?*?".
985         (*mul_sub_si): Likewise.
986         (*mul_acc_si_r3900): New pattern.
987
988 2008-11-17  Jakub Jelinek  <jakub@redhat.com>
989
990         PR middle-end/38140
991         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
992         propagating x = &a into *x = b, add a cast if not useless
993         type conversion or don't optimize if another stmt would be
994         needed.
995
996 2008-11-17  Uros Bizjak  <ubizjak@gmail.com>
997
998         PR middle-end/37908
999         * optabs.c (expand_sync_operation): Properly handle NAND case
1000         by calculating ~(t1 & val) instead of (~t1 & val).
1001         * builtins.c (expand_builtin_sync_operation): Warn for changed
1002         semantics in NAND builtins.
1003         * c.opt (Wsync-nand): New warning option.  Describe -Wsync-nand.
1004
1005         * doc/invoke.texi (Warning options): Add Wsync-nand.
1006         * doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct
1007         __sync_fetch_and_nand builtin operation in the example.  Add a note
1008         about changed semantics in GCC 4.4.
1009         [__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin
1010         operation in the example.  Add a note about changed semantics in
1011         GCC 4.4.
1012
1013 2008-11-16  Jan Hubicka  <jh@suse.cz>
1014
1015         * cgraph.c (cgraph_function_body_availability): Fix test of externally
1016         visible.
1017
1018 2008-11-16  Joshua Kinard  <kumba@gentoo.org>
1019
1020         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000
1021         to -mips4.
1022
1023 2008-11-16  Richard Sandiford  <rdsandiford@googlemail.com>
1024
1025         PR target/38052
1026         * config/mips/mips.c (mips_cfun_call_saved_reg_p)
1027         (mips_cfun_might_clobber_call_saved_reg_p): New functions,
1028         split out from...
1029         (mips_save_reg_p): ...here.  Always consult TARGET_CALL_SAVED_GP
1030         rather than call_really_used_regs when handling $gp.
1031
1032 2008-11-16  Richard Sandiford  <rdsandiford@googlemail.com>
1033
1034         PR target/38052
1035         * config/mips/mips.c (machine_function): Update the comment
1036         above global_pointer.
1037         (mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate
1038         that a function doesn't need a global pointer.
1039         (mips_current_loadgp_style): Update accordingly.
1040         (mips_restore_gp): Likewise.
1041         (mips_output_cplocal): Likewise.
1042         (mips_expand_prologue): Likewise.
1043
1044 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1045
1046         * config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode'
1047         parameter.  Use DImode for computing the number of registers.
1048         (function_arg): Adjust for above change.
1049         (function_value): Likewise.
1050
1051 2008-11-15  Zdenek Dvorak  <ook@ucw.cz>
1052
1053         PR tree-optimization/37950
1054         * tree-flow-inline.h (memory_partition): Return NULL when aliases were
1055         not computed for the current function.
1056
1057 2008-11-15  Jakub Jelinek  <jakub@redhat.com>
1058
1059         PR target/38123
1060         * config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between
1061         gpr and other COMPONENT_REFs.
1062
1063 2008-11-15  Richard Guenther  <rguenther@suse.de>
1064
1065         PR tree-optimization/38051
1066         * tree-ssa-alias.c (update_alias_info_1): Manually find
1067         written variables.
1068
1069 2008-11-15  Joshua Kinard  <kumba@gentoo.org>
1070
1071         * doc/invoke.texi (-mfix-r10000): Document.
1072         * config/mips/mips.opt (mfix-r10000): New option.
1073         * config/mips/mips-protos.h (mips_output_sync_loop): Declare.
1074         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Use %?.
1075         (MIPS_COMPARE_AND_SWAP_12): Likewise.
1076         (MIPS_SYNC_OP): Likewise.
1077         (MIPS_SYNC_OP_12): Likewise.
1078         (MIPS_SYNC_OLD_OP_12): Likewise.
1079         (MIPS_SYNC_NEW_OP_12): Likewise.
1080         (MIPS_SYNC_OLD_OP): Likewise.
1081         (MIPS_SYNC_NAND): Likewise.
1082         (MIPS_SYNC_OLD_NAND): Likewise.
1083         (MIPS_SYNC_EXCHANGE): Likewise.
1084         (MIPS_SYNC_EXCHANGE_12): Likewise.
1085         (MIPS_SYNC_NEW_OP): Likewise, using %~ to fill branch-likely
1086         delay slots.
1087         (MIPS_SYNC_NEW_NAND): Likewise.
1088         * config/mips/mips.c (mips_print_operand_punctuation): Handle '~'.
1089         (mips_init_print_operand_punct): Treat '~' as a punctuation character.
1090         (mips_output_sync_loop): New function.
1091         (mips_override_options): Make -march=r10000 imply -mfix-r10000.
1092         Make -mfix-r10000 require branch-likely instructions.
1093         * config/mips/sync.md (sync_compare_and_swap<mode>): Use
1094         mips_output_sync_loop.
1095         (compare_and_swap_12): Likewise.
1096         (sync_add<mode>): Likewise.
1097         (sync_<optab>_12): Likewise.
1098         (sync_old_<optab>_12): Likewise.
1099         (sync_new_<optab>_12): Likewise.
1100         (sync_nand_12): Likewise.
1101         (sync_old_nand_12): Likewise.
1102         (sync_new_nand_12): Likewise.
1103         (sync_sub<mode>): Likewise.
1104         (sync_old_add<mode>): Likewise.
1105         (sync_old_sub<mode>): Likewise.
1106         (sync_new_add<mode>): Likewise.
1107         (sync_new_sub<mode>): Likewise.
1108         (sync_<optab><mode>): Likewise.
1109         (sync_old_<optab><mode>): Likewise.
1110         (sync_new_<optab><mode>): Likewise.
1111         (sync_nand<mode>): Likewise.
1112         (sync_old_nand<mode>): Likewise.
1113         (sync_new_nand<mode>): Likewise.
1114         (sync_lock_test_and_set<mode>): Likewise.
1115         (test_and_set_12): Likewise.
1116
1117 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
1118
1119         * gcc.c (cc1_options): Fix comment.
1120
1121 2008-11-15  Jakub Jelinek  <jakub@redhat.com>
1122
1123         PR c++/37561
1124         * c-typeck.c (build_unary_op): Don't call get_unwidened.  Use
1125         argtype instead of result_type.
1126
1127 2008-11-14  Adam Nemet  <anemet@caviumnetworks.com>
1128
1129         * ira-int.h (struct ira_loop_tree_node): Improve comments for
1130         subloop_next/next and subloops/childen fields.
1131
1132 2008-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1133
1134         * config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
1135         (STANDARD_INCLUDE_DIR): Redefine to "/include".
1136         (LOCAL_INCLUDE_DIR): Undefine.
1137         * config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define.
1138
1139 2008-11-14  Vladimir Makarov  <vmakarov@redhat.com>
1140
1141         PR rtl-optimization/37397
1142         * ira-int.h (struct ira_allocno): New member bad_spill_p.
1143         (ALLOCNO_BAD_SPILL_P): New macro.
1144
1145         * ira-color.c (push_allocnos_to_stack): Check ALLOCNO_BAD_SPILL_P.
1146
1147         * ira-build.c (ira_create_allocno): Initialize ALLOCNO_BAD_SPILL_P.
1148         (create_cap_allocno, propagate_allocno_info,
1149         remove_unnecessary_allocnos): Set up or update ALLOCNO_BAD_SPILL_P.
1150         (update_bad_spill_attribute): New function.
1151         (ira_build): Call it.
1152
1153         * ira-costs.c (record_reg_classes): Set up ALLOCNO_BAD_SPILL_P.
1154
1155 2008-11-14  Jakub Jelinek  <jakub@redhat.com>
1156
1157         PR tree-optimization/38104
1158         * gimplify.c (gimple_regimplify_operands): Add referenced vars
1159         before calling mark_symbols_for_renaming, not after it.
1160
1161 2008-11-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1162
1163         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Revert last change.
1164         (OVERRIDE_OPTIONS): Likewise.
1165
1166 2008-11-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
1167             Andrew Stubbs  <ams@codesourcery.com>
1168             Gunnar Von Boehn  <gunnar@genesi-usa.com>
1169
1170         PR target/36134
1171         * config/m68k/m68k.md (addsi3_5200): Add a new alternative preferring
1172         the shorter LEA insn over ADD.L where possible.
1173
1174 2008-11-14  Thomas Schwinge  <tschwinge@gnu.org>
1175
1176         * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd
1177         systems, which are assumend to always provide SSP-support in glibc.
1178         Also consider GNU/kFreeBSD, GNU/kNetBSD systems in the `*-*-linux*'
1179         case.
1180         * configure: Regenerate.
1181
1182 2008-11-14  Jakub Jelinek  <jakub@redhat.com>
1183
1184         PR middle-end/36125
1185         * function.c (gimplify_parameters): For callee copies parameters,
1186         move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.
1187
1188 2008-11-13  Thomas Schwinge  <tschwinge@gnu.org>
1189
1190         PR target/28102
1191         * config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*',
1192         x86 parts into the `i[34567]86-*-linux*' and parts that are
1193         independent of the processor architecture into the `*-*-linux*' cases.
1194         (*-*-linux*): Consider `linux.opt' only for Linux-based configurations.
1195         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine.
1196         (TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine.
1197         [TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine.
1198         * config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine.
1199         (HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead...
1200         (LINUX_TARGET_OS_CPP_BUILTINS): Redefine.
1201
1202 2008-11-13  Ruan Beihong  <ruanbeihong@gmail.com>
1203
1204         * config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns.
1205         * config/mips/loongson2ef.md (ls2_imult): Handle imul3nc.
1206         (ls2_idiv): Likewise idiv3.
1207         (ls2_prefetch): New reservation.
1208         * config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF.
1209         * config/mips/mips.md (type): Add imul3nc and idiv3.
1210         (length): Handle idiv3.
1211         (any_mod): New code_iterator.
1212         (u): Handle MOD and UMOD.
1213         (mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets.
1214         (prefetch): Handle TARGET_LOONGSON_2EF.
1215
1216 2008-11-13  Jakub Jelinek  <jakub@redhat.com>
1217
1218         PR c++/27017
1219         * dwarf2out.c (prune_unused_types_walk_local_classes): New function.
1220         (prune_unused_types_walk): Call it for non-perennial local classes.
1221         Set die_mark to 2 if recursing on children.  If die_mark is 1 on
1222         entry, just set it to 2 and recurse on children, don't walk attributes
1223         again.
1224
1225 2008-11-13  Martin Michlmayr  <tbm@cyrius.com>
1226
1227         * c-common.c (warn_about_parentheses): Add missing whitespace
1228         in warning.
1229
1230 2008-11-13  Paul Brook  <paul@codesourcery.com>
1231
1232         * doc/invoke.texi: Document --fix-cortex-m3.
1233         * config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if
1234         Cortex-M3 cpu is selected.
1235         (output_move_double): Avoid overlapping base register and first
1236         destination register when fix_cm3_ldrd.
1237         * config/arm/arm.opt: Add mfix-cortex-m3-ldrd.
1238
1239 2008-11-13  Jakub Jelinek  <jakub@redhat.com>
1240
1241         PR bootstrap/38100
1242         * gimple.h (gimple_range_check_failed): Remove prototype.
1243         * gimple.c (gimple_check_failed): Don't check GCC_VERSION
1244         in guarding #if.
1245         (gimple_range_check_failed): Removed.
1246
1247 2008-11-13  Andrew Haley  <aph@redhat.com>
1248
1249         PR bootstrap/38088
1250         * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
1251         __LONG_LONG_MAX__.
1252
1253 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1254
1255         PR c++/36478
1256         Revert:
1257         2007-05-07  Mike Stump  <mrs@apple.com>
1258         * doc/invoke.texi (Warning Options): Document that -Wempty-body
1259         also checks for and while statements in C++.
1260
1261 2008-11-12  Dodji Seketeli  <dodji@redhat.com>
1262
1263         PR debug/27574
1264         * cgraph.h: New abstract_and_needed member to struct cgraph_node.
1265         * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
1266         - which clones are reachable - as "abstract and needed".
1267         * cgraph.c (cgraph_release_function_body):  If a node is
1268         "abstract and needed", do not release its DECL_INITIAL() content
1269         that will be needed to emit debug info.
1270
1271 2008-11-12  Steve Ellcey  <sje@cup.hp.com>
1272
1273         PR target/27880
1274         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro
1275         to set HAVE_GETIPINFO.
1276         * aclocal.m4: Include ../config/unwind_ipinfo.m4.
1277         * configure: Regenerate.
1278         * config.in: Regenerate.
1279
1280 2008-11-12  Jack Howarth  <howarth@bromo.med.uc.edu>
1281
1282         PR bootstrap/38010
1283         * gcc/config.gcc: Use darwin9.h on darwin10 as well.
1284
1285 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1286
1287         Revert:
1288         2008-10-21  Jakub Jelinek  <jakub@redhat.com>
1289         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
1290
1291 2008-11-12  Jason Merrill  <jason@redhat.com>
1292
1293         PR c++/38007
1294         * c-common.c (c_common_signed_or_unsigned_type): Remove C++
1295         special casing.
1296
1297 2008-11-12  Anatoly Sokolov  <aesok@post.ru>
1298
1299         * config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb,
1300         atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and
1301         atmega32u6 devices.
1302         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1303         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1304
1305 2008-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1306
1307         * gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
1308         packed-stack special handling.
1309         (FRAME_ADDR_RTX): Add definition.
1310
1311 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1312
1313         PR target/35366
1314         * fold-const.c (native_encode_string): New function.
1315         (native_encode_expr): Use it for STRING_CST.
1316
1317 2008-11-12  DJ Delorie  <dj@redhat.com>
1318
1319         * config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
1320         insns if the intermediate value will be used later.
1321
1322 2008-11-12  Andreas Schwab  <schwab@suse.de>
1323
1324         * config/m68k/m68k.c (print_operand): Mask off extra extension
1325         bits when writing out the representation of real values.
1326
1327 2008-11-12  Ira Rosen  <irar@il.ibm.com>
1328
1329         PR tree-optimization/38079
1330         * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
1331         with vect_dump.
1332
1333 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1334
1335         PR c++/35334
1336         * c-pretty-print.c (pp_c_complex_expr): New function.
1337         (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.
1338
1339         PR target/35366
1340         * expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
1341         than INNER and INNER is a constant, forcibly align INNER as much
1342         as needed.
1343
1344 2008-11-11  Richard Sandiford  <rdsandiford@googlemail.com>
1345
1346         * cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
1347
1348 2008-11-11  Richard Sandiford  <rdsandiford@googlemail.com>
1349
1350         PR rtl-optimization/37363
1351         * simplify-rtx.c (simplify_plus_minus): Don't create
1352         (const (minus ...)) expresisons.
1353
1354 2008-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1355
1356         * ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
1357         handling.
1358
1359 2008-11-10  Catherine Moore  <clm@codesourcery.com>
1360
1361         * config.gcc (mips64vrel-*-elf*): Include the tm_file
1362         prior to vr.h.
1363         * config/mips/linux.h (LINUX_DRIVER_SELF_SPECS): New.
1364         (BASE_DRIVER_SELF_SPECS): Remove.
1365         (DRIVER_SELF_SPECS): New definition.
1366         * config/mips/elfoabi.h: (DRIVER_SELF_SPECS): Include
1367         BASE_DRIVER_SELF_SPECS.
1368         * config/mips/sde.h: Likewise.
1369         * config/mips/iris6.h: Likewise.
1370         * config/mips/vr.h: Likewise.
1371         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): New.
1372
1373 2008-11-10  Vladimir Makarov  <vmakarov@redhat.com>
1374
1375         PR rtl-optimizations/37948
1376         * ira-int.h (struct ira_allocno_copy): New member constraint_p.
1377         (ira_create_copy, ira_add_allocno_copy): New parameter.
1378
1379         * ira-conflicts.c (process_regs_for_copy): New parameter.  Pass it
1380         to ira_add_allocno_copy.
1381         (process_reg_shuffles, add_insn_allocno_copies): Pass a new
1382         parameter to process_regs_for_copy.
1383         (propagate_copies): Pass a new parameter to ira_add_allocno_copy.
1384         Fix typo in passing second allocno to ira_add_allocno_copy.
1385
1386         * ira-color.c (update_conflict_hard_regno_costs): Use head of
1387         coalesced allocnos list.
1388         (assign_hard_reg): Ditto.  Check that assigned allocnos are not in
1389         the graph.
1390         (add_ira_allocno_to_bucket): Rename to add_allocno_to_bucket.
1391         (add_ira_allocno_to_ordered_bucket): Rename to
1392         add_allocno_to_ordered_bucket.
1393         (push_ira_allocno_to_stack): Rename to push_allocno_to_stack.  Use
1394         head of coalesced allocnos list.
1395         (push_allocnos_to_stack): Remove calculation of ALLOCNO_TEMP.
1396         Check that it is aready calculated.
1397         (push_ira_allocno_to_spill): Rename to push_ira_allocno_to_spill.
1398         (setup_allocno_left_conflicts_num): Use head of coalesced allocnos
1399         list.
1400         (coalesce_allocnos): Do extended coalescing too.
1401
1402         * ira-emit.c (add_range_and_copies_from_move_list): Pass a new
1403         parameter to ira_add_allocno_copy.
1404
1405         * ira-build.c (ira_create_copy, ira_add_allocno_copy): Add a new
1406         parameter.
1407         (print_copy): Print copy origination too.
1408
1409         * ira-costs.c (scan_one_insn): Use alloc_pref for load from
1410         equivalent memory.
1411
1412 2008-11-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1413
1414         PR rtl-optimization/37514
1415         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set
1416         flag_ira_share_spill_slots to 2 if it's already non-zero.
1417         (OVERRIDE_OPTIONS): Clear flag_ira_share_spill_slots if
1418         flag_ira_share_spill_slots is 2.
1419
1420 2008-11-10  Kevin Buettner  <kevinb@redhat.com>
1421
1422         * config/m32c/prologue.md (prologue_enter_16): Set FB to SP - 2.
1423         (prologue_enter_32): Set FB to SP - 4.
1424
1425 2008-11-10  DJ Delorie  <dj@redhat.com>
1426
1427         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
1428         constraint for single-bit-clear in lower byte of HI constant, vs
1429         Imb which just ignores the upper byte.
1430         * config/m32c/predicates.md (m32c_1mask8_operand): Use it.
1431         * config/m32c/bitops.md (andhi3_16, andhi3_24): Use it.
1432         (iorhi3_16): Check for single bit set, not single bit clear.
1433
1434 2008-11-10  Janis Johnson  <janis187@us.ibm.com>
1435
1436         * doc/sourcebuild.texi (Torture Tests): Fix formatting for bullets.
1437
1438         * doc/sourcebuild.texi (Torture Tests): Fix formatting in example.
1439
1440 2008-11-10  Eric Botcazou  <ebotcazou@adacore.com>
1441
1442         * calls.c (store_unaligned_arguments_into_pseudos): Deal only with
1443         values living in memory and use more precise alignment information.
1444
1445 2008-11-10  Jakub Jelinek  <jakub@redhat.com>
1446
1447         PR middle-end/35314
1448         * tree-mudflap.c (mf_build_check_statement_for): Split then_block
1449         after __mf_check call if the call must end a bb.
1450
1451 2008-11-10  Ralph Loader  <suckfish@ihug.co.nz>
1452
1453         PR middle-end/37807
1454         PR middle-end/37809
1455         * combine.c (force_to_mode): Do not process vector types.
1456
1457         * rtlanal.c (nonzero_bits1): Do not process vector types.
1458         (num_sign_bit_copies1): Likewise.
1459
1460 2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>
1461
1462         * config/i386/gnu.h: Add copyright and licensing header.
1463         * config/gnu.h: Likewise.
1464
1465 2008-11-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1466
1467         * fwprop.c (fwprop_done): Call df_remove_problem.
1468
1469 2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>
1470
1471         PR middle-end/37379
1472         * tree-scalar-evolution.c (instantiate_scev_1): Return
1473         chrec_dont_know for VL_EXP_CLASS_P.
1474
1475 2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
1476
1477         * reg-stack.c (reg_to_stack): Add missing braces in memset
1478         size calculation.
1479
1480 2008-11-06  Andrew Stubbs  <ams@codesourcery.com>
1481
1482         * config/arm/bpabi.h (PROFILE_HOOK): New undef.
1483         (NO_PROFILE_COUNTERS): New define.
1484
1485 2008-11-06  David Edelsohn  <edelsohn@gnu.org>
1486
1487         PR target/26397
1488         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
1489
1490 2008-11-06  Kazu Hirata  <kazu@codesourcery.com>
1491
1492         PR target/35574
1493         * config/sparc/constraints.md (D): New.
1494         * config/sparc/predicates.md (const_double_or_vector_operand): New.
1495         * config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
1496         'D' constraint.
1497         * config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
1498         Use the 'D' constraint in addition to 'F' in some alternatives.
1499         (DF splitter): Generalize for V64mode.
1500         * doc/md.texi (SPARC): Document the 'D' constraint.
1501
1502 2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
1503
1504         * reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
1505
1506 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1507
1508         * gcc.c: Remove ancient comment about a bug in Sun cc.
1509
1510 2008-11-05  Janis Johnson  <janis187@us.ibm.com>
1511
1512         * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
1513
1514 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1515
1516         * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
1517
1518 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1519
1520         * config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
1521         description.
1522
1523 2008-11-05  Hans-Peter Nilsson  <hp@axis.com>
1524
1525         PR target/38016
1526         * config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
1527         just MEM_P.
1528
1529 2008-11-05  Martin Jambor  <mjambor@suse.cz>
1530
1531         PR middle-end/37861
1532         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
1533         pointer arithmetics into array_ref if the array is accessed
1534         through an indirect_ref.
1535
1536 2008-11-05  Richard Guenther  <rguenther@suse.de>
1537
1538         PR middle-end/37742
1539         * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
1540         qualified pointer conversion before stripping qualifiers.
1541         * gimplify.c (create_tmp_from_val): Use correctly qualified type.
1542         * tree-flow.h (may_propagate_address_into_dereference): Declare.
1543         * tree-ssa-ccp.c (may_propagate_address_into_dereference): New
1544         function.
1545         (ccp_fold): Use it.
1546         * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
1547         properly canonicalize binary ops.
1548         (forward_propagate_addr_expr_1): Use
1549         may_propagate_address_into_dereference.
1550
1551 2008-11-05  Uros Bizjak  <ubizjak@gmail.com>
1552
1553         PR middle-end/37286
1554         * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
1555         Initialize uninitialized input registers with a NaN.
1556
1557 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
1558
1559         PR middle-end/37833
1560
1561         * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
1562
1563 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
1564
1565         PR middle-end/37943
1566
1567         * graphite.c (scopdet_basic_block_info): Fix loops with multiple
1568         exits and conditions.
1569         * testsuite/gcc.dg/graphite/pr37943.c: New.
1570
1571 2008-11-04  Jakub Jelinek  <jakub@redhat.com>
1572             Andrew Pinski  <andrew_pinski@playstation.sony.com>
1573
1574         PR c/35430
1575         * c-common.c (warn_for_sign_compare): For complex result_type
1576         use component's type.
1577
1578 2008-11-04  Jakub Jelinek  <jakuB@redhat.com>
1579
1580         * print-tree.c (print_node): Use code instead of TREE_CODE (node).
1581
1582         * print-tree.c (print_node): Don't print DECL_INITIAL
1583         for PARM_DECL.
1584
1585         PR c/37106
1586         * c-common.c (parse_optimize_options): Save and restore
1587         flag_strict_aliasing around decode_options call.
1588
1589 2008-11-04  Uros Bizjak  <ubizjak@gmail.com>
1590
1591         * config/i386/driver-i386.c (enum vendor_signatures): New enum.
1592         (host_detect_local_cpu): Use it instead of casted strings to
1593         compare vendor signatures.
1594
1595 2008-11-03  Mikael Pettersson  <mikpe@it.uu.se>
1596
1597         PR target/37989
1598         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
1599         or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
1600
1601 2008-11-03  Catherine Moore  <clm@codesourcery.com>
1602
1603         * config/mips.c (mips_conditional_register_usage):  Handle the
1604         DSP control register.
1605         * doc/extend.texi: Document the DSP control register.
1606
1607 2008-11-03  Steve Ellcey <sje@cup.hp.com>
1608             Jakub Jelinek  <jakub@redhat.com>
1609
1610         * omp-low.c (expand_omp_for_generic): If iter_type has different
1611         precision than type and type is a pointer type, cast n1 and n2
1612         first to an integer type with the same precision as pointers
1613         and only afterwards to iter_type.
1614
1615 2008-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
1616
1617         * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
1618         (UNSPEC_GOTSYM_OFF): New unspec.
1619         (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
1620         (pic_add_dot_plus_eight): Likewise.
1621         (tls_load_dot_plus_eight): Likewise.  Update peephole2.
1622         * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
1623         UNSPEC_PIC_BASE operands.
1624         * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
1625         (arm_output_addr_const_extra): Handle it.
1626
1627 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1628
1629         * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
1630         integer class to full integer class if the offset is not word-aligned.
1631
1632 2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1633
1634         PR rtl-opt/37782
1635         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1636         mode count is in.
1637         (doloop_optimize): Update call to doloop_modify.
1638
1639 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1640
1641         * tree-sra.c (bitfield_overlaps_p): Fix oversight.
1642
1643 2008-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1644
1645         PR other/37463
1646         * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
1647         gcc_cv_as_cfi_directive.
1648         (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
1649         merging read-only and read-write sections or assembler emits
1650         read-write .eh_frame sections.
1651         * configure: Regenerate.
1652
1653 2008-11-03  Nathan Froyd  <froydnj@codesourcery.com>
1654
1655         Revert:
1656         2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
1657
1658         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1659         problem.
1660         (rs6000_emit_prologue): Invert logic.
1661         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1662         (reg:P 11) instead of match_operand.
1663         (*save_fpregs_<mode>): Likewise.
1664         (*restore_gpregs_<mode>): Likewise.
1665         (*return_and_restore_gpregs_<mode>): Likewise.
1666         (*return_and_restore_fpregs_<mode>): Likewise.
1667         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1668         (reg:P 11) insted of match_operand.
1669         (*restore_gpregs_spe): Likewise.
1670         (*return_and_restore_gpregs_spe): Likewise.
1671
1672 2008-11-03  Harsha Jagasia  <harsha.jagasia@amd.com>
1673
1674         PR tree-optimization/37684
1675         * gcc.dg/graphite/pr37684.c: New.
1676         * graphite.c (exclude_component_ref): New.
1677         (is_simple_operand): Call exclude_component_ref.
1678
1679 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
1680
1681         PR tree-optimization/36908
1682         * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
1683         * tree-loop-distribution.c (number_of_rw_in_rdg): New.
1684         (number_of_rw_in_partition): New.
1685         (partition_contains_all_rw): New.
1686         (ldist_gen): Do not distribute when one of the partitions
1687         contains all the memory operations.
1688
1689 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
1690
1691         * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
1692         EDGE_IRREDUCIBLE_LOOP.
1693
1694 2008-11-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1695
1696         * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
1697         where we have one entry point in the loop which isn't the head.
1698
1699 2008-11-03  Richard Guenther  <rguenther@suse.de>
1700
1701         PR middle-end/37573
1702         * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
1703
1704 2008-11-03  Jakub Jelinek  <jakub@redhat.com>
1705
1706         PR middle-end/37858
1707         * passes.c (execute_one_pass): Don't look at cfun->curr_properties
1708         for ipa and simple ipa passes.
1709
1710 2008-11-02  Richard Guenther  <rguenther@suse.de>
1711
1712         PR tree-optimization/37542
1713         * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
1714         * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
1715         (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
1716         (vn_nary_op_insert_stmt): Likewise.
1717         (visit_use): Likewise.
1718
1719 2008-11-02  Anatoly Sokolov  <aesok@post.ru>
1720
1721         * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
1722         (*swap): Remove.
1723         (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
1724         rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
1725         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
1726         ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
1727         lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
1728         peephole2's): Replace unspec with rotate.
1729         * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
1730
1731 2008-11-02  Richard Guenther  <rguenther@suse.de>
1732
1733         PR tree-optimization/37991
1734         * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
1735         * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
1736         (set_ssa_val_to): Print if the value changed.
1737         (simplify_binary_expression): Strip useless conversions.
1738
1739 2008-11-01  Hans-Peter Nilsson  <hp@axis.com>
1740
1741         PR target/37939
1742         * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
1743         operand.
1744
1745 2008-11-01  Richard Guenther  <rguenther@suse.de>
1746
1747         PR middle-end/37976
1748         * builtins.c (fold_builtin_strspn): Return a size_t.
1749         (fold_builtin_strcspn): Likewise.
1750
1751 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
1752
1753         * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
1754         attribute for struct return convention.
1755
1756 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
1757
1758         * config/rs6000/crtsavres.asm: Really, really delete.
1759
1760 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
1761
1762         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1763         problem.
1764         (rs6000_emit_prologue): Invert logic.
1765         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1766         (reg:P 11) instead of match_operand.
1767         (*save_fpregs_<mode>): Likewise.
1768         (*restore_gpregs_<mode>): Likewise.
1769         (*return_and_restore_gpregs_<mode>): Likewise.
1770         (*return_and_restore_fpregs_<mode>): Likewise.
1771         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1772         (reg:P 11) insted of match_operand.
1773         (*restore_gpregs_spe): Likewise.
1774         (*return_and_restore_gpregs_spe): Likewise.
1775
1776 2008-10-28  Luis Machado  <luisgpm@br.ibm.com>
1777
1778         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
1779         list of word switches that take args.
1780
1781 2008-10-30  Jakub Jelinek  <jakub@redhat.com>
1782
1783         * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
1784         (s390_output_pool_entry): Call it through for_each_rtx.
1785
1786         PR middle-end/37730
1787         * expr.c (store_constructor): For vectors, if target is a MEM, use
1788         target's MEM_ALIAS_SET instead of elttype alias set.
1789
1790 2008-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1791
1792         PR target/37909
1793         * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
1794         no address.
1795
1796 2008-10-29  David Edelsohn  <edelsohn@gnu.org>
1797
1798         PR target/37878
1799         * config/rs6000/predicates.md (word_offset_memref_operand):
1800         Restructure code and look inside auto-inc/dec addresses.
1801
1802 2008-10-29  Steve Ellcey  <sje@cup.hp.com>
1803
1804         PR target/32277
1805         * libgcov.c ( __gcov_indirect_call_profiler): Check
1806         TARGET_VTABLE_USES_DESCRIPTORS.
1807
1808 2008-10-29  Stefan Schulze Frielinghaus  <xxschulz@de.ibm.com>
1809
1810         * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
1811         (INITIAL_FRAME_POINTER_OFFSET): Remove.
1812         * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
1813         offset if eliminating soft frame pointer.
1814         * config/spu/spu.md (stack_protect_set, stack_protect_test)
1815         (stack_protect_test_si): Add initial machine description
1816         for Stack Smashing Protector
1817
1818 2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1819
1820         PR 11492
1821         * c-common.c (min_precision): Move to...
1822         * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
1823         * tree.h (tree_int_cst_min_precision): Declare.
1824         * c-common.h (min_precision): Delete declaration.
1825         * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
1826         multiplication of non-negative integer constants.
1827         * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
1828         tree_int_cst_min_precision.
1829         (finish_enum): Likewise.
1830
1831 2008-10-29  Joseph Myers  <joseph@codesourcery.com>
1832
1833         PR middle-end/36578
1834         * convert.c (convert_to_real): Do not optimize conversions of
1835         binary arithmetic operations between binary and decimal
1836         floating-point types.  Consider mode of target type in determining
1837         decimal type for arithmetic.  Unless
1838         flag_unsafe_math_optimizations, do not optimize binary conversions
1839         where this may change rounding behavior.
1840         * real.c (real_can_shorten_arithmetic): New.
1841         * real.h (real_can_shorten_arithmetic): Declare.
1842
1843 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1844
1845         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
1846         ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
1847         * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
1848         appropriate.
1849         (must_save_p): For some workarounds, interrupts need to clobber a
1850         P register.
1851         (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
1852         and LC1 for WA_05000257.
1853         (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
1854         WA_05000283 and WA_05000315.
1855         * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
1856         (movbi): Add alternative to set CC to 1; improve code for setting
1857         CC to 0.
1858         (dummy_load): New pattern.
1859
1860 2008-10-29  Jakub Jelinek  <jakub@redhat.com>
1861
1862         PR middle-end/37870
1863         * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
1864         BLKmode for non-memory, convert using a wider MODE_INT mode
1865         or through memory.
1866
1867         PR middle-end/37913
1868         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
1869         that haven't been removed yet.
1870
1871 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1872
1873         * config/bfin/bfin.c (struct machine_function): New member
1874         has_loopreg_clobber.
1875         (bfin_expand_movmem): Set it when generating memcpy insns.
1876         (n_regs_saved_by_prologue, expand_prologue_reg_save,
1877         expand_epilogue_reg_restore): If we have hardware loops,
1878         memcpy insns (indicated by has_loopreg_clobber) or function
1879         calls, we need to save the loop registers.
1880
1881 2008-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1882
1883         * config/i386/i386.c (core2_cost): Fix typos in comments.
1884
1885 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
1886
1887         PR c/37924
1888         * combine.c (make_compound_operation): Don't call make_extraction with
1889         non-positive length.
1890         (simplify_shift_const_1): Canonicalize count even if complement_p.
1891
1892 2008-10-28  Joseph Myers  <joseph@codesourcery.com>
1893
1894         * convert.c (strip_float_extensions): Do not remove or introduce
1895         conversions between binary and decimal floating-point types.
1896
1897 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
1898
1899         PR middle-end/37931
1900         * fold-const.c (distribute_bit_expr): Convert common, left and
1901         right arguments to type.
1902
1903 2008-10-28  Nick Clifton  <nickc@redhat.com>
1904
1905         * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
1906         * config/mn10300/mn10300.c (fp_regs_to_save): Test the
1907         call_really_used_regs array rather than the call_used_regs array.
1908         (mn10300_get_live_callee_saved_regs, expand_prologue,
1909         expand_epilogue, output_tst): Likewise.
1910
1911 2008-10-27  Jakub Jelinek  <jakub@redhat.com>
1912
1913         PR target/37378
1914         * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
1915         (df_get_entry_block_def_set): Neither here.
1916         (df_get_regular_block_artificial_uses): Add EH_USES registers.
1917
1918         PR tree-optimization/37879
1919         * predict.c (tree_estimate_probability): Check if last_stmt is
1920         non-NULL before dereferencing it.
1921
1922 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
1923
1924         * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
1925         (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
1926         (ira_fast_allocation): Remove the prototype.
1927
1928         * ira-color.c (update_copy_costs, allocno_cost_compare_func,
1929         assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
1930         (color_pass): Modify the updated costs.
1931         (ira_color): Rename to color.  Make it static.
1932         (ira_fast_allocation): Rename to fast_allocation.  Make it static.
1933         (ira_color): New function.
1934
1935         * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
1936         change.
1937
1938         * ira-lives.c (last_call_num, allocno_saved_at_call): New
1939         variables.
1940         (set_allocno_live, clear_allocno_live, mark_ref_live,
1941         mark_ref_dead): Invalidate corresponding element of
1942         allocno_saved_at_call.
1943         (process_bb_node_lives): Increment last_call_num.  Setup
1944         allocno_saved_at_call.  Don't increase ALLOCNO_CALL_FREQ if the
1945         allocno was already saved.
1946         (ira_create_allocno_live_ranges): Initiate last_call_num and
1947         allocno_saved_at_call.
1948
1949         * ira-build.c (ira_create_allocno): Initiate
1950         ALLOCNO_UPDATED_COVER_CLASS_COST.
1951         (create_cap_allocno, propagate_allocno_info,
1952         remove_unnecessary_allocnos): Remove setting updated costs.
1953         (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
1954
1955         * ira.c (ira):  Don't call ira_fast_allocation.
1956
1957         * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
1958         updated costs.
1959
1960 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
1961
1962         PR middle-end/37813
1963         * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
1964
1965         * ira-int.h (ira_hard_regno_cover_class): New.
1966
1967         * ira-lives.c (mark_reg_live, mark_reg_dead,
1968         process_bb_node_lives): Use ira_hard_regno_cover_class.
1969
1970         * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
1971         (setup_hard_regno_cover_class): New function.
1972         (ira_init): Call setup_hard_regno_cover_class.
1973
1974         * ira-costs.c (cost_class_nums): Add comment.
1975         (find_allocno_class_costs): Initiate cost_class_nums.
1976         (setup_allocno_cover_class_and_costs): Check cost_class_nums.
1977
1978 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
1979
1980         PR middle-end/37884
1981         * ira-build.c (copy_live_ranges_to_removed_store_destinations):
1982         Rename to copy_info_to_removed_store_destinations.  Propagate
1983         conflict hard regs and register stack attribute.
1984
1985 2008-10-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1986
1987         PR middle-end/37316
1988         * pa.c (function_arg_padding):  Pad complex and vector types
1989         upward in 64-bit runtime.
1990         (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
1991
1992 2008-10-26  Matthias Klose  <doko@ubuntu.com>
1993
1994         * doc/install.texi: Document requirements on antlr.
1995
1996 2008-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
1997
1998         * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
1999         first.
2000
2001 2008-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2002
2003         PR target/37841
2004         * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
2005         is defined, use it to modify the constant offset.
2006
2007         * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
2008
2009         * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
2010         and short arguments to the correct location as mandated by the ABI.
2011
2012 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2013
2014         PR rtl-optimization/37769
2015         * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
2016
2017 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2018
2019         * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
2020         unwind-dw2-Os-4-200.o.
2021
2022 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2023
2024         * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
2025         (convert_for_assignment): Remove ic_argpass_nonproto cases.
2026
2027 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
2028
2029         PR tree-optimization/36038
2030         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
2031         add sizetype IV with initial value zero instead of pointer type.
2032
2033 2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2034
2035         PR c/7543
2036         * value-prof.c (gimple_stringop_fixed_value): Use parentheses
2037         around bit operation.
2038         * profile.c (is_edge_inconsistent): Likewise.
2039         * fold-const.c (truth_value_p): Move from here...
2040         * tree.h (truth_value_p): ... to here.
2041         * c-tree.h (c_expr): Update description of original_code.
2042         * c-typeck.c (parser_build_unary_op): Set original_code.
2043         (parser_build_binary_op): Update call to warn_about_parentheses.
2044         * c-common.c (warn_about_parentheses): Take two additional
2045         arguments of the operands. Use a switch. Quote operators
2046         appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
2047         Add warning about !x | y and !x & y.
2048         * c-common.h (warn_about_parentheses): Update declaration.
2049
2050 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
2053         check_p_tool, check_p_vars, check_p_subno, check_p_comma,
2054         check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
2055         New variables.
2056         (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
2057         (check-%): For test targets listed in lang_checks_parallelized
2058         if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
2059         run the testing in multiple make goals, possibly parallel, and
2060         afterwards run dg-extract-results.sh to merge the sum and log files.
2061
2062 2008-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
2063
2064         * config/mips/mips.c (mips_canonicalize_move_class): New function.
2065         (mips_move_to_gpr_cost): Likewise.
2066         (mips_move_from_gpr_cost): Likewise.
2067         (mips_register_move_cost): Make more fine-grained.
2068
2069 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
2070
2071         * graphite.c (graphite_apply_transformations): Check for
2072         -fgraphite-identity.
2073         * toplev.c (process_options): Add graphite_identity.
2074         * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
2075
2076 2008-10-23  Bernd Schmidt  <bernd.schmidt@analog.com>
2077
2078         * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
2079         mulhisihl and mulhisihh builtins.
2080
2081         From Jie Zhang  <jie.zhang@analog.com>
2082         * config/bfin/bfin.md (composev2hi): Put operands into vector
2083         with correct order.
2084
2085 2008-10-22  Chao-ying Fu  <fu@mips.com>
2086
2087         * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
2088
2089 2008-10-22  Bernd Schmidt  <bernd.schmidt@analog.com>
2090
2091         From Mike Frysinger  <michael.frysinger@analog.com>
2092         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
2093         BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
2094         * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
2095         and bf518.  Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
2096         Add 0.6 for bf533, bf532, and bf531.  Add 0.5 for bf538 and bf539.
2097         Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
2098         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
2099         for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
2100         for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518.  Define
2101         __ADSPBF51x__ for all of them.
2102         * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
2103         -mcpu bf512, bf514, bf516, and bf518.
2104         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2105         bf512-none, bf514-none, bf516-none, and bf518-none.
2106         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2107         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2108         * doc/invoke.texi (Blackfin Options): Document that
2109         -mcpu now accepts bf512, bf514, bf516, and bf518.
2110
2111 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
2112
2113         PR middle-end/37882
2114         * fold-const.c (build_range_type): For 1 .. signed_max
2115         range call build_nonstandard_inter_type if signed_type_for
2116         returned a type with bigger precision.
2117
2118 2008-10-22  Richard Guenther  <rguenther@suse.de>
2119
2120         * tree.def (COMPLEX_TYPE): Constrain element type.
2121         * tree.c (build_complex_type): Assert that.
2122         * tree-ssa-structalias.c (could_have_pointers): Complex types
2123         cannot have pointers.
2124
2125 2008-10-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2126
2127         PR c/30949
2128         * c-typeck.c (convert_for_assignment): Do not give declaration's
2129         location for builtins. Spell out which type was expected and which
2130         was given.
2131
2132 2008-10-22  Nick Clifton  <nickc@redhat.com>
2133
2134         * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define.  Do not allow
2135         the fdpic register to be a target when running in fdpic mode.
2136
2137 2008-10-22 Rafael Espindola  <espindola@google.com>
2138
2139         * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
2140         newly created statements.
2141
2142 2008-10-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2143
2144         PR target/37633
2145         * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
2146         * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
2147         * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
2148
2149 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
2150
2151         PR target/37880
2152         * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
2153         Adjust -mcmodel=medium description for 2005-07-31 changes.
2154
2155 2008-10-22  Jan Hubicka  <jh@suse.cz>
2156             Jakub Jelinek  <jakub@redhat.com>
2157
2158         PR middle-end/35853
2159         * doc/invoke.texi: Remove references to obsoleted -d dumps.
2160
2161 2008-10-21  Richard Henderson  <rth@redhat.com>
2162
2163         PR 37815
2164         * emit-rtl.c (get_spill_slot_decl): Export.
2165         * emit-rtl.h (get_spill_slot_decl): Declare.
2166         * var-tracking.c (vt_add_function_parameters): Relax assertion
2167         on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
2168
2169 2008-10-21  Bob Wilson  <bob.wilson@acm.org>
2170
2171         * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
2172         REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
2173         of from insn.
2174
2175 2008-10-21  Adam Nemet  <anemet@caviumnetworks.com>
2176
2177         PR middle-end/37669
2178         * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
2179         processed by get_maxval_strlen.
2180
2181 2008-10-21  David Edelsohn  <edelsohn@gnu.org>
2182
2183         PR target/35485
2184         * tree.c (get_file_function_name): Copy first_global_object_name.
2185         Centralize call to clean_symbol_name.
2186
2187 2008-10-21  Sandra Loosemore  <sandra@codesourcery.com>
2188
2189         * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
2190         * config/svr4.h (SVR4_ASM_SPEC): New.
2191         (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2192         * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2193
2194         * doc/invoke.texi (Option Summary): Add -T to linker options.
2195         (Link Options): Document -T.
2196
2197 2008-10-21  Jakub Jelinek  <jakub@redhat.com>
2198
2199         * tree-inline.c (tree_inlinable_function_p): Remove tuples
2200         debugging hack.
2201
2202         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
2203
2204         PR debug/37020
2205         * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
2206
2207 2008-10-20  Daniel Berlin  <dberlin@dberlin.org>
2208
2209         * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
2210         part of expression.
2211
2212 2008-10-20  Tobias Schlüter  <tobi@gcc.gnu.org>
2213
2214         * doc/install.texi: Fix typos in previous patch.
2215
2216 2008-10-19  Tobias Schlüter  <tobi@gcc.gnu.org>
2217
2218         * doc/install.texi: Document in-tree building of gcc and mpfr.
2219
2220 2008-10-19  Richard Guenther  <rguenther@suse.de>
2221
2222         * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
2223
2224 2008-10-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2225
2226         PR c/30260
2227         * c-decl.c (finish_enum): Convert non-integer enumerators to enum type.
2228         (build_enumerator): Convert enumerators that fit in integer to
2229         integer type.
2230
2231 2008-10-18  Uros Bizjak  <ubizjak@gmail.com>
2232
2233         * config/i386/i386.md (unnamed peephole2): Do not force memory
2234         operands of arith or logical instructions into registers for
2235         non-TARGET_READ_MODIFY targets.
2236
2237         (ffs_cmove): Change operand 0 predicate to register_operand.
2238         Change operand 1 predicate to nonimmediate_operand.
2239         (ffsdi2): Ditto.
2240         (*ffs_no_cmove): Change operand 0 predicate to register_operand.
2241
2242 2008-10-18  Richard Guenther  <rguenther@suse.de>
2243
2244         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
2245         VIEW_CONVERT_EXPR case against invalid gimple.
2246
2247 2008-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2248
2249         * c-parser.c (c_parser_binary_expression): Silence the
2250         uninitialized variable warning emitted for binary_loc.
2251
2252 2008-10-16  Daniel Berlin  <dberlin@dberlin.org>
2253
2254         * tree-ssa-pre.c (phi_translate_set): Add constants to phi
2255         translation cache.
2256
2257 2008-10-16  Joseph Myers  <joseph@codesourcery.com>
2258
2259         PR c/33192
2260         * c-typeck.c (build_unary_op): Use omit_one_operand for
2261         IMAGPART_EXPR of real argument.
2262
2263 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2264
2265         PR tree-optimization/37664
2266         * fold-const.c (fold_binary): When optimizing comparison with
2267         highest or lowest type's value, don't consider TREE_OVERFLOW.
2268
2269 2008-10-16  David Edelsohn  <edelsohn@gnu.org>
2270
2271         PR target/35483
2272         * Makefile.in (coverage.o): Depend on $(TM_P_H).
2273         * coverage.c: Include tm_p.h.
2274         * config/rs6000/x-aix (jc1): Override LDFLAGS.
2275         * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
2276         dollar signs from PREFIX.
2277         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
2278         instead of manual strip_name_encoding.
2279
2280 2008-10-16  Richard Guenther  <rguenther@suse.de>
2281
2282         PR middle-end/37418
2283         * tree-ssa.c (useless_type_conversion_p_1): Do not treat
2284         volatile qualified functions or methods as relevant.
2285
2286 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2287
2288         PR tree-optimization/37525
2289         * tree.c (int_fits_type_p): Rewrite using double_int.  Zero extend
2290         sizetype unsigned constants, both in the case of C and bounds.
2291
2292 2008-10-15  Jan Hubicka  <jh@suse.cz>
2293
2294         * ira-emit.c (change_regs): Return false when replacing reg by itself.
2295
2296 2008-10-14  Vladimir Makarov  <vmakarov@redhat.com>
2297
2298         PR target/37633
2299         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
2300         HARD_REGNO_CALL_PART_CLOBBERED.
2301
2302 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2303
2304         PR middle-end/37535
2305         * ira-lives.c (mark_early_clobbers): Remove.
2306         (make_pseudo_conflict, check_and_make_def_use_conflicts,
2307         check_and_make_def_conflicts,
2308         make_early_clobber_and_input_conflicts,
2309         mark_hard_reg_early_clobbers): New functions.
2310         (process_bb_node_lives): Call
2311         make_early_clobber_and_input_conflicts and
2312         mark_hard_reg_early_clobbers.  Make hard register inputs live again.
2313
2314         * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
2315         early clobbers of pseudo-registers.
2316
2317 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2318
2319         PR middle-end/37674
2320         * ira-build.c (ira_flattening): Recalculate
2321         ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
2322         from the scratch instead of the propagation.
2323
2324 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
2325
2326         * doc/rtl.texi (const_double): Remove the "addr" operand.
2327         Describe CONST_DOUBLE_* macros under const_double rather
2328         than const_vector.
2329         (const_fixed): Fix the operand description.
2330         (const): Add an @findex directive.
2331         (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
2332         after the constant rtl table.
2333         (fix): Combine floating-point and fixed-point descriptions.
2334         Fix hyphenation.
2335         * sched-deps.c (sched_analyze_2): Remove reference to
2336         CONST_DOUBLE_CHAIN.
2337
2338 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
2339
2340         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
2341         UNSPEC_GOTSYM_OFFs.
2342         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
2343         for UNSPEC_GOTSYM_OFFs.
2344         * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
2345         (add_GOT_to_pic_reg): Use it.
2346         * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
2347
2348 2008-10-15  Jan Sjodin  <jan.sjodin@amd.com>
2349             Harsha Jagasia  <harsha.jagasia@amd.com>
2350
2351         PR tree-optimization/37485
2352         * graphite.c (gmp_cst_to_tree): Moved.
2353         (iv_stack_entry_is_constant): New.
2354         (iv_stack_entry_is_iv): New.
2355         (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
2356         (loop_iv_stack_insert_constant): New.
2357         (loop_iv_stack_pop): Use new datatpype.
2358         (loop_iv_stack_get_iv): Same.
2359         (loop_iv_stack_get_iv_from_name): Same.
2360         (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
2361         (loop_iv_stack_patch_for_consts): New.
2362         (loop_iv_stack_remove_constants): New.
2363         (graphite_create_new_loop): Use loop_iv_stack_push_iv.
2364         (translate_clast): Call loop_iv_stack_patch_for_consts and
2365         loop_iv_stack_remove_constants.
2366         (gloog): Use new datatype.  Redirect construction edge to end
2367         block to avoid accidental deletion.
2368         * graphite.h (enum iv_stack_entry_kind): New.  Tag for data in
2369         iv stack entry.
2370         (union iv_stack_entry_data): New.  Data in iv stack entry.
2371         (struct iv_stack_entry): New.  Datatype for iv stack entries.
2372
2373 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2374
2375         * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
2376         * graphite.c (free_scop): Same.
2377         (build_scops): Same.
2378         (free_scattering): New.
2379         (build_cloog_prog): Call free_scattering.
2380         (patch_phis_for_virtual_defs): Fix memleak.
2381         (graphite_trans_bb_strip_mine): Same.
2382         (limit_scops): Same.
2383
2384 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2385             Harsha Jagasia  <harsha.jagasia@amd.com>
2386
2387         PR tree-optimization/37828
2388         * graphite.c (graphite_trans_loop_block): Do not loop block
2389         single nested loops.
2390
2391 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2392
2393         PR tree-optimization/37686
2394         * tree-loop-linear.c (linear_transform_loops): Build a
2395         loop nest vector.  Pass it to lambda_compute_access_matrices.
2396         * tree-data-ref.h (struct access_matrix): Store the loop nest
2397         relative to which it encodes the information.
2398         (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
2399         (am_vector_index_for_loop): Reimplemented: iterate over the
2400         loop nest for finding the loop index in the access matrix.
2401         (lambda_compute_access_matrices): Update declaration.
2402         * lambda-code.c (build_access_matrix): Pass the loop nest and
2403         record it.
2404         (lambda_compute_access_matrices): Same.
2405
2406 2008-10-15  Andreas Krebbel  <krebbel1@de.ibm.com>
2407
2408         * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
2409         * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
2410         TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
2411         already implies hard float.  Also fix several insn condition
2412         with TARGET_DFP which shall require TARGET_HARD_DFP instead.
2413
2414 2008-10-15  David Edelsohn  <edelsohn@gnu.org>
2415
2416         PR target/35483
2417         Based on patches by Laurent Vivier.
2418         * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
2419         * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
2420         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
2421         dollar sign to underscore.
2422         (ASM_OUTPUT_EXTERNAL): Same.
2423         (ASM_OUTPUT_LABELREF): New.
2424         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
2425
2426         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
2427         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
2428         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
2429         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
2430
2431 2008-10-15  Jakub Jelinek  <jakub@redhat.com>
2432
2433         PR tree-optimization/36881
2434         * tree-switch-conversion.c (check_final_bb): For flag_pic, check
2435         that each value doesn't need runtime relocations, for !flag_pic
2436         check that each value is just a valid initializer constant.
2437
2438 2008-10-14  Richard Sandiford  <rdsandiford@googlemail.com>
2439
2440         * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
2441         LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
2442         COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
2443         Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
2444         GR_AND_ACC_REGS.
2445         (REG_CLASS_NAMES): Update accordingly.
2446         (REG_CLASS_CONTENTS): Likewise.  Use the class name in the comments,
2447         rather than an unpredictable descriptive string.
2448         * config/mips/mips.c (mips_register_move_cost): Remove comment.
2449         (mips_register_move_cost): Check for specific COP*_REGS classes,
2450         instead of ALL_COP_AND_GR_REGS.
2451         (mips_ira_cover_classes): New function.
2452         (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
2453         (TARGET_IRA_COVER_CLASSES): Define.
2454
2455 2008-10-14  Douglas Gregor  <doug.gregor@gmail.com>
2456
2457         PR c++/37553
2458         * tree.c (build_type_attribute_qual_variant): Hash on the
2459         unqualified type, and don't overwrite an existing
2460         (type_hash_eq): Make the TYPE_NAME of the types significant, to
2461         allow distinguishing between wchar_t and its underlying type. This
2462         also means that we'll retain a little more typedef information.
2463
2464 2008-10-14  Andrey Belevantsev  <abel@ispras.ru>
2465             Dmitry Melnik  <dm@ispras.ru>
2466             Dmitry Zhurikhin  <zhur@ispras.ru>
2467             Alexander Monakov  <amonakov@ispras.ru>
2468             Maxim Kuvyrkov  <maxim@codesourcery.com>
2469
2470         * target.h (struct gcc_target): Update prototypes of needs_block_p
2471         and gen_spec_check.
2472         * haifa-sched.c (create_check_block_twin): Update calls to the above.
2473         * sel-sched.c (create_speculation_check): Likewise.
2474         * doc/tm.texi: Provide documentation for new target hooks.
2475
2476         * config/ia64/ia64.c: Include sel-sched.h.  Rewrite speculation hooks.
2477         (ia64_gen_spec_insn): Removed.
2478         (get_spec_check_gen_function, insn_can_be_in_speculative_p,
2479         ia64_gen_spec_check): New static functions.
2480         (ia64_alloc_sched_context, ia64_init_sched_context,
2481         ia64_set_sched_context, ia64_clear_sched_context,
2482         ia64_free_sched_context, ia64_get_insn_spec_ds,
2483         ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
2484         (ia64_needs_block_p): Change prototype.
2485         (ia64_gen_check): Rename to ia64_gen_spec_check.
2486         (ia64_adjust_cost): Rename to ia64_adjust_cost_2.  Add new parameter
2487         into declaration, add special memory dependencies handling.
2488         (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2489         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2490         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
2491         TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
2492         Define new target hooks.
2493         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2494         (ia64_optimization_options): Turn on selective scheduling with -O3,
2495         disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
2496         default with selective scheduling.
2497         (ia64_override_options): Initialize align_loops and align_functions
2498         to 32 and 64, respectively.  Set global selective scheduling flags
2499         according to target-dependent flags.
2500         (rtx_needs_barrier): Support UNSPEC_LDS_A.
2501         (group_barrier_needed): Use new mstop-bit-before-check flag.
2502         Add heuristic.
2503         (dfa_state_size): Make global.
2504         (spec_check_no, max_uid): Remove.
2505         (mem_ops_in_group, current_cycle): New variables.
2506         (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
2507         Initialize new variables.
2508         (is_load_p, record_memory_reference): New functions.
2509         (ia64_dfa_sched_reorder): Lower priority of loads when limit is
2510         reached.
2511         (ia64_variable_issue): Change use of current_sched_info to
2512         sched_deps_info.  Update comment.  Note if a load or a store is issued.
2513         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
2514         advance if maximal number of loads or stores was issued on current
2515         cycle.
2516         (scheduled_good_insn): New static helper function.
2517         (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
2518         a group barrier is needed.  Fix vertical spacing.  Guard the code
2519         doing state transition with last_scheduled_insn check.
2520         Mark that a stop bit should be before current insn if there was a
2521         cycle advance.  Update current_cycle and mem_ops_in_group.
2522         (ia64_h_i_d_extended): Change use of current_sched_info to
2523         sched_deps_info. Reallocate stops_p by larger chunks.
2524         (struct _ia64_sched_context): New structure.
2525         (ia64_sched_context_t): New typedef.
2526         (ia64_alloc_sched_context, ia64_init_sched_context,
2527         ia64_set_sched_context, ia64_clear_sched_context,
2528         ia64_free_sched_context): New static functions.
2529         (gen_func_t): New typedef.
2530         (get_spec_load_gen_function): New function.
2531         (SPEC_GEN_EXTEND_OFFSET): Declare.
2532         (ia64_set_sched_flags): Check common_sched_info instead of *flags.
2533         (get_mode_no_for_insn): Change the condition that prevents use of
2534         special hardware registers so it can now handle pseudos.
2535         (get_spec_unspec_code): New function.
2536         (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
2537         ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
2538         (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
2539         during selective scheduling.
2540         (ia64_speculate_insn): Use ds_get_speculation_types when
2541         determining whether we need to change the pattern.
2542         (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
2543         (ia64_spec_check_src_p): Support new speculation/check codes.
2544         (struct bundle_state): New field.
2545         (issue_nops_and_insn): Initialize it.
2546         (insert_bundle_state): Minimize mid-bundle stop bits.
2547         (important_for_bundling_p): New function.
2548         (get_next_important_insn): Use important_for_bundling_p.
2549         (bundling): When shifting TImode from unimportant insns, ignore
2550         also group barriers.  Assert that best state is found before
2551         the backward bundling pass.  Print number of mid-bundle stop bits.
2552         Minimize mid-bundle stop bits.  Check correct calculation of
2553         mid-bundle stop bits.
2554         (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
2555         (final_emit_insn_group_barriers): Emit stop bits before insns starting
2556         a new cycle.
2557         (sel2_run): New variable.
2558         (ia64_reorg): When flag_selective_scheduling2 is set, run the
2559         selective scheduling pass instead of schedule_ebbs.
2560
2561         * config/ia64/ia64.md (speculable1, speculable2): New attributes.
2562         (UNSPEC_LDS_A): New UNSPEC.
2563         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
2564         movti_internal, movsf_internal, movdf_internal,
2565         movxf_internal): Make visible.  Add speculable* attributes.
2566         (output_c_nc): New mode attribute.
2567         (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
2568         mov<mode>_nc, zero_extend<mode>di2_nc,
2569         advanced_load_check_nc_<mode>): New insns.
2570         (zero_extend*): Add speculable* attributes.
2571
2572         * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
2573         (msched-stop-bits-after-every-cycle): Likewise.
2574         (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
2575         Likewise.
2576         (msched-spec-verbose): Remove.
2577         (msched-prefer-non-data-spec-insns,
2578         msched-prefer-non-control-spec-insns,
2579         msched-count-spec-in-critical-path,
2580         msel-sched-dont-check-control-spec): Use Target  Report Var
2581         instead of Common Report Var.
2582
2583         * config/ia64/itanium2.md: Remove incorrect bypass.
2584
2585         * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
2586
2587 2008-10-14  Jakub Jelinek  <jakub@redhat.com>
2588
2589         PR middle-end/37805
2590         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
2591         and -fhelp=separate.
2592
2593 2008-10-14  Ben Elliston  <bje@au.ibm.com>
2594
2595         * config/rs6000/rs6000.md (cell_micro): Fix formatting.
2596
2597 2008-10-13  Joseph Myers  <joseph@codesourcery.com>
2598
2599         * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
2600         non-integer modes.
2601
2602 2008-10-13  Matthias Klose  <doko@ubuntu.com>
2603
2604         * config/pa/linux-atomic.c: Work around missing header file
2605         for hppa64-linux-gnu targets.
2606
2607 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2608             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
2609             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
2610             Grace Cao  <grace_cao@playstation.sony.com>
2611
2612         * doc/invoke.texi (-mgen-cell-microcode): Document.
2613         (-mwarn-cell-microcode): Document.
2614         * cfglayout.c (locator_location): Export.
2615         * rtl.h (locator_location): Define prototype.
2616         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
2617         New predicate.
2618         * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
2619         * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
2620         (mwarn-cell-microcode): New option.
2621         * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
2622         (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
2623         cell and not already set.
2624         Turn off string instructions if not generating cell microcode.
2625         (rs6000_final_prescan_insn): New function that warns about microcoded
2626         instructions.
2627         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
2628         * config/rs6000/rs6000.md
2629         Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
2630         the instruction would have been microcoded on the Cell.  Set
2631         cell_micro to always on unnamed patterns for the string instructions.
2632         (cell_micro): Update definition, remove load/store conditional
2633         microcoded.
2634         (sign_extend:DI): Define new pattern for non microcoded version.
2635         (sign_extend:SI): Likewise.
2636         (compare (div:P)): Set cell_micro to not.
2637         (andsi3): Define as an expand.
2638         (andsi3_mc): New pattern.
2639         (andsi3_nomc): New pattern.
2640         (andsi3_internal0_nomc): New pattern.
2641         (andsi3_internal2): Rename to ...
2642         (andsi3_internal2_mc): this and enable iff generating microcode.
2643         (andsi3_internal3): Rename to ...
2644         (andsi3_internal3_mc): this and enable iff generating microcode.
2645         (andsi3_internal4): Enable iif generating microcode.
2646         (andsi3_internal5): Rename to ..
2647         (andsi3_internal5_mc): this and enable iff generating microcode.
2648         (andsi3_internal5_nomc): New pattern.
2649         (extzvdi_internal1): Enable iff generating microcode.
2650         (extzvdi_internal2): Likewise.
2651         (rotlsi3_internal7): Set cell_micro to always if non immediate form.
2652         (anddi3): Change to expand.
2653         (anddi3_mc): Rename from anddi3.
2654         (anddi3_no_mc): New pattern.
2655         (anddi3_internal2): Rename to ..
2656         (anddi3_internal2_mc): this and enable iff generating microcode.
2657         (anddi3_internal2_nomc): New pattern.
2658         (anddi3_internal3): Rename to ..
2659         (anddi3_internal3_mc): this and enable iff generating microcode.
2660         (anddi3_internal3_nomc): New pattern.
2661         (movti_string): Set cell_micro to always if TARGET_STRING.
2662         (stmsi8): Set cell_micro to always.
2663         (stmsi7): Likewise.
2664         (stmsi6): Likewise.
2665         (stmsi5): Likewise.
2666         (stmsi4): Likewise.
2667         (stmsi3): Likewise.
2668         (stmsi8_power): Likewise.
2669         (stmsi7_power): Likewise.
2670         (stmsi6_power): Likewise.
2671         (stmsi5_power): Likewise.
2672         (stmsi4_power): Likewise.
2673         (stmsi3_power): Likewise.
2674         (movsi_update2): Enable iff generating microcode.
2675         (movhi_update3): Likewise.
2676         (lmw): Set cell_micro to always.
2677
2678 2008-10-13  Richard Sandiford  <rdsandiford@googlemail.com>
2679
2680         * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
2681         * config/s390/s390.c (machine_function): Remove
2682         decomposed_literal_pool_addresses_ok_p.
2683         (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
2684         the difference of two labels.
2685         (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
2686         (s390_pool_offset): New function.
2687         (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
2688         (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
2689
2690 2008-10-13  Nathan Froyd  <froydnj@codesourcery.com>
2691
2692         * doc/install.texi (powerpc-*-*): Require binutils 2.15.
2693         (powerpc*-*-linux-gnu*): Describe.
2694         * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
2695         * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2696         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2697         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2698         config/rs6000/e500crtres32gpr.asm,
2699         config/rs6000/e500crtres64gpr.asm,
2700         config/rs6000/e500crtres64gprctr.asm,
2701         config/rs6000/e500crtrest32gpr.asm,
2702         config/rs6000/e500crtrest64gpr.asm,
2703         config/rs6000/e500crtresx32gpr.asm,
2704         config/rs6000/e500crtresx64gpr.asm,
2705         config/rs6000/e500crtsav32gpr.asm,
2706         config/rs6000/e500crtsav64gpr.asm,
2707         config/rs6000/e500crtsav64gprctr.asm,
2708         config/rs6000/e500crtsavg32gpr.asm,
2709         config/rs6000/e500crtsavg64gpr.asm,
2710         config/rs6000/e500crtsavg64gprctr.asm: Use it.
2711         * config/rs6000/crtsavres.asm: Really remove.
2712
2713 2008-10-13  Kai Tietz  <kai.tietz@onevision.com>
2714
2715         Fix PR/25502
2716         * c-format.c (convert_format_name_to_system_name): Use
2717         TARGET_OVERRIDES_FORMAT_INIT.
2718         * config.gcc (extra_options): Add for mingw targets mingw.opt.
2719         * config/i386/mingw.opt: New.
2720         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
2721         * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
2722         (ms_printf_length_specs): Removed const specifier.
2723         * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
2724         * doc/invoke.texi (Wno-pedantic-ms-format): New.
2725
2726 2008-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2727
2728         * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
2729         * doc/install.texi: Bump recommended MPFR to 2.3.2.
2730
2731 2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>
2732
2733         PR middle-end/37808
2734         * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
2735         sure that ref has valid bb.
2736
2737 2008-10-12  Richard Henderson  <rth@redhat.com>
2738
2739         PR middle-end/37447
2740         * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
2741         * alias.c (value_addr_p, stack_addr_p): Remove.
2742         (nonoverlapping_memrefs_p): Remove IRA special case.
2743         * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
2744         * emit-rtl.h (set_mem_attrs_for_spill): Declare.
2745         * reload1.c (alter_reg): Use it.
2746
2747 2008-10-12  Uros Bizjak  <ubizjak@gmail.com>
2748
2749         * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
2750         of registers instead of eax, ebx, ecx and edx.  Use for loop
2751         and check register for non-zero value before the call
2752         to decode_caches_intel.
2753
2754 2008-10-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2755
2756         PR rtl-optimization/37448
2757         * df.h: (df_ref_class): New enum.
2758         (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
2759         (struct df_ref): Replaced with union df_ref_d.
2760         (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
2761         New members of df_ref_d union.
2762         (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
2763         DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
2764         DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
2765         DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
2766         DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
2767         DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
2768         (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
2769         (df_scan_bb_info, df_bb_regno_first_def_find,
2770         df_bb_regno_last_def_find, df_find_def, df_find_use,
2771         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2772         debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
2773         df_ref_create, df_ref_remove, df_compute_accessed_bytes,
2774         df_get_artificial_defs, df_get_artificial_uses, union_defs)
2775         Replaced struct df_ref * with df_ref.
2776         * df-scan.c (df_collection_rec, df_null_ref_rec,
2777         df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
2778         df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
2779         df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
2780         df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
2781         df_reorganize_refs_by_reg_by_reg,
2782         df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
2783         df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
2784         df_sort_and_compress_refs, df_install_ref, df_install_refs,
2785         df_ref_record, df_get_conditional_uses, df_get_call_refs,
2786         df_bb_refs_record, df_exit_block_uses_collect,
2787         df_record_exit_block_uses, df_reg_chain_mark,
2788         df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
2789         df_ref * with df_ref.
2790         (df_ref_record, df_uses_record, df_ref_create_structure): Added
2791         df_ref_class parameter.
2792         (df_scan_problem_data): Added new pools for different types of refs.
2793         (df_scan_free_internal, df_scan_alloc, df_free_ref,
2794         df_ref_create_structure): Processed new ref pools.
2795         (df_scan_start_dump): Added counts of refs and insns.
2796         (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
2797         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2798         df_entry_block_defs_collect, df_exit_block_uses_collect): Added
2799         code to pass df_ref_class down to ref creation functions.
2800         (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
2801         df_reg_chain_mark): Use macros to hide references to df_refs.
2802         (df_ref_chain_change_bb): Removed.
2803         (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
2804         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
2805         Enhanced to understand df_ref union structure.
2806         * fwprop.c (local_ref_killed_between_p, use_killed_between,
2807         all_uses_available_at, update_df, try_fwprop_subst,
2808         forward_propagate_subreg, forward_propagate_and_simplify,
2809         forward_propagate_into, fwprop, fwprop_addr): Replaced struct
2810         df_ref * with df_ref.
2811         (use_killed_between, all_uses_available_at): Use macros to hide
2812         references to df_refs.
2813         * regstat.c (regstat_bb_compute_ri,
2814         regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
2815         df_ref.
2816         * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
2817         see_handle_relevant_refs, see_analyze_one_def,
2818         see_update_relevancy, see_propagate_extensions_to_uses): Replaced
2819         struct df_ref * with df_ref.
2820         * ra-conflict.c (record_one_conflict, clear_reg_in_live,
2821         global_conflicts): Replaced struct df_ref * with df_ref.
2822         * ddg.c (create_ddg_dep_from_intra_loop_link,
2823         add_cross_iteration_register_deps, build_inter_loop_deps):
2824         Replaced struct df_ref * with df_ref.
2825         (create_ddg_dep_from_intra_loop_link,
2826         add_cross_iteration_register_deps): Use macros to hide references
2827         to df_refs.
2828         * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
2829         df_ref * with df_ref.
2830         * df-core.c (df_bb_regno_first_def_find,
2831         df_bb_regno_last_def_find, df_find_def, df_find_use,
2832         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2833         debug_df_ref): Replaced struct df_ref * with df_ref.
2834         (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
2835         * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
2836         df_ref.
2837         * web.c (union_defs, entry_register, replace_ref, web_main):
2838         Replaced struct df_ref * with df_ref.
2839         (union_defs, replace_ref): Use macros to hide references to df_refs.
2840         * global.c (compute_regs_asm_clobbered, build_insn_chain):
2841         Replaced struct df_ref * with df_ref.
2842         * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
2843         * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
2844         Replaced struct df_ref * with df_ref.
2845         * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
2846         mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
2847         with df_ref.
2848         * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
2849         * df-byte-scan.c (df_compute_accessed_bytes_extract,
2850         df_compute_accessed_bytes_strict_low_part,
2851         df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
2852         Replaced struct df_ref * with df_ref.
2853         (df_compute_accessed_bytes): Use macros to hide references to df_refs.
2854         * init-regs.c (initialize_uninitialized_regs): Replaced struct
2855         df_ref * with df_ref.
2856         * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
2857         check_dependency, check_dependencies, record_uses): Replaced
2858         struct df_ref * with df_ref.
2859         (invariant_for_use, check_dependency): Use macros to hide
2860         references to df_refs.
2861         * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
2862         get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
2863         iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
2864         (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
2865         references to df_refs.
2866         * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
2867         with df_ref.
2868         * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
2869         * df-problems.c (df_rd_bb_local_compute_process_def,
2870         df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
2871         df_chain_unlink_1, df_chain_unlink, df_chain_copy,
2872         df_chain_remove_problem, df_chain_create_bb_process_use,
2873         df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
2874         df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
2875         df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
2876         df_byte_lr_simulate_artificial_refs_at_top,
2877         df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
2878         df_note_bb_compute, df_note_add_problem, df_simulate_defs,
2879         df_simulate_uses, df_simulate_artificial_refs_at_end,
2880         df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
2881         df_ref.
2882         (df_chain_dump): Use macros to hide references to df_refs.
2883         * config/mips/mips.c (r10k_simplify_address): Replaced struct
2884         df_ref * with df_ref.
2885         * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
2886         mark_artificial_uses, mark_reg_dependencies,
2887         byte_dce_process_block): Replaced struct df_ref * with df_ref.
2888
2889 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2890
2891         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
2892         head comment.
2893         (array_ref_element_size): Likewise.
2894         (array_ref_low_bound): Likewise.
2895         (array_ref_up_bound): Likewise.
2896         * expr.c (contains_packed_reference): Likewise.
2897         (array_ref_element_size): Likewise.
2898         (array_ref_low_bound): Likewise.
2899         (array_ref_up_bound): Likewise.
2900         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
2901         with ARRAY_RANGE_REF.
2902         (idx_find_step): Likewise.
2903         (idx_record_use): Likewise.
2904         (strip_offset_1): Likewise.
2905         (idx_remove_ssa_names): Likewise.
2906
2907 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
2908             Andi Kleen  <ak@linux.intel.com>
2909
2910         * config/i386/cpuid.h (__cpuid_count): New defines.
2911         * config/i386/driver-i386.c (struct cache_desc): New structure.
2912         (describe_cache): Use struct cache_desc to pass cache descriptions.
2913         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
2914         (detect_caches_amd): Use struct cache_desc to describe caches.
2915         (decode_caches_intel): Use struct cache_desc to pass cache
2916         descriptions.  Update descriptions to match latest (rev -032,
2917         December 2007) CPUID documentation.  Do not check valid bit here.
2918         Check for Xeon MP value 0x49 problems.
2919         (detect_caches_cpuid2): New function, split from detect_caches_intel.
2920         Check valid bit before calling decode_caches_intel.  Detect number
2921         of times to repeat CPUID instruction.
2922         (detect_caches_cpuid4): New function.
2923         (detect_caches_intel): Depending on max_level, call
2924         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
2925         only when other methods fail to provide valid L2 cache description.
2926
2927 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2928
2929         PR middle-end/37608
2930         * pa.md (call, call_value): Generate an rtx for register r4 and pass
2931         it to PIC call patterns.
2932         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
2933         code generation and attributes from pattern.  Change peephole2 to
2934         split for noreturn case.  Revise split pattern for non noreturn case.
2935         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
2936         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
2937         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
2938         asserts.
2939
2940 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
2941
2942         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
2943         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
2944         and fp_type.
2945         (divdf3): Reformat long line.
2946
2947 2008-10-11  Michael J. Eager  <eager@eagercon.com>
2948
2949         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
2950         -mfpu options.
2951         (rs6000_handle_option): Process -mfpu options.
2952         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
2953         (enum fpu_type_t): New.
2954         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
2955         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
2956         fp_type.
2957         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
2958         (floatdidf2): Add TARGET_SINGLE_FPU condition.
2959         * config/rs6000/rs6000.opt (-mfpu): New.
2960         (-mxilinx-fpu): New.
2961         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
2962         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
2963         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
2964         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
2965         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
2966
2967 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
2968
2969         PR target/35760
2970         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
2971         LO_SUM on Darwin if mode has just one unit.
2972
2973 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
2974
2975         PR debug/37002
2976         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
2977         has been optimized out.
2978
2979 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
2980
2981         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
2982         instead of PIC_DIRECT_ADDR_P.
2983         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2984         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
2985         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
2986         (PIC_OFFSET_P): Rename to...
2987         (PCREL_SYMOFF_P): ...this.
2988         (PIC_DIRECT_ADDR_P): Delete.
2989         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
2990         PIC_OFFSET_P.
2991         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
2992         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
2993         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
2994         * config/sh/sh.c (print_operand): Remove CONST handling.
2995         (unspec_caller_rtx_p): Rewrite to use split_const and check
2996         the operands of UNSPEC bases.
2997         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
2998         with (unspec [A B] UNSPEC_SYMOFF).
2999         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
3000         UNSPEC_PCREL_SYMOFF.
3001         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
3002         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
3003         (UNSPEC_EXTRACT_U16): Likewise.
3004         (UNSPEC_SYMOFF): Likewise.
3005         (UNSPEC_PCREL_SYMOFF): Likewise.
3006         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
3007         of constants.
3008         (movsi_const_16bit): Likewise.
3009         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
3010         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
3011         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
3012         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
3013         with (unspec [A B] UNSPEC_SYMOFF).
3014         (symPLT_label2reg): Replace (minus A (minus B pc)) with
3015          (unspec [A B] PCREL_UNSPEC_SYMOFF).
3016         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
3017         (Csu): Likewise UNSPEC_EXTRACT_U16.
3018         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
3019         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
3020
3021 2008-10-10  Stepan Kasal  <skasal@redhat.com>
3022
3023         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
3024         for loop strip mining and loop blocking.
3025
3026 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
3027
3028         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
3029         vary types depending on debug info.
3030
3031 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
3032
3033         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
3034         before ensuring it's already computed.
3035
3036 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
3037
3038         * rtl.h (locator_eq): New decl.
3039         * cfglayout.c (locator_scope): New function.
3040         (insn_scope): Use it.
3041         (locator_eq): New function.
3042         (fixup_reorder_chain): Search for last insn in src bb
3043         that has locator set or first insn in dest bb.  Use
3044         locator_eq instead of == to compare locators.
3045         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
3046         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
3047         == to compare locators.
3048
3049         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
3050         as used.
3051         * gimple-low.c (lower_function_body, lower_gimple_return,
3052         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
3053         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
3054         goto_block on edges if goto_locus is known.
3055
3056         PR middle-end/37774
3057         * tree.h (get_object_alignment): Declare.
3058         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
3059         get_object_alignment if needed.
3060         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
3061         handling to ...
3062         (get_object_alignment): ... here.  New function.  Try harder to
3063         determine alignment from get_inner_reference returned offset.
3064
3065 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
3066
3067         * graphite.c (gloog): Don't call find_unreachable_blocks
3068         before delte_unreachable_blocks.
3069
3070         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
3071         goto_locus of true_edge into RTL locator.
3072
3073 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
3074
3075         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
3076         (*jcc_btdi_mask_rex64): Ditto.
3077         (*jcc_btsi): Ditto.
3078         (*jcc_btsi_mask): Ditto.
3079         (*jcc_btsi_1): Ditto.
3080         (*jcc_btsi_mask_1): Ditto.
3081
3082 2008-10-08  Paul Brook  <paul@codesourcery.com>
3083
3084         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
3085         compatible profiler (__gnu_mcount_nc).
3086         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
3087
3088 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3089
3090         * config/i386/i386.c (initial_ix86_tune_features): Add
3091         X86_TUNE_USE_VECTOR_FP_CONVERTS.
3092         * config/i386/i386.h (ix86_tune_indices): Likewise.
3093         (TARGET_USE_VECTOR_FP_CONVERTS): New.
3094
3095         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
3096         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
3097         for FP to FP splitters.
3098
3099 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3100
3101         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
3102         splitter.
3103
3104 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
3105
3106         PR target/36635
3107         PR target/37290
3108         PR rtl-optimization/37341
3109         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
3110         to ORIG_BB, pass through ORIG_BB recursively.
3111         (cse_condition_code_reg): Adjust caller.
3112
3113 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
3114
3115         * sdbout.c (sdbout_one_type): Treat the value type
3116         CONST_DECL for enumerals.
3117
3118 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3119
3120         * config/i386/i386.md: Remove trailing white spaces.
3121
3122 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
3123
3124         PR rtl-optimization/37448
3125         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
3126         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
3127         Make unsigned long.
3128         (struct output_info) [count]: Renamed total_created and made
3129         unsigned long.
3130         (struct output_info) [size]: Renamed total_allocated and made
3131         unsigned long.
3132         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
3133         Properly keep track of desc->size.
3134         (print_statistics, dump_alloc_pool_statistics): Enhance the
3135         printing of statistics to print the number of elements and to use
3136         unsigned longs.
3137
3138 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3139
3140         PR middle-end/37576
3141         * opts.h (CL_SAVE): Move up to flags range.
3142         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
3143         CL_COMMON): Renumber.
3144         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
3145         * opts.c (common_handle_option): Revert last change.
3146
3147 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         * config/i386/i386-protos.h (ix86_schedule): New.
3150
3151         * config/i386/i386.c (ix86_schedule): New.
3152         (override_options): Add schedule to processor_alias_table.  Set
3153         ix86_schedule from the schedule field in processor_alias_table.
3154         (ix86_function_specific_save): Save ix86_schedule.
3155         (ix86_function_specific_restore): Restore ix86_schedule.
3156
3157         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
3158         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
3159         and generic32.
3160
3161         * config/i386/i386.opt: Add schedule.
3162
3163         * config/i386/ppro.md: Remove generic32.
3164
3165 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
3166
3167         PR c/35437
3168         * expr.c (count_type_elements): Handle ERROR_MARK.
3169
3170 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3171
3172         PR debug/29609
3173         PR debug/36690
3174         PR debug/37616
3175         * basic-block.h (struct edge_def): Add goto_block field.
3176         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
3177         one insn with locus corresponding to edge's goto_locus if !optimize.
3178         * profile.c (branch_prob): Copy edge's goto_block.
3179         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
3180         emitted jumps.
3181         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
3182         locator in between the merged basic blocks if !optimize and needed.
3183         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
3184         goto_locus into RTL locator.  For unconditional jump use that
3185         locator for the jump insn.
3186         (expand_gimple_cond): Convert goto_block and goto_locus into
3187         RTL locator for all remaining edges.  For unconditional jump
3188         use that locator for the jump insn.
3189         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
3190         there is more than one edge or insn locator along the forwarding
3191         edges and !optimize.  If there is just one, set e->goto_locus.
3192         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
3193         edge's goto_block.
3194         (move_block_to_fn): Adjust edge's goto_block.
3195
3196 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3197
3198         PR middle-end/37731
3199         * expmed.c (expand_mult): Properly check DImode constant in
3200         CONST_DOUBLE.
3201
3202 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3203
3204         PR debug/37738
3205         * dwarf2out.c (common_block_die_table): New variable.
3206         (common_block_die_table_hash, common_block_die_table_eq): New
3207         functions.
3208         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
3209         COMMON block in the current scope rather than globally.  Optimize
3210         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
3211         DW_OP_addr SYMBOL_REF+off.
3212
3213 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3214
3215         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
3216         Return true for non-addressable GIMPLE operands.
3217
3218 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3219
3220         PR target/24765
3221         * config/i386/i386.c (initial_ix86_tune_features): Remove
3222         X86_TUNE_USE_BIT_TEST.
3223         * config/i386/i386.h (ix86_tune_indices): Likewise.
3224         (TARGET_USE_BIT_TEST): Removed.
3225
3226 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3227
3228         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
3229
3230 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
3231
3232         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
3233         (mul<mode>3_mul3): ... into this new template.
3234
3235 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
3236
3237         * gimplify.c (gimplify_arg): Add location argument.  Use it.
3238         (gimplify_call_expr): Pass location to gimplify_arg.
3239         (gimplify_modify_expr_to_memcpy): Same.
3240         (gimplify_modify_expr_to_memset): Same.
3241
3242 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3243
3244         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3245         Update calls to build_unary_op and build_indirect_ref for location
3246         changes.
3247
3248 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
3249
3250         build_modify_expr.
3251         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
3252         * c-typeck.c (array_to_pointer_conversion): Pass location to
3253         build_unary_op.
3254         (function_to_pointer_conversion): Use error_at and warning_at.
3255         (build_indirect_ref): Same.
3256         (build_array_ref): Pass location to build_binary_op.
3257         (parser_build_unary_op): Do not set location after calling
3258         build_unary_op.
3259         (build_unary_op): Add location argument.  Use it throughout.  Set
3260         EXPR_LOCATION before returning new tree.
3261         (build_modify_expr): Same.
3262         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
3263         returning node.
3264         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
3265         build_indirect_ref, build_modify_expr.
3266         (c_finish_omp_for): Same.  Use error_at instead of error.
3267         * c-common.c (c_common_truthvalue_conversion): Pass location to
3268         build_unary_op.
3269         (warn_for_div_by_zero): Add location argument.
3270         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
3271         build_unary_op, warn_for_div_by_zero.
3272         * c-parser.c (c_parser_typeof_specifier): Use
3273         protected_set_expr_location.
3274         (c_parser_statement_after_labels): Same.
3275         (c_parser_condition): Same.
3276         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
3277         (c_parser_conditional_expression): Use protected_set_expr_location.
3278         (c_parser_unary_expression): Pass location to build_indirect_ref.
3279         (c_parser_postfix_expression_after_primary): Pass location to
3280         build_indirect_ref, build_unary_op.
3281         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
3282
3283 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
3284
3285         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
3286         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
3287         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
3288         r14000 and r16000.
3289         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
3290         (mips_issue_rate): Handle PROCESSOR_R10000.
3291         * config/mips/mips.md (cpu): Add r10000.
3292         Include r10000.md.
3293         * config/mips/10000.md: New file.
3294
3295 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3296
3297         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
3298         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
3299         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
3300
3301 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3302
3303         * config/darwin-protos.h (machopic_function_base_name): Delete.
3304         (machopic_function_base_sym): Likewise.
3305         (machopic_gen_offset): Declare.
3306         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
3307         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
3308         * config/darwin.c (machopic_function_base_name): Delete.
3309         (machopic_function_base_sym): Likewise.
3310         (gen_pic_offset): Rename to...
3311         (machopic_gen_offset): ...this and remove the pic_base argument.
3312         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
3313         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
3314         crtl->uses_pic_offset_table.
3315         (machopic_indirect_data_reference): Use new machopic_gen_offset
3316         interface.
3317         (machopic_legitimize_pic_address): Likewise.
3318         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
3319
3320         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
3321         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
3322         * config/i386/i386.c (output_set_got): Likewise.
3323         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
3324         instead of a MINUS.
3325         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
3326         (legitimate_address_p): Likewise.
3327         (output_pic_addr_const): Likewise.
3328         (output_addr_const_extra): Likewise.
3329         (ix86_delegitimize_address): Expect darwin_local_data_pic to
3330         match an UNSPEC rather than a MINUS.
3331         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
3332         (builtin_setjmp_receiver): Use machopic_gen_offset.
3333         * config/i386/predicates.md (pic_symbolic_operand): Handle
3334         UNSPEC_MACHOPIC_OFFSET.
3335
3336         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3337         Use machopic_gen_offset and machopic_operand_p.
3338         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
3339         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
3340         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
3341         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
3342         Set crtl->uses_pic_offset_table.
3343
3344 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3345
3346         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3347         Declare.
3348         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
3349         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
3350         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
3351         (constant_pool_expr_p): Use split_const and check the base.
3352         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
3353         instead of a MINUS.
3354         (legitimate_constant_pool_address_p): Check toc_relative_p
3355         instead of constant_pool_expr_p.
3356         (print_operand_address): Always use output_addr_const for
3357         constant pool addresses.
3358         (rs6000_output_addr_const_extra): New function.
3359         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
3360
3361 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
3362
3363         PR middle-end/37535
3364
3365         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3366         (mark_ref_live, mark_ref_dead): Use them.
3367         (def_conflicts_with_inputs_p): Remove.
3368         (mark_early_clobbers): New function.
3369         (process_bb_node_lives): Call preprocess_constraints and
3370         mark_early_clobbers.
3371
3372         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
3373
3374 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
3375
3376         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
3377         lib with -mthread switch.
3378
3379 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
3380
3381         PR c++/37410
3382         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
3383         function in two, making it call a new and reusable
3384         dwarf2out_imported_module_or_decl() that takes the containing
3385         BLOCK of the declaration in argument.
3386         (dwarf2out_imported_module_or_decl_real): New function.
3387         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
3388         IMPORTED_DECL in account.
3389         * tree.def: Added IMPORTED_DECL node type.
3390         * tree.h: Added accessors for IMPORTED_DECL nodes.
3391         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
3392
3393 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3394
3395         * doc/gimple.texi: Fix some typos, wrap some long lines,
3396         fix some broken wraps with continuations.
3397         * tree-ssa-reassoc.c: Fix comment typos.
3398
3399 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3400
3401         PR target/37603
3402         * pa.c (legitimize_pic_address): Force function labels to memory in
3403         word mode.
3404
3405 2008-10-04  Anton Blanchard  <anton@samba.org>
3406
3407         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
3408         (rs6000_split_atomic_op): Same.
3409         (rs6000_split_compare_and_swap): Same.
3410         (rs6000_split_compare_and_swapqhi): Same.
3411
3412 2008-10-04  Richard Guenther  <rguenther@suse.de>
3413
3414         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
3415         instead of pointer equality.
3416         (vn_nary_op_eq): Likewise.
3417
3418 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3419
3420         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT
3421         condition.
3422         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
3423         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
3424
3425 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
3426
3427         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3428         Revert previous change.
3429
3430 2008-10-03  Tom Tromey  <tromey@redhat.com>
3431
3432         * stringpool.c (ggc_alloc_string): Terminate string.
3433
3434 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
3435
3436         * gimplify.c (gimplify_function_tree): For -finstrument-functions
3437         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
3438         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
3439
3440         PR debug/37726
3441         * gimplify.c (declare_vars): Use gimple_bind_block instead of
3442         gimple_block.
3443
3444 2008-10-03  Pascal Obry  <obry@adacore.com>
3445
3446         * gcov.c (create_file_names): Properly handle UNIX and DOS
3447         directory separators.
3448         (make_gcov_file_name): Likewise + convert the ':' DOS drive
3449         separator to '~' to ensure clean filenames on Windows.
3450
3451 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
3452
3453         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3454         Add a null terminator to the stripped name.
3455
3456 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
3457
3458         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
3459         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3460         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
3461         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
3462         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3463         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
3464         TARGET_SINGLE_FLOAT.
3465
3466 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
3467
3468         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
3469
3470 2008-10-02  Richard Guenther  <rguenther@suse.de>
3471
3472         PR middle-end/37713
3473         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
3474         and VECTOR_TYPE recurse with useless_type_conversion_p which
3475         properly handles void pointer conversion.
3476
3477 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
3478
3479         PR target/37528
3480         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
3481         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
3482
3483 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3484
3485         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3486         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
3487         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
3488         they translate to non builtins.
3489         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
3490         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
3491         __builtin_vec_promote, __builtin_vec_extract, and
3492         __builtin_vec_insert.
3493         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
3494         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
3495         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
3496         * config/rs6000/altivec.h (vec_extract): Define
3497         (vec_insert): Define.
3498         (vec_splats): Define.
3499         (vec_promote): Define.
3500
3501 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3502             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
3503             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
3504
3505         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
3506         Altivec intrinsics.
3507         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
3508         prototype.  Add new parameter, blk.
3509         Use BLKmode for the MEM if blk is true.
3510         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
3511         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
3512         ALTIVEC_BUILTIN_STVRXL.
3513         Update usage of altivec_expand_lv_builtin.
3514         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
3515         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
3516         (altivec_init_builtins): If compiling for the Cell, also define the
3517         cell VMX builtins.
3518         * config/rs6000/rs6000.h (rs6000_builtins): Define
3519         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
3520         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
3521         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
3522         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
3523         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
3524         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
3525         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
3526         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
3527         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
3528         UNSPEC_STVRX, and UNSPEC_STVRXL.
3529         (altivec_lvlx): New pattern.
3530         (altivec_lvlxl): New pattern.
3531         (altivec_lvrx): New pattern.
3532         (altivec_lvrxl): New pattern.
3533         (altivec_stvlx): New pattern.
3534         (altivec_stvlxl): New pattern.
3535         (altivec_stvrx): New pattern.
3536         (altivec_stvrxl): New pattern.
3537         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
3538         (vec_lvlxl): Likewise.
3539         (vec_lvrx): Define if PPU is defined.
3540         (vec_lvrxl): Likewise.
3541         (vec_stvlx): Define if PPU is defined.
3542         (vec_stvlxl): Likewise.
3543         (vec_stvrx): Define if PPU is defined.
3544         (vec_stvrxl): Likewise.
3545
3546 2008-10-01  Geert Bosch  <bosch@adacore.com>
3547
3548         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
3549
3550 2008-10-01  Richard Guenther  <rguenther@suse.de>
3551
3552         PR tree-optimization/37617
3553         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
3554         do not add to the NEW_SETS.
3555
3556 2008-10-01  Richard Guenther  <rguenther@suse.de>
3557
3558         PR middle-end/37285
3559         * tree-vrp.c (execute_vrp): If we optimized away the default
3560         case make sure to promote the label that got in place of it
3561         to a default case label.
3562
3563 2008-10-01  Richard Henderson  <rth@redhat.com>
3564
3565         PR tree-opt/35737
3566         * tree-complex.c (set_component_ssa_name): Don't optimize
3567         is_gimple_min_invariant values with ssa_names in abnormal phis.
3568
3569 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
3570
3571         PR tree-optimization/37662
3572         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
3573         commutative binary operation if they are in the wrong order and
3574         fold_build2 produces non-GIMPLE.
3575
3576 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
3577
3578         PR tree-optimization/37662
3579         PR tree-optimization/37663
3580         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
3581         get_value_range with non-SSA_NAME.  Don't assert operands have been
3582         folded, instead just bail out.
3583
3584 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3585
3586         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
3587
3588 2008-09-30  Richard Guenther  <rguenther@suse.de>
3589
3590         PR middle-end/37491
3591         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
3592         build restrict-qualified pointers.
3593         (vectorizable_store): Move alias check later.
3594         (vectorizable_load): Likewise.
3595
3596 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
3597
3598         * c-common.c (empty_if_body_warning): Remove.
3599         * c-common.h (empty_if_body_warning): Remove.
3600         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
3601         here the -Wempty-body warning for `if' and `else' statements.
3602         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
3603
3604 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3605
3606         * config/i386/i386.opt: Add msse2avx.
3607
3608         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
3609         * config/i386/linux64.h (ASM_SPEC): Likewise.
3610
3611         * doc/invoke.texi: Document -msse2avx.
3612
3613 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3614
3615         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
3616
3617 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
3618
3619         * ifcvt.c (noce_emit_store_flag): If using condition from original
3620         jump, reverse it if if_info->cond was reversed.
3621
3622 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3623
3624         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
3625         non-constant memory if it cannot be forced to constant memory.
3626         Overhaul surrounding code and factor out common condition.
3627
3628 2008-09-29  Jeff Law <law@redhat.com>
3629
3630         * reload1.c (alter_reg): Add missing curly braces.
3631
3632 2008-09-29  Michael J. Eager  <eager@eagercon.com>
3633
3634         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3635         are easy.
3636         * config/rs6000/rs6000.c (rs6000_override_options): Move
3637         rs6000_init_hard_regno_mode_ok after all options changed.
3638         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3639         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3640         -msimple-fpu flags.  Add warning messages if single FP not configured.
3641         (rs6000_file_start): Output gnu_attribute for single-float.
3642         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3643         (rs6000_legitimize_address): Likewise.
3644         (rs6000_legitimize_reload_address): Likewise.
3645         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3646         TARGET_SINGLE_FLOAT.
3647         (function_arg_advance): Likewise (partial conversion).
3648         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3649         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3650         TARGET_SINGLE_FLOAT.
3651         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3652         (rs6000_emit_prologue): Likewise.
3653         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3654         TARGET_SINGLE_FLOAT.
3655         (rs6000_libcall_value): Likewise.
3656         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3657         (TARGET_DOUBLE_FLOAT): New default to 1
3658         (TARGET_SIMPLE_FPU): New default to 0
3659         (TARGET_SINGLE_FPU): New default to 0
3660         (TARGET_SINGLE_FLOAT_MODE): New.
3661         (TARGET_DOUBLE_FLOAT_MODE): New.
3662         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3663         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3664         UNITS_PER_FP_WORD
3665         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3666         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3667         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3668         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3669         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3670         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3671         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3672         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3673         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3674         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3675         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3676         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3677         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3678         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3679         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3680         cmptf_internal1, *cmptf_internal2): Condition on
3681         TARGET_DOUBLE_FLOAT.
3682         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3683         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3684         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3685         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3686         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3687         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3688         TARGET_SINGLE_FLOAT.
3689         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3690         * config/rs6000/rs6000.opt (-msingle-float): New.
3691         (-mdouble-float): New.
3692         (-msimple-fpu): New.
3693         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3694         -msingle-float, -mdouble-float, -msimple-fpu options.
3695         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3696         _SOFT_DOUBLE for -msingle-float.
3697         * config.gcc: New config for target=powerpc-xilinx-eabi.
3698
3699 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
3700
3701         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
3702         have exit and entry.
3703         (new_scop): Take entry and exit edge to define new SCoP.
3704         (sd_region_p): New structure used during SCoP detection.
3705         (move_scops): Delete.
3706         (move_sd_regions): New.
3707         (scopdet_info): Change the definition from edges back to basic_blocks.
3708         (scopdet_edge_info):  Work on basic_blocks and rename to
3709         scopdet_basic_block_info.
3710         (split_difficult_bb): At the moment removed. We should later
3711         add it at another place.
3712         (build_scops_1): Work on basic_blocks.
3713         (bb_in_sd_region): New.
3714         (find_single_entry_edge): New.
3715         (find_single_exit_edge): New.
3716         (create_single_entry_edge): New.
3717         (sd_region_without_exit): New.
3718         (create_single_exit_edge): New.
3719         (unmark_exit_edges): New.
3720         (mark_exit_edges): New.
3721         (create_sese_edges): New.
3722         (build_graphite_scops): New.
3723         (build_scops): Make SCoPs SESE.
3724         (limit_scops): Use the new functions.
3725
3726 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
3727
3728         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
3729
3730 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3731
3732         PR target/37640
3733         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
3734         address to a register before taking the lower part.
3735
3736 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3737
3738         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
3739         for SHmedia.
3740
3741 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3742             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
3743
3744         PR tree-opt/36891
3745         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
3746         the newly created variable.
3747         Create a VECTOR_CST of all 1s for vector types.
3748
3749 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
3750
3751         PR middle-end/36575
3752         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
3753
3754 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
3755
3756         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
3757         order to convert between modes.
3758         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
3759
3760 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3761
3762         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
3763         if needed.
3764
3765 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
3766
3767         Revert:
3768         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3769         * ira-lives.c:...
3770         * doc/rtl.texi:...
3771
3772 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
3773
3774         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
3775         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
3776         them to yield false with MIPS16.
3777
3778 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
3779
3780         PR middle-end/37275
3781         * dwarf2out.c (tls_mem_loc_descriptor): New function.
3782         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
3783         mem_loc_descriptor failed.  Accept UNSPEC.
3784         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
3785         fail if one of the loc_descriptor calls for pieces failed.
3786         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
3787         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
3788         if loc_descriptor_from_tree_1 on offset failed.
3789
3790         PR middle-end/37576
3791         * opts.c (common_handle_option): Don't call print_specific_help with
3792         CL_SAVE as first argument.
3793
3794 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
3795             Steve Ellcey  <sje@cup.hp.com>
3796
3797         * configure: Regenerate for new libtool.
3798         * aclocal.m4: Ditto.
3799
3800 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
3801
3802         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
3803         alias set on MEM when saving stack pointer.
3804         * config/rs6000/rs6000.md (allocate_stack): Likewise
3805
3806 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
3807
3808         PR tree-optimization/37574
3809         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
3810         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
3811         instead of vector_type for constants. Take computation out of loop.
3812         (vect_get_vec_def_for_operand): Use only vectype for constant case,
3813         and use only vector_type for invariant case.
3814         (get_initial_def_for_reduction): Use vectype instead of vector_type.
3815
3816 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
3817
3818         PR c/37645
3819         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
3820         the decl is a VAR_DECL or FUNCTION_DECL.
3821
3822 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3823
3824         PR middle-end/37535
3825         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3826         (mark_ref_live, mark_ref_dead): Use them.
3827         (def_conflicts_with_inputs_p): Remove.
3828         (mark_early_clobbers): New function.
3829         (process_bb_node_lives): Call preprocess_constraints and
3830         mark_early_clobbers.
3831
3832         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
3833
3834 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3835
3836         PR middle-end/37448
3837         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
3838         (ira_compress_allocno_live_ranges): New prototype.
3839
3840         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
3841         (coalesced_allocnos_living_at_program_points): New.
3842         (coalesced_allocnos_live_at_points_p,
3843         set_coalesced_allocnos_live_points): New functions.
3844         (coalesce_spill_slots): Rewrite.
3845
3846         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
3847         ira_compress_allocno_live_ranges): New functions.
3848
3849         * ira-build.c (ira_flattening): Call
3850         ira_compress_allocno_live_ranges.
3851         (ira_build): Ditto.
3852
3853 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3854
3855         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
3856         optimization.
3857
3858 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
3859
3860         * combine.c (make_compound_operation): Handle the 'E' format.
3861         (count_rtxs): Likewise.
3862         (update_table_tick): Likewise.
3863         (get_last_value_validate): Likewise.
3864
3865 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3866
3867         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
3868
3869 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
3870
3871         * matrix-reorg.c (transform_allocation_sites): Initializers
3872         added to avoid the warning.
3873
3874 2008-09-25  Martin Jambor  <mjambor@suse.cz>
3875
3876         * cgraph.c (free_nodes): New variable.
3877         (NEXT_FREE_NODE): New macro.
3878         (cgraph_create_node): Reuse nodes from the free list.  Do not
3879         update uid if doing so.
3880         (cgraph_remove_node): Add the node to the free list.
3881
3882 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
3883
3884         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3885
3886 2008-09-24  Richard Henderson  <rth@redhat.com>
3887
3888         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
3889         * unwind-dw2.c (execute_stack_op): Handle it.
3890
3891 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
3892
3893         Revert:
3894         2008-09-24  Michael J. Eager  <eager@eagercon.com>
3895
3896 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
3897
3898         * c-common.c (fname_decl): New location argument.
3899         * c-common.h (fname_decl): Same.
3900         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
3901         {warning,error}.
3902         (c_parser_typeof_specifier): Same.
3903         (c_parser_parms_list_declarator): Same.
3904         (c_parser_asm_string_literal): Same.
3905         (c_parser_compound_statement_nostart): Same.
3906         (c_parser_label): Same.
3907         (c_parser_do_statement): Same.
3908         (c_parser_asm_statement): Same.
3909         (c_parser_unary_expression): Same.
3910         (c_parser_sizeof_expression): Same.
3911         (c_parser_postfix_expression): Same.
3912         (c_parser_pragma): Same.
3913         (c_parser_omp_clause_collapse): Same.
3914         (c_parser_omp_clause_num_threads): Same.
3915         (c_parser_omp_clause_schedule): Same.
3916         (c_parser_omp_all_clauses): Same.
3917         (c_parser_omp_sections_scope): Same.
3918         (c_parser_omp_for_loop): Same.  Pass condition's location to
3919         c_objc_common_truthvalue_conversion.
3920         (c_parser_enum_specifier): Remove comment.
3921
3922 2008-09-24  Michael J. Eager  <eager@eagercon.com>
3923
3924         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3925         are easy.
3926         * config/rs6000/rs6000.c (rs6000_override_options): Move
3927         rs6000_init_hard_regno_mode_ok after all options changed.
3928         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3929         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3930         -msimple-fpu flags.  Add warning messages if single FP not configured.
3931         (rs6000_file_start): Output gnu_attribute for single-float.
3932         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3933         (rs6000_legitimize_address): Likewise.
3934         (rs6000_legitimize_reload_address): Likewise.
3935         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3936         TARGET_SINGLE_FLOAT.
3937         (function_arg_advance): Likewise.
3938         (function_arg): Likewise.
3939         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3940         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3941         TARGET_SINGLE_FLOAT.
3942         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3943         (rs6000_emit_prologue): Likewise.
3944         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3945         TARGET_SINGLE_FLOAT.
3946         (rs6000_libcall_value): Likewise.
3947         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3948         (TARGET_DOUBLE_FLOAT): New default to 1
3949         (TARGET_SIMPLE_FPU): New default to 0
3950         (TARGET_SINGLE_FPU): New default to 0
3951         (TARGET_SINGLE_FLOAT_MODE): New.
3952         (TARGET_DOUBLE_FLOAT_MODE): New.
3953         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3954         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3955         UNITS_PER_FP_WORD
3956         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3957         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3958         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3959         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3960         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3961         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3962         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3963         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3964         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3965         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3966         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3967         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3968         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3969         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3970         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3971         cmptf_internal1, *cmptf_internal2): Condition on
3972         TARGET_DOUBLE_FLOAT.
3973         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3974         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3975         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3976         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3977         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3978         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3979         TARGET_SINGLE_FLOAT.
3980         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3981         * config/rs6000/rs6000.opt (-msingle-float): New.
3982         (-mdouble-float): New.
3983         (-msimple-fpu): New.
3984         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3985         -msingle-float, -mdouble-float, -msimple-fpu options.
3986         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3987         _SOFT_DOUBLE for -msingle-float.
3988         * config.gcc: New config for target=powerpc-xilinx-eabi.
3989
3990 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
3991
3992         * config/sparc/constraints.md: New file.
3993         * config/sparc/sparc.md: Include it.
3994         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
3995         (sparc_extra_constraint_check): Delete.
3996         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
3997         (memory_ok_for_ldd): New predicate.
3998         (sparc_extra_constraint_check): Delete.
3999         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
4000         (CONST_OK_FOR_LETTER_P): Likewise.
4001         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4002         (EXTRA_CONSTRAINT): Likewise.
4003
4004 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
4005
4006         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
4007
4008 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4009
4010         * alias.c (find_base_value): Use FIND_BASE_TERM.
4011         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
4012
4013 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4014
4015         * config/i386/i386.c: Include cselib.h.
4016         (ix86_pic_register_p): New function.
4017         (ix86_delegitimize_address): Use it to check for the PIC register.
4018
4019 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4020
4021         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
4022         * config/i386/i386.c (ix86_find_base_term): Don't check for
4023         SYMBOL_REF and LABEL_REF.
4024
4025 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4026
4027         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
4028         constant PLUS in a CONST.
4029
4030 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
4031
4032         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
4033         check for sibcall support for w64.
4034
4035 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
4036
4037         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
4038
4039 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
4040
4041         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
4042         parser_build_binary_op.
4043         * c-decl.c (build_enumerator): Pass location to build_binary_op.
4044         * c-typeck.c (build_array_ref): Same.
4045         (parser_build_unary_op): New location argument.
4046         (pointer_diff): Pass location to build_binary_op,
4047         c_objc_common_truthvalue_conversion.
4048         (build_modify_expr): Same.
4049         (build_unary_op): New location argument.
4050         (build_binary_op): New location argument.
4051         (c_objc_common_truthvalue_conversion): Pass location to
4052         c_*common_truthvalue_conversion.
4053         * c-convert.c (convert): Same.
4054         * c-common.c (binary_op_error): New location argument.
4055         (pointer_int_sum): Pass location to build_binary_op.
4056         (c_common_truthvalue_conversion): New location argument.
4057         (warn_for_sign_compare): Same.
4058         * c-common.h: Add location argument to c_common_truthvalue_conversion,
4059         binary_op_error, build_binary_op, warn_for_sign_compare.
4060         * c-parser.c (c_parser_condition): Pass location to
4061         c_*common_truthvalue_conversion.
4062         (c_parser_conditional_expression): Save condition's location and pass
4063         it on down.
4064         (c_parser_binary_expression): Same, but for the binary operator's
4065         location.
4066         (c_parser_omp_for_loop): Pass location to
4067         c_objc_common_truthvalue_conversion.
4068
4069 2008-09-23  Martin Jambor  <mjambor@suse.cz>
4070
4071         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
4072         (cgraph_node_remove_callees): New temporary f.  Hold the next item
4073         in f when looping.
4074         (cgraph_node_remove_callers): Likewise.
4075
4076         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
4077         (ipa_node_removal_hook): Likewise.
4078
4079         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
4080         gimple_call_copy_skip_args and moved to the gimple_call section.
4081         * gimple.c (gimple_copy_call_skip_args): Renamed to
4082         gimple_call_copy_skip_args.  Changed al users.
4083
4084 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
4085
4086         * ira-color.c (start_allocno_priorities): Rename to
4087         setup_allocno_priorities.  Use costs and
4088         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
4089         range lengths.  Get rid off doubles.
4090         (ira_fast_allocations): Call start_allocno_priorities.
4091
4092 2008-09-22  David Daney  <ddaney@avtrex.com>
4093
4094         PR target/37593
4095         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
4096         register if TARGET_LONG_CALLS.
4097
4098 2008-09-22  Richard Guenther  <rguenther@suse.de>
4099
4100         PR tree-optimization/37145
4101         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
4102         value-numbering union accesses with their offset and size only.
4103         (visit_reference_op_load): Fix simplification of inserted conversions.
4104         * tree-ssa-pre.c (find_or_generate_expression): Do not
4105         recursively generate expressions if running FRE.
4106
4107 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
4108
4109         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
4110         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
4111         New patterns.
4112
4113 2008-09-22  Richard Guenther  <rguenther@suse.de>
4114
4115         PR tree-optimization/37145
4116         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
4117         (phi_translate_1): Constant fold references.
4118
4119 2008-09-22  Ira Rosen  <irar@il.ibm.com>
4120
4121         PR tree-optimization/37482
4122         * tree-vectorizer.h (struct _slp_instance): Add new field.
4123         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
4124         (get_earlier_stmt): New function.
4125         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
4126         function.
4127         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
4128         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
4129         asserts that GSI points to the scalar statement being vectorized.
4130         Set new statement location according to GSI.
4131         (vect_schedule_slp_instance): Use GSI of
4132         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
4133
4134 2008-09-21  Jan Hubicka  <jh@suse.cz>
4135
4136         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
4137         (ipcp_insert_stage): Update dead_nodes bitmap.
4138
4139 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
4140
4141         PR target/37528
4142         * config/i386/t-cygming (SHLIB_LC): Remove.
4143         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
4144         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
4145
4146 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
4147
4148         PR middle-end/37170
4149         PR middle-end/37280
4150         * final.c (mark_symbol_ref_as_used): New helper function.
4151         (output_operand): Instead of just looking inside MEMs for
4152         SYMBOL_REFs, use new helper function and for_each_rtx.
4153         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
4154         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
4155         Make head comment more general.
4156         * config/darwin.c (machopic_output_indirection): Handle weak
4157         references here, like in assemble_external.
4158
4159 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4160
4161         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
4162         (sparc_emit_float_lib_cmp): Change return type.
4163         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
4164         (gen_compare_operator): New function.
4165         (sparc_emit_float_lib_cmp): Return the new operator to be used in
4166         the comparison sequence.  Minor tweaks.
4167         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
4168         that the final operator and the result of sparc_emit_float_lib_cmp
4169         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
4170         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
4171         buneq, bunge, bunle, bltgt): Assert that the final operator and the
4172         result of sparc_emit_float_lib_cmp match for software TFmode.
4173         (movqicc, movhicc, movsicc, movdicc): Merge into...
4174         (mov<I:mode>cc): ...this.
4175         (movsfcc, movdfcc, movtfcc): Merge into...
4176         (mov<F:mode>cc): ...this.
4177         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
4178         into...
4179         (mov<I:mode>_cc_v9): ...this.
4180         (movdi_cc_sp64_trunc): Delete.
4181         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
4182         movdi_cc_reg_sp64): Merge into...
4183         (mov<I:mode>_cc_reg_sp64): ...this.
4184         (movsf_cc_sp64): Rename into...
4185         (movsf_cc_v9): ...this.
4186         (movdf_cc_sp64): Rename into...
4187         (movdf_cc_v9): ...this.
4188         (movtf_cc_hq_sp64): Rename into...
4189         (movtf_cc_hq_v9): ...this.
4190         (movtf_cc_sp64): Rename into...
4191         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
4192
4193 2008-09-21  Diego Novillo  <dnovillo@google.com>
4194
4195         * doc/gccint.texi: Include generic.texi and gimple.texi.
4196         Re-order index.
4197         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
4198         (GIMPLE): Move to gimple.texi.
4199         (Annotations): Remove references to to stmt_ann_t and
4200         ssa_name_ann_t.
4201         (SSA Operands): Rename from 'Statement Operands'.
4202         * doc/generic.texi: New.
4203         * doc/gimple.texi: New.
4204         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
4205         * Makefile.in (TEXI_GCCINT_FILES):
4206         * gimple.c (gimple_copy_call_skip_args): Rename from
4207         giple_copy_call_skip_args.  Update all users.
4208         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
4209
4210 2008-09-21  Ira Rosen  <irar@il.ibm.com>
4211
4212         PR tree-optimization/37539
4213         * tree-vect-transform.c (vect_transform_strided_load): Save vector
4214         statement in related statement field only for the first load of the
4215         group of loads with the same data reference.
4216
4217 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
4218
4219         * config/mips/mips.h (TUNE_OCTEON): New macro.
4220         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
4221         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
4222         * config/mips/octeon.md: New file.
4223         * config/mips/mips.md: Include octeon.md.  Restore
4224         semi-alphabetical order of include files.
4225
4226 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
4227
4228         PR target/37571
4229         * config/i386/i386.md (*jcc_fused_1): Removed.
4230         (*jcc_fused_2): Likewise.
4231         (*jcc_fused_3): Likewise.
4232         (*jcc_fused_4): Likewise.
4233
4234 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
4235
4236         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
4237         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
4238         * target.h (gcc_target): Add ira_cover_classes.
4239         * ira.c: Remove IRA_COVER_CLASSES guards.
4240         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
4241         instead of IRA_COVER_CLASSES.
4242         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
4243         (setup_class_translate): Likewise.
4244         (setup_reg_class_intersect_union): Likewise.
4245         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
4246         test of targetm.ira_cover_classes.
4247         * opts.c (decode_options): Use targetm.ira_cover_classes instead
4248         of IRA_COVER_CLASSES.
4249         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
4250         (TARGET_INITIALIZER): Include it.
4251         * targhooks.h (default_ira_cover_classes): Declare.
4252         * targhooks.c (default_ira_cover_classes): New function.
4253
4254 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
4255
4256         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
4257
4258 2008-09-19  Ian Lance Taylor  <iant@google.com>
4259
4260         * varasm.c (narrowing_initializer_constant_valid_p): Return
4261         NULL_TREE if ENDTYPE is not an integer.
4262
4263 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4264
4265         PR tree-opt/30930
4266         * tree-ssa.c (execute_update_addresses_taken): Also update
4267         DECL_GIMPLE_REG_P for vector and complex types.
4268
4269 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
4270             Jan Hubicka  <jh@suse.cz>
4271
4272         PR middle-end/37567
4273         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
4274         empty before freeing them.
4275         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
4276
4277 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
4278
4279         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
4280         * config/xtensa/predicates.md (tls_symbol_operand): New.
4281         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
4282         (TARGET_CANNOT_FORCE_MEM): Define.
4283         (xtensa_tls_symbol_p): New.
4284         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
4285         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
4286         (xtensa_tls_module_base): New.
4287         (xtensa_call_tls_desc): New.
4288         (xtensa_legitimize_tls_address): New.
4289         (xtensa_legitimize_address): Handle TLS symbols.
4290         (xtensa_tls_referenced_p_1): New.
4291         (xtensa_tls_referenced_p): New.
4292         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
4293         UNSPEC_DTPOFF.
4294         (XTENSA_BUILTIN_THREAD_POINTER): New.
4295         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
4296         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
4297         builtin.  Add declarations for __builtin_thread_pointer and
4298         __builtin_set_thread_pointer.
4299         (xtensa_fold_builtin): Recognize new builtins.
4300         (xtensa_expand_builtin): Expand new builtins.
4301         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
4302         (TARGET_THREADPTR): Define.
4303         (HAVE_AS_TLS): Define default value.
4304         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
4305         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
4306         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
4307         (UNSPECV_SET_TP): New.
4308         (sym_TPOFF, sym_DTPOFF): New.
4309         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
4310         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
4311         * configure: Regenerated.
4312
4313 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         PR target/37394
4316         * config/ia64/ia64.c (ia64_optimization_options): Move
4317         checking and setting flag_schedule_insns_after_reload and
4318         ia64_flag_schedule_insns2 back to ...
4319         (ia64_override_options): Here.
4320
4321 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4322
4323         PR rtl-opt/37451
4324         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
4325         zero extend count after the correction to it is done.
4326         (doloop_optimize): Update call to doloop_modify, don't zero extend
4327         count before call.
4328
4329 2008-09-18  Martin Jambor  <mjambor@suse.cz>
4330
4331         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
4332
4333         * ipa-prop.c: Correct comments.
4334         * ipa-prop.h: Likewise.
4335
4336 2008-09-18  Jan Hubicka  <jh@suse.cz>
4337
4338         PR middle-end/37448
4339         * ipa-reference.c (ipa_reference_local_vars_info_d,
4340         ipa_reference_global_vars_info_d,
4341         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4342         ipa_reference_vars_info_t): Move here from ipa-reference.h
4343         (node_duplication_hook_holder, node_removal_hook_holder): New.
4344         (get_reference_vars_info_from_cgraph): Rename to ...
4345         (get_reference_vars_info): ... this one, use cgraph uids.
4346         (get_local_reference_vars_info, get_global_reference_vars_info):
4347         Use cgraph instead of decl.
4348         (ipa_reference_get_read_local, ipa_reference_get_written_local):
4349         Remove.
4350         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
4351         ipa_reference_get_written_global,
4352         ipa_reference_get_not_written_global): Use cgraph argument.
4353         (check_call): Simplify avail check.
4354         (scan_stmt_for_static_refs): Update.
4355         (propagate_bits): Update.
4356         (merge_callee_local_info): Remove.
4357         (init_function_info): Use cgraph nodes.
4358         (clean_function_local_data): Break out from ...
4359         (clean_function): ... here.
4360         (copy_local_bitmap, copy_global_bitmap): New functions.
4361         (duplicate_node_data, remove_node_data): New functions.
4362         (generate_summary): Register hooks; use visibility instead of
4363         master clones.
4364         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
4365         * ipa-reference.h (ipa_reference_local_vars_info_d,
4366         ipa_reference_global_vars_info_d,
4367         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4368         ipa_reference_vars_info_t): Move to ipa-reference.c
4369         (ipa_reference_get_read_local, ipa_reference_get_written_local):
4370         Remove.
4371         (ipa_reference_get_read_global, ipa_reference_get_written_global,
4372         ipa_reference_get_not_read_global,
4373         ipa_reference_get_not_written_global): Update prototype.
4374         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
4375         (init_state): Remove.
4376         (node_duplication_hook_holder, node_removal_hook_holder): New.
4377         (get_function_state, set_function_state): Use VECtor.
4378         (analyze_function): Check body availability.
4379         (add_new_function): Likewise.
4380         (duplicate_node_data, remove_node_data): New.
4381         (generate_summary): Register hooks; do not care about clones.
4382         (propafate): Do not care about clones; recursive functions are
4383         not looping.
4384         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
4385         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
4386         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
4387         static.
4388         * tree-flow.h (function_ann_d): Remove reference_vars_info.
4389         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
4390         Update call of ipa-reference accesors.
4391
4392 2008-09-18  Simon Baldwin  <simonb@google.com>
4393
4394         * c-opts.c (c_common_handle_option): Add handling for
4395         -Wbuiltin-macro-redefined command line option.
4396         * c.opt: Added builtin-macro-redefined option.
4397         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
4398         documentation.
4399
4400 2008-09-18  Richard Guenther  <rguenther@suse.de>
4401
4402         PR tree-optimization/37258
4403         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
4404         and signedness for integral types.
4405         (vn_phi_eq): Require compatible types.
4406
4407 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
4408
4409         PR debug/34037
4410         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
4411         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
4412         VAR_DECL.
4413         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
4414         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
4415         ggc_free other TREE_LIST nodes from that chain.
4416         * function.c (instantiate_decls): Instantiate also DECL_RTL
4417         of vars in cfun->local_decls, free that list afterwards.
4418
4419 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
4420
4421         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
4422         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
4423
4424 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
4425
4426         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
4427         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
4428
4429 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
4430
4431         PR tree-optimization/37102
4432         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
4433         from a node. Check to see if another PHI is dead.
4434         (eliminate_useless_phis): Rename from eliminate_virtual_phis and
4435         remove real PHIs which have no uses.
4436         (rewrite_out_of_ssa): Call eliminate_useless_phis.
4437
4438 2008-09-18  Richard Guenther  <rguenther@suse.de>
4439
4440         PR middle-end/37284
4441         * tree-cfg.c (remove_useless_stmts_1): Remove
4442         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
4443
4444 2008-09-18  Nick Clifton  <nickc@redhat.com>
4445
4446         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
4447         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
4448         to frv_secondary_reload_class.
4449         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4450         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
4451         (frv_secondary_reload_class): Omit unused parameter.
4452         (frv_secondary_reload): New function.  Handle the case when
4453         secondary_reload_class() is called before the reload_(in|out)
4454         _optabs have been initialised.
4455         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
4456         unused parameter.
4457         * config/frv/frv.md: Define an exclusion set between fr550_m0
4458         and fr550_f0.
4459
4460 2008-09-18  Richard Guenther  <rguenther@suse.de>
4461
4462         PR tree-optimization/37456
4463         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
4464         want to insert after ends a BB insert on the single fallthru
4465         outgoing edge.
4466
4467 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
4468
4469         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
4470         Mention -march=z9-109, z9-ec and z10.
4471
4472 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
4473
4474         PR rtl-optimization/37544
4475         * regrename.c (maybe_mode_change): Exit early when copy_mode
4476         is narrower than orig_mode and narrower than new_mode.
4477
4478 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
4479
4480         PR middle-end/37499
4481         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
4482
4483         * sched-rgn.c (ref_counts): Remove.
4484         (insn_referenced): New static variable.
4485         (INSN_REF_COUNT): Remove.
4486         (sched_run_compute_dependencies): Use insn_referenced instead of
4487         INSN_REF_COUNT.
4488         (add_branch_dependences): Likewise.  Delete dead assignment.
4489
4490 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
4491
4492         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
4493         consumer is an asm.  Add comment why this is important.
4494         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
4495         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
4496
4497 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
4498
4499         * expr.c (emit_group_store): Do not shift before moving via a
4500         stack slot.
4501
4502 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4503
4504         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
4505         from aggregate to non-aggregate type if the bit pattern is not fully
4506         preserved afterwards.
4507
4508 2008-09-17  Richard Guenther  <rguenther@suse.de>
4509
4510         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
4511         (verify_gimple_assign): ... this.  Split into ...
4512         (verify_gimple_assign_unary): ... this,
4513         (verify_gimple_assign_binary): ... that,
4514         (verify_gimple_assign_single): ... and this.
4515         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
4516         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
4517         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
4518         (verify_types_in_gimple_reference): Be forgiving with
4519         VIEW_CONVERT_EXPRs.
4520         (verify_gimple_phi): Deal with virtual operands.
4521
4522         * tree.def (PREDICT_EXPR): Change to tcc_expression.
4523
4524 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4525
4526         * tree.c (get_callee_fndecl): Don't call the language hook.
4527         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
4528         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
4529         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
4530
4531 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
4532
4533         * tree.c (protected_set_expr_location): Don't unnecessarily
4534         check for error_mark_node.
4535
4536 2008-09-17  Art Haas  <ahaas@impactweather.com>
4537
4538         * ipa-reference.c (analyze_function): Declare step only if
4539         ENABLE_CHECKING is defined.
4540
4541 2008-09-17  Jan Hubicka  <jh@suse.cz>
4542
4543         PR c++/18071
4544         * tree.h (DECL_INLINE): remove.
4545         (DECL_DECLARED_INLINE_P): Update docs.
4546         (DECL_NO_INLINE_WARNING_P): new.
4547         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
4548         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
4549
4550 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
4551             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4552
4553         PR bootstrap/37441
4554         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
4555         false.
4556
4557 2008-09-17  Jan Hubicka  <jh@suse.cz>
4558
4559         * ipa-reference.c (ipa_obstack): Remove.
4560         (local_info_obstack, global_info_obstack): New.
4561         (add_static_var): We now handle variables only.
4562         (mark_address_taken, mark_load, mark_store): New functions based on ...
4563         (check_operand): ... remove.
4564         (get_asm_stmt_operands): Rename to ...
4565         (check_asm_memory_clobber): ... this. Look only for memory clobber.
4566         (scan_stmt_for_static_refs): Rewrite.
4567         (scan_op_for_static_refs): Rename to ...
4568         (scan_initializer_for_static_refs): do not look for VAR_DECL
4569         initializers; stop recursion on types and decls.
4570         (ipa_init): Use proper obstacks.
4571         (analyze_variable): Use scan_initializer_for_static_refs.
4572         (init_function_info): Use local obstack.
4573         (analyze_function): Simplify.
4574         (add_new_function): We don't need visited_nodes obstack.
4575         (generate_summary): Use proper obstacks; cleanup after propagation.
4576
4577 2008-09-17  Richard Guenther  <rguenther@suse.de>
4578
4579         PR middle-end/37385
4580         PR tree-optimization/37491
4581         * alias.c (get_alias_set): Use the canonical type.
4582         * tree-vect-transform.c (vectorizable_store): Use the type of
4583         the lhs for the vector type.  Adjust checking.
4584         (vectorizable_load): Adjust checking.
4585
4586 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
4587             Adam Nemet  <anemet@caviumnetworks.com>
4588
4589         PR rtl-optimization/37483
4590         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
4591         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
4592         Rearrange code to better match the original comment.  Check
4593         t_unconditional first.  Improve comment.
4594
4595 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
4596
4597         PR c/37529
4598         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
4599         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
4600
4601         PR c++/37530
4602         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
4603         GIMPLE_TRY if cleanup sequence is empty.
4604
4605 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4606
4607         PR middle-end/37263
4608         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
4609         eliminate IV if the cost are the same.
4610
4611 2008-09-16  Richard Guenther  <rguenther@suse.de>
4612
4613         PR middle-end/37380
4614         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
4615         if not necessary.
4616
4617 2008-09-16  Richard Guenther  <rguenther@suse.de>
4618
4619         PR tree-optimization/37508
4620         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
4621
4622 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4623
4624         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
4625
4626 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4627
4628         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
4629         use gen_floatdidf2 directly.
4630         (floatunssidf2): Likewise.
4631         (floatsidf_ppc64_mfpgpr): Remove.
4632         (floatsidf_ppc64): Remove.
4633         (floatunssidf_ppc64): Remove.
4634
4635 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
4636
4637         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
4638         rather than update_cost_queue.
4639
4640         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
4641         in every call starting with the second one, instead of only when
4642         alias_bitmap_obstack.elements != NULL.
4643
4644         * tree-predcom.c (filter_suitable_components): Free all refs in
4645         act->refs vector before calling release_component.
4646         (add_ref_to_chain): Free ref if not adding it to chain->refs.
4647
4648         * tree-data-ref.c (free_subscripts): Free all subscript objects.
4649
4650         * tree-loop-linear.c (linear_transform_loops): Initialize
4651         lambda_obstack only after calling perfect_loop_nest_depth.
4652         Goto free_and_continue instead of just continue for later failures.
4653
4654         PR middle-end/37479
4655         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
4656
4657         PR libmudflap/36397
4658         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
4659
4660 2008-09-14  Andreas Schwab  <schwab@suse.de>
4661
4662         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
4663
4664 2008-09-14  Jan Hubicka  <jh@suse.cz>
4665
4666         * invoke.texi (-fconserve-stack): Document.
4667         * opts.c (decode_options): Handle conserve_stack.
4668         * common.opt (fconvserve_stack): New.
4669
4670 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
4671
4672         * config.host: Add x-aix to host_xmake_file.
4673         * config/rs6000/t-aix52: Do not override LDFLAGS.
4674         * config/rs6000/x-aix: New file.
4675
4676 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
4677
4678         PR target/19636
4679         PR target/24894
4680         PR target/31644
4681         PR target/31786
4682         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
4683         is not recognized as a valid register usage. Allow REG_X to be used
4684         as a base pointer.
4685         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
4686         forces a reload when using a base register.
4687
4688 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
4689
4690         * config/i386/cygming-crtend.c (register_frame_ctor): If
4691         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
4692         directly with atexit.
4693         (deregister_frame_ctor): Rename to ...
4694         (deregister_frame_dtor): Use to call __gcc_deregister_frame
4695         if !DEFAULT_USE_CXA_ATEXIT.
4696
4697 2008-09-13  Jan Hubicka  <jh@suse.cz>
4698
4699         * cgraph.c: Include value-prof.h
4700         * Makefile.in (cgraph.o): Add value-prof.h dependency.
4701
4702 2008-09-13  Jan Hubicka  <jh@suse.cz>
4703
4704         PR middle-end/32581
4705         * tree-profile.c (add_abnormal_goto_call_edges): New function.
4706         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
4707         tree_gen_one_value_profiler, tree_gen_average_profiler,
4708         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
4709
4710 2008-09-13  Jan Hubicka  <jh@suse.cz>
4711
4712         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
4713         too many bytes on misalligned blocks.
4714
4715 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4716
4717         * doc/cfg.texi: Fix some typos.
4718         * doc/extend.texi: Likewise.
4719         * doc/install.texi: Likewise.
4720         * doc/invoke.texi: Likewise.
4721         * doc/rtl.texi: Likewise.
4722         * doc/tree-ssa.texi: Likewise.
4723
4724 2008-09-13  Richard Guenther  <rguenther@suse.de>
4725
4726         PR middle-end/30141
4727         * tree-nested.c (finalize_nesting_tree_1): Generate valid
4728         gimple stores for memory rhs.
4729
4730 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4731
4732         PR rtl-optimization/37489
4733         * cse.c (fold_rtx): Don't return const_true_rtx for float
4734         compare if FLOAT_STORE_FLAG_VALUE is undefined.
4735
4736 2008-09-13  Jan Hubicka  <jh@suse.cz>
4737
4738         PR tree-optimization/37392
4739         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
4740
4741 2008-09-13  Martin Jambor  <mjambor@suse.cz>
4742             Jan Hubicka  <jh@suse.cz>
4743
4744         * cgraph.c (free_edges): New variable.
4745         (NEXT_FREE_EDGE): New macro.
4746         (cgraph_free_edge): New function.
4747         (cgraph_remove_edge): Call cgraph_remove_edge_1.
4748         (cgraph_node_remove_callees): Likewise.
4749         (cgraph_node_remove_callers): Likewise.
4750         (cgraph_create_edge): Reuse edges from the free list.  Do not
4751         update uid if doing so.
4752         (cgraph_remove_*_hook): Add free call.
4753
4754 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4755
4756         * ira-color.c (conflict_allocno_vec): Delete.
4757         (update_cost_queue_elem): New structure.
4758         (update_cost_queue): New variable.
4759         (update_cost_queue_tail): Likewise.
4760         (update_cost_queue_elems): Likewise.
4761         (allocno_update_cost_check): Delete.
4762         (initiate_cost_update): Allocate update_cost_queue_elems
4763         instead of allocno_update_cost_check.
4764         (finish_cost_update): Update the free()s accordingly.
4765         (start_update_cost): New function.
4766         (queue_update_cost): Likewise.
4767         (get_next_update_cost): Likewise.
4768         (update_copy_costs_1): Inline into...
4769         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
4770         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
4771         once we've established they are equal.  Don't allocate update
4772         costs if there is nothing to add to them.
4773         (update_conflict_hard_regno_costs): Remove ALLOCNO and
4774         DIVISOR arguments.  Use a queue instead of recursive calls;
4775         process all the allocnos in the initial queue, rather than
4776         a single allocno.
4777         (assign_hard_reg): Use queue_update_cost instead of
4778         conflict_allocno_vec.  Queue coalesced allocnos instead
4779         of calling update_conflict_hard_regno_costs for each one.
4780         Just call update_conflict_hard_regno_costs once for the
4781         entire queue.
4782         (ira_color): Remove conflict_allocno_vec handling.
4783
4784 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
4785
4786         PR tree-optimization/37484
4787         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
4788         (save_var_name): Same.
4789         (initialize_cloog_names): Same.
4790         (initialize_cloog_names): Same.
4791
4792 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
4793
4794         * tree-scalar-evolution.c (set_instantiated_value): Set
4795         instantiated_below.
4796
4797 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
4798
4799         PR rtl-opt/37377
4800
4801         * ira-build.c (common_loop_tree_node_dominator): Remove.
4802         (copy_live_ranges_to_removed_store_destinations): New function.
4803         (regno_top_level_allocno_map): Move to top level from ...
4804         (ira_flattening): ... here.  Use
4805         copy_live_ranges_to_removed_store_destinations.
4806
4807         * ira-emit.c (generate_edge_moves): Fix a comment.
4808
4809 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
4810
4811         PR target/37466
4812         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
4813         scratch register after 'set' pattern.
4814
4815 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4816
4817         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
4818         information passed to mark_reg_pointer.
4819         * explow.c (force_reg): Likewise.
4820
4821 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4822
4823         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
4824         when building for the celledp architecture.
4825
4826 2008-09-12  Richard Guenther  <rguenther@suse.de>
4827
4828         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
4829
4830 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
4831
4832         PR rtl-optimization/37424
4833         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
4834         the regnos instead of the addresses.
4835
4836 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
4837
4838         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
4839
4840 2008-09-11  Richard Guenther  <rguenther@suse.de>
4841
4842         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
4843         entering the weaker equivalence recording.
4844
4845         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
4846
4847 2008-09-11  Jeff Law <law@redhat.com>
4848
4849         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
4850         by assign_stack_local on the IRA path for stack slot sharing
4851         as well as the non-IRA path.
4852
4853 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
4854
4855         * config/i386/i386.h: Fix whitespace issues.
4856
4857 2008-09-11  Martin Jambor  <mjambor@suse.cz>
4858
4859         * ipa-prop.h (struct ipa_param_flags): Removed.
4860         (struct ipa_param_descriptor): New structure.
4861         (struct ipa_node_params): ipcp_lattices, param_decls and
4862         param_flags moved to ipa_param_description.
4863         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
4864         descriptors.  Renamed all users.
4865         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
4866         changed to access descriptors.  Renamed all users.
4867         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
4868         to access descriptors. Renamed all users.
4869         * ipa-cp.c (ipcp_init_cloned_node): Call
4870         ipa_initialize_node_params instead of ipa_count_formal_params and
4871         ipa_create_param_decls_array.
4872         (ipcp_analyze_node): Likewise.
4873         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
4874         descriptors.  Renamed all users.
4875         (ipcp_initialize_node_lattices): Remove allocation.
4876         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4877         ipa_initialize_node_params instead of ipa_count_formal_params and
4878         ipa_create_param_decls_array.
4879         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
4880         ipa_populate_param_decls, made static, added parameter info,
4881         renamed mt to node, removed allocation, changed to use
4882         descriptors.
4883         (ipa_count_formal_params): Made static, added parameter info,
4884         renamed mt to node.
4885         (ipa_initialize_node_params): New function.
4886         (ipa_check_stmt_modifications): Changed to use descriptors.
4887         (ipa_detect_param_modifications): Removed allocation, changed to
4888         use descriptors.
4889         (ipa_note_param_call): Changed to use descriptors.
4890         (ipa_analyze_params_uses): Removed allocation.
4891         (ipa_free_node_params_substructures): Changed to use descriptors.
4892         (ipa_edge_duplication_hook): Use the unused attribute.
4893         (ipa_node_duplication_hook): Use the unused attribute, changed to
4894         use descriptors, changed to duplicate descriptors.
4895
4896         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
4897         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
4898         indirect inlining.  Made static.
4899         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
4900         functions called only once.
4901         (cgraph_decide_recursive_inlining): Don't call
4902         ipa_propagate_indirect_call_infos, pass new_edges to
4903         cgraph_mark_inline_edge instead.
4904         (cgraph_decide_inlining_of_small_functions): Don't call
4905         ipa_propagate_indirect_call_infos, pass new_edges to
4906         cgraph_mark_inline_edge instead.
4907         (cgraph_decide_inlining): Don't call
4908         ipa_propagate_indirect_call_infos.
4909         * ipa-prop.c: Check that vectors are allocated.
4910
4911         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
4912         iff a new cgraph edges have been created.
4913         (cgraph_decide_inlining): New variable redo_always_inline.
4914         Flattening and always_inlining loop until callgraph stabilizes.
4915         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
4916         true iff new cgraph edges have been created.
4917         (propagate_info_to_inlined_callees): Likewise.
4918         (ipa_propagate_indirect_call_infos): Likewise.
4919
4920 2008-09-11  Richard Guenther  <rguenther@suse.de>
4921
4922         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
4923         (set_prologue_iterations): Likewise.
4924         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
4925         Likewise.
4926         (vect_update_init_of_dr): Likewise.
4927         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
4928         type verification.
4929         * fold-const.c (fold_unary): Do not generate calculations
4930         in sub-types.
4931
4932 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
4933
4934         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
4935         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
4936         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
4937
4938         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
4939         a bool.
4940         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
4941         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
4942         before finalizing the changes.
4943         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
4944         for BIT_IOR_EXPR.
4945         (simplify_truth_ops_using_ranges): New.
4946         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
4947         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
4948         whether a simplification was made.
4949         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
4950         use a switch statement and also call simplify_truth_ops_using_ranges.
4951
4952 2008-09-11  Jan Hubicka  <jh@suse.cz>
4953
4954         * ggc-common.c (loc_array): Make static.
4955         * dce.c (rest_of_handle_ud_dce): Free worklist.
4956
4957 2008-09-11  Jan Hubicka  <jh@suse.cz>
4958
4959         * cgraph.c (cgraph_release_function_body): Plug memory leak on
4960         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
4961         function so we are sure we do not dangle it forever.
4962         * function.c (outer_function_chain, find_function_data): Remove.
4963         (function_context_stack): New.
4964         (push_function_context, pop_function_context): Update.
4965         * function.h (struct function): Remove pointer outer.
4966         (outer_function_chain, find_function_data): Remove.
4967         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
4968
4969 2008-09-11  Jan Hubicka  <jh@suse.cz>
4970
4971         PR middle-end/37448
4972         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
4973
4974 2008-09-11  Jan Hubicka  <jh@suse.cz>
4975
4976         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
4977
4978 2008-09-11  Jan Hubicka  <jh@suse.cz>
4979
4980         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
4981         (free_var_map_entry): New function.
4982         (redirect_edge_var_map_destroy): Use it.
4983
4984 2008-09-11  Jan Hubicka  <jh@suse.cz>
4985
4986         PR middle-end/37448
4987         * tree-inline.c (add_lexical_block): Replace with ...
4988         (prepend_lexical_block): ... prepend at begginig.
4989         (remap_blocks): Use it and reverse later.
4990         (expand_call_inline): Use prepend_lexical_block.
4991
4992 2008-09-11  Jan Hubicka  <jh@suse.cz>
4993
4994         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
4995
4996 2008-09-11  Jan Hubicka  <jh@suse.cz>
4997
4998         * function.c (free_after_compilation): Call insn_locators_free.
4999         * cfglayout.c (insn_locators_free): New function.
5000         * rtl.h (insn_locators_free): Declare.
5001
5002 2008-09-11  Jan Hubicka  <jh@suse.cz>
5003
5004         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
5005         vector pointer.
5006         (cond_move_process_if_block): Update call.
5007
5008 2008-09-11  Jan Hubicka  <jh@suse.cz>
5009
5010         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
5011         * vec.c: Include hashtab.h
5012         (vec_descriptor, ptr_hash_entry): New structures.
5013         (vec_desc_hash, vec_ptr_map): New static variables.
5014         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
5015         register_overhead, free_overhead, vec_heap_free): New functions.
5016         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
5017         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
5018         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
5019         New functions.
5020
5021 2008-09-11  Ira Rosen  <irar@il.ibm.com>
5022
5023         PR tree-optimization/37474
5024         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
5025         length of load permutation.
5026
5027 2008-09-11  Andreas Schwab  <schwab@suse.de>
5028
5029         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
5030
5031 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
5032
5033         PR target/37382
5034         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
5035         * dse.c (find_shift_sequence): Use extract_low_bits instead of
5036         simplify_gen_subreg.
5037
5038 2008-09-11  Ira Rosen  <irar@il.ibm.com>
5039
5040         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
5041         for alias check.
5042
5043 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5044
5045         PR middle-end/37338
5046         * gimplify.c (gimplify_body): Call default_rtl_profile.
5047
5048         PR target/36904
5049         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
5050         instead of tok->val.node if not expanding to something else.  Handle
5051         intervening CPP_PADDING tokens.
5052         (altivec_categorize_keyword): Remove unneeded comparisons.
5053
5054 2008-09-10  Richard Guenther  <rguenther@suse.de>
5055
5056         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
5057
5058 2008-09-10  Richard Guenther  <rguenther@suse.de>
5059
5060         PR middle-end/37432
5061         * tree-inline.c (insert_init_stmt): Make sure to not
5062         insert invalid gimple stores.
5063
5064 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
5065
5066         PR tree-optimization/37388
5067         * toplev.c (process_options): Fail and warn when graphite
5068         flags are used, but the compiler has not been configured
5069         with graphite libraries.
5070         * graphite.c (graphite_transform_loops): Remove printfs
5071         to dump_file for the case when graphite is not available.
5072
5073 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5074
5075         PR target/37434:
5076         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
5077         the even element into register.
5078         (ix86_expand_vector_init_general): Don't use
5079         ix86_expand_vector_init_interleave on V16QImode and V8HImode
5080         if we can't move from GPR to SSE register directly.
5081
5082 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
5083
5084         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
5085         not lose track of the number of NOPs needed.  Number of NOPs needed
5086         for sync vs. loads workaround was switched; corrected.  Run second
5087         pass for all workarounds.  No NOPs needed after call insns.  Change
5088         second pass to use find_next_insn_start and find_load helpers in order
5089         to properly detect parallel insns.
5090         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
5091
5092 2008-09-10  Jan Hubicka  <jh@suse.cz>
5093
5094         * value-prof.c (gimple_ic): Fix tuplification bug.
5095         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
5096         var warning.
5097
5098 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5099
5100         PR tree-optimization/37353
5101         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
5102         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
5103         calls instead of cond_dead_built_in_calls.
5104         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
5105         initalize the vector only before adding first entry.  Use VEC_safe_push
5106         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
5107         shrink_wrap_conditional_dead_built_in_calls call.
5108
5109 2008-09-10  Ira Rosen  <irar@il.ibm.com>
5110
5111         PR tree-optimization/37385
5112         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
5113         argument, and use it as a vector type if not NULL.
5114         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
5115         vectorized rhs.
5116         (vect_setup_realignment): Call vect_create_data_ref_ptr with
5117         additional argument.
5118         (vectorizable_load): Likewise.
5119
5120 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5121
5122         * config/i386/i386.md (SWI32): New mode iterator.
5123         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
5124         of SWI.
5125
5126 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5127
5128         PR rtl-optimization/37435
5129         * caller-save.c (insert_restore, insert_save): Check the mode by
5130         reg_save_code.
5131
5132 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5133
5134         PR other/37265
5135         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
5136         splay tree lookup.
5137         (dw2_output_indirect_constant_1): Use unstripped name in symbol
5138         reference.
5139
5140 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
5141
5142         * doc/invoke.texi (ARM Options): Correct errors in discussion
5143         of -mfloat-abi, -mhard-float, and -msoft-float.
5144
5145 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
5146             Jan Hubicka  <jh@suse.cz>
5147
5148         PR middle-end/37356
5149         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
5150         calling gimple_regimplify_operands on it.  Iterate over all newly
5151         added statements, not just the last one.
5152         (insert_init_stmt): Insert stmt into seq first, then call
5153         gimple_regimplify_operands on it.  Don't create new gimplification
5154         context, nor find referenced vars.
5155
5156 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
5157
5158         PR other/37419
5159         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
5160         to pointer to vector pointer.
5161         * ipa-prop.c (ipa_propagate_indirect_call_infos,
5162         propagate_info_to_inlined_callees): Likewise.
5163         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
5164         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
5165         ipa_check_create_edge_args.
5166         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
5167         argument to pointer to vector pointer.
5168         (cgraph_decide_inlining_of_small_function): Adjust
5169         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
5170         calls.
5171
5172         PR target/37438
5173         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
5174         optimizing for size, not speed.
5175
5176         PR rtl-optimization/37408
5177         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
5178         if parm is promoted.
5179
5180 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
5181
5182         PR tree-optimization/37375
5183         * tree-scalar-evolution.c (scev_info_str): Add field
5184         instantiated_below.
5185         (new_scev_info_str, eq_scev_info, find_var_scev_info,
5186         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
5187         set_instantiated_value): Pass instantiated_below.
5188         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
5189         to above functions.
5190         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
5191         the definitions are not instantiated.
5192
5193         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
5194         (block_before_loop): New.
5195         * tree-data-ref.c (dr_analyze_indices): Update uses of
5196         instantiate_scev.
5197         * graphite.c (block_before_scop): New.
5198         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
5199         basic block, not a loop for determining the parameters.
5200         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
5201         scop.
5202         (idx_record_params, find_params_in_bb, find_scop_parameters,
5203         build_loop_iteration_domains, add_conditions_to_domain): Update calls
5204         to instantiate_scev.
5205
5206         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
5207
5208 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5209
5210         PR rtl-opt/37333
5211
5212         * ira-build.c (ira_create_allocno): Setup frequency to 0.
5213
5214         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
5215         Check zero freq and increase if necessary.
5216
5217 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5218
5219         * ira-conflicts.c (process_regs_for_copy): Check that the hard
5220         regno is in the right range.  Add comments.
5221
5222 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5223
5224         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
5225         warnings.
5226         * mips-tfile.c (copy_object): Cast alloca result to int *.
5227         * mips-tdump.c (print_symbol): Cast xmalloc return values to
5228         proper types.
5229         Rename class to sclass.
5230         (read_tfile): Cast read_seek return values to proper types.
5231         Cast xcalloc return value to proper type.
5232
5233 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5234
5235         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
5236         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
5237         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
5238
5239 2008-09-09  Jan Hubicka  <jh@suse.cz>
5240
5241         * profile.c (is_edge_inconsistent): Add debug output; ignore
5242         negative count on fake edges.
5243         (is_inconsistent): Add debug output.
5244
5245 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5246
5247         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
5248         dump message.
5249         (choose_ready): When first insn is chosen from the ready list, also
5250         dump it.
5251
5252 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5253
5254         PR rtl-optimization/37360
5255         * haifa-sched.c (max_issue): Do not assert that we never issue more
5256         insns than issue_rate.  Add comment.
5257
5258 2008-09-09  Richard Guenther  <rguenther@suse.de>
5259
5260         * tree-cfg.c (verify_types_in_gimple_op): Remove.
5261         (verify_types_in_gimple_call): Rename to ...
5262         (verify_gimple_call): ... this.  Enhance.
5263         (verify_types_in_gimple_cond): Remove.
5264         (verify_gimple_comparison): New function ...
5265         (verify_types_in_gimple_assign): ... split out from here.
5266         (verify_types_in_gimple_return): Rename to ...
5267         (verify_gimple_return): ... this.  Enhance.
5268         (verify_types_in_gimple_switch): Rename to ...
5269         (verify_gimple_switch): ... this.  Enhance.
5270         (verify_gimple_goto): New function.
5271         (verify_types_in_gimple_phi): Rename to ...
5272         (verify_gimple_phi): ... this.  Enhance.
5273         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
5274         Fold in single-statement cases from verify_types_in_gimple_seq_2.
5275         (verify_types_in_gimple_seq_2): Remove cases handled in
5276         verify_types_in_gimple_stmt.
5277
5278 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
5279
5280         * config/bfin/bfin.c (n_regs_to_save): New static variable.
5281         (push_multiple_operation, pop_multiple_operation): Set it.
5282         (workaround_rts_anomaly): New function.
5283         (workaround_speculation): New function, broken out of bfin_reorg.
5284         (bfin_reorg): Call the new functions.
5285
5286 2008-09-09  Richard Guenther  <rguenther@suse.de>
5287
5288         PR middle-end/37354
5289         PR middle-end/30165
5290         * gimplify.c (gimplify_conversion): Change conversions of
5291         non-register type to VIEW_CONVERT_EXPRs.
5292         (gimplify_addr_expr): If we need to make the operand
5293         addressable make sure to use a properly initialized
5294         temporary for that so it gets a valid gimple store.
5295
5296 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
5297
5298         * function.h (struct function): Add function_start_locus.
5299         * cfgexpand.c (gimple_expand_cfg): Use it.
5300         * c-parser.c (c_parser_declaration_or_fndef): Set it.
5301
5302 2008-09-09  Richard Guenther  <rguenther@suse.de>
5303
5304         PR tree-optimization/37433
5305         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
5306         function calls.
5307
5308 2008-09-09  Richard Guenther  <rguenther@suse.de>
5309
5310         PR tree-optimization/37387
5311         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
5312         and bits to a common type.
5313
5314 2008-09-09  Nick Clifton  <nickc@redhat.com>
5315
5316         * config/v850/v850.md (return): Restore frame size restriction.
5317
5318 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
5319
5320         * c-common.c (c_expand_decl): Remove.
5321         * c-common.h (anon_aggr_type_p): Remove prototype.
5322         (DECL_ANON_UNION_ELEMS): Remove.
5323         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
5324         * c-decl.c (anon_aggr_type_p): Remove.
5325         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
5326         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
5327         * langhooks.h (struct lang_hooks): Remove expand_decl.
5328         * langhooks.c (lhd_expand_decl): Remove.
5329         * stmt.c (expand_anon_union_decl): Remove.
5330         * tree.h (expand_anon_union_decl): Remove prototype.
5331
5332 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
5333
5334         PR target/36609
5335         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
5336         zero.
5337         * config/avr/avr.md  (QISI) : Define mode iterator.
5338         (negated_tst<mode>) : Redefine as split using mode macro.
5339         (reversed_tstqi): Define insn as reversed compare with zero.
5340         (reversed_tsthi): Ditto.
5341         (reversed_tstsi): Ditto.
5342
5343 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5344
5345         PR middle-end/37393
5346         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
5347         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
5348
5349         PR middle-end/37414
5350         * predict.c (optimize_function_for_size_p): Don't segfault if
5351         FUN is NULL.
5352         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
5353         tree_swap_operands_p): Don't test cfun != NULL before calling
5354         optimize_function_for_s*_p.
5355
5356 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5357
5358         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
5359         end of the search.
5360
5361 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
5362
5363         * crx/crx.h (IRA_COVER_CLASSES): Define.
5364
5365 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5366
5367         PR middle-end/37337
5368         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
5369         even when a stmt has been gimple_modified_p, but after fold_stmt is
5370         not any longer.  Remove unneeded may_have_exposed_new_symbols
5371         initializations.
5372
5373 2008-09-08  Richard Guenther  <rguenther@suse.de>
5374
5375         PR tree-optimization/37421
5376         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
5377         valueize the RHS.
5378
5379 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5380
5381         PR middle-end/37415
5382         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
5383
5384 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5385
5386         PR driver/37409
5387         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
5388         * pa-hpux10.h (LINK_SPEC): Likewise.
5389         * pa-hpux11.h (LINK_SPEC): Likewise.
5390
5391 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5392
5393         * pa32-regs.h (IRA_COVER_CLASSES): Define.
5394         * pa64-regs.h (IRA_COVER_CLASSES): Define.
5395
5396 2008-09-07  Helge Deller  <deller@gmx.de>
5397
5398         * pa/linux-atomic.c: New file.
5399         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
5400         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
5401
5402 2008-09-07  Richard Guenther  <rguenther@suse.de>
5403             Ira Rosen  <irar@il.ibm.com>
5404
5405         PR tree-optimization/36630
5406         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
5407         Call STRIP_NOPS before calling evolution_part_in_loop_num.
5408
5409 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
5410             Ira Rosen  <irar@il.ibm.com>
5411
5412         PR tree-optimization/35642
5413         * config/rs6000/altivec.md (mulv8hi3): Implement.
5414
5415 2008-09-06  Jeff Law <law@redhat.com>
5416
5417         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
5418
5419 2008-09-06  Jan Hubicka  <jh@suse.cz>
5420
5421         PR tree-optimization/14703
5422         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
5423         declarations.
5424         * passes.c (init_optimization_passes): Recompute inline parameters.
5425
5426 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
5427
5428         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
5429         DECL being null.
5430
5431 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
5432             Peter Fuerst  <post@pfrst.de>
5433
5434         * doc/invoke.texi: Document -mr10k-cache-barrier=.
5435         * doc/extend.texi: Document __builtin_mips_cache.
5436         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
5437         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
5438         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5439         __GCC_HAVE_BUILTIN_MIPS_CACHE.
5440         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
5441         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
5442         (set_push_mips_isas): New variable.
5443         (mips_r10k_cache_barrier): New variable.
5444         (cache): New availability predicate.
5445         (mips_builtins): Add an entry for __builtin_mips_cache.
5446         (mips_build_cvpointer_type): New function.
5447         (MIPS_ATYPE_CVPOINTER): New macro.
5448         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
5449         mode is VOIDmode.
5450         (r10k_simplified_address_p, r10k_simplify_address)
5451         (r10k_uncached_address_p, r10k_safe_address_p)
5452         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
5453         (r10k_needs_protection_p_call, r10k_needs_protection_p)
5454         (r10k_insert_cache_barriers): New functions.
5455         (mips_reorg_process_insns): Delete cache barriers after a
5456         branch-likely instruction.
5457         (mips_reorg): Call r10k_insert_cache_barriers.
5458         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
5459         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
5460         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
5461         (mips_cache, r10k_cache_barrier): New define_insns.
5462
5463 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
5464
5465         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5466         * ira-color.c (setup_allocno_left_conflicts_num): Use
5467         hard_reg_set_equal_p instead of a comparison with
5468         ira_zero_hard_reg_set.
5469         * ira.c (setup_reg_subclasses): Likewise.
5470         (setup_cover_and_important_classes): Likewise.
5471         (setup_class_translate): Likewise.
5472         (setup_reg_class_intersect_union): Likewise.
5473         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5474         (ira_init_once): Don't initialize them.
5475
5476 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
5477
5478         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
5479
5480 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
5481
5482         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
5483
5484 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
5485
5486         Improved branch hints, safe hints, and scheduling.
5487
5488         * haifa-sched.c (sched_emit_insn) : Define.
5489         * sched-int.h (sched_emit_insn) : Add prototype.
5490         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
5491         -mhint-max-distance -msafe-hints) : Document.
5492         * config/spu/spu.c (spu_flag_var_tracking): New.
5493         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
5494         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
5495         TARGET_ASM_FILE_START): Define.
5496         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
5497         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
5498         (spu_emit_branch_hint): Add blocks argument.
5499         (insert_branch_hints, insert_nops): Remove.
5500         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
5501         uses_ls_unit, spu_sched_init_global, spu_sched_init,
5502         spu_sched_reorder, asm_file_start): New functions.
5503         (clock_var, spu_sched_length, pipe0_clock,
5504         pipe1_clock, prev_clock_var, prev_priority,
5505         spu_ls_first, prev_ls_clock): New static variables.
5506         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
5507         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
5508         (nopn_nv): Add a non-volatile version of nop.
5509         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
5510         -mhint-max-distance, -msafe-hints): New options.
5511
5512 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
5513             Samuel Tardieu  <sam@rfc1149.net>
5514
5515         * opts.c (decode_options): Combine nested if statements.
5516
5517         PR target/37283
5518         * opts.c (decode_options): Handle more relationships among
5519         unit-at-a-time, toplevel-reorder, and section-anchors.
5520
5521 2008-09-05  David Daney  <ddaney@avtrex.com>
5522
5523         * doc/install.texi (--enable-reduced-reflection): Document new option.
5524
5525 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
5526
5527         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
5528         constantpool_mem_p.
5529         (constantpool_operand): New.
5530         (move_operand): Disallow sub-word modes for the constant pool.
5531         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
5532         (xtensa_secondary_reload_class): Replace with....
5533         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
5534         Set icode for sub-word reloads from the constant pool.
5535         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
5536         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
5537         * config/xtensa/xtensa.md (reload<mode>_literal): New.
5538         * config/xtensa/xtensa-protos.h: Update prototypes.
5539
5540 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
5541
5542         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
5543         (REG_CLASS_NAMES): Update.
5544         (REG_CLASS_CONTENTS): Update.
5545         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
5546         of ALL_REGS for regs 77 and 78.
5547         * function.c (instantiate_virtual_regs_in_insn): Assert that
5548         return value of simplify_gen_subreg is not NULL.
5549
5550 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
5551
5552         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
5553         (gen_rtvec_v): Fix coding standards.
5554
5555 2008-09-04  Jan Hubicka  <jh@suse.cz>
5556
5557         * i386.c (decide_alg): Be more conservative about optimizing for size.
5558
5559 2008-09-04  Ian Lance Taylor  <iant@google.com>
5560
5561         * varasm.c (narrowing_initializer_constant_valid_p): New
5562         static function.
5563         (initializer_constant_valid_p): Call it.
5564
5565 2008-09-04  Jeff Law  <law@redhat.com>
5566
5567         * fold-const.c (native_encode_real): Fix computation of WORDS.
5568         (native_interpret_real): Likewise.
5569
5570 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
5571
5572         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
5573
5574 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
5575
5576         * ira-conflicts.c (process_regs_for_copy): Check insn to check
5577         that the cost is already taken into account in ira-costs.c
5578
5579         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
5580
5581         * ira-build.c (print_copy, print_copies, ira_debug_copy,
5582         ira_debug_copies): New.
5583         (ira_bulid): Call print_copies.
5584
5585         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
5586
5587 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
5588
5589         PR target/32783
5590         * config/rs6000/rs6000.c (optimization_options): Remove check of
5591         flag_toplevel_order.
5592
5593 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
5594
5595         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
5596         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
5597         second operand is a reg_imm10_operand.
5598         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
5599         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
5600         (*seq_<GPR:mode><GPR2:mode>): Rename to
5601         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
5602         ISA_HAS_SEQ_SNE.
5603         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
5604         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
5605         ISA_HAS_SEQ_SNE.
5606         (*sne_<GPR:mode><GPR2:mode>): Rename to
5607         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
5608         ISA_HAS_SEQ_SNE.
5609
5610 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
5611
5612         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
5613         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
5614         combining an arithmetic right shift by more than 31 and a
5615         trunction.  Don't match for out-of-range shift amounts.  Set
5616         attribute mode to <MODE>.
5617         (*lshr32_trunc<mode>): Name the pattern combining a logical right
5618         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
5619         (*<optab>_trunc<mode>_exts): New pattern for truncated right
5620         shifts by less than 32.
5621         (extv): Change predicate on first operand to accept registers.
5622         Change predicate of the other operands from immediate_operand to
5623         const_int_operand.  Expand exts when source is a register.
5624         (extzv): Change predicate of the constant operands from
5625         immediate_operand to const_int_operand.
5626         (extzv<mode>): Change predicate of the constant operands from
5627         immediate_operand to const_int_operand and no constraint. Also
5628         remove mode.
5629         (*extzv_trunc<mode>_exts): New pattern.
5630
5631 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
5632
5633         * config/mips/mips.h (ISA_HAS_CINS): New macro.
5634         * config/mips/mips-protos.h (mask_low_and_shift_p,
5635         mask_low_and_shift_len): Declare.
5636         * config/mips/mips.c (mask_low_and_shift_p,
5637         mask_low_and_shift_len): New functions.
5638         (mips_print_operand): Handle new operand prefix "m".
5639         * config/mips/mips.md (*cins<mode>): New pattern.
5640
5641 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
5642
5643         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
5644         optimizing for size.
5645
5646 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
5647
5648         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
5649         regardless of epilogue_completed.
5650
5651 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
5652
5653         PR middle-end/37359
5654         * ira-lives.c (process_bb_node_lives): Check setjmp.
5655
5656 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
5657
5658         PR middle-end/37243
5659         * ira-build.c (form_loop_tree): Reverse BB walk.
5660         (create_bb_allocnos): Likewise.
5661         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
5662         (mark_reg_store): Rename to...
5663         (mark_ref_live): ...this and take a df_ref argument instead of
5664         note_stores arguments.  Assert that we have a register.
5665         (mark_reg_clobber): Delete.
5666         (def_conflicts_with_inputs_p): New function.
5667         (mark_reg_conflicts): Delete.
5668         (mark_reg_death): Rename to...
5669         (mark_ref_dead): ...this and take a df_ref argument instead of
5670         a register.  Assert that we have a register.
5671         (process_bb_node_lives): Hoist frequency calculation out of
5672         instruction walk.  Convert from a forwards scan to a backwards scan.
5673         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
5674         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
5675         (create_allocno_live_ranges): Don't create regs_set.
5676
5677 2008-09-04  Ian Lance Taylor  <iant@google.com>
5678
5679         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
5680         or REG_LABEL_TARGET.
5681         * calls.c (emit_library_call_value_1): Use MEM_P rather than
5682         comparing MODE with MEM.
5683         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
5684         comparing with GF_PREDICT_TAKEN.
5685         (gimple_get_lhs): Change code to enum gimple_code.
5686         (gimple_set_lhs): Likewise.
5687         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
5688         * omp-low.c (find_omp_clause): Change kind parameter to enum
5689         omp_clause_code.
5690         * tree-flow.h (find_omp_clause): Update declaration.
5691         * regrename.c (clear_dead_regs): Change kind parameter to enum
5692         reg_note.
5693         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
5694         GET_MODE.
5695         * see.c (see_get_extension_data): Change return type to enum
5696         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
5697         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
5698         (see_gen_normalized_extension): Change extension_code parameter to
5699         enum entry_type.
5700         (see_seek_pre_extension_expr): Change extension_code to enum
5701         entry_type.
5702         (see_merge_one_def_extension): Likewise.
5703         (see_handle_relevant_defs): Likewise.
5704         (see_handle_relevant_uses): Likewise.
5705         (see_analyze_one_def): Likewise.
5706         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
5707         GIMPLE_ASM rather than ASM_EXPR.
5708         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
5709         GIMPLE_RETURN rather than RETURN_EXPR.
5710         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
5711         (evaluate_stmt): Likewise.
5712         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
5713         to enum vect_relevant.
5714         (vect_mark_stmts_to_be_vectorized): Change assertion to not
5715         compare gimple codes with tree codes.
5716
5717 2008-09-04  Paul Brook  <paul@codesourcery.com>
5718
5719         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
5720
5721 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
5722
5723         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
5724         pointer check lost in the recent no-unit-at-a-time patch.
5725
5726 2008-09-04  Jan Hubicka  <jh@suse.cz>
5727
5728         PR middle-end/37343
5729         * tree-switch-conversion.c (check_final_bb): Accept only IP
5730         invariants.
5731
5732 2008-09-04  Jan Hubicka  <jh@suse.cz>
5733
5734         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5735         Break out from ...
5736         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
5737         using_ranges argument.
5738         (vrp_evaluate_conditional): Avoid bogus warning for type range.
5739         (vrp_visit_cond_stmt): Update call of
5740         vrp_evaluate_conditional_warnv_with_ops
5741
5742 2008-09-04  Jan Hubicka  <jh@suse.cz>
5743
5744         PR tree-optimization/37345
5745         PR tree-optimization/37358
5746         PR tree-optimization/37357
5747         * tree.c (build_function_type_skip_args): Build distinct type copy;
5748         set TYPE_CONTEXT.
5749         (build_function_decl_skip_args): Set type of new decl not orig decl;
5750         clear DECL_VINDEX for methods turned into functions.
5751
5752 2008-09-04  Nick Clifton  <nickc@redhat.com>
5753
5754         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
5755         * configure: Regenerate.
5756         * config.in: Regenerate.
5757         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
5758         alignment field, if it is supported.
5759
5760 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
5761
5762         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
5763         libraries.
5764
5765 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
5766
5767         * config/rs6000/rs6000.c (processor_target_table): Do not
5768         enable VMX for POWER6.
5769
5770 2008-09-03  Anton Blanchard  <anton@samba.org>
5771
5772         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
5773         emit memory barrier before operation.
5774
5775 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
5776
5777         PR testsuite/37325
5778         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
5779         default_elf_asm_output_external.
5780
5781 2008-09-03  Jeff Law  <law@redhat.com>
5782
5783         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
5784
5785 2008-09-03  Richard Henderson  <rth@redhat.com>
5786
5787         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
5788         memory barrier to below the test-and-set.
5789         (alpha_split_lock_test_and_set_12): Likewise.
5790
5791 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5792
5793         PR rtl-opt/37243
5794
5795         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
5796         all_allocnos.
5797
5798         * ira-color.c (print_loop_title): Use all_allocnos.
5799         (color_pass): Ditto.  Don't add border_allocnos.  Check that
5800         subloop allocno in the correspdoning bitmap all_allocnos.
5801
5802         * ira-emit.c (change_loop): Use all_allocnos.
5803
5804         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
5805         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
5806         (create_cap_allocno): Remove setting mentioned_allocnos.
5807         (create_insn_allocnos): Ditto.
5808         (remove_unnecessary_allocnos): Use all_allocnos.
5809         (check_allocno_creation): Check that allocnos are in the
5810         corresponding bitmap all_allocnos.
5811
5812 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5813
5814         PR rtl-opt/37243
5815
5816         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
5817         (process_regs_for_copy): Process subregs.  Refine check when cost
5818         is taken into account in ira-costs.c.
5819         (process_reg_shuffles): Use REG_SUBREG_P.
5820         (add_insn_allocno_copies): Ditto.  Ignore modes.
5821
5822         * ira-color.c (conflict_allocno_vec): New.
5823         (COST_HOP_DIVISOR): New macro.
5824         (update_copy_costs_1): Use it.
5825         (update_conflict_hard_regno_costs): New function.
5826         (assign_hard_reg): Use it.
5827         (ira_color): Allocate and free conflict_allocno_vec.
5828
5829 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5830
5831         PR rtl-opt/37296
5832
5833         * ira-int.h (ira_sort_insn_chain): Remove.
5834
5835         * ira.c (basic_block_order_nums, chain_insn_order,
5836         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
5837         (ira): Don't call ira_sort_insn_chain.
5838
5839         * reload1.c (reload): Don't call ira_sort_insn_chain.
5840
5841 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5842
5843         PR middle-end/37293
5844         * cgraphunit.c (update_call_expr): Remove eh regions from statements
5845         which become non throw.
5846         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
5847         update_call_expr after updating the flags on the decl.
5848
5849 2008-09-03  Jan Hubicka  <jh@suse.cz>
5850
5851         PR tree-optimization/37315
5852         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
5853         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
5854         (cgraph_analyze_functions): Use node->analyzed
5855         (cgraph_mark_functions_to_output): Likewise.
5856         (cgraph_expand_function): All functions can be released after
5857         expanding.
5858         (cgraph_optimize): Use gimple_has_body_p.
5859         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
5860         (cgraph_decide_inlining_incrementally): Likewise.
5861         (inline_transform): Inline transform.
5862         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
5863         copy fields needed.
5864         (inlinable_function_p): Drop gimple_body check.
5865         (expand_call_inline): Use gimple_has_body_p.
5866         * gimple.c (gimple_has_body_p): New.
5867         * gimple.h (gimple_has_body_p): Add prototype.
5868         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
5869         (dump_function_to_file): Use gimple_has_body_p check.
5870
5871 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
5872
5873         PR c++/37346
5874         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
5875         substatements.
5876         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
5877
5878 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5879
5880         From Michael Frysinger  <michael.frysinger@analog.com>
5881         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
5882         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
5883         for bf538.
5884
5885 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
5886
5887         Add picoChip port.
5888         * doc/extend.texi: Document picoChip builtin functions.
5889         * doc/invoke.texi: Document picoChip options.
5890         * doc/contrib.texi: Add picoChip contribution.
5891         * doc/md.texi: Document picoChip constraints.
5892         * config.gcc: Add picochip-*-*.
5893         * config/picochip/: Add new port.
5894
5895 2008-09-03  Richard Guenther  <rguenther@suse.de>
5896
5897         PR tree-optimization/37328
5898         * tree-sra.c (sra_build_assignment): Gimplify properly.
5899         (generate_copy_inout): Take the correct stmt as definition,
5900         remove bogus assert.
5901
5902 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5903
5904         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
5905         attributes.
5906
5907         From Michael Frysinger  <michael.frysinger@analog.com>
5908         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
5909
5910 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
5911
5912         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
5913         (__gthread_setspecific): Revert 2008-08-31 change to
5914         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
5915
5916 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
5917
5918         * diagnostic.c (error_at): New.
5919         * toplev.h (error_at): New prototype.
5920         * c-typeck.c (build_array_ref): Call error_at instead of error.
5921         Pass location to pedwarn.
5922
5923 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
5924
5925         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
5926
5927 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
5928
5929         * dwarf2out.c (tree_add_const_value_attribute): Only handle
5930         VAR_DECL and CONST_DECL.
5931
5932 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
5933             Jakub Jelinek  <jakub@redhat.com>
5934
5935         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
5936         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
5937         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
5938         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
5939         Don't set ix86_save_varrargs_registers.
5940         (ix86_setup_incoming_varargs): Assume cum != NULL.
5941         (ix86_va_start): Check ix86_varargs_gpr_size and
5942         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
5943         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
5944         from frame pointer if ix86_varargs_gpr_size == 0.
5945         (ix86_compute_frame_layout): Updated.
5946         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
5947         (ix86_varargs_gpr_size): Define.
5948         (ix86_varargs_fpr_size): Likewise.
5949         (machine_function): Remove save_varrargs_registers.
5950         Add varargs_gpr_size and varargs_fpr_size.
5951
5952 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
5953
5954         * config/alpha/alpha.c (va_list_skip_additions,
5955         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
5956         (alpha_gimplify_va_arg): Call unshare_expr on second use of
5957         offset_field.
5958
5959         PR tree-optimization/36766
5960         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
5961         for already removed basic blocks.
5962
5963         PR target/36332
5964         * real.c (real_maxval): Clear a lower bit to make real_maxval
5965         match get_max_float for IBM long double format.
5966
5967 2008-09-02  Andreas Schwab  <schwab@suse.de>
5968
5969         * configure.ac: Use m4_quote to quote the expansion of m4_do.
5970         * configure: Regenerate.
5971
5972 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
5973
5974         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
5975         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
5976         checking for a non-VOID CONSTANT_P.
5977
5978 2008-09-02  Jan Hubicka  <jh@suse.cz>
5979
5980         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
5981         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
5982         sdiv_pow2_cheap
5983
5984 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
5985
5986         * expr.c (emit_group_store): Don't assert stack temp mode size.
5987
5988 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
5989             Tobias Grosser  <grosser@fim.uni-passau.de>
5990             Jan Sjodin  <jan.sjodin@amd.com>
5991             Harsha Jagasia  <harsha.jagasia@amd.com>
5992             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5993             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5994             Adrien Eliche  <aeliche@isty.uvsq.fr>
5995
5996         Merge from graphite branch.
5997         * graphite.c: New.
5998         * graphite.h: New.
5999         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
6000         * doc/invoke.texi (-floop-block, -floop-interchange,
6001         -floop-strip-mine): Document new flags.
6002         * tree-into-ssa.c (gimple_vec): Moved...
6003         * tree-loop-distribution.c (rdg_component): Moved...
6004         * cfgloopmanip.c: Include tree-flow.h.
6005         (update_dominators_in_loop): New.
6006         (create_empty_if_region_on_edge): New.
6007         (create_empty_loop_on_edge): New.
6008         (loopify): Use update_dominators_in_loop.
6009         * tree-pass.h (pass_graphite_transforms): Declared.
6010         * configure: Regenerate.
6011         * tree-phinodes.c (make_phi_node): Export.
6012         (add_phi_node_to_bb): New, split from create_phi_node.
6013         * tree-chrec.c (for_each_scev_op): New.
6014         * tree-chrec.h (for_each_scev_op): Declared.
6015         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6016         (remove_statement): Call get_phi_with_result.
6017         * config.in (HAVE_cloog): Undef.
6018         * gdbinit.in (pgg): New.
6019         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
6020         * tree-ssa-loop.c (graphite_transforms): New.
6021         (gate_graphite_transforms): New.
6022         (pass_graphite_transforms): New.
6023         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
6024         HAVE_cloog): Defined.
6025         * tree-vectorizer.c (rename_variables_in_bb): Export.
6026         * tree-data-ref.c (dr_may_alias_p): Export.
6027         (stmt_simple_memref_p): New.
6028         (find_data_references_in_stmt): Export.
6029         (find_data_references_in_loop): Export.
6030         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
6031         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
6032         (create_rdg_vertices): Export.
6033         (build_empty_rdg): New.
6034         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
6035         * tree-data-ref.h (rdg_component): ... here.
6036         (scop_p): New.
6037         (struct data_reference): Add a field scop.
6038         (DR_SCOP): New.
6039         (find_data_references_in_loop): Declared.
6040         (find_data_references_in_stmt): Declared.
6041         (create_rdg_vertices): Declared.
6042         (dr_may_alias_p): Declared.
6043         (stmt_simple_memref_p): Declared.
6044         (struct rdg_edge): Add a field ddr_p relation.
6045         (build_empty_rdg): Declared.
6046         * lambda.h (lambda_matrix): Declare a VEC of.
6047         (find_induction_var_from_exit_cond): Declared.
6048         (lambda_vector_compare): New.
6049         * common.opt (fgraphite, floop-strip-mine,
6050         floop-interchange, floop-block): New flags.
6051         * lambda-code.c (find_induction_var_from_exit_cond): Export.
6052         * cfgloop.c (is_loop_exit): New.
6053         * cfgloop.h (is_loop_exit): Declared.
6054         (create_empty_if_region_on_edge): Declared.
6055         (create_empty_loop_on_edge): Declared.
6056         * tree-flow.h (add_phi_node_to_bb): Declared.
6057         (make_phi_node): Declared.
6058         (rename_variables_in_bb): Declared.
6059         (perfect_loop_nest_depth): Declared.
6060         (graphite_transform_loops): Declared.
6061         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
6062         (graphite.o-warn): Add -Wno-error.
6063         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
6064         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
6065         (INCLUDES): Add PPLINC, CLOOGINC.
6066         (OBJS-common): Add graphite.o.
6067         (graphite.o): Add rule.
6068         * gimple.h (gimple_vec): ... here.
6069         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
6070         * passes.c (init_optimization_passes): Schedule
6071         pass_graphite_transforms.
6072
6073 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
6074
6075         PR target/37283
6076         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
6077         and -fno-toplevel-reorder after handle_options.
6078
6079 2008-09-02  Paul Brook  <paul@codesourcery.com>
6080
6081         * config/arm/arm.c (arm_tune_cortex_a9): Define.
6082         (arm_override_options): Set arm_tune_cortex_a9.
6083         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
6084         (arm_issue_rate): Handle cortexa9.
6085         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
6086         * config/arm/arm-cores.def: Add cortex-a9.
6087         * config/arm/arm-tune.md: Regenerate.
6088         * config/arm/arm.md: Include cortex-a9.md.
6089         (generic_sched, generic_vfp): Add cortexa9.
6090         * config/arm/cortex-a9.md: New file.
6091
6092 2008-09-02  Richard Guenther  <rguenther@suse.de>
6093
6094         PR tree-optimization/37327
6095         * tree-vrp.c (register_new_assert_for): Make sure to not have
6096         TREE_OVERFLOW set on the bound.
6097
6098 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
6099
6100         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
6101
6102         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
6103         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
6104         spec_info->mask.
6105
6106 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
6107
6108         * gcc/config/spu/spu.md (divdf3): Removed.
6109
6110 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
6111
6112         PR tree-optimization/37095
6113         * cgraph.c (cgraph_node): When creating new cgraph node after
6114         assembler_name_hash has been populated, record it in the hash
6115         table.
6116
6117 2008-09-01  Paul Brook  <paul@codesourcery.com>
6118
6119         * doc/invoke.texi: Document -mword-relocations.
6120         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6121         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6122         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6123         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
6124         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
6125         (arm_emit_movpair): New function.
6126         (arm_print_operand <c>): Handle sybolic addresses.
6127         * config/arm/arm.h (TARGET_USE_MOVT): Define.
6128         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6129         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
6130         * config/arm/arm.opt: Add -mword-relocations.
6131         * config/arm/arm.md (movsi): Use arm_emit_movpair.
6132         (arm_movt, arm_movw): New.
6133
6134 2008-09-01  Paul Brook  <paul@codesourcery.com>
6135
6136         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
6137         Allow Interworking on ARMv4 EABI based targets.
6138         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
6139         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
6140
6141 2008-09-01  Paul Brook  <paul@codesourcery.com>
6142
6143         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
6144         optimized LT0 test.  Remove optimization for GT.
6145
6146 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6147
6148         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
6149         openmp applications.
6150         * pa-hpux11.h (LIB_SPEC): Likewise.
6151
6152         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
6153         is defined.
6154
6155 2008-09-01  Jan Hubicka  <jh@suse.cz>
6156
6157         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
6158         present, use only counts; when guessed use only frequencies.
6159         (estimate_bb_frequencies): Use function_frequency.
6160         * profile.c (compute_branch_probabilities): Exit early when
6161         profile reading failed. Set profile_status.
6162         (branch_prob): Do not set profile_status.
6163
6164 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
6165
6166         * tree.c (protected_set_expr_location): New.
6167         * tree.h (protected_set_expr_location): New prototype.
6168         * c-tree.h (build_array_ref): Add argument.
6169         (parser_build_unary_op): Same.
6170         * c-typeck.c (build_indirect_ref): Handle new location argument.
6171         (build_array_ref): Same.
6172         (parser_build_unary_op): Same.
6173         * gimplify.c (gimplify_asm_expr): Set input_location before calling
6174         error.
6175         * c-omp.c (c_finish_omp_atomic): Pass location when calling
6176         build_indirect_ref.
6177         * c-common.c (finish_label_address_expr): Handle new location argument.
6178         * c-common.h (build_indirect_ref): Add argument.
6179         (finish_label_address_expr): Same.
6180         * c-parser.c (c_parser_unary_expression): Pass location to build
6181         functions.
6182         (c_parser_postfix_expression): Same.
6183
6184 2008-09-01  Paul Brook  <paul@codesourcery.com>
6185
6186         * config/arm/arm.md: Include cortex-r4f.md.
6187         (attr fpu): Update type list.
6188         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
6189         fconstd, fcmps and fcmpd.
6190         (attr tune_cortexr4): Define.
6191         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
6192         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
6193         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
6194         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
6195         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
6196         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
6197         cortex_a8_vfp_farith: Ditto.
6198         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
6199         * config/arm/cortex-r4.md: Use tune_cortexr4.
6200         * config/arm/cortex-r4f.md: New file.
6201
6202 2008-09-01  Richard Guenther  <rguenther@suse.de>
6203
6204         PR tree-optimization/37305
6205         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
6206         the result of constant conversions.
6207         (fold_gimple_assign): Likewise.
6208
6209 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
6210
6211         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
6212         #ifdef ENABLE_CHECKING.
6213
6214 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
6215
6216         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
6217         * sched-int.h (print_insn, print_pattern, print_value): Declare also
6218         when !INSN_SCHEDULING.
6219
6220 2008-09-01  Andreas Schwab  <schwab@suse.de>
6221
6222         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
6223
6224 2008-09-01  Paul Brook  <paul@codesourcery.com>
6225
6226         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
6227
6228 2008-09-01  Jan Hubicka  <jh@suse.cz>
6229
6230         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
6231
6232         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
6233         Pass speed operand.
6234         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
6235         * gimplify.c (gimplify_init_constructor): Add speed operand.
6236         * tree-sra.c (decide_block_copy): Likewise.
6237         * tree-inline.c (estimate_move_cost): Likewise.
6238         * config/alpha/alpha.h (MOVE_RATIO): Update.
6239         * config/frv/frv.c (MOVE_RATIO): Update.
6240         * config/spu/spu.h (MOVE_RATIO): Update.
6241         * config/sparc/sparc.h (MOVE_RATIO): Update.
6242         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
6243         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
6244         * config/cris/cris.h (MOVE_RATIO): Update.
6245         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
6246         * config/arm/arm.h (MOVE_RATIO): Update.
6247         * config/pa/pa.md: Update uses of MOVE_RATIO
6248         * config/pa/pa.h (MOVE_RATIO): Update.
6249         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
6250         CLEAR_RATIO, SET_RATIO): Update.
6251         * config/h8300/h8300.h (MOVE_RATIO): Update.
6252         * config/v850/v850.h (MOVE_RATIO): Update.
6253         * config/bfin/bfin.h (MOVE_RATIO): Update.
6254
6255 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
6256             Dmitry Melnik  <dm@ispras.ru>
6257             Dmitry Zhurikhin  <zhur@ispras.ru>
6258             Alexander Monakov  <amonakov@ispras.ru>
6259             Maxim Kuvyrkov  <maxim@codesourcery.com>
6260
6261         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
6262         sel-sched-dump.c, sel-sched-ir.c: New files.
6263         * Makefile.in (OBJS-common): Add selective scheduling object files.
6264         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
6265         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
6266         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
6267         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
6268         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
6269         (make_forwarder_block): Update loop latch if we have redirected
6270         the loop latch edge.
6271         * cfgloop.c (get_loop_body_in_custom_order): New function.
6272         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
6273         (CP_FALLTHRU_PREHEADERS): Likewise.
6274         (get_loop_body_in_custom_order): Declare.
6275         * cfgloopmanip.c (has_preds_from_loop): New.
6276         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
6277         Assert that the preheader edge will be fall thru when it is set.
6278         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
6279         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
6280         fsel-sched-substitution, fselective-scheduling): New flags.
6281         * cse.c (hash_rtx_cb): New.
6282         (hash_rtx): Use it.
6283         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
6284         sel_sched_insn_cnt): New counters.
6285         * final.c (compute_alignments): Export.  Free dominance
6286         info after loop_optimizer_finalize.
6287         * genattr.c (main): Output maximal_insn_latency prototype.
6288         * genautomata.c (output_default_latencies): New.
6289         Factor its code from ...
6290         (output_internal_insn_latency_func): ... here.
6291         (output_internal_maximal_insn_latency_func): New.
6292         (output_maximal_insn_latency_func): New.
6293         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
6294         (struct hard_reg_set_iterator): New.
6295         (hard_reg_set_iter_init, hard_reg_set_iter_set,
6296         hard_reg_set_iter_next): New functions.
6297         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
6298         * lists.c (remove_free_INSN_LIST_node,
6299         remove_free_EXPR_LIST_node): New functions.
6300         * loop-init.c (loop_optimizer_init): When
6301         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
6302         calling create_preheaders.
6303         (loop_optimizer_finalize): Do not verify flow info after reload.
6304         * recog.c (validate_replace_rtx_1): New parameter simplify.
6305         Default it to true.  Update all uses.  Factor out simplifying
6306         code to ...
6307         (simplify_while_replacing): ... this new function.
6308         (validate_replace_rtx_part,
6309         validate_replace_rtx_part_nosimplify): New.
6310         * recog.h (validate_replace_rtx_part,
6311         validate_replace_rtx_part_nosimplify): Declare.
6312         * rtl.c (rtx_equal_p_cb): New.
6313         (rtx_equal_p): Use it.
6314         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
6315         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
6316         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
6317         * vecprim.h: Add a vector type for unsigned int.
6318         * haifa-sched.c: Include vecprim.h and cfgloop.h.
6319         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
6320         ready_try, cycle_issued_insns, spec_info): Make global.
6321         (readyp): Initialize.
6322         (dfa_lookahead): New global variable.
6323         (old_max_uid, old_last_basic_block): Remove.
6324         (h_i_d): Make it a vector.
6325         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
6326         through HID macro.
6327         (after_recovery, adding_bb_to_current_region_p):
6328         New variables to handle correct insertion of the recovery code.
6329         (struct ready_list): Move declaration to sched-int.h.
6330         (rgn_n_insns): Removed.
6331         (rtx_vec_t): Move to sched-int.h.
6332         (find_insn_reg_weight): Remove.
6333         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
6334         (haifa_init_h_i_d, haifa_finish_h_i_d):
6335         New functions to initialize / finalize haifa instruction data.
6336         (extend_h_i_d, init_h_i_d): Rewrite.
6337         (unlink_other_notes): Move logic to add_to_note_list.  Handle
6338         selective scheduler.
6339         (ready_lastpos, ready_element, ready_sort, reemit_notes,
6340         find_fallthru_edge): Make global, remove static prototypes.
6341         (max_issue): Make global.  Add privileged_n and state parameters.  Use
6342         them.
6343         (extend_global, extend_all): Removed.
6344         (init_before_recovery): Add new param.  Fix the handling of the case
6345         when we insert a recovery code before the EXIT which has a predecessor
6346         with a fallthrough edge to it.
6347         (create_recovery_block): Make global.  Rename to
6348         sched_create_recovery_block.  Update.
6349         (change_pattern): Rename to sched_change_pattern.  Make global.
6350         (speculate_insn): Rename to sched_speculate_insn.  Make global.
6351         Split haifa-specific functionality into ...
6352         (haifa_change_pattern): New static function.
6353         (sched_extend_bb): New static function.
6354         (sched_init_bbs): New function.
6355         (current_sched_info): Change type to struct haifa_sched_info.
6356         (insn_cost): Adjust for selective scheduling.
6357         (dep_cost_1): New function.  Move logic from ...
6358         (dep_cost): ... here.
6359         (dep_cost): Use dep_cost_1.
6360         (contributes_to_priority_p): Use sched_deps_info instead of
6361         current_sched_info.
6362         (priority): Adjust to work with selective scheduling.  Process the
6363         corner case when all dependencies don't contribute to priority.
6364         (rank_for_schedule): Use ds_weak instead of dep_weak.
6365         (advance_state): New function.  Move logic from ...
6366         (advance_one_cycle): ... here.
6367         (add_to_note_list, concat_note_lists): New functions.
6368         (rm_other_notes): Make static.  Adjust for selective scheduling.
6369         (remove_notes, restore_other_notes): New functions.
6370         (move_insn): Add two arguments.  Update assert.  Don't call
6371         reemit_notes.
6372         (choose_ready): Remove lookahead variable, use dfa_lookahead.
6373         Remove more_issue, max_points.  Move the code to initialize
6374         max_lookahead_tries to max_issue.
6375         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
6376         ready.  Adjust use of move_insn.  Call restore_other_notes.
6377         (luid): Remove.
6378         (sched_init, sched_finish): Move Haifa-specific initialization/
6379         finalization to ...
6380         (haifa_sched_init, haifa_sched_finish): ... respectively.
6381         New functions.
6382         (setup_sched_dump): New function.
6383         (haifa_init_only_bb): New static function.
6384         (haifa_speculate_insn): New static function.
6385         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
6386         (extend_ready, extend_all): Remove.
6387         (sched_extend_ready_list, sched_finish_ready_list): New functions.
6388         (create_check_block_twin, add_to_speculative_block): Use
6389         haifa_insns_init instead of extend_global.  Update to use new
6390         initialization functions.  Change parameter.  Factor out code from
6391         create_check_block_twin to ...
6392         (sched_create_recovery_edges) ... this new function.
6393         (add_block): Remove.
6394         (sched_scan_info): New.
6395         (extend_bb): Use sched_scan_info.
6396         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
6397         static functions for walking through scheduling region.
6398         (sched_luids): New vector variable to replace uid_to_luid.
6399         (luids_extend_insn): New function.
6400         (sched_max_luid): New variable.
6401         (luids_init_insn): New function.
6402         (sched_init_luids, sched_finish_luids): New functions.
6403         (insn_luid): New debug function.
6404         (sched_extend_target): New function.
6405         (haifa_init_insn): New static function.
6406         (sched_init_only_bb): New hook.
6407         (sched_split_block): New hook.
6408         (sched_split_block_1): New function.
6409         (sched_create_empty_bb): New hook.
6410         (sched_create_empty_bb_1): New function.
6411         (common_sched_info, ready): New global variables.
6412         (current_sched_info_var): Remove.
6413         (move_block_after_check): Use common_sched_info.
6414         (haifa_luid_for_non_insn): New static function.
6415         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
6416         (increase_insn_priority): New.
6417         * modulo-sched.c: (issue_rate): Remove static declaration.
6418         (sms_sched_info): Change type to haifa_sched_info.
6419         (sms_sched_deps_info, sms_common_sched_info): New variables.
6420         (setup_sched_infos): New.
6421         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
6422         Do not call regstat_free_calls_crossed.
6423         (sms_print_insn): Use const_rtx.
6424         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
6425         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
6426         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
6427         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
6428         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
6429         current_sched_info to use it.
6430         (enum reg_pending_barrier_mode): Move to sched-int.h.
6431         (h_d_i_d): New variable. Initialize to NULL.
6432         ({true, output, anti, spec, forward}_dependency_cache): Initialize
6433         to NULL.
6434         (estimate_dep_weak): Remove static declaration.
6435         (sched_has_condition_p): New function.  Adjust users of
6436         sched_get_condition to use it instead.
6437         (conditions_mutex_p): Add arguments indicating which conditions are
6438         reversed.  Use them.
6439         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
6440         argument to indicate whether returned condition is reversed.  Do not
6441         generate new rtx when condition should be reversed; indicate it by
6442         setting new argument instead.
6443         (add_dependence_list_and_free): Add deps parameter.
6444         Update all users.  Do not free dependence list when
6445         deps context is readonly.
6446         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
6447         contexts.
6448         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
6449         (remove_from_deps): New. Use the above functions.
6450         (cur_insn, can_start_lhs_rhs_p): New static variables.
6451         (add_or_update_back_dep_1): Initialize present_dep_type.
6452         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
6453         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
6454         haifa_note_dep): New functions implementing dependence hooks for
6455         the Haifa scheduler.
6456         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
6457         note_dep): New functions.
6458         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
6459         functions.
6460         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
6461         (free_deps): Initialize deps->reg_last.
6462         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
6463         sched_analyze_insn): Update to use dependency hooks infrastructure
6464         and readonly contexts.
6465         (deps_analyze_insn): New function.  Move part of logic from ...
6466         (sched_analyze): ... here.  Also move some logic to ...
6467         (deps_start_bb): ... here.  New function.
6468         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
6469         sel_sched_p.
6470         (sched_deps_init): New function.  Move code from ...
6471         (init_dependency_caches): ... here.  Remove.
6472         (init_deps_data_vector): New.
6473         (sched_deps_finish): New function.  Move code from ...
6474         (free_dependency_caches): ... here.  Remove.
6475         (init_deps_global, finish_deps_global): Adjust for use with
6476         selective scheduling.
6477         (get_dep_weak): Move logic to ...
6478         (get_dep_weak_1): New function.
6479         (ds_merge): Move logic to ...
6480         (ds_merge_1): New static function.
6481         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
6482         (ds_get_max_dep_weak): New function.
6483         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
6484         (n_insns): Rename to rgn_n_insns.
6485         (debug_ebb_dependencies): New function.
6486         (init_ready_list): Use it.
6487         (begin_schedule_ready): Use sched_init_only_bb.
6488         (ebb_print_insn): Indicate when an insn starts a new cycle.
6489         (contributes_to_priority, compute_jump_reg_dependencies,
6490         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
6491         (add_block1): Remove to ebb_add_block.
6492         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
6493         (schedule_ebb): Initialize them.  Use remove_notes instead of
6494         rm_other_notes.  Use haifa_local_init/finish.
6495         (schedule_ebbs): Use haifa_sched_init/finish.
6496         * sched-int.h: Include vecprim.h, remove rtl.h.
6497         (struct ready_list): Delete declaration.
6498         (sched_verbose_param, enum sched_pass_id_t,
6499         bb_vec_t, insn_vec_t, rtx_vec_t): New.
6500         (struct sched_scan_info_def): New structure.
6501         (sched_scan_info, sched_scan, sched_init_bbs,
6502         sched_init_luids, sched_finish_luids, sched_extend_target,
6503         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
6504         (struct common_sched_info_def): New.
6505         (common_sched_info, haifa_common_sched_info,
6506         sched_emulate_haifa_p): Declare.
6507         (sel_sched_p): New.
6508         (sched_luids): Declare.
6509         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
6510         (sched_max_luid, insn_luid): Declare.
6511         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
6512         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
6513         print_insn, print_pattern, print_value, haifa_classify_insn,
6514         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
6515         setup_sched_dump, sched_init, sched_finish,
6516         sel_insn_is_speculation_check): Export.
6517         (struct ready_list): Move from haifa-sched.c.
6518         (ready_try, ready, max_issue): Export.
6519         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
6520         sched_init_only_bb, sched_split_block, sched_split_block_1,
6521         sched_create_empty_bb, sched_create_empty_bb_1,
6522         sched_create_recovery_block, sched_create_recovery_edges): Export.
6523         (enum reg_pending_barrier_mode): Export.
6524         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
6525         (deps_t): New.
6526         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
6527         print_insn field.  Move add_block and fix_recovery_cfg to
6528         common_sched_info_def.  Move compute_jump_reg_dependencies,
6529         use_cselib  ...
6530         (struct sched_deps_info_def): ... this new structure.
6531         (sched_deps_info): Declare.
6532         (struct spec_info_def): Remove weakness_cutoff, add
6533         data_weakness_cutoff and control_weakness_cutoff.
6534         (spec_info): Declare.
6535         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
6536         dep_count field.
6537         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
6538         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
6539         (current_sched_info): Change type to struct haifa_sched_info.
6540         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
6541         (h_d_i_d): New variable.
6542         (HDID): New accessor macro.
6543         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
6544         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
6545         and HDID.
6546         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
6547         (enum SCHED_FLAGS): Update for selective scheduler.
6548         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
6549         (init_dependency_caches, free_dependency_caches): Delete declarations.
6550         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
6551         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
6552         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
6553         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
6554         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
6555         ds_to_dt): Export.
6556         (rm_other_notes): Delete declaration.
6557         (schedule_block): Remove one argument.
6558         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
6559         ready_element, ready_lastpos, sched_extend_ready_list,
6560         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
6561         concat_note_lists): Export.
6562         (struct region): Move from sched-rgn.h.
6563         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6564         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6565         BLOCK_TO_BB, CONTAINING_RGN): Export.
6566         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
6567         (current_nr_blocks, current_blocks, target_bb): Likewise.
6568         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
6569         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
6570         sched_rgn_local_init, extend_regions,
6571         rgn_make_new_region_out_of_new_block, compute_priorities,
6572         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
6573         extend_rgns, deps_join rgn_setup_common_sched_info,
6574         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
6575         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
6576         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
6577         increase_insn_priority): Likewise.
6578         * sched-rgn.c: Include sel-sched.h.
6579         (ref_counts): New static variable.  Use it ...
6580         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
6581         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
6582         (sched_is_disabled_for_current_region_p): Delete static declaration.
6583         (struct region): Move to sched-int.h.
6584         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6585         ebb_head): Define and initialize.
6586         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6587         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
6588         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
6589         sched-int.h.
6590         (find_single_block_region): Add new argument to indicate that EBB
6591         regions should be constructed.
6592         (debug_live): Delete declaration.
6593         (current_nr_blocks, current_blocks, target_bb):
6594         Remove static qualifiers.
6595         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
6596         declaration.
6597         (init_regions): Delete declaration.
6598         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
6599         rgn_estimate_number_of_insns): New.
6600         (too_large): Use estimate_number_of_insns.
6601         (haifa_find_rgns): New. Move the code from ...
6602         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
6603         (free_trg_info): New.
6604         (compute_trg_info): Allocate candidate tables here instead of ...
6605         (init_ready_list): ... here.
6606         (rgn_print_insn): Use const_rtx.
6607         (contributes_to_priority, extend_regions): Delete static declaration.
6608         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
6609         (add_block1): Rename to rgn_add_block.
6610         (debug_rgn_dependencies): Delete static qualifier.
6611         (new_ready): Use sched_deps_info.  Simplify.
6612         (rgn_common_sched_info, rgn_const_sched_deps_info,
6613         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
6614         New.
6615         (region_sched_info): Rename to rgn_const_sched_info.
6616         (deps_join): New, extracted from ...
6617         (propagate_deps): ... here.
6618         (compute_block_dependences, debug_dependencies): Update for selective
6619         scheduling.
6620         (free_rgn_deps, compute_priorities): New functions.
6621         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
6622         sched_rgn_compute_dependencies): New functions.
6623         (schedule_region): Use them.
6624         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
6625         rgn_setup_common_sched_info, rgn_setup_sched_infos):
6626         New functions.
6627         (schedule_insns): Call new functions that were split out.
6628         (rgn_make_new_region_out_of_new_block): New.
6629         (get_rgn_sched_max_insns_priority): New.
6630         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
6631         scheduling when appropriate.
6632         * sched-vis.c: Include insn-attr.h.
6633         (print_value, print_pattern): Make global.
6634         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
6635         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
6636         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
6637         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6638         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
6639         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
6640         hooks.  Initialize them to 0.
6641         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
6642         * target.h (struct gcc_target): Add them.  Rename gen_check field to
6643         gen_spec_check.
6644         * flags.h (sel_sched_switch_set): Declare.
6645         * opts.c (sel_sched_switch_set): New variable.
6646         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
6647         pipelining is disabled from command line.
6648         (common_handle_option): Record whether selective scheduling is
6649         requested from command line.
6650         * doc/invoke.texi: Document new flags and parameters.
6651         * doc/tm.texi: Document new target hooks.
6652         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
6653         ia64_gen_check.
6654         (dfa_state_size): Do not declare locally.
6655         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
6656         * config/rs6000/rs6000.c (rs6000_init_sched_context,
6657         rs6000_alloc_sched_context, rs6000_set_sched_context,
6658         rs6000_free_sched_context): New functions.
6659         (struct _rs6000_sched_context): New.
6660         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
6661         scheduling.
6662         (rs6000_sched_finish): Do not run for selective scheduling.
6663
6664 2008-08-31  Jan Hubicka  <jh@suse.cz>
6665
6666         * frv.c (frv_rtx_costs): Update forward declaration.
6667         * spu.c (spu_rtx_costs): Likewise.
6668         * pdp11.c: Include df.h
6669         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
6670         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
6671         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
6672         * iq2000.c (iq2000_address_cost): Add speed argument.
6673         (iq2000_rtx_costs): Likewise.
6674         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
6675         update call of mn10300_address_cost.
6676         * mcore.c: Include df.h
6677         (mcore_rtx_costs): Update prototype.
6678         * score3.c: Include df.h
6679         (score3_rtx_costs): Remove speed argument.
6680         * score7.c: Include df.h
6681         (score7_address_cost): Remove speed argument.
6682         * score-protos.h (score_address_cost): Update prototype.
6683         * score.c: Include df.h
6684         (score_rtx_costs): Update call of costs functions.
6685         * v850.c (v850_rtx_costs): Add bool argument.
6686
6687 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
6688
6689         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
6690
6691 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6692
6693         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
6694         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
6695
6696 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6697
6698         * mkmap-flat.awk: Add option pe_dll.
6699         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
6700         * config/i386/t-cygwin (SHLIB_LC): Add.
6701         * config/i386/t-mingw32 (SHLIB_LC): Add.
6702         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
6703         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
6704         (LINK_SPEC): Support libgcc_s.
6705         (LIBGCC_SPEC): Support libgcc_s.
6706         (LIBGCC_SONAME): New.
6707
6708 2008-08-31  Jan Hubicka  <jh@suse.cz>
6709
6710         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
6711         mistakely had old version of patch.
6712
6713         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
6714         (ipcp_estimate_growth): New.
6715         (ipcp_insert_stage): Use ipcp_estimate_growth.
6716         * profile.c (branch_prob): When reading failed, do not consider
6717         profile as read.
6718
6719 2008-08-31  Jan Hubicka  <jh@suse.cz>
6720
6721         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
6722         loop is optimized for speed.
6723
6724 2008-08-31  Richard Guenther  <rguenther@suse.de>
6725
6726         PR middle-end/37289
6727         * fold-const.c (fold_binary): Retain conversions in folding
6728         ~A + 1 to -A.
6729
6730 2008-08-31  Jan Hubicka  <jh@suse.cz>
6731
6732         * postreload-gcse.c (eliminate_partially_redundant_loads):
6733         Use optimize_bb_for_size_p.
6734         * predict.c (maybe_hot_frequency_p): Make inline.
6735         (maybe_hot_count_p): Break out from ...
6736         (maybe_hot_bb_p): ... this one.
6737         (maybe_hot_edge_p): Simplify.
6738         * basic-block.h (probably_cold_bb_p): Remove.
6739
6740 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
6741
6742         PR target/37168
6743         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
6744         prototype.
6745         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
6746         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
6747         Also split V4SFmode.
6748         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
6749         vector float modes.
6750
6751 2008-08-31  Jan Hubicka  <jh@suse.cz>
6752
6753         * predict.c (PROB_VERY_LIKELY): Make small enough so things
6754         become cold.
6755         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
6756
6757 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
6758
6759         PR debug/37287
6760         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
6761         add source coords.
6762
6763         * dwarf2out.c (native_encode_initializer): Subtract min_index for
6764         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
6765
6766 2008-08-31  Jan Hubicka  <jh@suse.cz>
6767
6768         * sparc.h (BRANCH_COST): Fix macro definition.
6769         * avr.c (avr_operand_rtx_cost): Add speed argument.
6770         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
6771
6772 2008-08-31  Richard Guenther  <rguenther@suse.de>
6773
6774         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
6775         types instead of operands.  Re-instantiate verifying of
6776         binary expression operands.
6777
6778 2008-08-30  Jan Hubicka  <jh@suse.cz>
6779
6780         * fwprop.c (should_replace_address): Add speed attribute.
6781         (PR_OPTIMIZE_FOR_SPEED): New flag.
6782         (propagate_rtx_1): Use it.
6783         (propagate_rtx): Set it.
6784         (try_fwprop_subst): Update call of rtx_costs.
6785         (forward_propagate_and_simplify): LIkewise.
6786         * hooks.c (hook_int_rtx_bool_0): New
6787         (hook_bool_rtx_int_int_intp_false): Replace by ...
6788         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6789         * hooks.h (hook_int_rtx_bool_0): New
6790         (hook_bool_rtx_int_int_intp_false): Replace by ...
6791         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6792         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
6793         (prepare_cmp_insn): UPdate call of rtx_cost.
6794         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
6795         (reload_cse_simplify_operands): Update call of rtx_cost.
6796         (reload_cse_move2add): call of rtx_cost.
6797         * target.h (struct gcc_target): Update rtx_costs and address_costs.
6798         * rtlanal.c (rtx_cost): Add speed argument.
6799         (address_cost): Add speed argument
6800         (default_address_cost): Likewise.
6801         (insn_rtx_cost): Likewise.
6802         * cfgloopanal.c (seq_cost): Add speed argument.
6803         (target_reg_cost, target_spill_cost): Turn to array.
6804         (init_set_costs): Update for speed.
6805         (estimate_reg_pressure_cost): Add speed argument.
6806         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
6807         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
6808         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
6809         (seq_cost): Add speed argument.
6810         (computation_cost): Add speed arugment.
6811         (add_cost, multiply_by_const, get_address_cost): add speed argument.
6812         (force_expr_to_var_cost): Update for profile info.
6813         (force_var_cost): Likewise.
6814         (split_address_cost): Likewise.
6815         (ptr_difference_cost): Likewise.
6816         (difference_cost): Likewise.
6817         (get_computation_cost_at): Likewise.
6818         (determine_iv_cost): Likewise.
6819         (ivopts_global_cost_for_size): Likewise.
6820         (rewrite_use_address): Likewise.
6821         (tree_ssa_iv_optimize_loop): Initialize speed field.
6822         * cse.c (optimize_this_for_speed_p): New static var.
6823         (notreg_cost): Update call of rtx_cost.
6824         (cse_extended_basic_block): set optimize_this_for_speed_p.
6825         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
6826         (noce_try_cmove_arith): Likewise.
6827         (noce_try_sign_mask): LIkewise.
6828         * expr.c (compress_float_constant): Update rtx_cost calls.
6829         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
6830         argument.
6831         (addr_to_parts): Likewise.
6832         (create_mem_ref): Likewise.
6833         * dse.c (find_shift_sequence): Add speed argument.
6834         (replace_read): Update call.
6835         * calls.c (precompute_register_parameters): Update call of rtx_cost.
6836         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
6837         * neg_cost, shift_cost, shiftadd_cost,
6838         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
6839         mul_highpart_cost): Increase dimension.
6840         (init_expmed): Initialize for both size and speed.
6841         (expand_shift): Use profile.
6842         (synth_mult): Use profile.
6843         (choose_mult_variant): Use profile.
6844         (expand_mult): Use profile.
6845         (expand_mult_highpart_optab): Use profile.
6846         (expand_mult_highpart): Use profile.
6847         (expand_smod_pow2): Use profile.
6848         (expand_divmod): Use profile.
6849         * simplify-rtx.c (simplify_binary_operation_1): Update call of
6850         rtx_cost.
6851         * loop-invariant.c (create_new_invariant): Use profile.
6852         (gain_for_invariant): Add speed parameter.
6853         (best_gain_for_invariant): Likewise.
6854         (find_invariants_to_move): Likewise.
6855         (move_single_loop_invariants): Set it.
6856         * target-def.h (TARGET_RTX_COSTS): Use hook.
6857         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
6858         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6859         * output.h (default_address_cost): Update prototype.
6860         * combine.c (optimize_this_for_speed_p): New static var.
6861         (combine_validate_cost): Update call of rtx_cost.
6862         (combine_instructions): Set optimize_this_for_speed_p.
6863         (expand_compound_operation): Update call of rtx_cost.
6864         (make_extraction):Update call of rtx_cost.
6865         (force_to_mode):Update call of rtx_cost.
6866         (distribute_and_simplify_rtx):Update call of rtx_cost.
6867         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
6868         (estimate_reg_pressure_cost): Update prototype.
6869         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
6870         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
6871         Remove.
6872         * config/alpha/alpha.c (alpha_rtx_costs): Update.
6873         (alpha_rtx_costs): Update.
6874         * config/frv/frv.c (frv_rtx_costs): Update.
6875         * config/s390/s390.c (s390_rtx_costs): Update.
6876         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
6877         (m32c_rtx_costs): Update.
6878         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
6879         (spu_rtx_costs): Update.
6880         * config/sparc/sparc.c (sparc_rtx_costs): Update.
6881         * config/m32r/m32r.c (m32r_rtx_costs): Update.
6882         * config/i386/i386.c (:ix86_address_cost): Update.
6883         (ix86_rtx_costs): Update.
6884         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
6885         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
6886         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
6887         * config/crx/crx.c (crx_address_cost): Update.
6888         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
6889         * config/stormy16/stormy16.c
6890         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
6891         * config/m68hc11/m68hc11.c
6892         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
6893         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
6894         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
6895         Update.
6896         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
6897         Update
6898         * config/ia64/ia64.c (ia64_rtx_costs): Update.
6899         * config/m68k/m68k.c (m68k_rtx_costs): Update.
6900         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
6901         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
6902         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
6903         (mcore_rtx_costs): update.
6904         * config/score/score3.c (score3_rtx_costs): Update.
6905         * config/score/score7.c (score7_rtx_costs): Update.
6906         * config/score/score3.h (score3_rtx_costs):Update.
6907         * config/score/score7.h (score7_rtx_costs): Update.
6908         * config/score/score.c (score_rtx_costs): Update.
6909         * config/arm/arm.c (arm_address_cost): Update.
6910         (arm_rtx_costs_1): Update.
6911         (arm_rtx_costs_1): Update.
6912         (arm_size_rtx_costs): Update.
6913         (arm_size_rtx_costs): Update.
6914         (arm_size_rtx_costs): Update.
6915         (arm_xscale_rtx_costs): Update.
6916         (arm_thumb_address_cost): Update.
6917         * config/pa/pa.c (hppa_address_cost): Update.
6918         * config/mips/mips.c (mips_rtx_costs): Update.
6919         * config/vax/vax.c (vax_address_cost): Update.
6920         * config/h8300/h8300.c (h8300_shift_costs): Update.
6921         (h8300_rtx_costs): Update.
6922         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
6923         (v850_rtx_costs): Update.
6924         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
6925         * config/bfin/bfin.c
6926         (bfin_address_cost): Update.
6927         (bfin_rtx_costs): Update.
6928         * stmt.c (lshift_cheap_p): Update.
6929
6930 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6931
6932         PR middle-end/36444
6933         * expmed.c (extract_bit_field_1): Check the mode size to make
6934         sure the vector modes have the same size.
6935
6936 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
6937
6938         * dojump.c (top level): Include basic-block.h to declare
6939         optimize_insn_for_speed_p
6940
6941         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
6942
6943         * opts.h (CL_SAVE): New option class for marking options that are
6944         target specific options usable in the target attribute.
6945         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
6946
6947         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
6948         can easily find the target specific options that are safe to use
6949         in the attribute or pragma.
6950
6951         * attribs.c (decl_attributes): Change #pragma GCC option to
6952         #pragma GCC target, and attribute((option(...))) to
6953         attribute((target(...))).
6954
6955         * doc/extend.texi (target attribute): Change from option
6956         attribute.  Delete push/pop/reset.
6957         (#pragma GCC target): Change from #pragma GCC option.  Delete
6958         push/pop/reset.
6959         (#pragma GCC push_options): Document new pragma.
6960         (#pragma GCC pop_options): Document new pragma.
6961         (#pragma GCC reset_options): Document new pragma.
6962
6963         * targhooks.c (default_target_option_valid_attribute_p): Add
6964         warning about port not supporting target attributes.
6965         (default_target_option_pragma_parse): New function, warn about
6966         #pragma GCC target not being supported.
6967
6968         * targhooks.h (default_target_option_pragma_parse): Add
6969         declaration.
6970
6971         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
6972         TI_CURRENT_OPTION_PRAGMA.
6973         (current_target_pragma): Rename from current_option_pragma.
6974
6975         * target.h: (struct target_option): Delete booleans for changing
6976         the optimization level on hot/cold functions.  Change signature of
6977         pragma_parse hook to take a second tree.
6978
6979         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
6980
6981         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
6982         that the declaration is done at global scope.
6983
6984         * langhooks.c (add_builtin_function_common): Move most of the code
6985         from add_builtin_function here, calling the hook passed in.
6986         (add_builtin_function): Call add_builtin_function_common with
6987         standard builtin hook.
6988         (add_builtin_function_ext_scope): New function to add builtins to
6989         global scope.
6990
6991         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
6992         hook.
6993         (add_builtin_function_ext_scope): Add declaration.
6994
6995         * c-pragma.c (handle_pragma_target): Rename from
6996         handle_pragma_option, #pragma GCC option is now #pragma GCC
6997         target.  Move warning about port not supporting target options to
6998         default pragma parse hook.  Remove push/pop/reset from this
6999         pragma.
7000         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
7001         (option_stack): Delete static variable.
7002         (optimize_stack): Ditto.
7003         (optons_stack): New stack of saved target and optimization
7004         options.
7005         (handle_pragma_push_options): New function to handle pushing both
7006         target and optimization options.
7007         (handle_pragma_pop_options): New function to handle popping both
7008         target and optimization options.
7009         (handle_pragma_reset_options): New function to handle resetting
7010         both target and optimization options to their initial state.
7011         (init_pragma): Rename handle_pragma_option to
7012         handle_pragma_target.  Add support for push_options, pop_options,
7013         and reset_options pragmas.
7014
7015         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
7016         default_target_option_pragma_parse.
7017         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
7018         default_target_option_valid_attribute_p.
7019         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7020         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7021         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
7022         optimization level on hot/cold functions.
7023
7024         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
7025         if the caller and callee have different optimization levels.
7026
7027         * c-common.c (handle_target_attribute): Rename from
7028         handle_option_attribute, attribute((option(...))) is now
7029         attribute((target(...))).  Move warning if the port does not
7030         support target attributes to the default hook.
7031         (handle_hot_attribute): Delete code to change the optimization
7032         level of hot functions.
7033         (handle_cold_attribute): Ditto.
7034
7035         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
7036         argument that is the binary tree options to use if there are no
7037         arguments.  Call ix86_valid_target_attribute_tree instead of
7038         ix86_valid_option_attribute_tree.
7039         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
7040         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
7041         ix86_pragma_option_parse.
7042
7043         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
7044         Rename from ix86_valid_option_attribute_tree.
7045
7046         * config/i386/i386.c (ix86_add_new_builtins): New function to add
7047         new builtins when the ISA changes.
7048         (ix86_valid_target_attribute_tree): Rename from
7049         ix86_valid_option_attribute_tree.  Change callers.  If the
7050         function specified optimization options, use those as the starting
7051         point before setting up the target attributes.  If the
7052         optimization options were changed in the course of setting the
7053         target attributes, record the new optimization options.
7054         (ix86_valid_target_attribute_tree_inner_p): Rename from
7055         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
7056         ix86_add_new_builtins if the ISA changed.
7057         (ix86_valid_target_attribute_p): Rename from
7058         ix86_valid_option_attribute_p.  Change callers.
7059         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
7060         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
7061         as delayed builtin functions.
7062         (struct builtin_isa): New structure to record builtin functions
7063         that should be delayed until the ISA for that function is used.
7064         (ix86_builtins_isa): Change from int to struct to track builtin
7065         functions we want to declare at some point.
7066         (def_builtin): If the front end can delay defining the builtin
7067         functions, don't create builtins for ISAs not part of the default
7068         options.
7069         (def_builtin_const): Ditto.
7070         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
7071         __builtin_ia32_pcmov_v2di to be different builtin functions.
7072         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
7073         a structure instead of an int.
7074         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
7075         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
7076         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7077         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7078
7079         * config/ia64/ia64.h
7080         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7081         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7082
7083         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
7084         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
7085         (LANG_HOOKS_INITIALIZER): Add
7086         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
7087
7088 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7089
7090         PR target/37270
7091         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
7092         the reload address with the index register for SFmode
7093         access with a displacement.
7094
7095 2008-08-30  Jan Hubicka  <jh@suse.cz>
7096
7097         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
7098         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
7099         * dojump.c (do_jump): Likewise.
7100         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
7101         (note-if_info): Add BRANCH_COST.
7102         (noce_try_store_flag_constants, noce_try_addcc,
7103         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
7104         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
7105         find_if_case_2): Use computed branch cost.
7106         * expr.h (BRANCH_COST): Update default.
7107         * predict.c (predictable_edge_p): New function.
7108         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
7109         Update BRANCH_COST call.
7110         * basic-block.h (predictable_edge_p): Declare.
7111         * config/alpha/alpha.h (BRANCH_COST): Update.
7112         * config/frv/frv.h (BRANCH_COST): Update.
7113         * config/s390/s390.h (BRANCH_COST): Update.
7114         * config/spu/spu.h (BRANCH_COST): Update.
7115         * config/sparc/sparc.h (BRANCH_COST): Update.
7116         * config/m32r/m32r.h (BRANCH_COST): Update.
7117         * config/i386/i386.h (BRANCH_COST): Update.
7118         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
7119         BRANCH_COST.
7120         * config/sh/sh.h (BRANCH_COST): Update.
7121         * config/pdp11/pdp11.h (BRANCH_COST): Update.
7122         * config/avr/avr.h (BRANCH_COST): Update.
7123         * config/crx/crx.h (BRANCH_COST): Update.
7124         * config/xtensa/xtensa.h (BRANCH_COST): Update.
7125         * config/stormy16/stormy16.h (BRANCH_COST): Update.
7126         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
7127         * config/iq2000/iq2000.h (BRANCH_COST): Update.
7128         * config/ia64/ia64.h (BRANCH_COST): Update.
7129         * config/rs6000/rs6000.h (BRANCH_COST): Update.
7130         * config/arc/arc.h (BRANCH_COST): Update.
7131         * config/score/score.h (BRANCH_COST): Update.
7132         * config/arm/arm.h (BRANCH_COST): Update.
7133         * config/pa/pa.h (BRANCH_COST): Update.
7134         * config/mips/mips.h (BRANCH_COST): Update.
7135         * config/vax/vax.h (BRANCH_COST): Update.
7136         * config/h8300/h8300.h (BRANCH_COST): Update.
7137         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
7138         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
7139         * doc/tm.texi (BRANCH_COST): Update.
7140
7141 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
7142
7143         PR target/37283
7144         * config/arm/arm.c (arm_optimization_options): Set
7145         flag_section_anchors to 2 instead of 1 to distinguish it from
7146         -fsection-anchors given explicitely on the command line.
7147
7148 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
7149
7150         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
7151         final insn of a split.
7152
7153 2008-08-30  Jan Hubicka  <jh@suse.cz>
7154
7155         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
7156         optimized for speed.
7157         * final.c (compute_alignments): Use optimize_bb_for_size_p.
7158         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
7159         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
7160         flag_gcse_after_reload_set): New static vars.
7161         (common_handle_option): Enable those flags for profile-use.
7162         (decode_options): Remove optimize_size flags that are handled
7163         on higher granuality.
7164         * tree-vectorizer.c (vectorize_loops): Use
7165         optimize_loop_nest_for_speed_p.
7166         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
7167         * tree-predcom.c (tree_predictive_commoning): Use
7168         optimize_loop_for_speed_p.
7169         * varasm.c (assemble_start_function): Use
7170         optimize_function_for_speed_p.
7171         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
7172         * predict.c (optimize_loop_for_speed_p): Fix walk.
7173
7174 2008-08-30  Jan Hubicka  <jh@suse.cz>
7175
7176         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
7177         functions.
7178         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
7179         profile presence locally.
7180
7181 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
7182
7183         PR bootstrap/37086
7184         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
7185         versions before 4.0.
7186
7187 2008-08-29  Jan Hubicka  <jh@suse.cz>
7188
7189         * tree-inline.c (insert_init_stmt): Insert sequence even when
7190         not in SSA form.
7191
7192 2008-08-29  Jeff Law  <law@redhat.com>
7193
7194         * mn10300.c (mn10300_secondary_reload_class): We need secondary
7195         reloads for AM33-2 if IN is a pseudo with an equivalent memory
7196         location and class is an FP register.
7197
7198 2008-08-29  Jan Hubicka  <jh@suse.cz>
7199
7200         * see.c (see_merge_one_def_extension): Silence used uninitialized
7201         warning.
7202         * matrix-reorg.c (check_allocation_function): Likewise.
7203         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
7204
7205 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
7206
7207         PR c/37261
7208         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
7209         compute new & and | in type rather than TREE_TYPE (arg0).
7210
7211         * dwarf2out.c (fortran_common): Update comment.
7212         (gen_variable_die): Swap com_die and var_die variables in Fortran
7213         COMMON block handling code.
7214
7215         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
7216
7217         * dwarf2out.c (gen_const_die): New function.
7218         (size_of_die, value_format, output_die): Output larger
7219         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
7220         (native_encode_initializer): New function.
7221         (tree_add_const_value_attribute): Call it.
7222         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
7223
7224         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
7225         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
7226         TREE_THIS_VOLATILE to add_type_attribute.
7227
7228         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
7229         types.
7230         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
7231         types.
7232
7233         * dwarf2out.c (loc_by_reference): New function.
7234         (add_location_or_const_value_attribute): Use it.
7235
7236         PR fortran/23057
7237         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
7238         as DW_TAG_variable children of DW_TAG_common_block rather than
7239         DW_TAG_member children.  Put DW_AT_external to individual
7240         DW_TAG_variable DIEs, not to DW_TAG_common_block.
7241
7242         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
7243         loc_descriptor_from_tree_1.
7244
7245         PR fortran/29635
7246         PR fortran/23057
7247         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
7248         arguments to imported_module_or_decl.
7249         (debug_nothing_tree_tree): Removed.
7250         (debug_nothing_tree_tree_tree_bool): New prototype.
7251         * debug.c (do_nothing_debug_hooks): Adjust.
7252         (debug_nothing_tree_tree): Removed.
7253         (debug_nothing_tree_tree_tree_bool): New function.
7254         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
7255         (gen_variable_die): Put all common vars for the
7256         same COMMON block under one DW_TAG_common_block.
7257         (declare_in_namespace): Return new context_die, for Fortran
7258         return the module DIE instead of adding extra declarations into
7259         the namespace.
7260         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
7261         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
7262         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
7263         DW_AT_declaration.
7264         (dwarf2out_global_decl): Don't skip Fortran global vars.
7265         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
7266         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
7267         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
7268         DW_TAG_imported_declaration as child of previous
7269         DW_TAG_imported_module.
7270         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
7271         * sdbout.c (sdb_debug_hooks): Likewise.
7272         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7273
7274 2008-08-29  Jan Hubicka  <jh@suse.cz>
7275
7276         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
7277
7278         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
7279         * ipa-cp.c (n_cloning_candidates): New static variable.
7280         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
7281         (ipcp_print_all_lattices): Improve debug output.
7282         (ipcp_cloning_candidate_p): New function.
7283         (ipcp_initialize_node_lattices): Use it.
7284         (ipcp_init_stage): Do only analyzis here; prettier debug output.
7285         (ipcp_propagate_stage): Prettier debug output.
7286         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
7287         (ipcp_print_all_structures): Remove.
7288         (ipcp_need_redirect_p): Test !n_cloning_candidates.
7289         (ipcp_insert_stage): Prettier debug output; call
7290         cgraph_remove_unreachable_nodes before propagating.
7291         (pass_ipa_cp): Schedule function removal pass.
7292         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
7293         debug output.
7294         (cgraph_maybe_hot_edge_p): Move to ...
7295         * predict.c (cgraph_maybe_hot_edge_p) ... here.
7296         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
7297         (common_handle_option): Set them; enable ipa-cp when profiling.
7298         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
7299         (ipa_print_all_jump_functions): Likewise.
7300         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
7301         (ipa_print_node_params, ipa_print_all_params): New.
7302         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
7303         ipa_print_all_param_flags): Remove.
7304         (ipa_print_node_params, ipa_print_all_params): New.
7305
7306 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
7307
7308         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
7309         change from 2008-04-03.
7310         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
7311
7312 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
7313
7314         PR rtl-opt/37251
7315         * ira-color.c (push_allocnos_to_stack): Truncate
7316         removed_splay_allocno_vec.
7317
7318 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
7319
7320         PR rtl-opt/37243
7321         * ira-color (ira_fast_allocation): Don't assign hard registers to
7322         global allocnos.
7323
7324 2008-08-29  Jan Hubicka  <jh@suse.cz>
7325
7326         PR middle-end/37278
7327         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
7328         for cold internal loops.
7329
7330 2008-08-29  Richard Guenther  <rguenther@suse.de>
7331
7332         * tree-ssa-structalias.c (create_variable_info_for): Do not
7333         create fields for heap vars or vars with a noalias state.
7334         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
7335         from ESCAPED.
7336
7337 2008-08-29  Richard Guenther  <rguenther@suse.de>
7338
7339         * common.opt (ftree-store-ccp): Mark as preserved for
7340         backward compatibility.
7341         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
7342         * tree-pass.h (pass_store_ccp): Remove.
7343         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
7344         (first_vdef): Remove declaration.
7345         (get_value_loaded_by): Likewise.
7346         * tree-ssa-ccp.c (do_store_ccp): Remove.
7347         (get_default_value): Simplify as do_store_ccp is always false
7348         now.  Do not initialize mem_ref.
7349         (set_value_varying): Likewise.
7350         (canonicalize_float_value): Likewise.
7351         (set_lattice_value): Likewise.
7352         (likely_value): Likewise.
7353         (surely_varying_stmt_p): Likewise.
7354         (ccp_initialize): Likewise.
7355         (ccp_lattice_meet): Likewise.
7356         (ccp_visit_phi_node): Likewise.
7357         (ccp_fold): Likewise.
7358         (evaluate_stmt): Likewise.
7359         (visit_assignment): Likewise.
7360         (ccp_visit_stmt): Likewise.
7361         (execute_ssa_ccp): Fold into ...
7362         (do_ssa_ccp): ... this.
7363         (do_ssa_store_ccp): Remove.
7364         (gate_store_ccp): Likewise.
7365         (pass_store_ccp): Likewise.
7366         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
7367         initialize mem_ref.
7368         * tree-ssa-propagate.c (first_vdef): Remove.
7369         (get_value_loaded_by): Likewise.
7370         (replace_vuses_in): Likewise.
7371         (substitute_and_fold): Do not call replace_vuses_in.
7372         * opts.c (decode_options): Do not set flag_tree_store_ccp.
7373
7374 2008-08-29  Richard Guenther  <rguenther@suse.de>
7375
7376         PR middle-end/37236
7377         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
7378         PARAM_NOALIAS tags with is_heapvar.
7379         * tree-ssa-operands.c (access_can_touch_variable): Offset
7380         based tests do not apply for heapvars.  Fix offset test.
7381
7382 2008-08-29  Jan Hubicka  <jh@suse.cz>
7383
7384         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
7385         (-fipa-cp-clone): Enabled by default at -O3.
7386         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
7387         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
7388
7389 2008-08-29  Jan Hubicka  <jh@suse.cz>
7390
7391         * tree.c (build_function_type_skip_args,
7392         build_function_decl_skip_args): New functions.
7393         * tree.h (build_function_type_skip_args,
7394         build_function_decl_skip_args): Declare.
7395         * gimple.c (giple_copy_call_skip_args): New function.
7396         (giple_copy_call_skip_args): Declare.
7397
7398         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
7399         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
7400         (ipcp_node_modifiable_p): ... this one; use
7401         tree_versionable_function_p.
7402         (ipcp_create_replace_map): Improve debug output.
7403         (ipcp_need_redirect_p): Return false when not clonning.
7404         (ipcp_update_callgraph): Skip args.
7405         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
7406         skip args.
7407         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
7408         (save_inline_function_body): Update call of tree_function_versioning.
7409         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
7410         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
7411         argument.
7412         (tree_function_versioning): Likewise.
7413         * tree-inline.h (tree_function_versioning): Update prototype.
7414
7415 2008-08-29  Jan Hubicka  <jh@suse.cz>
7416
7417         * loop-unswitch.c (unswitch_single_loop): Use
7418         optimize_loop_for_speed_p.
7419         * tree-ssa-threadupdate.c (mark_threaded_blocks):
7420         Use optimize_function_for_size_p.
7421         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
7422         * postreload-gcse.c (eliminate_partially_redundant_load):
7423         Use optimize_bb_for_size_p.
7424         * value-prof.c (gimple_divmod_fixed_value_transform,
7425         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
7426         gimple_stringops_transform): Use optimize_bb_for_size_p.
7427         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
7428         * final.c (compute_alignments): Use optimize_function_for_size_p.
7429         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
7430         (fold_builtin_strcpy, fold_builtin_fputs): Use
7431         optimize_function_for_size_p.
7432         * fold-const.c (tree_swap_operands_p): Use
7433         optimize_function_for_size_p.
7434         * recog.c (relax_delay_slots): Likewise.
7435         * tree-ssa-math-opts.c (replace_reciprocal):
7436         Use optimize_bb_for_speed_p.
7437         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
7438         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
7439         optimize_function_for_size_p.
7440         (cgraph_decide_inlining_of_small_function): Use
7441         optimize_function_for_size_p.
7442         * global.c (find_reg): Use optimize_function_for_size_p.
7443         * opts.c (decode_options): Do not clear flag_tree_ch,
7444         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
7445         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
7446         work it out from profile.
7447         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
7448         optimize_loop_for_speed_p.
7449         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7450         Constify argument.
7451         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
7452         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
7453         * tree-eh.c (decide_copy_try_finally): Use
7454         optimize_function_for_size_p.
7455         * local-alloc.c (block_alloc): Pass BB pointer.
7456         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
7457         * gcse.c (gcse_main): Use optimize_function_for_size_p.
7458         * loop-unroll.c (decide_unrolling_and_peeling):
7459         Use optimize_loop_for_size_p.
7460         (decide_peel_completely): Likewise.
7461         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
7462         optimize_loop_for_size_p.
7463         (vect_enhance_data_refs_alignment): Likewise.
7464         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
7465         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
7466         Update call.
7467         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
7468         (try_crossjump_bb): Use optimize_bb_for_size_p.
7469         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7470         optimize_loop_for_speed_p.
7471         * bb-reorder.c (find_traces_1_round): Likewise.
7472         (copy_bb): Use optimize_bb_for_speed_p.
7473         (duplicate_computed_gotos): Likewise.
7474         * basic-block.h (optimize_loop_nest_for_size_p,
7475         optimize_loop_nest_for_speed_p): New.
7476         * stmt.c (expand_case): Use optimize_insn_for_size_p.
7477
7478 2008-08-29  Tristan Gingold  <gingold@adacore.com>
7479
7480         * gcov.c (main): Call expandargv.
7481
7482 2008-08-29  Jan Hubicka  <jh@suse.cz>
7483
7484         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
7485         is not cold.
7486         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7487         Constify arguments.
7488         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
7489         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7490         Constify.
7491         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
7492
7493 2008-08-29  Jan Hubicka  <jh@suse.cz>
7494
7495         * tree-pass.h (pass_strip_predict_hints): Declare.
7496         * predict.c (strip_builtin_expect): Rename to ...
7497         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
7498         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
7499         (tree_estimate_probability): Do not strip builtin_expect.
7500         (pass_strip_predict_hints): New pass.
7501         * tree-inline.c (expand_call_inline): When inlining cold function,
7502         predict it as unlikely.
7503         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
7504
7505 2008-08-29  Richard Guenther  <rguenther@suse.de>
7506
7507         PR tree-optimization/37207
7508         * tree-vrp.c (extract_range_from_binary_expr): Also try
7509         to constant fold if only one of the operands is a constant.
7510
7511 2008-08-29  Nick Clifton  <nickc@redhat.com>
7512
7513         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
7514         the same way as SYMBOL_REFs.
7515
7516 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
7517
7518         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
7519
7520 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
7521
7522         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
7523         * config/mips/mips.md (branch_likely): Remove const.  Fix
7524         comment formatting.
7525         (define_delay for type "branch"): Change to only apply for branch
7526         with likely variant.
7527         (define_delay for type "branch" and "branch_likely" no).  New delay
7528         definition.
7529         (equality_op): New code iterator.
7530         (bbv, bbinv): New code attributes.
7531         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
7532         patterns.
7533
7534 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7535             Andrew Pinski  <pinskia@gcc.gnu.org>
7536
7537         PR 18050
7538         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
7539
7540 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
7541
7542         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
7543         rule that a symbolic constant must be defined and >= 0 for the
7544         corresponding facility to be present at compile-time.
7545         * gthr-posix.c: Likewise.
7546
7547 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
7548
7549         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
7550         * config/mips/mips.md (D): New mode attribute.
7551         (mulsi3, muldi3): Merge it into ...
7552         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
7553         (muldi3_mul3): New pattern.
7554         (mulsi3_mult3): Rename to mulsi3_mul3.
7555
7556 2008-08-28  Jan Hubicka  <jh@suse.cz>
7557
7558         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
7559         to fail.
7560         * predict.c (always_optimize_for_size_p): Rename to ...
7561         (optimize_function_for_size): ... this one; make extern.
7562         (optimize_function_for_speed_p): New.
7563         (optimize_bb_for_size_p, optimize_bb_for_size_p,
7564         optimize_edge_for_size_p,optimize_edge_for_size_p,
7565         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
7566         * basic-block.h (optimize_function_for_size_p,
7567         optimize_function_for_speed_p): Declare.
7568         * i386.md (optimize_size checks): Replace them by appropriate
7569         predicate.
7570         (standard_80387_constant_p, ix86_compute_frame_layout,
7571         ix86_expand_epilogue, ix86_decompose_address,
7572         print_operand, emit_i387_cw_initialization,
7573         inline_memory_move_cost, ix86_pad_returns,
7574         ix86_reorg): Replace optimize_size checks.
7575
7576 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7577
7578         * rtl.h (simplify_subreg_regno): Declare.
7579         * rtlanal.c (simplify_subreg_regno): New function, split out from...
7580         * simplify-rtx.c (simplify_subreg): ...here.
7581         * reload.c (find_reloads): Use simplify_subreg_regno instead of
7582         subreg_offset_representable_p.
7583
7584 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7585
7586         PR c/30949
7587         * c-typeck.c (convert_for_assignment): Give a note describing what
7588         was passed and what was expected.
7589
7590 2008-08-28  Joey Ye  <joey.ye@intel.com>
7591
7592         * doc/extend.texi: Document AVX built-in functions.
7593         * doc/invoke.texi: Document -mavx.
7594
7595 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7596             Joey Ye  <joey.ye@intel.com>
7597             Xuepeng Guo  <xuepeng.guo@intel.com>
7598
7599         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
7600
7601         * config/i386/cpuid.h (bit_FMA): New.
7602         (bit_XSAVE): Likewise.
7603         (bit_OSXSAVE): Likewise.
7604         (bit_AVX): Likewise.
7605
7606         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
7607         define.  Use ASM_OUTPUT_AVX_PREFIX.
7608
7609         * config/i386/gmmintrin.h: New.
7610
7611         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
7612         (OPTION_MASK_ISA_AVX_SET): New.
7613         (OPTION_MASK_ISA_FMA_SET): Likewise.
7614         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
7615         (OPTION_MASK_ISA_FMA_SET): Likewise.
7616         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
7617         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
7618         (pta_flags): Add PTA_AVX and PTA_FMA.
7619         (override_options): Handle PTA_AVX and PTA_FMA.
7620         (init_cumulative_args): Handle warn_avx.
7621         (classify_argument): Return 0 for COImode and OImode.  Return
7622         1 and X86_64_AVX_CLASS for 256bit vector types.
7623         (examine_argument): Handle X86_64_AVX_CLASS.
7624         (construct_container): Likewise.
7625         (function_arg_advance_32): Pass OImode and 256bit vector types
7626         in AVX register.
7627         (function_arg_advance_64): Take a new argument to indicate if a
7628         parameter is named.  Handle 256bit vector types.  Return
7629         immediately for unnamed 256bit vector mode parameters.
7630         (function_arg_advance): Updated.
7631         (function_arg_32): Add comments for TImode.  Handle OImode
7632         and 256bit vector types.
7633         (function_arg_64): Take a new argument to indicate if a
7634         parameter is named.  Handle 256bit vector types.  Return NULL
7635         for unnamed 256bit vector mode parameters.
7636         (function_arg): Updated.
7637         (setup_incoming_varargs_64): Support
7638         AVX encoding for *sse_prologue_save_insn.
7639         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
7640         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
7641         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
7642         enabled, otherwise return -3.
7643         (standard_sse_constant_opcode): Handle AVX and 256bit vector
7644         modes.
7645         (print_reg): Support AVX registers.  Handle 'x' and 't'.
7646         Handle 'd' to duplicate the operand.
7647         (print_operand): Likewise.  Also support AVX vector compare
7648         instructions.
7649         (output_387_binary_op): Support AVX.
7650         (output_fp_compare): Likewise.
7651         (ix86_expand_vector_move_misalign): Likewise.
7652         (ix86_attr_length_vex_default): New.
7653         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7654         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7655         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7656         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7657         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
7658         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7659         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
7660         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
7661         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
7662         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
7663         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
7664         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
7665         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
7666         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
7667         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7668         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
7669         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
7670         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7671         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
7672         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
7673         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7674         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7675         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7676         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
7677         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
7678         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
7679         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
7680         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7681         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
7682         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
7683         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
7684         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
7685         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
7686         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7687         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7688         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7689         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
7690         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
7691         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
7692         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
7693         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
7694         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
7695         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
7696         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
7697         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
7698         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
7699         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7700         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7701         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7702         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7703         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7704         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7705         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7706         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7707         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7708         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7709         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7710         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7711         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7712         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7713         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7714         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7715         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7716         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
7717         and IX86_BUILTIN_MOVMSKPS256,
7718         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
7719         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
7720         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
7721         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
7722         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
7723         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
7724         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
7725         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
7726         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
7727         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
7728         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
7729         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
7730         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
7731         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
7732         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
7733         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
7734         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
7735         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
7736         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
7737         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
7738         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
7739         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
7740         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
7741         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
7742         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
7743         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
7744         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
7745         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
7746         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7747         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7748         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
7749         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
7750         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
7751         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
7752         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
7753         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
7754         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
7755         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
7756         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7757         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7758         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7759         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7760         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
7761         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
7762         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
7763         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
7764         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
7765         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
7766         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
7767         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
7768         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
7769         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
7770         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7771         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
7772         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7773         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
7774         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7775         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7776         IX86_BUILTIN_CMPPS,
7777         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
7778         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
7779         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
7780         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7781         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7782         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7783         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
7784         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7785         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
7786         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7787         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
7788         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7789         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
7790         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
7791         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
7792         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
7793         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7794         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7795         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7796         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7797         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7798         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7799         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7800         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7801         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7802         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7803         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7804         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7805         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7806         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7807         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7808         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7809         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7810         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
7811         IX86_BUILTIN_MOVMSKPS256.
7812         (ix86_init_mmx_sse_builtins): Support AVX builtins.
7813         (ix86_expand_args_builtin): Likewise.
7814         (ix86_expand_special_args_builtin): Likewise.
7815         (ix86_hard_regno_mode_ok): Handle AVX modes.
7816         (ix86_expand_vector_init_duplicate): Likewise.
7817         (ix86_expand_vector_init_one_nonzero): Likewise.
7818         (ix86_expand_vector_init_one_var): Likewise.
7819         (ix86_expand_vector_init_concat): Likewise.
7820         (ix86_expand_vector_init_general): Likewise.
7821         (ix86_expand_vector_set): Likewise.
7822         (ix86_vector_mode_supported_p): Likewise.
7823         (x86_extended_reg_mentioned_p): Check INSN_P before using
7824         PATTERN.
7825
7826         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7827         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
7828
7829         * config/i386/i386.h (TARGET_AVX): New.
7830         (TARGET_FMA): Likewise.
7831         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
7832         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
7833         (VALID_AVX256_REG_MODE): New.
7834         (AVX256_VEC_FLOAT_MODE_P): Likewise.
7835         (AVX_FLOAT_MODE_P): Likewise.
7836         (AVX128_VEC_FLOAT_MODE_P): Likewise.
7837         (AVX256_VEC_FLOAT_MODE_P): Likewise.
7838         (AVX_VEC_FLOAT_MODE_P): Likewise.
7839         (ASM_OUTPUT_AVX_PREFIX): Likewise.
7840         (ASM_OUTPUT_OPCODE): Likewise.
7841         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
7842         support.
7843         (SSE_REG_MODE_P): Allow 256bit vector modes.
7844         (ix86_args): Add a warn_avx field.
7845
7846         * config/i386/i386.md (UNSPEC_PCMP): New.
7847         (UNSPEC_VPERMIL): Likewise.
7848         (UNSPEC_VPERMIL2): Likewise.
7849         (UNSPEC_VPERMIL2F128): Likewise.
7850         (UNSPEC_MASKLOAD): Likewise.
7851         (UNSPEC_MASKSTORE): Likewise.
7852         (UNSPEC_CAST): Likewise.
7853         (UNSPEC_VTESTP): Likewise.
7854         (UNSPECV_VZEROALL): Likewise.
7855         (UNSPECV_VZEROUPPER): Likewise.
7856         (XMM0_REG): Likewise.
7857         (XMM1_REG): Likewise.
7858         (XMM2_REG): Likewise.
7859         (XMM3_REG): Likewise.
7860         (XMM4_REG): Likewise.
7861         (XMM5_REG): Likewise.
7862         (XMM6_REG): Likewise.
7863         (XMM8_REG): Likewise.
7864         (XMM9_REG): Likewise.
7865         (XMM10_REG): Likewise.
7866         (XMM11_REG): Likewise.
7867         (XMM12_REG): Likewise.
7868         (XMM13_REG): Likewise.
7869         (XMM14_REG): Likewise.
7870         (XMM15_REG): Likewise.
7871         (prefix): Likewise.
7872         (prefix_vex_imm8): Likewise.
7873         (prefix_vex_w): Likewise.
7874         (length_vex): Likewise.
7875         (maxmin): Likewise.
7876         (movoi): Likewise.
7877         (*avx_ashlti3): Likewise.
7878         (*avx_lshrti3): Likewise.
7879         (*avx_setcc<mode>): Likewise.
7880         (*fop_<mode>_comm_mixed_avx): Likewise.
7881         (*fop_<mode>_comm_avx): Likewise.
7882         (*fop_<mode>_1_mixed_avx): Likewise.
7883         (*fop_<mode>_1_avx): Likewise.
7884         (*avx_<code><mode>3): Likewise.
7885         (*avx_ieee_smin<mode>3): Likewise.
7886         (*avx_ieee_smax<mode>3): Likewise.
7887         (mode): Add OI, V8SF and V4DF.
7888         (length): Support VEX prefix.
7889         (*cmpfp_i_mixed): Set prefix attribute.
7890         (*cmpfp_i_sse): Likewise.
7891         (*cmpfp_iu_mixed): Likewise.
7892         (*cmpfp_iu_sse): Likewise.
7893         (*movsi_1): Support AVX.
7894         (*movdi_2): Likewise.
7895         (*movdi_1_rex64): Likewise.
7896         (*movti_internal): Likewise.
7897         (*movti_rex64): Likewise.
7898         (*movsf_1): Likewise.
7899         (*movdf_nointeger): Likewise.
7900         (*movdf_integer_rex64): Likewise.
7901         (*movtf_internal): Likewise.
7902         (zero_extendsidi2_32): Likewise.
7903         (zero_extendsidi2_rex64): Likewise.
7904         (*extendsfdf2_mixed): Likewise.
7905         (*extendsfdf2_sse): Likewise.
7906         (*truncdfsf_fast_mixed): Likewise.
7907         (*truncdfsf_fast_sse): Likewise.
7908         (*truncdfsf_mixed): Likewise.
7909         (fix_trunc<mode>di_sse): Likewise.
7910         (fix_trunc<mode>si_sse): Likewise.
7911         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7912         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7913         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7914         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7915         (*rcpsf2_sse): Likewise.
7916         (*rsqrtsf2_sse): Likewise.
7917         (*sqrt<mode>2_sse): Likewise.
7918         (sse4_1_round<mode>2): Likewise.
7919         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
7920         Support AVX.  Set length attribute properly for AVX.
7921
7922         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
7923         (VECTOR_MODES (FLOAT, 32)): Likewise.
7924         (VECTOR_MODE (INT, DI, 8)): Likewise.
7925         (VECTOR_MODE (INT, HI, 32)): Likewise.
7926         (VECTOR_MODE (INT, QI, 64)): Likewise.
7927         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
7928         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
7929         (VECTOR_MODE (INT, DI, 4)): Removed.
7930         (VECTOR_MODE (INT, SI, 8)): Likewise.
7931         (VECTOR_MODE (INT, HI, 16)): Likewise.
7932         (VECTOR_MODE (INT, QI, 32)): Likewise.
7933         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
7934         (INT_MODE (OI, 32)): Likewise.
7935
7936         * config/i386/i386.opt (mavx): New.
7937         (mfma): Likewise.
7938
7939         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
7940
7941         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
7942         (*mov<mode>_internal_avx): New.
7943         (*movv2sf_internal_rex64_avx): Likewise.
7944         (*movv2sf_internal_avx): Likewise.
7945
7946         * config/i386/predicates.md (const_4_to_5_operand): New.
7947         (const_6_to_7_operand): Likewise.
7948         (const_8_to_11_operand): Likewise.
7949         (const_12_to_15_operand): Likewise.
7950         (avx_comparison_float_operator): Likewise.
7951
7952         * config/i386/sse.md (AVX256MODEI): New.
7953         (AVX256MODE): Likewise.
7954         (AVXMODEQI): Likewise.
7955         (AVXMODE): Likewise.
7956         (AVX256MODEF2P): Likewise.
7957         (AVX256MODE2P): Likewise.
7958         (AVX256MODE4P): Likewise.
7959         (AVX256MODE8P): Likewise.
7960         (AVXMODEF2P): Likewise.
7961         (AVXMODEF4P): Likewise.
7962         (AVXMODEDCVTDQ2PS): Likewise.
7963         (AVXMODEDCVTPS2DQ): Likewise.
7964         (avxvecmode): Likewise.
7965         (avxvecpsmode): Likewise.
7966         (avxhalfvecmode): Likewise.
7967         (avxscalarmode): Likewise.
7968         (avxcvtvecmode): Likewise.
7969         (avxpermvecmode): Likewise.
7970         (avxmodesuffixf2c): Likewise.
7971         (avxmodesuffixp): Likewise.
7972         (avxmodesuffixs): Likewise.
7973         (avxmodesuffix): Likewise.
7974         (vpermilbits): Likewise.
7975         (pinsrbits): Likewise.
7976         (mov<mode>): Likewise.
7977         (*mov<mode>_internal): Likewise.
7978         (push<mode>1): Likewise.
7979         (movmisalign<mode>): Likewise.
7980         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7981         (avx_movdqu<avxmodesuffix>): Likewise.
7982         (avx_lddqu<avxmodesuffix>): Likewise.
7983         (<plusminus_insn><mode>3): Likewise.
7984         (*avx_<plusminus_insn><mode>3): Likewise.
7985         (*avx_vm<plusminus_insn><mode>3): Likewise.
7986         (mul<mode>3): Likewise.
7987         (*avx_mul<mode>3): Likewise.
7988         (*avx_vmmul<mode>3): Likewise.
7989         (divv8sf3): Likewise.
7990         (divv4df3): Likewise.
7991         (avx_div<mode>3): Likewise.
7992         (*avx_div<mode>3): Likewise.
7993         (*avx_vmdiv<mode>3): Likewise.
7994         (avx_rcpv8sf2): Likewise.
7995         (*avx_vmrcpv4sf2): Likewise.
7996         (sqrtv8sf2): Likewise.
7997         (avx_sqrtv8sf2): Likewise.
7998         (*avx_vmsqrt<mode>2): Likewise.
7999         (rsqrtv8sf2): Likewise.
8000         (avx_rsqrtv8sf2): Likewise.
8001         (*avx_vmrsqrtv4sf2): Likewise.
8002         (<code><mode>3): Likewise.
8003         (*avx_<code><mode>3_finite): Likewise.
8004         (*avx_<code><mode>3): Likewise.
8005         (*avx_vm<code><mode>3): Likewise.
8006         (*avx_ieee_smin<mode>3): Likewise.
8007         (*avx_ieee_smax<mode>3): Likewise.
8008         (avx_addsubv8sf3): Likewise.
8009         (avx_addsubv4df3): Likewise.
8010         (*avx_addsubv4sf3): Likewise.
8011         (*avx_addsubv2df3): Likewise.
8012         (avx_h<plusminus_insn>v4df3): Likewise.
8013         (avx_h<plusminus_insn>v8sf3): Likewise.
8014         (*avx_h<plusminus_insn>v4sf3): Likewise.
8015         (*avx_h<plusminus_insn>v2df3): Likewise.
8016         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
8017         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
8018         (*avx_maskcmp<mode>3): Likewise.
8019         (avx_nand<mode>3): Likewise.
8020         (*avx_<code><mode>3): Likewise.
8021         (*avx_nand<mode>3): Likewise.
8022         (*avx_<code><mode>3): Likewise.
8023         (*avx_cvtsi2ss): Likewise.
8024         (*avx_cvtsi2ssq): Likewise.
8025         (*avx_cvtsi2sd): Likewise.
8026         (*avx_cvtsi2sdq): Likewise.
8027         (*avx_cvtsd2ss): Likewise.
8028         (avx_cvtss2sd): Likewise.
8029         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
8030         (avx_cvtps2dq<avxmodesuffix>): Likewise.
8031         (avx_cvttps2dq<avxmodesuffix>): Likewise.
8032         (*avx_cvtsi2sd): Likewise.
8033         (*avx_cvtsi2sdq): Likewise.
8034         (avx_cvtdq2pd256): Likewise.
8035         (avx_cvtpd2dq256): Likewise.
8036         (avx_cvttpd2dq256): Likewise.
8037         (*avx_cvtsd2ss): Likewise.
8038         (*avx_cvtss2sd): Likewise.
8039         (avx_cvtpd2ps256): Likewise.
8040         (avx_cvtps2pd256): Likewise.
8041         (*avx_movhlps): Likewise.
8042         (*avx_movlhps): Likewise.
8043         (avx_unpckhps256): Likewise.
8044         (*avx_unpckhps): Likewise.
8045         (avx_unpcklps256): Likewise.
8046         (*avx_unpcklps): Likewise.
8047         (avx_movshdup256): Likewise.
8048         (avx_movsldup256): Likewise.
8049         (avx_shufps256): Likewise.
8050         (avx_shufps256_1): Likewise.
8051         (*avx_shufps_<mode>): Likewise.
8052         (*avx_loadhps): Likewise.
8053         (*avx_storelps): Likewise.
8054         (*avx_loadlps): Likewise.
8055         (*avx_movss): Likewise.
8056         (*vec_dupv4sf_avx): Likewise.
8057         (*vec_concatv2sf_avx): Likewise.
8058         (*vec_concatv4sf_avx): Likewise.
8059         (*vec_setv4sf_0_avx): Likewise.
8060         (*vec_setv4sf_avx): Likewise.
8061         (*avx_insertps): Likewise.
8062         (avx_vextractf128<mode>): Likewise.
8063         (vec_extract_lo_<mode>): Likewise.
8064         (vec_extract_hi_<mode>): Likewise.
8065         (vec_extract_lo_<mode>): Likewise.
8066         (vec_extract_hi_<mode>): Likewise.
8067         (vec_extract_lo_v16hi): Likewise.
8068         (vec_extract_hi_v16hi): Likewise.
8069         (vec_extract_lo_v32qi): Likewise.
8070         (vec_extract_hi_v32qi): Likewise.
8071         (avx_unpckhpd256): Likewise.
8072         (*avx_unpckhpd): Likewise.
8073         (avx_movddup256): Likewise.
8074         (*avx_movddup): Likewise.
8075         (avx_unpcklpd256): Likewise.
8076         (*avx_unpcklpd): Likewise.
8077         (avx_shufpd256): Likewise.
8078         (avx_shufpd256_1): Likewise.
8079         (*avx_punpckhqdq): Likewise.
8080         (*avx_punpcklqdq): Likewise.
8081         (*avx_shufpd_<mode>): Likewise.
8082         (*avx_storehpd): Likewise.
8083         (*avx_loadhpd): Likewise.
8084         (*avx_loadlpd): Likewise.
8085         (*avx_movsd): Likewise.
8086         (*vec_concatv2df_avx): Likewise.
8087         (*avx_<plusminus_insn><mode>3): Likewise.
8088         (*avx_<plusminus_insn><mode>3): Likewise.
8089         (*avx_mulv8hi3): Likewise.
8090         (*avxv8hi3_highpart): Likewise.
8091         (*avx_umulv8hi3_highpart): Likewise.
8092         (*avx_umulv2siv2di3): Likewise.
8093         (*avx_mulv2siv2di3): Likewise.
8094         (*avx_pmaddwd): Likewise.
8095         (*avx_mulv4si3): Likewise.
8096         (*avx_ashr<mode>3): Likewise.
8097         (*avx_lshr<mode>3): Likewise.
8098         (*avx_ashl<mode>3): Likewise.
8099         (*avx_<code><mode>3): Likewise.
8100         (*avx_eq<mode>3): Likewise.
8101         (*avx_gt<mode>3): Likewise.
8102         (*avx_nand<mode>3): Likewise.
8103         (*avx_nand<mode>3): Likewise.
8104         (*avx_<code><mode>3): Likewise.
8105         (*avx_<code><mode>3): Likewise.
8106         (*avx_packsswb): Likewise.
8107         (*avx_packssdw): Likewise.
8108         (*avx_packuswb): Likewise.
8109         (*avx_punpckhbw): Likewise.
8110         (*avx_punpcklbw): Likewise.
8111         (*avx_punpckhwd): Likewise.
8112         (*avx_punpcklwd): Likewise.
8113         (*avx_punpckhdq): Likewise.
8114         (*avx_punpckldq): Likewise.
8115         (*avx_pinsr<avxmodesuffixs>): Likewise.
8116         (*avx_pinsrq): Likewise.
8117         (*avx_loadld): Likewise.
8118         (*vec_extractv2di_1_rex64_avx): Likewise.
8119         (*vec_extractv2di_1_avx): Likewise.
8120         (*vec_dupv2di_avx): Likewise.
8121         (*vec_concatv2si_avx): Likewise.
8122         (*vec_concatv4si_1_avx): Likewise.
8123         (*vec_concatv2di_avx): Likewise.
8124         (*vec_concatv2di_rex64_avx): Likewise.
8125         (*avx_uavgv16qi3): Likewise.
8126         (*avx_uavgv8hi3): Likewise.
8127         (*avx_psadbw): Likewise.
8128         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
8129         (*avx_phaddwv8hi3): Likewise.
8130         (*avx_phadddv4si3): Likewise.
8131         (*avx_phaddswv8hi3): Likewise.
8132         (*avx_phsubwv8hi3): Likewise.
8133         (*avx_phsubdv4si3): Likewise.
8134         (*avx_phsubswv8hi3): Likewise.
8135         (*avx_pmaddubsw128): Likewise.
8136         (*avx_pmulhrswv8hi3): Likewise.
8137         (*avx_pshufbv16qi3): Likewise.
8138         (*avx_psign<mode>3): Likewise.
8139         (*avx_palignrti): Likewise.
8140         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8141         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8142         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8143         (*avx_mpsadbw): Likewise.
8144         (*avx_packusdw): Likewise.
8145         (*avx_pblendvb): Likewise.
8146         (*avx_pblendw): Likewise.
8147         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8148         (avx_ptest256): Likewise.
8149         (avx_roundp<avxmodesuffixf2c>256): Likewise.
8150         (*avx_rounds<ssemodesuffixf2c>): Likewise.
8151         (*avx_aesenc): Likewise.
8152         (*avx_aesenclast): Likewise.
8153         (*avx_aesdec): Likewise.
8154         (*avx_aesdeclast): Likewise.
8155         (avx_vzeroupper): Likewise.
8156         (avx_vzeroupper_rex64): Likewise.
8157         (avx_vpermil<mode>): Likewise.
8158         (avx_vpermilvar<mode>3): Likewise.
8159         (avx_vpermil2<mode>3): Likewise.
8160         (avx_vperm2f128<mode>3): Likewise.
8161         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8162         (avx_vbroadcastss256): Likewise.
8163         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
8164         (avx_vinsertf128<mode>): Likewise.
8165         (vec_set_lo_<mode>): Likewise.
8166         (vec_set_hi_<mode>): Likewise.
8167         (vec_set_lo_<mode>): Likewise.
8168         (vec_set_hi_<mode>): Likewise.
8169         (vec_set_lo_v16hi): Likewise.
8170         (vec_set_hi_v16hi): Likewise.
8171         (vec_set_lo_v32qi): Likewise.
8172         (vec_set_hi_v32qi): Likewise.
8173         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8174         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8175         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8176         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
8177         (vec_init<mode>): Likewise.
8178         (*vec_concat<mode>_avx): Likewise.
8179         (blendbits): Support V8SF and V4DF.
8180         (sse2_movq128): Support AVX.
8181         (<sse>_movnt<mode>): Likewise.
8182         (sse2_movntv2di): Likewise.
8183         (sse_rcpv4sf2): Likewise.
8184         (sse_sqrtv4sf2): Likewise.
8185         (sse_rsqrtv4sf2): Likewise.
8186         (<sse>_comi): Likewise.
8187         (<sse>_ucomi): Likewise.
8188         (sse_cvtss2si): Likewise.
8189         (sse_cvtss2si_2): Likewise.
8190         (sse_cvtss2siq): Likewise.
8191         (sse_cvtss2siq_2): Likewise.
8192         (sse_cvttss2si): Likewise.
8193         (sse_cvttss2siq): Likewise.
8194         (sse2_cvtsd2si): Likewise.
8195         (sse2_cvtsd2si_2): Likewise.
8196         (sse2_cvtsd2siq): Likewise.
8197         (sse2_cvtsd2siq_2): Likewise.
8198         (sse2_cvttsd2si): Likewise.
8199         (sse2_cvttsd2siq): Likewise.
8200         (sse2_cvtdq2pd): Likewise.
8201         (*sse2_cvtpd2dq): Likewise.
8202         (*sse2_cvttpd2dq): Likewise.
8203         (*sse2_cvtpd2ps): Likewise.
8204         (sse2_cvtps2pd): Likewise.
8205         (sse3_movshdup): Likewise.
8206         (sse3_movsldup): Likewise.
8207         (sse_storehps): Likewise.
8208         (*sse4_1_extractps): Likewise.
8209         (sse2_storelpd): Likewise.
8210         (vec_dupv2df_sse3): Likewise.
8211         (*vec_concatv2df_sse3): Likewise.
8212         (*sse4_1_pextrb): Likewise.
8213         (*sse4_1_pextrb_memory): Likewise.
8214         (*sse2_pextrw): Likewise.
8215         (*sse4_1_pextrw_memory): Likewise.
8216         (*sse4_1_pextrd): Likewise.
8217         (*sse4_1_pextrq): Likewise.
8218         (sse2_pshufd_1): Likewise.
8219         (sse2_pshuflw_1): Likewise.
8220         (sse2_pshufhw_1): Likewise.
8221         (*sse2_storeq_rex64): Likewise.
8222         (*vec_dupv4si): Likewise.
8223         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
8224         (sse2_pmovmskb): Likewise.
8225         (*sse2_maskmovdqu): Likewise.
8226         (*sse2_maskmovdqu_rex64): Likewise.
8227         (sse_ldmxcsr): Likewise.
8228         (sse_stmxcsr): Likewise.
8229         (abs<mode>2): Likewise.
8230         (sse4_1_movntdqa): Likewise.
8231         (sse4_1_phminposuw): Likewise.
8232         (sse4_1_extendv8qiv8hi2): Likewise.
8233         (*sse4_1_extendv8qiv8hi2): Likewise.
8234         (sse4_1_extendv4qiv4si2): Likewise.
8235         (*sse4_1_extendv4qiv4si2): Likewise.
8236         (sse4_1_extendv2qiv2di2): Likewise.
8237         (*sse4_1_extendv2qiv2di2): Likewise.
8238         (sse4_1_extendv4hiv4si2): Likewise.
8239         (*sse4_1_extendv4hiv4si2): Likewise.
8240         (sse4_1_extendv2hiv2di2): Likewise.
8241         (*sse4_1_extendv2hiv2di2): Likewise.
8242         (sse4_1_extendv2siv2di2): Likewise.
8243         (*sse4_1_extendv2siv2di2): Likewise.
8244         (sse4_1_zero_extendv8qiv8hi2): Likewise.
8245         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
8246         (sse4_1_zero_extendv4qiv4si2): Likewise.
8247         (*sse4_1_zero_extendv4qiv4si2): Likewise.
8248         (sse4_1_zero_extendv2qiv2di2): Likewise.
8249         (*sse4_1_zero_extendv2qiv2di2): Likewise.
8250         (sse4_1_zero_extendv4hiv4si2): Likewise.
8251         (*sse4_1_zero_extendv4hiv4si2): Likewise.
8252         (sse4_1_zero_extendv2hiv2di2): Likewise.
8253         (*sse4_1_zero_extendv2hiv2di2): Likewise.
8254         (sse4_1_zero_extendv2siv2di2): Likewise.
8255         (*sse4_1_zero_extendv2siv2di2): Likewise.
8256         (sse4_1_ptest): Likewise.
8257         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
8258         (sse4_2_pcmpestri): Likewise.
8259         (sse4_2_pcmpestrm): Likewise.
8260         (sse4_2_pcmpistri): Likewise.
8261         (sse4_2_pcmpistrm): Likewise.
8262         (aesimc): Likewise.
8263         (aeskeygenassist): Likewise.
8264
8265 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
8266
8267         * config/i386/predicates.md (vzeroall_operation): New.
8268
8269         * config/i386/sse.md (avx_vzeroall): New.
8270         (*avx_vzeroall): Likewise.
8271
8272 2008-08-28  Paul Brook  <paul@codesourcery.com>
8273             Mark Shinwell  <shinwell@codesourcery.com>
8274             Richard Earnshaw  <richard.earnshaw@arm.com>
8275
8276         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
8277         (TARGET_MIN_ANCHOR_OFFSET): New.
8278         (arm_override_options): Set correct anchor ranges for Thumb-1
8279         and Thumb-2 if required.
8280         (legitimize_pic_address): Handle case involving a TLS symbol
8281         reference with an addend.
8282         (arm_optimization_options): Enable section anchors at -O1 and
8283         above.
8284         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
8285         * config/arm/arm-protos.h (arm_optimization_options): New.
8286
8287 2008-08-28  Nick Clifton  <nickc@redhat.com>
8288
8289         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
8290         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
8291         attribute.
8292
8293         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
8294         * config/v850/v850.md (return): Remove frame size restriction.
8295
8296         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
8297
8298         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
8299
8300         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
8301
8302         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
8303
8304 2008-08-28  Paul Brook  <paul@codesourcery.com>
8305
8306         * config/arm/vfp11.md: Update license notice.
8307         * config/arm/cortex-r4.md: Ditto.
8308
8309 2008-08-28  Richard Guenther  <rguenther@suse.de>
8310
8311         PR tree-optimization/37207
8312         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
8313         tuplification bug.
8314
8315 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
8316
8317         PR c++/36741
8318         * tree.c (int_fits_type_p): Don't forget unsigned integers
8319           of type sizetype which higher end word equals -1.
8320
8321 2008-08-28  Ira Rosen  <irar@il.ibm.com>
8322
8323         * target.h (struct vectorize): Add new target builtin.
8324         * tree-vectorizer.c (destroy_loop_vec_info): Call
8325         vect_free_slp_instance instead of vect_free_slp_node.
8326         * tree-vectorizer.h (enum slp_load_perm_type): New.
8327         (struct _slp_instance): Add new fields.
8328         (SLP_INSTANCE_LOAD_PERMUTATION): New.
8329         (SLP_INSTANCE_LOADS): New.
8330         (vect_free_slp_tree): Remove.
8331         (vect_free_slp_instance): Declare.
8332         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
8333         (vectorizable_load): Add argument.
8334         (vect_transform_slp_perm_load): New.
8335         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
8336         vectorizable_load.
8337         (vect_get_place_in_interleaving_chain): New function.
8338         (vect_free_slp_tree): Make static.
8339         (vect_free_slp_instance): New function.
8340         (vect_build_slp_tree): Add new arguments. Allow load permutations and
8341         collect the load location in the interleaving chain.
8342         (vect_supported_slp_permutation_p): New function.
8343         (vect_supported_load_permutation_p): Likewise.
8344         (vect_analyze_slp_instance): In case of loads permutation, call
8345         vect_supported_load_permutation_p to check that the permutation is
8346         supported.
8347         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
8348         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
8349         (vect_create_mask_and_perm): New function.
8350         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
8351         (vectorizable_load): Add an argument. Don't keep the created vectors
8352         statements in the node if permutation is required. Call
8353         vect_transform_slp_perm_load to generate the permutation.
8354         (vect_transform_stmt): Add new argument. Call vectorizable_load with
8355         additional argument.
8356         (vect_schedule_slp_instance): In case of loads permutation, allocate
8357         vectorized statements structure for all the related SLP nodes. Call
8358         vect_transform_stmt with addditional argument.
8359         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
8360         * config/spu/spu.c (spu_builtin_vec_perm): New.
8361         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8362         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
8363         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
8364         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8365
8366 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
8367
8368         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
8369         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
8370         __gthread_cond_signal, __gthread_cond_timedwait,
8371         __gthread_cond_timedwait_recursive): New functions.
8372         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
8373         Likewise.
8374         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
8375         thread interfaces.
8376
8377 2008-08-28  Richard Guenther  <rguenther@suse.de>
8378
8379         PR middle-end/37005
8380         * fold-const.c (maybe_canonicalize_comparison_1): Require
8381         undefined overflow only for canonicalizing A +- CST cmp CST.
8382         Make sure to not generate new constants that are not inside
8383         their TYPE_MIN/MAX_VALUE range.
8384         (maybe_canonicalize_comparison): Remove undefined overflow
8385         checking from here.
8386         (fold_binary): Remove now duplicate folding.
8387
8388 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
8389
8390         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
8391         use not updated in the last change.
8392
8393 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8394
8395         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
8396         (IRA_COVER_CLASSES): Add FPUL_REGS.
8397
8398 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8399
8400         PR 37217
8401         * c-common.c (conversion_warning): Check for null operands.
8402
8403 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8404
8405         PR c/31673
8406         * c-decl.c (check_for_loop_decls): Improve error message. Give
8407         hint.
8408
8409 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8410
8411         PR c/37186
8412         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
8413         (convert_for_assignment): Pass corrent OPT_W* parameter to
8414         WARN_FOR_ASSIGNMENT.
8415
8416 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
8417
8418         PR c++/35321
8419         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
8420
8421 2008-08-27  Paul Brook  <paul@codesourcery.com>
8422
8423         * config.gcc: Loosen checks for arm uclinux eabi targets.
8424
8425 2008-08-27  Paul Brook  <paul@codesourcery.com>
8426
8427         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
8428         _clzsi2.
8429         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
8430
8431 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
8432
8433         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
8434         the enumerators of an ENUMERAL_TYPE.
8435         * dbxout.c (dbxout_type): Ditto.
8436
8437 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8438
8439         PR rtl-opt/37219
8440         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
8441         (fwprop_addr): Check that the loop_father is not the outer loop.
8442
8443 2008-08-26  Paul Brook  <paul@codesourcery.com>
8444
8445         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
8446         Remove documentation entry for fmul type.
8447         Use fmuls to annotate single-precision multiplication patterns,
8448         fmuld to annotate double-precision multiplication patterns,
8449         fmacs to annotate single-precision multiply-accumulate patterns
8450         and fmacd to annotate double-precision multiply-accumulate patterns.
8451         * config/arm/vfp11.md: Update reservations accordingly.
8452         * config/arm/arm.md: Note that certain values of the "type"
8453         attribute are documented in vfp.md.
8454         * config/arm/arm1020e.md: Remove out of date duplicate comment.
8455         (v10_cvt): Use new fmul types.
8456
8457 2008-08-26  Paul Brook  <paul@codesourcery.com>
8458
8459         * config/arm/vfp.md: Move pipeline description for VFP11 to...
8460         * config/arm/vfp11.md: ...here.  New.
8461         * config/arm/arm.md: Include vfp11.md.
8462
8463 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
8464
8465         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
8466         parameter to inform call.
8467
8468 2008-08-26  Jeff Law  <law@redhat.com>
8469
8470         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
8471         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
8472         preferred class when copying a constant into a partial word register.
8473
8474 2008-08-26  Ben Elliston  <bje@au.ibm.com>
8475
8476         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
8477         * cp/typeck.c: Likewise.
8478         * cp/tree.c: Likewise.
8479         * gimple-low.c: Likewise.
8480         * jump.c: Likewise.
8481
8482 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
8483
8484         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
8485         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
8486
8487         * doc/passes.texi: Describe IRA.
8488
8489         * doc/tm.texi (IRA_COVER_CLASSES,
8490         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
8491
8492         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
8493         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
8494         -fira-propagate-cost, -fno-ira-share-save-slots,
8495         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
8496
8497         * flags.h (ira_algorithm): New enumeration.
8498         (flag_ira_algorithm, flag_ira_verbose): New external variable
8499         declarations.
8500
8501         * postreload.c (gate_handle_postreload): Don't do post reload
8502         optimizations unless the reload is completed.
8503
8504         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
8505         IRA.
8506
8507         * tree-pass.h (pass_ira): New external variable declaration.
8508
8509         * reload.h: Add 2008 to the Copyright.
8510
8511         * cfgloopanal.c: Include params.h.
8512         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
8513         mode.
8514
8515         * params.h (IRA_MAX_LOOPS_NUM): New macro.
8516
8517         * toplev.c (ira.h): New include.
8518         (flag_ira_algorithm, flag_ira_verbose): New external variables.
8519         (backend_init_target): Call ira_init.
8520         (backend_init): Call ira_init_once.
8521         (finalize): Call finish_ira_once.
8522
8523         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
8524         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
8525         external variables.
8526
8527         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
8528         may_move_out_cost): New external variable declarations.
8529         (move_table): New typedef.
8530
8531         * caller-save.c: Include headers output.h and ira.h.
8532         (no_caller_save_reg_set): New global variable.
8533         (save_slots_num, save_slots): New variables.
8534         (reg_save_code, reg_restore_code, add_stored_regs): Add
8535         prototypes.
8536         (init_caller_save): Set up no_caller_save_reg_set.
8537         (init_save_areas): Reset save_slots_num.
8538         (saved_hard_reg): New structure.
8539         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
8540         (initiate_saved_hard_regs, new_saved_hard_reg,
8541         finish_saved_hard_regs, saved_hard_reg_compare_func): New
8542         functions.
8543         (setup_save_areas): Add code for sharing stack slots.
8544         (all_blocks): New variable.
8545         (save_call_clobbered_regs): Process pseudo-register too.
8546         (mark_set_regs): Process pseudo-register too.
8547         (insert_one_insn): Put the insn after bb note in a empty basic
8548         block.  Add insn check.
8549
8550         * global.c (eliminable_regset): Make it external.
8551         (mark_elimination): Use DF_LR_IN for IRA.
8552         (pseudo_for_reload_consideration_p): New.
8553         (build_insn_chain): Make it external.  Don't ignore spilled
8554         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
8555         (gate_handle_global_alloc): New function.
8556         (pass_global_alloc): Add the gate function.
8557
8558         * opts.c (decode_options): Set up flag_ira.  Print the warning for
8559         -fira.
8560         (common_handle_option): Process -fira-algorithm and -fira-verbose.
8561
8562         * timevar.def (TV_IRA, TV_RELOAD): New passes.
8563
8564         * regmove.c (regmove_optimize): Don't do replacement of output for
8565         IRA.
8566
8567         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
8568         New external variable declarations.
8569
8570         * local-alloc.c (update_equiv_regs): Make it external.  Return
8571         true if jump label rebuilding should be done.  Rescan new_insn for
8572         notes.
8573         (gate_handle_local_alloc): New function.
8574         (pass_local_alloc): Add the gate function.
8575
8576         * alias.c (value_addr_p, stack_addr_p): New functions.
8577         (nonoverlapping_memrefs_p): Use them for IRA.
8578
8579         * common.opt (fira, fira-algorithm, fira-coalesce,
8580         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
8581         fira-verbose): New options.
8582
8583         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
8584         move_cost, may_move_in_cost, may_move_out_cost): Make the
8585         variables external.
8586         (move_table): Remove typedef.
8587         (init_move_cost): Make it external.
8588         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
8589         functions.
8590
8591         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
8592         setup_reg_classes): New function prototypes.
8593         (eliminable_regset): New external variable declaration.
8594         (build_insn_chain, update_equiv_regs): New function prototypes.
8595
8596         * Makefile.in (IRA_INT_H): New definition.
8597         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
8598         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
8599         (reload1.o, toplev.o): Add dependence on ira.h.
8600         (cfgloopanal.o): Add PARAMS_H.
8601         (caller-save.o): Add dependence on output.h and ira.h.
8602         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
8603         ira-emit.o, ira-lives.o): New entries.
8604
8605         * passes.c (pass_ira): New pass.
8606
8607         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
8608
8609         * reload1.c (ira.h): Include the header.
8610         (changed_allocation_pseudos): New bitmap.
8611         (init_reload): Initiate the bitmap.
8612         (compute_use_by_pseudos): Permits spilled registers in FROM.
8613         (temp_pseudo_reg_arr): New variable.
8614         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
8615         IRA.  Call alter_reg with the additional parameter.  Don't clear
8616         spilled_pseudos for IRA.  Restore original insn chain for IRA.
8617         Clear changed_allocation_pseudos at the end of reload.
8618         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
8619         (hard_regno_to_pseudo_regno): New variable.
8620         (count_pseudo): Check spilled pseudos.  Set up
8621         hard_regno_to_pseudo_regno.
8622         (count_spilled_pseudo): Check spilled pseudos. Update
8623         hard_regno_to_pseudo_regno.
8624         (find_reg): Use better_spill_reload_regno_p.  Check
8625         hard_regno_to_pseudo_regno.
8626         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
8627         code for IRA.
8628         (eliminate_regs_1): Use additional parameter for alter_reg.
8629         (finish_spills): Set up pseudo_previous_regs only for spilled
8630         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
8631         more arguments.  Don't clear live_throughout and dead_or_set for
8632         spilled pseudos.  Use additional parameter for alter_reg.  Call
8633         mark_allocation_change.  Set up changed_allocation_pseudos.
8634         Remove sanity check.
8635         (emit_input_reload_insns, delete_output_reload): Use additional
8636         parameter for alter_reg.  Call mark_allocation_change.
8637         (substitute, gen_reload_chain_without_interm_reg_p): New
8638         functions.
8639         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
8640
8641         * testsuite/gcc.dg/20080410-1.c: New file.
8642
8643         * config/s390/s390.h (IRA_COVER_CLASSES,
8644         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
8645
8646         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
8647
8648         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
8649
8650         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8651
8652         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
8653
8654         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8655
8656         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
8657
8658         2008-08-24  Jeff Law  <law@redhat.com>
8659         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
8660         when ignoring unavailable registers.
8661
8662         2008-08-24  Jeff Law  <law@redhat.com>
8663         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
8664         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
8665         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
8666         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
8667
8668         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
8669         * ira-build.c (allocno_range_compare_func): Stabilize sort.
8670
8671         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
8672         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
8673         * reload1.c (find_reg): Process registers in register allocation order.
8674
8675         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8676         * toplev.c (backend_init_target): Move ira_init call from
8677         here...
8678         (lang_dependent_init_target): ...to here.
8679
8680         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8681         * ira.c (setup_class_subset_and_memory_move_costs): Don't
8682         calculate memory move costs for NO_REGS.
8683
8684         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
8685         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
8686         STACK_REGS is defined.
8687
8688         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
8689         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
8690
8691         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
8692         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
8693
8694         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
8695         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
8696         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
8697         barrier.
8698
8699 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
8700             Dorit Nuzman  <dorit@il.ibm.com>
8701
8702         * gcc/config/spu/spu.md (vec_extract_evenv4si,
8703         vec_extract_evenv4sf, vec_extract_evenv8hi,
8704         vec_extract_evenv16qi, vec_extract_oddv4si,
8705         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
8706         vec_interleave_highv4sf, vec_interleave_lowv4sf,
8707         vec_interleave_highv4si, vec_interleave_lowv4si,
8708         vec_interleave_highv8hi, vec_interleave_lowv8hi,
8709         vec_interleave_highv16qi, vec_interleave_lowv16qi,
8710         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
8711
8712 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
8713
8714         PR target/36756
8715         * config/rs6000/rs6000.c (optimization_options): Don't default to
8716         section anchors without toplevel reorder.
8717
8718 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8719
8720         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
8721         (mfc_end_critical_section): Likewise.
8722
8723 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8724
8725         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
8726         all type qualifiers from element type to vector type.
8727
8728 2008-08-25  David Daney  <ddaney@avtrex.com>
8729
8730         * config/mips/mips.md (immediate_insn): Move up in file, fix
8731         comment typo, reformat.
8732         (fetchop_bit, atomic_hiqi_op memory_barrier,
8733         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
8734         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
8735         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
8736         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
8737         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
8738         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
8739         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
8740         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
8741         sync_old_nand<mode>, sync_new_nand<mode>,
8742         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
8743         test_and_set_12): Moved to sync.md.
8744         (sync.md): Include.
8745         * config/mips/sync.md: New file.
8746
8747 2008-08-25  Richard Henderson  <rth@redhat.com>
8748
8749         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
8750         (regsave): Likewise.
8751         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
8752         (output_cfi_directive): Likewise.
8753         (div_data_align): New.
8754         (output_cfi): Use it.
8755
8756 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
8757
8758         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
8759         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
8760         (TARGET_OCTEON): New macro.
8761         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
8762         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
8763         (ISA_HAS_POP): New macro.
8764         * config/mips/driver-native.c (host_detect_local_cpu): Handle
8765         Octeon.
8766         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
8767         Handle Octeon.
8768         * config/mips/mips.md (cpu): Add octeon.
8769         (type): Add pop attribute value.
8770         (popcount<mode>2): New pattern.
8771         * doc/invoke.texi (-march=@var{arch}): Add octeon.
8772
8773 2008-08-24  Jan Hubicka  <jh@suse.cz>
8774
8775         * doc/invoke.texi (-fipa-cp-clone): New option.
8776         (-fipa-cp): Update docs.
8777         (--param ipcp-unit-growth):New.
8778         * ipa-cp.c: Include fibheap.h, params.h
8779         (ipcp_initialize_node_lattices): When not cloning, all externally
8780         visible functions are bottom.
8781         (ipcp_need_redirect_p): Accept clones.
8782         (ipcp_insert_stage): Use cost driven heuristics.
8783         (max_count, dead_nodes): New static vars.
8784         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
8785         ipcp_const_param_count): New functions.
8786         * common.opt (ipa-cp-clone): New command line option.
8787         * params.def (ipcp-unit-growth): New.
8788
8789 2008-08-24  Jan Hubicka  <jh@suse.cz>
8790
8791         * tree-inline.c (tree_function_versioning): Look harder
8792         for referenced vars.
8793
8794 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
8795
8796         PR tree-optimization/37185
8797         * matrix-reorg.c (transform_access_sites): Update changed stmt.
8798
8799 2008-08-23  Jan Hubicka  <jh@suse.cz>
8800
8801         * ipa-cp.c (ipcp_analyze_node): New function.
8802         (ipcp_update_cloned_node): Use it.
8803         (ipcp_init_stage): Likewise.
8804         * ipa-inline.c (function_insertion_hook_holder): New static var.
8805         (analyze_function): Break out from ....
8806         (inline_generate_summary): Here; register insertion hook.
8807         (cgraph_decide_inlining): Remove hook.
8808         (add_new_function): New function.
8809
8810 2008-08-23  Jan Hubicka  <jh@suse.cz>
8811
8812         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
8813
8814 2008-08-23  Jan Hubicka  <jh@suse.cz>
8815
8816         * ipa-cp.c (constant_val_insert): Remove.
8817         (ipcp_propagate_one_const): Remove.
8818         (ipcp_create_replace_map): Always insert replacements to the map.
8819         (ipcp_insert_stage): Do not try to insert statements by hand.
8820         * tree-inline.c (insert_init_stmt): Break out from ...
8821         (setup_one_parameter): ... here; allow NULL BB pointer.
8822         (tree_function_versioning): Use setup_one_parameter to process
8823         replacement map.
8824
8825 2008-08-23  Jan Hubicka  <jh@suse.cz>
8826
8827         * tree.c (decl_address_ip_invariant_p): New function.
8828         * tree.h (decl_address_ip_invariant_p): Declare.
8829         * gimple.c (strip_invariant_refs): Break out from ...
8830         (is_gimple_invariant_address): ... here
8831         (is_gimple_ip_invariant_address): New function.
8832         (is_gimple_ip_invariant): New function.
8833         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
8834         Declare.
8835
8836         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
8837         (ipcp_lat_is_insertable): All constants are insertable.
8838         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
8839         IPA_CONST_VALUE_REF.
8840         (ipcp_initialize_node_lattices): Propagate all types of operands.
8841         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
8842         (ipcp_create_replace_map): Reformat.
8843         (ipcp_need_redirect_p): Simplify.
8844         (ipcp_insert_stage): Check that argument is used before clonning.
8845         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
8846         IPA_CONST_REF.
8847         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
8848         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
8849         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
8850         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
8851         (jump_func_type): Remove IPA_CONST_VALUE_REF.
8852         * tree-inline.c (tree_function_versioning): Add variables referenced
8853         by replacing trees.
8854
8855 2008-08-23  Jan Hubicka  <jh@suse.cz>
8856
8857         PR target/37094
8858         * i386.c (standard_80387_constant_p): Use optimize_size.
8859
8860 2008-08-23  Ira Rosen  <irar@il.ibm.com>
8861
8862         PR tree-optimization/37161
8863         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
8864         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
8865         (vect_determine_vectorization_factor): Move the scalar type
8866         retrieval to vect_get_smallest_scalar_type.
8867         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
8868         scalar type. Remove redundant computation.
8869         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
8870         (vect_get_slp_defs): Take the type of RHS into account if
8871         necessary by calling vect_get_smallest_scalar_type. Call
8872         vect_get_constant_vectors with additional argument.
8873
8874 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8875
8876         PR 35648
8877         * doc/invoke.texi (Wwrite-strings): Clarify description.
8878
8879 2008-08-23  Ira Rosen  <irar@il.ibm.com>
8880
8881         PR tree-optimization/37174
8882         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
8883         def stmt is a part of the loop before accessing its stmt_vec_info.
8884
8885 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
8886
8887         PR target/11259
8888         * config/avr/avr.md (UNSPEC_SWAP): New constants.
8889         (*swap): New insn pattern.
8890         (*ashlqi3): Rename from ashlqi3 insn pattern.
8891         (ashlqi3): New expanders.
8892         (*lshrqi3): Rename from lshrqi3 insn pattern.
8893         (lshrqi3): New expanders.
8894         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
8895         lshrqi3_const5, lshrqi3_const6): New splitters.
8896         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
8897         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
8898         peephole2 patterns.
8899
8900 2008-08-22  Richard Guenther  <rguenther@suse.de>
8901
8902         PR tree-optimization/37078
8903         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
8904         [+INF, +INF] ranges.
8905
8906 2008-08-22  Richard Guenther  <rguenther@suse.de>
8907
8908         PR tree-optimization/37143
8909         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
8910         a conversion statement instead of a copy.
8911
8912 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
8913
8914         PR target/37184
8915         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
8916         CCCmode, CCOmode and CCSmode destination modes.
8917
8918         PR target/37191
8919         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
8920         from different units in a single alternative.
8921         (*vec_extractv2sf_1): Ditto.
8922         (*vec_extractv2si_0): Ditto.
8923         (*vec_extractv2si_1): Ditto.
8924         * config/i386/sse.md (sse2_storehpd): Ditto.
8925         (sse2_storelpd): Ditto.
8926         (sse2_loadhpd): Ditto.
8927         (sse2_loadlpd): Ditto.
8928
8929         PR target/37197
8930         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
8931         (popcountsi2): Ditto.
8932         (clzdi2_abm): Ditto.
8933         (popcountdi2): Ditto.
8934         (clzhi2_abm): Ditto.
8935         (popcounthi2): Ditto.
8936
8937 2008-08-22  Richard Guenther  <rguenther@suse.de>
8938
8939         PR middle-end/36548
8940         PR middle-end/37125
8941         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
8942         if the multiplication does not overflow.
8943
8944 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
8945
8946         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
8947
8948 2008-08-21  Richard Henderson  <rth@redhat.com>
8949
8950         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
8951         spurrious comma from test.
8952         * configure: Rebuild.
8953
8954 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8955
8956         PR 30457
8957         * builtins.c (fold_builtin_next_arg): Add warning about undefined
8958         behaviour.
8959
8960 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
8961
8962         * c-tree.h (grokfield): New argument.
8963         * c-decl.c (grokfield): Handle new location argument.
8964         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
8965
8966 2008-08-21  Richard Guenther  <rguenther@suse.de>
8967
8968         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
8969
8970 2008-08-21  Jan Hubicka  <jh@suse.cz>
8971
8972         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
8973         (cgraph_add_function_insertion_hook,
8974         cgraph_remove_function_insertion_hook,
8975         cgraph_call_function_insertion_hooks): New functions.
8976         * cgraph.h (cgraph_add_function_insertion_hook,
8977         cgraph_remove_function_insertion_hook,
8978         cgraph_call_function_insertion_hooks): Declare.
8979         * ipa-reference.c (function_insertion_hook_holder): New variable.
8980         (check_operand, look_for_address_of): When checking late, do not care
8981         about module bitmaps.
8982         (add_new_function): New function.
8983         (generate_summary): Register hooks; zero module bitmaps.
8984         (propagate): Unregister hooks.
8985         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
8986         (add_new_function): New function.
8987         (generate_summary): Register hook.
8988         (propagate): Remove hook.
8989
8990         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
8991
8992         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
8993         * ipa-cp.c (ipcp_update_cloned_node): New function.
8994         (build_const_val): Handle functions correctly; bring type logic
8995         into sync with tree-inline.c
8996         (ipcp_init_stage):  Take care of computing stuff needed by
8997         indirect inlining; update clones.
8998         (ipcp_generate_summary): Break out of ipcp_driver.
8999         (ipcp_driver): Do only execution and transformation.
9000         (pass_ipa_cp): Make IPA_PASS.
9001         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
9002         offset to address.
9003         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
9004         ipcp, some info is already available.
9005         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
9006         * tree-inline.c (remap_ssa_name): Unshare expression.
9007
9008 2008-08-21  Richard Guenther  <rguenther@suse.de>
9009
9010         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
9011         a PHI ask VN if it is already available.
9012         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
9013         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
9014
9015 2008-08-21  Richard Guenther  <rguenther@suse.de>
9016
9017         PR middle-end/36817
9018         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
9019         makes sure to produce a result of the correct type.
9020
9021 2008-08-21  Jan Hubicka  <jh@suse.cz>
9022         Backport from LTO branch:
9023
9024         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
9025                     Jan Hubicka  <jh@suse.cz>
9026
9027         * ipa-pure-const.c
9028         (init_state, finish_state, set_function_state, generate_summary):
9029         New functions.
9030         (scan_stmt): Renamed from scan_function.  Changed to keep state in
9031         local static vars rather than cgraph aux field.
9032         (propagate): Renamed from static_execute. Changed to keep state in
9033         local static vars rather than cgraph aux field.
9034         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
9035         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
9036
9037         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
9038
9039         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
9040         * ipa-reference.c (init_function_info, generate_summary,
9041         propagate): New functions.
9042         (analyze_function):  Call init_function_info.
9043         (static_execute): Stripped into generate_summary and propagate.
9044         (pass_ipa_reference): Made into ipa_opt_pass.
9045
9046 2008-08-21  Richard Guenther  <rguenther@suse.de>
9047
9048         PR tree-optimization/37181
9049         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
9050         folding result.
9051         (extract_range_from_unary_expr): Likewise.
9052
9053 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9054
9055         * diagnostic.c (pedwarn_at): Rename as pedwarn.
9056         (pedwarn): Delete.
9057         * toplev.h (pedwarn_at): Likewise.
9058         * builtins.c: Update all calls to pedwarn.
9059         * c-lex.c: Likewise.
9060         * toplev.c: Likewise.
9061         * c-tree.h: Likewise.
9062         * c-decl.c: Likewise.
9063         * c-errors.c: Likewise.
9064         * c-typeck.c: Likewise.
9065         * c-common.c: Likewise.
9066         * c-parser.c: Likewise.
9067
9068 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
9069
9070         PR target/31070
9071         * config/sparc/sparc.c (function_arg_slotno): Handle structure
9072         with MODE_VECTOR_INT mode.
9073
9074 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9075
9076         PR middle-end/179
9077         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
9078         initialized outside the current module.
9079         (warn_uninitialized_var): Ignore left-hand side when walking the
9080         trees. Ignore address expressions. Examine VUSE operands in gimple
9081         statements with a variable declaration on the right-hand side.
9082
9083 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9084
9085         PR bootstrap/37155
9086         * rtlanal.c (subreg_offset_representable_p): Revert last change.
9087
9088 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9089
9090         PR 35701
9091         * c-common.c (conversion_warning): Do not warn if applying bit-and
9092         operator to unsigned constant that fits in the target type.
9093
9094 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9095
9096         PR c++/35602
9097         * c-common.c (conversion_warning): Do not warn for artificial
9098         expressions.
9099
9100 2008-08-20  Richard Guenther  <rguenther@suse.de>
9101
9102         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
9103         (extract_range_from_binary_expr): Fall back to constant propagation.
9104         (extract_range_from_unary_expr): Likewise.
9105
9106 2008-08-20  Richard Guenther  <rguenther@suse.de>
9107
9108         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
9109         with TREE_THIS_VOLATILE on shared nodes.
9110         (fold_stmt_r): Likewise.
9111
9112 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
9113
9114         PR c/37171
9115         * c-parser.c (c_parser_attributes): For keywords use canonical
9116         spelling for attr_name.
9117
9118 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9119
9120         * value-prof.c (check_counter): Revert wrong call to error.
9121
9122 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9123
9124         * profile.c: Update calls to inform.
9125         * value-prof.c: Update calls to inform.
9126
9127 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9128
9129         * diagnostic.c (inform): Add an explicit location_t parameter.
9130         * toplev.h (inform): Update declaration.
9131         * builtins.c: Update all calls to inform.
9132         * c-common.c: Likewise.
9133         * c-decl.c: Likewise.
9134         * c-opts.c: Likewise.
9135         * c-pch.c: Likewise.
9136         * c-pragma.c: Likewise.
9137         * c-typeck.c: Likewise.
9138         * coverage.c: Likewise.
9139         * opts.c: Likewise.
9140         * toplev.c: Likewise.
9141         * tree-cfg.c: Likewise.
9142         * tree-ssa.c: Likewise.
9143
9144 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         PR target/37169
9147         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
9148         V2DI mode, for SSE4.1, use movq instead of vector set if the
9149         second element is zero and inter-unit moves are OK.
9150
9151 2008-08-20  Richard Guenther  <rguenther@suse.de>
9152
9153         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
9154         properly handle conversion/copy chains after tuplification.
9155
9156 2008-08-20  Richard Guenther  <rguenther@suse.de>
9157
9158         * passes.c (init_optimization_passes): Move the second
9159         forwprop pass before alias computation.  Remove the second
9160         DCE pass.  Remove the first dominator and phi copy/const
9161         prop passes.
9162
9163 2008-08-20  Nick Clifton  <nickc@redhat.com>
9164
9165         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
9166         support of this feature.  Do not assume that a sufficiently new
9167         assembler will support the feature regardless of the target type.
9168         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9169         * configure: Regenerate.
9170
9171 2008-08-20  Richard Guenther  <rguenther@suse.de>
9172
9173         * tree-vrp.c (found_in_subgraph): Remove.
9174         (live): New global static.
9175         (live_on_edge): New function.
9176         (blocks_visited): Remove.
9177         (register_edge_assert_for_2): Use live_on_edge.
9178         (find_conditional_asserts): Remove code dealing with
9179         found_in_subgraph.  Do not walk the CFG.
9180         (find_switch_asserts): Likewise.
9181         (find_assert_locations_1): Renamed from find_assert_locations.
9182         Move finding assert locations for conditional and switch
9183         statements first.  Update live bitmap.  Do not walk the CFG.
9184         (find_assert_locations): New function.
9185         (insert_range_assertions): Remove entry of CFG walk.
9186         Adjust call to find_assert_locations.
9187         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
9188         that only can appear because of fake exit edges but assert we
9189         never try to insert on those.
9190         (fini_pre): Do not remove fake exit edges here...
9191         (execute_pre): ...but here, before committing edge inserts.
9192
9193 2008-08-19  Richard Guenther  <rguenther@suse.de>
9194
9195         * passes.c (init_optimization_passes): Exchange store-ccp
9196         with a ccp pass.
9197
9198 2008-08-19  Rafael Espíndola  <espindola@google.com>
9199
9200         * varasm.c (weak_decls): Move earlier in the file.
9201         (assemble_external): Add weak decls to the weak_decls list.
9202         (declare_weak): Don't add decls to the weak_decls list.
9203
9204 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9205
9206         PR target/37157
9207         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
9208         before (sse2_shufpd_<mode>).
9209
9210 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
9211
9212         PR debug/37156
9213         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
9214         * tree.c (block_nonartificial_location): Likewise.
9215
9216 2008-08-19  Richard Guenther  <rguenther@suse.de>
9217
9218         PR tree-optimization/35972
9219         PR tree-optimization/23094
9220         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
9221         parameter.
9222         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
9223         handle MISALIGNED_INDIRECT_REF.
9224         (get_ref_from_reference_ops): New helper.
9225         (vn_reference_lookup_pieces): Walk the use-def chain using the
9226         alias-oracle if requested.
9227         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
9228         walking the use-def chain.
9229         (compute_avail): But not here.
9230         (create_component_ref_by_pieces_1): Properly handle
9231         MISALIGNED_INDIRECT_REF.
9232         (do_regular_insertion): Handle fully redundant
9233         expressions after PHI-translation also for SSA_NAME values, not
9234         only constants.  Correctly use edoubleprime for that.
9235
9236 2008-08-19  Ira Rosen  <irar@il.ibm.com>
9237
9238         * tree-vectorizer.c (supportable_widening_operation): Support
9239         multi-step conversion, return the number of steps in such conversion
9240         and the required intermediate types.
9241         (supportable_narrowing_operation): Likewise.
9242         * tree-vectorizer.h (vect_pow2): New function.
9243         (supportable_widening_operation): Change argument types.
9244         (supportable_narrowing_operation): Likewise.
9245         (vectorizable_type_promotion): Add an argument.
9246         (vectorizable_type_demotion): Likewise.
9247         * tree-vect-analyze.c (vect_analyze_operations): Call
9248         vectorizable_type_promotion and vectorizable_type_demotion with
9249         additional argument.
9250         (vect_get_and_check_slp_defs): Detect patterns.
9251         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
9252         types.
9253         (vect_analyze_slp_instance): Don't fail in case of multiple types.
9254         Call vect_build_slp_tree with correct arguments. Calculate unrolling
9255         factor according to the smallest type in the loop.
9256         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
9257         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
9258         supportable_widening_operation with correct arguments.
9259         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
9260         operands lists according to the number of vector statements in left
9261         or right node, if exists.
9262         (vect_gen_widened_results_half): Remove unused argument.
9263         (vectorizable_conversion): Call supportable_widening_operation,
9264         supportable_narrowing_operation, and vect_gen_widened_results_half
9265         with correct arguments.
9266         (vectorizable_assignment): Change documentation, support multiple
9267         types in SLP.
9268         (vectorizable_operation): Likewise.
9269         (vect_get_loop_based_defs): New function.
9270         (vect_create_vectorized_demotion_stmts): Likewise.
9271         (vectorizable_type_demotion): Support loop-aware SLP and general
9272         multi-step conversion. Call vect_get_loop_based_defs and
9273         vect_create_vectorized_demotion_stmts for transformation.
9274         (vect_create_vectorized_promotion_stmts): New function.
9275         (vectorizable_type_promotion): Support loop-aware SLP and general
9276         multi-step conversion. Call vect_create_vectorized_promotion_stmts
9277         for transformation.
9278         (vectorizable_store): Change documentation, support multiple
9279         types in SLP.
9280         (vectorizable_load): Likewise.
9281         (vect_transform_stmt): Pass SLP_NODE to
9282         vectorizable_type_promotion and vectorizable_type_demotion.
9283         (vect_schedule_slp_instance): Move here the calculation of number
9284         of vectorized statements for each node from...
9285         (vect_schedule_slp): ... here.
9286         (vect_transform_loop): Call vect_schedule_slp without the last
9287         argument.
9288
9289 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
9290
9291         PR bootstrap/37152
9292         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
9293         to == in assert statement.
9294         (vectorizable_reduction): Fix typo.
9295
9296 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9297
9298         PR bootstrap/37153
9299         * value-prof.c (check_counter): Dereference pointer to overall
9300         count when printing it.
9301
9302 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9303
9304         * profile.h: Really add it.
9305
9306 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9307
9308         * mcf.c: Really add it.
9309
9310 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
9311             Vinodha Ramasamy  <vinodha@google.com>
9312
9313         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
9314         count_scale.
9315         * value-prof.c (check_counter): Fix the counter if
9316         flag_profile_correction is true.
9317         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9318         tree_mod_subtract_transform):
9319         Follow check_counter parameter change.
9320         * common.opt (fprofile-correction): New option.
9321         * mcf.c: New file.
9322         * profile.h: Likewise.
9323         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
9324         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
9325         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
9326         functions.
9327         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
9328         flag_profile_correction is set.
9329
9330 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
9331
9332         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
9333
9334 2008-08-18  Tomas Bily  <tbily@suse.cz>
9335
9336         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
9337         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
9338         CONVERT_EXPR_P.
9339         * tree-data-ref.c (split_constant_offset_1): Likewise.
9340         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
9341         * tree-sra.c (sra_walk_expr): Likewise.
9342         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
9343         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9344         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
9345         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
9346         Likewise.
9347         * gimple.c (gimple_assign_unary_nop_p): Likewise.
9348         * tree-vect-transform.c (vectorizable_type_demotion)
9349         (vectorizable_type_promotion): Likewise.
9350         * tree-inline.c (expand_call_inline):
9351         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9352         (forward_propagate_addr_expr_1, forward_propagate_comparison)
9353         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9354         * expr.c (expand_expr_real_1): Likewise.
9355         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
9356         (gimple_assign_unary_useless_conversion_p): Likewise.
9357         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9358         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
9359         * fold-const.c (fold_unary): Likewise.
9360         * tree.h (CONVERT_EXPR_P): Likewise.
9361         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
9362         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9363         * tree-vrp.c:
9364         (register_edge_assert_for_2, extract_range_from_unary_expr)
9365         (register_edge_assert_for_1): Likewise.
9366
9367 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9368
9369         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
9370         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
9371         (enum real_value_const): Delete.
9372         (get_real_const): Delete.
9373         * real.c (get_real_const): Delete.
9374         (dconst_e_ptr): Define.
9375         (dconst_third_ptr): Define.
9376         (dconst_sqrt2_ptr): Define.
9377         * builtins.c: Update all callers.
9378
9379 2008-08-18  Richard Guenther  <rguenther@suse.de>
9380
9381         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
9382         statement iterator after statement removal.
9383
9384 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
9385
9386         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
9387         (detect_processor_freebsd): Likewise.
9388         (host_detect_local_cpu): Call newly added functions for FreeBSD.
9389
9390 2008-08-18  Richard Guenther  <rguenther@suse.de>
9391
9392         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
9393         and loads have the correct types.
9394
9395 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9396
9397         PR cpp/7263
9398         * c-opts.c (cpp_opts): Remove static.
9399         * c-parser.c (cpp_opts): Declare it extern.
9400         (disable_extension_diagnostics): Handle cpp options.
9401         (enable_extension_diagnostics): Likewise.
9402
9403 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9404
9405         * diagnostics.c (permerror_at): Rename as permerror.
9406         (permerror): Delete.
9407         * toplev.h: Likewise.
9408
9409 2008-08-18  Richard Guenther  <rguenther@suse.de>
9410
9411         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
9412         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
9413         Move call_cdce before build_alias.  Move copyrename2,
9414         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
9415         right after final inlining.
9416         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
9417         (pass_build_cfg): But instead via TODO_dump_func.
9418
9419 2008-08-18  Richard Guenther  <rguenther@suse.de>
9420
9421         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
9422         element index.
9423         (scalarize_init): If we failed to generate some initializers
9424         do not generate zeros for not instantiated members.  Instead
9425         rely on the copy out.
9426         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
9427         about missing flow-sensitive alias info only if we have
9428         aliases computed.
9429
9430 2008-08-17  Nick Clifton  <nickc@redhat.com>
9431
9432         * doc/extend.texi (Function Attributes): Fix typo in description
9433         if hot function attribute.
9434
9435 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
9436             Richard Sandiford  <rdsandiford@googlemail.com>
9437
9438         * doc/install.texi (--with-mips-plt): Document.
9439         * doc/invoke.texi (-mplt, -mno-plt): Document.
9440         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
9441         and handle ${with_mips_plt}.
9442         * config/mips/mips.opt (mplt): New option.
9443         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
9444         (TARGET_ABICALLS_PIC2): Likewise.
9445         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
9446         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
9447         (ASM_SPEC): Use !mabi=* instead of !mabi*.
9448         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
9449         to decide whether to output ".option picX" directives.
9450         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
9451         Pass -call_nonpic rather than -KPIC for -mplt.
9452         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
9453         on the command line.  Also remove it when -mabi=64 is used without
9454         -msym32.
9455         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
9456         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
9457         TARGET_ABICALLS_PIC0.
9458         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
9459         TARGET_ABICALLS.
9460         (mips16_build_function_stub): Only output ".option pic" directives
9461         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
9462         (mips16_build_call_stub): Fix comment and remove redundant
9463         ".set at"/"set .noat" directives.
9464         (mips_function_rodata_section): Use the default behaviour for
9465         TARGET_ABSOLUTE_ABICALLS.
9466         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
9467         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
9468         (mips_restore_gp): Do nothing if the current function doesn't use
9469         a global pointer.
9470         (mips_expand_prologue): Only save $gp if the current function uses it.
9471         Use a normal move for TARGET_ABICALLS_PIC0.
9472         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
9473
9474 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
9475
9476         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
9477         of function when handling GLOBAL_POINTER_REGNUM.
9478
9479 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
9480
9481         PR ada/20548
9482         * common.opt (-fstack-check): Do not declare the variable here.
9483         (-fstack-check=): New option variant.
9484         * doc/invoke.texi (Code Gen Options): Document it.
9485         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
9486         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
9487         (STACK_CHECK_STATIC_BUILTIN): New macro.
9488         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
9489         * opts.c: Include expr.h.
9490         (common_handle_option) <OPT_fold_stack_check_>: New case.
9491         <OPT_fstack_check>: Likewise.
9492         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
9493         consistently in the test for variable-sized types.  Adjust for
9494         new behaviour of flag_stack_check.
9495         * explow.c: Include except.h.
9496         (allocate_dynamic_stack_space): Do not take into account
9497         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
9498         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
9499         for variable-sized parameters.  Treat all parameters whose size is
9500         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
9501         stack checking is enabled.
9502         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
9503         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
9504         if generic stack checking is enabled.
9505         (expand_function_end): Adjust for new behaviour of flag_stack_check.
9506         * reload1.c (reload): Likewise.
9507         * stmt.c (expand_decl): Assert that all automatic variables have
9508         fixed size at this point and remove dead code.
9509         * flags.h (stack_check_type): New enumeration type.
9510         (flag_stack_check): Declare.
9511         * toplev.c (flag_stack_check): New global variable.
9512         * Makefile.in (opts.o): Add dependency on EXPR_H.
9513         (explow.o): Add dependency on except.h.
9514
9515 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
9516
9517         * config/avr/avr.c (avr_override_options): Reduce value of
9518         PARAM_INLINE_CALL_COST.
9519
9520 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
9521
9522         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
9523         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
9524         lieu of TYPE_MODE (type) throughout.
9525
9526 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
9527
9528         * config/arm/arm.c (add_minipool_backward_ref): Check for
9529         8-byte-aligned entries in second case of forcing insertion after a
9530         particular entry.  Change third case to avoid inserting
9531         non-8-byte-aligned entries before 8-byte-aligned ones.
9532
9533 2008-08-15  Richard Guenther  <rguenther@suse.de>
9534
9535         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
9536         strip components for unknown size accesses.
9537
9538 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
9539
9540         * config/s390/2097.md New file.
9541         * config/s390/s390.md ("z10prop" attribute): Define none,
9542         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
9543         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
9544         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
9545         possible values and apply them to insns as appropriate.
9546         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
9547         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
9548         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
9549         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
9550         ("bfp" mode attribute): Removed.  Every occurence replaced
9551         with <mode>.
9552         * config/s390/s390.c (struct "z10_cost"): Updated entries.
9553         * config/s390/2084.md (insn_reservation "x_itof"): Updated
9554         type attribute.
9555
9556 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9557
9558         PR c/28152
9559         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
9560         for keywords.
9561
9562 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
9563
9564         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
9565         additional argument. Support reduction when duplication is needed due
9566         to data-types of different sizes in the loop.
9567         (get_initial_def_for_induction): Fix printout.
9568         (vect_get_vec_def_for_stmt_copy): Support case where the
9569         vec_stmt_for_operand is a phi node.
9570         (vectorizable_reduction): Support reduction when duplication is needed
9571         due to data-types of different sizes in the loop.
9572         (vectorizable_call): Remove restriction to not vectorize in case we
9573         have data-types of different sizes in the loop.
9574         (vectorizable_conversion): Likewise.
9575         (vectorizable_operation): Likewise.
9576         (vectorizable_type_demotion): Likewise.
9577         (vectorizable_type_promotion): Likewise.
9578         (vectorizable_induction): Add restriction to not vectorize in case
9579         we have data-types of different sizes in the loop.
9580
9581 2008-08-14  Christophe Saout  <christophe@saout.de>
9582             Uros Bizjak  <ubizjak@gmail.com>
9583
9584         PR target/37101
9585         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
9586         (*vec_concatv2di_rex64_sse4_1): Ditto.
9587         (*vec_concatv2di_rex64_sse): Ditto.
9588
9589 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
9590
9591         PR middle-end/37103
9592         * fold-const.c (fold_widened_comparison): Do not allow
9593         sign changes that change the result even if shorter type
9594         is wider than arg1_unw's type.
9595
9596 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
9597
9598         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
9599         Skip if the multilib testing specifies -march that does not
9600         agree with the one specified in the testcase.
9601
9602 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
9605         zero extend SImode values being converted to TFmode before passing
9606         to libcalls.
9607
9608 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9609
9610         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
9611         __PPU__ when targeting the Cell/B.E. PPU processor.
9612
9613 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
9614
9615         * gimple.h (gimple_call_set_chain): Accept SSA variables.
9616         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
9617         Rematerialize the static chain, if any.
9618         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
9619         static chain.
9620
9621 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
9624         (new_loc_descr): Likewise.
9625         (add_loc_descr): Likewise.
9626         (size_of_loc_descr): Likewise.
9627         (size_of_locs): Likewise.
9628         (output_loc_operands): Likewise.
9629         (output_loc_sequence): Likewise.
9630         (new_reg_loc_descr): New.
9631         (build_cfa_loc): Use it.
9632         (build_cfa_aligned_loc): Likewise.
9633         (one_reg_loc_descriptor): Likewise.
9634         (based_loc_descr): Likewise.
9635
9636 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9637
9638         PR 30551
9639         * doc/invoke.texi (Wmain): Update.
9640         * c-decl.c (start_decl): warn_main is only 0 or 1.
9641         (start_function): Likewise. Fix formatting.
9642         (finish_function): Delete redundant warning.
9643         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
9644         * c-opts (c_common_handle_option): -Wall only has effect if
9645         warn_main is uninitialized. OPT_Wmain is automatically
9646         handled. -pedantic also enables Wmain.
9647         (c_common_post_options): Handle all logic for Wmain here.
9648         * c-common.c (warn_main): Delete.
9649         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
9650         * c-common.h (warn_main): Delete.
9651
9652 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
9653
9654         PR middle-end/36701
9655         * expr.c (emit_group_store): Allocate stack temp with the
9656         largest alignment when copying from register to stack.
9657
9658 2008-08-13  Richard Guenther  <rguenther@suse.de>
9659
9660         * tree.h (maybe_fold_offset_to_address): Declare.
9661         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
9662         (ccp_fold): Handle pointer conversions the same as fold_stmt.
9663         Likewise for POINTER_PLUS_EXPR.
9664         (maybe_fold_offset_to_reference): Enable disabled code.
9665         (maybe_fold_offset_to_address): New function.
9666         (fold_stmt_r): Use it.
9667         (fold_gimple_assign): Likewise.
9668         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
9669         (gimplify_expr): Likewise.
9670
9671 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9672
9673         * toplev.h (pedwarn_at): Fix declaration.
9674
9675 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
9676
9677         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9678         LINK_SPEC): Use %R in -Y P argument.
9679
9680 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9681
9682         PR c/15236
9683         * diagnostic.c (pedwarn_at): New.
9684         * toplev.h (pedwarn_at): Declare.
9685         * c-tree.h (build_enumerator): Update declaration.
9686         * c-decl.c (finish_enum): Update comment.
9687         (build_enumerator): Take a location parameter. Give a pedwarn but do
9688         not perform any conversion.
9689         * c-parser.c (c_parser_enum_specifier): Set correct location for
9690         enumerator.
9691
9692 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9693
9694         PR 35635
9695         * c-common.c (conversion_warning): Use a switch. Ignore boolean
9696         expressions except for conversions to signed:1 bitfields. Handle
9697         COND_EXPR with constant operands.
9698
9699 2008-08-13  Richard Guenther  <rguenther@suse.de>
9700
9701         PR tree-optimization/15255
9702         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
9703         (struct oecount_s): New struct and VEC types.
9704         (cvec): New global.
9705         (oecount_hash): New function.
9706         (oecount_eq): Likewise.
9707         (oecount_cmp): Likewise.
9708         (zero_one_operation): New function.
9709         (build_and_add_sum): Likewise.
9710         (undistribute_ops_list): Perform un-distribution of multiplication
9711         and division on the chain of summands.
9712         (should_break_up_subtract): Also break up subtracts for factors.
9713         (reassociate_bb): Delete dead visited statements.
9714         Call undistribute_ops_list.  Re-sort and optimize if it did something.
9715         * passes.c (init_optimization_passes): Move DSE before
9716         reassociation.
9717         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
9718         PHI nodes.
9719
9720 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
9721
9722         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
9723
9724         * doc/invoke.texi: Revert unintended checkin.
9725
9726 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
9727
9728         PR libgomp/26165
9729         * gcc.c (include_spec_function): Tweak call to find_a_file.
9730
9731 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
9732
9733         PR middle-end/37014
9734         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
9735         and TRUTH_ORIF_EXPR.
9736         * dojump.c (do_jump): Likewise.
9737
9738         PR tree-optimization/37084
9739         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
9740         if id->regimplify, don't assume stmt is a cast assignment.
9741
9742 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
9743
9744         * final.c (final_scan_insn): Use app_enable/app_disable functions.
9745
9746 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9747
9748         PR bootstrap/37097
9749         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
9750         by last change.
9751
9752 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9753
9754         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
9755         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
9756
9757         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
9758         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
9759         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
9760         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
9761         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
9762
9763         * doc/tm.texi (Storage Layout): Remove documentation for
9764         TARGET_FLOAT_FORMAT.
9765
9766         * simplify-rtx.c (simplify_binary_operation_1): Replace
9767         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
9768
9769 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9770
9771         * real.h (struct real_format): New member has_sign_dependent_rounding.
9772         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
9773         spu_single_format, ieee_double_format, mips_double_format,
9774         motorola_double_format, ieee_extended_motorola_format,
9775         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9776         ieee_extended_intel_96_round_53_format, ibm_extended_format,
9777         mips_extended_format, ieee_quad_format, mips_quad_format,
9778         vax_f_format, vax_d_format, vax_g_format): Initialize it.
9779         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9780
9781         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9782         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9783         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9784         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9785         (ROUND_TOWARDS_ZERO): Likewise.
9786
9787         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
9788         (FLOAT_MODE_FORMAT): New macro.
9789         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
9790         (MODE_COMPOSITE_P): ... this new macro.
9791         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9792         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
9793         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
9794
9795         * flags.h: Include "real.h".
9796
9797         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
9798         REAL_MODE_FORMAT_COMPOSITE_P.
9799         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
9800
9801         * doc/tm.texi (Storage Layout): Remove documentation of
9802         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9803         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
9804         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
9805         they only apply to libgcc2.a.
9806
9807 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9808
9809         * config/spu/float_disf.c: New file.
9810         * config/spu/float_unsdisf.c: New file.
9811         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
9812         (LIB2FUNCS_EXCLUDE): Define.
9813
9814 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9815             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
9816
9817         * real.h (struct real_format): New member round_towards_zero.
9818         * real.c (round_for_format): Respect fmt->round_towards_zero.
9819         (ieee_single_format, mips_single_format, motorola_single_format,
9820         spu_single_format, ieee_double_format, mips_double_format,
9821         motorola_double_format, ieee_extended_motorola_format,
9822         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9823         ieee_extended_intel_96_round_53_format, ibm_extended_format,
9824         mips_extended_format, ieee_quad_format, mips_quad_format,
9825         vax_f_format, vax_d_format, vax_g_format): Initialize it.
9826         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9827
9828         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
9829         real_format to choose rounding mode when calling MPFR functions.
9830         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
9831         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
9832
9833         * real.h (real_to_decimal_for_mode): Add prototype.
9834         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
9835         Respect target rounding mode when generating decimal representation.
9836         (real_to_decimal): New stub for backwards compatibility.
9837         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
9838         real_to_decimal_for_mode instead of real_to_decimal.
9839
9840         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
9841
9842 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9843             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
9844
9845         * real.c (spu_single_format): New variable.
9846         * real.h (spu_single_format): Declare.
9847
9848         * config/spu/spu.c (spu_override_options): Install SFmode format.
9849         (spu_split_immediate): Use integer mode to operate on pieces of
9850         floating-point values in all cases.
9851
9852         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
9853         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
9854         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
9855
9856 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9857
9858         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
9859
9860 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9861
9862         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
9863
9864 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
9865
9866         PR c++/36688
9867         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
9868         on the VAR_DECL instead of TYPE_READONLY on its type.
9869
9870 2008-08-12  Ira Rosen  <irar@il.ibm.com>
9871
9872         * tree-vectorizer.c: Depend on langhooks.h.
9873         (supportable_widening_operation): Add two arguments. Support double
9874         type conversions.
9875         (supportable_narrowing_operation): Likewise.
9876         * tree-vectorizer.h (supportable_widening_operation): Add two
9877         arguments.
9878         (supportable_narrowing_operation): Likewise.
9879         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
9880         supportable_widening_operation with correct arguments.
9881         * tree-vect-transform.c (vectorizable_conversion): Likewise.
9882         (vectorizable_type_demotion): Support double type conversions.
9883         (vectorizable_type_promotion): Likewise.
9884         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
9885
9886 2008-08-11  Michael Matz  <matz@suse.de>
9887
9888         * i386/i386.c (override_options): Move initialisation from
9889         flag_schedule_insns_after_reload to here from ...
9890         (optimization_options): ... here.
9891
9892 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
9893
9894         PR rtl-optimization/36998
9895         * dwarf2out.c (compute_barrier_args_size_1,
9896         compute_barrier_args_size): Temporarily remove assertions.
9897
9898 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9899
9900         PR middle-end/20644
9901         * tree-ssa.c (struct walk_data): Add new flag
9902         warn_possibly_uninitialized.
9903         (warn_uninitialized_var): Use it.
9904         (warn_uninitialized_vars): New.
9905         (execute_early_warn_uninitialized): Call it.
9906         (execute_late_warn_uninitialized): Likewise.
9907
9908 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9909
9910         PR middle-end/36238
9911         * reload1.c (gen_reload): Guard calls to get_secondary_mem
9912         for memory subregs.
9913
9914 2008-08-09  Jan Hubicka  <jh@suse.cz>
9915
9916         PR target/37055
9917         * optabs.c (maybe_emit_unop_insn): Remove produced code if
9918         expansion failed.
9919         (expand_fix): Be prepared for expansion to fail.
9920         (expand_sfix_optab): Remove instructions if expansion failed.
9921
9922 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
9923
9924         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
9925         avr31 architecture.
9926         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
9927         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9928
9929 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9930
9931         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
9932         mips/t-libgcc-mips16 to tmake_file.
9933         * config/mips/mips-protos.h (mips_call_type): New enum.
9934         (mips_pic_base_register, mips_got_load): Declare.
9935         (mips_restore_gp): Take an rtx argument.
9936         (mips_use_pic_fn_addr_reg_p): Declare.
9937         (mips_expand_call): Replace the sibcall_p argument with
9938         a mips_call_type argument.  Add a lazy_p parameter.
9939         (mips_split_call): Declare.
9940         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
9941         (MIPS16_PIC_TEMP): Likewise.
9942         (reg_class): Delete M16_NA_REGS.
9943         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9944         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
9945         (mips_split_hi_p): Declare.
9946         * config/mips/mips.c (mips_split_hi_p): New array.
9947         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
9948         (mips_got_symbol_type_p): New function.
9949         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
9950         (mips16_stub_function_p): New function.
9951         (mips16_local_function_p): Likewise.
9952         (mips_use_pic_fn_addr_reg_p): Likewise.
9953         (mips_cannot_force_const_mem): Return false for HIGHs.
9954         Extend CONST_INT and symbolic handling to MIPS16, using
9955         mips_symbol_insns to check that the base symbol type is a
9956         legitimate constant.  Reject GOT-based constants if
9957         TARGET_MIPS16_PCREL_LOADS.
9958         (mips_const_insns): Check targetm.cannot_force_const_mem when
9959         decomposing a symbolic base and a large offset.
9960         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
9961         When calling a function that needs $25 from MIPS16 code,
9962         move the target address into $25 separately and add a USE
9963         to the call insn.
9964         (mips16_gp_pseudo_reg): Insert the initializer immediately
9965         before the first real insn.
9966         (mips_pic_base_register, mips_got_load): New functions.
9967         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
9968         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
9969         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
9970         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
9971         (mips_call_tls_get_addr): Update the call to mips_expand_call,
9972         also passing NULL_RTX rather than const0_rtx as the aux argument.
9973         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
9974         instead of TARGET_EXPLICIT_RELOCS.
9975         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
9976         (mips_load_call_address): Replace the sibcall_p argument with
9977         a mips_call_type argument.  Use mips_got_load.
9978         (mips16_local_alias): New structure.
9979         (mips16_local_aliases): New variable.
9980         (mips16_local_aliases_hash): New function.
9981         (mips16_local_aliases_eq): Likewise.
9982         (mips16_local_alias): Likewise.
9983         (mips16_stub_function): Likewise.
9984         (mips16_build_function_stub): Create a local alias for the target
9985         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
9986         .cpload directive and an R_MIPS_NONE relocation for the target
9987         function, then load the alias rather than the function itself.
9988         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
9989         (mips16_copy_fpr_return_value): Use mips16_stub_function and
9990         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
9991         (mips16_build_call_stub): Replace the FN parameter with an
9992         FN_PTR parameter.  Force the address into a register if it
9993         isn't a call_insn_operand; don't rely on the caller to do this.
9994         If a call to a locally-defined and locally-binding MIPS16
9995         function must be made indirectly, redirect the call to the
9996         function's local alias.  Use mips16_stub_function_p,
9997         mips16_stub_function, mips_expand_call and use_reg.
9998         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
9999         Use explicit %hi and %lo accesses where possible.
10000         Use MIPS_CALL to generate the correct code form of a
10001         jal instruction.  Add clobbers of $18 instead of uses.
10002         Update the call to mips_emit_call_insn.
10003         (mips_expand_call): Replace the SIBCALL_P argument with a
10004         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
10005         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
10006         allowing it to modify the call address.  Update the calls to
10007         mips_load_call_address and mips_emit_call_insn.
10008         (mips_split_call): New function.
10009         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
10010         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
10011         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
10012         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
10013         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
10014         if TARGET_MIPS16.
10015         (mips_cprestore_slot): New function.
10016         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
10017         and use mips_cprestore_slot.
10018         (mips_output_function_prologue): Handle TARGET_MIPS16 for
10019         LOADGP_OLDABI.
10020         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
10021         then use a copygp_mips16 instruction to set up $28.
10022         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
10023         (mips16_lay_out_constants): Call split_all_insns_noflow.
10024         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
10025         false if TARGET_MIPS16.
10026         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
10027         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
10028         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
10029         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
10030         MIPS16 code.  Allow MIPS16 o32 PIC.
10031         (mips_override_options): Allow MIPS16 o32 PIC.
10032         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
10033         after reload if TARGET_USE_GOT.
10034         (UNSPEC_COPYGP): New constant.
10035         (length): Use a default length of 8 for MIPS16 GOT loads.
10036         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
10037         (*got_page<mode>): Check mips_split_hi_p.
10038         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
10039         (unspec_got<mode>, unspec_call<mode>): New expanders.
10040         (load_got<mode>, load_call<mode>): Remove the length attributes.
10041         Use a got attribute instead of a type attribute.
10042         (copygp_mips16): New insn.
10043         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
10044         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
10045         (sibcall, sibcall_value, call, call_value): Update the calls
10046         to mips_expand_call.
10047         (call_internal, call_value_internal): Use mips_split_call.
10048         (call_value_multiple_internal): Likewise.
10049         (call_split): Move after call_internal (the insn it is split from).
10050         (call_internal_direct, call_value_internal_direct): Turn into
10051         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
10052         (call_direct_split, call_value_direct_split): New patterns.
10053         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
10054         and use M16_REGS instead of M16_NA_REGS.
10055         * config/mips/predicates.md (const_call_insn_operand): Replace
10056         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
10057         mips_use_pic_fn_addr_reg_p check.
10058         (move_operand): Reject HIGHs if mips_split_hi_p.
10059         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
10060         (__mips16_floatunsisf): Inline __mips16_floatsisf.
10061         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
10062         * config/mips/libgcc-mips16.ver: New file.
10063         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
10064         $(srcdir)/config/mips/libgcc-mips16.ver.
10065
10066 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10067
10068         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
10069         in file.
10070         (mips_unspec_address, mips_unspec_offset_high): Likewise.
10071         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
10072         (mips16_cfun_returns_in_fpr_p): Likewise.
10073
10074 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10075
10076         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
10077         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
10078         rather than 4 to PC.
10079
10080 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10081
10082         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
10083         (FUNCTION_PROFILER): Save the static chain pointer into $2
10084         beforehand and restore it aftewards.
10085         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
10086         address directly into $25 and call the function through $25;
10087         do not clobber $3.  Pad the DImode version to cover the space
10088         left by the deleted $25 <- $3 move.
10089         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
10090         the removal of the $25 <- $3 move.
10091         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
10092         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
10093
10094 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10095             Daniel Jacobowitz  <dan@codesourcery.com>
10096
10097         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
10098         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
10099         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
10100         * config/mips/mips.c (mips_start_function_definition): New function.
10101         (mips_end_function_definition): Likewise.
10102         (mips_output_function_prologue): Use mips_start_function_definition.
10103         (mips_output_function_epilogue): Use mips_end_function_definition.
10104         (build_mips16_function_stub): Use mips_start_function_definition
10105         and mips_end_function_definition.
10106         (build_mips16_call_stub): Likewise.
10107
10108 2008-08-09  Richard Guenther  <rguenther@suse.de>
10109
10110         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
10111         * gimple.h (gimple_call_fn): Adjust comment.
10112         (gimple_call_set_fndecl): New function.
10113         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
10114         longer having bare FUNCTION_DECL operand.
10115         (gimple_call_return_type): Likewise.
10116         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
10117
10118         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
10119         (gimple_mod_pow2): Likewise.
10120         (gimple_mod_subtract): Likewise.
10121         (gimple_ic): Likewise.
10122         (gimple_stringop_fixed_value): Likewise.
10123         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
10124         longer having bare FUNCTION_DECL operand.
10125         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
10126         * omp-low.c (optimize_omp_library_calls): Likewise.
10127         * cgraphunit.c (update_call_expr): Likewise.
10128         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
10129         (execute_convert_to_rsqrt): Likewise.
10130         * cfgexpand.c (gimple_to_tree): Simplify.
10131         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
10132         bare FUNCTION_DECL operand.
10133         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
10134         (convert_gimple_call): Use gimple_call_fndecl.
10135         * c-common.c (c_warn_unused_result): Likewise.
10136
10137 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10138
10139         PR c/17880
10140         * c-typeck.c (digest_init): Call verify_sequence_points from here.
10141         (c_finish_return): Likewise.
10142         (c_start_case): Likewise.
10143         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
10144         * c-parser.c (c_parser_condition): New. Call
10145         verify_sequence_points.
10146         (c_parser_paren_condition): Call c_parser_condition.
10147         (c_parser_for_statement): Call c_parser_condition.
10148
10149 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10150
10151         PR 36901
10152         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
10153         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
10154         Moved from diagnostic.h
10155         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
10156         DK_PERMERROR.
10157         (emit_diagnostic): New.
10158         (warning0, pedwarn0): Delete.
10159         (warning, warning_at, pedwarn, permerror): Return bool.
10160         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
10161         Moved to diagnostic.c.
10162         (struct diagnostic_context): Use correct type for
10163         classify_diagnostic.
10164         (diagnostic_report_diagnostic): Update declaration.
10165         (emit_diagnostic): Declare.
10166         * errors.c (warning): Return bool.
10167         * errors.h (warning): Update declaration.
10168         * toplev.h (warning0, pedwarn0): Delete.
10169         (warning, warning_at, pedwarn, permerror): Return bool.
10170         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
10171         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
10172         inform. Update all calls.
10173         (diagnose_mismatched_decls): Check return value of warning/pedwarn
10174         before giving informative note.
10175         (implicit_decl_warning): Likewise.
10176         * c-typeck.c (build_function_call): Likewise.
10177         * tree-sssa.c (warn_uninit): Likewise.
10178         * builtins.c (gimplify_va_arg_expr): Likewise.
10179
10180 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10181
10182         PR 7651
10183         * doc/invoke.texi (-Wextra): Move warning from here...
10184         (-Wuninitialized): ... to here.
10185
10186 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10187
10188         PR 28875
10189         * flags.h (set_Wunused): Delete
10190         * toplev.c (process_options): Handle Wunused flags here.
10191         * opts.c (maybe_warn_unused_parameter): Delete.
10192         (common_handle_option): Replace set_Wunused by warn_unused.
10193         (set_Wextra): Do not handle Wunused-parameter here.
10194         (set_Wunused): Delete.
10195         * c-opts.c (c_common_handle_option): Replace set_Wunused by
10196         warn_unused.
10197         * common.opt (Wunused): Add Var and Init.
10198         (Wunused-function): Likewise.
10199         (Wunused-label): Likewise.
10200         (Wunused-parameter): Likewise.
10201         (Wunused-value): Likewise.
10202         (Wunused-variable): Likewise.
10203
10204 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
10205
10206         * doc/invoke.texi: Add cpu_type power7.
10207         * config.in (HAVE_AS_VSX): New.
10208         * config.gcc: Add cpu_type power7.
10209         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
10210         VSX instructions.
10211         * configure: Regenerate.
10212         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
10213         power5.
10214         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
10215         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
10216         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
10217
10218 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
10219
10220         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
10221         type to vectorize.builtin_conversion.
10222         (vectorizable_conversion): Likewise.
10223         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
10224         integral type as input.
10225         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
10226         FIX_TRUNC_EXPR.
10227         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
10228         and ALTIVEC_BUILTIN_VCTSXS.
10229         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
10230         formatting.
10231
10232 2008-08-08  Richard Guenther  <rguenther@suse.de>
10233
10234         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
10235         (surely_varying_stmt_p): Calls are varying only if they are
10236         non-builtin and not indirect or have no result.
10237         (ccp_fold): Re-instantiate code before the tuples merge.
10238
10239 2008-08-08  Richard Guenther  <rguenther@suse.de>
10240
10241         PR tree-optimization/37056
10242         * gimple.h (gimple_assign_rhs_class): New helper function.
10243         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
10244         unary operations properly.
10245
10246 2008-08-07  Jan Hubicka  <jh@suse.cz>
10247
10248         * i386.h (ix86_size_cost): Declare.
10249         (ix86_cur_cost): New function macro.
10250         * i386.md (peepholes expanding size and splitters): Predicate by
10251         optimize_insn_for_speed_p.
10252         (peepholes reduce size and splitters): Predicate by
10253         optimize_insn_for_size_p.
10254         * i386.c (ix86_size_cost): Rename from ...
10255         (size_cost): This one.
10256         (override_options): Update.
10257         (decide_alg): Likewise.
10258         (ix86_expand_clear): Use RTL profile.
10259         (ix86_pad_returns): Use RTL profile.
10260
10261 2008-08-07  Jan Hubicka  <jh@suse.cz>
10262
10263         * recog.c (split_all_insns): Set RTL profile
10264         (peephole2_optimize): Likewise.
10265         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10266         * combine.c (combine_instructions): Likewise.
10267
10268 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10269
10270         * c-common.c (c_common_reswords): Also warn about keyword "bool".
10271
10272 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
10273
10274         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
10275         value in a6 after the set_frame_ptr insn.
10276
10277 2008-08-07  Richard Henderson  <rth@redhat.com>
10278
10279         PR debug/37033
10280         * gcc.c (cpp_options): Pass along -g*.
10281
10282 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
10283
10284         * config/arm/arm.c (output_move_neon): Update comment describing
10285         big-endian vector layout.
10286         (arm_assemble_integer): Do not handle big-endian NEON vectors
10287         specially.
10288         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
10289         neon_vget_lane<mode>_sext_internal,
10290         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
10291         element indices for big-endian.
10292
10293 2008-08-07  Richard Henderson  <rth@redhat.com>
10294
10295         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
10296         * configure, config.in: Rebuild.
10297         * debug.h (dwarf2out_do_cfi_asm): Declare.
10298         * c-cppbuiltin.c (c_cpp_builtins): Use it.
10299         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
10300         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
10301         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
10302
10303 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
10304
10305         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10306         movv2si_internal): Combine into mov<mode>_internal.
10307         (movv2si_internal_2): Remove.
10308
10309 2008-08-07  Jan Hubicka  <jh@suse.cz>
10310
10311         PR target/37048
10312         * i386.md (single stringop patterns): Enable unconditionally.
10313
10314 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10315
10316         PR target/36992
10317         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
10318
10319         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
10320         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
10321
10322         * config/i386/sse.md (sse2_movq128): New.
10323
10324         * doc/extend.texi: Document __builtin_ia32_movq128.
10325
10326 2008-08-07  Richard Guenther  <rguenther@suse.de>
10327
10328         PR middle-end/37042
10329         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
10330         pointers can access anything.
10331
10332 2008-08-06  Jan Hubicka  <jh@suse.cz>
10333
10334         * optabs.c (emit_unop_insn): Break out to ...
10335         (maybe_emit_unop_insn): ... this one.
10336         (expand_sfix_optab): Use maybe variant.
10337         * optabs.h (maybe_emit_unop_insn): Declare.
10338
10339         * i386.md (mov0 patterns): Enable by default.
10340         (FP conversion expanders): Disable expansion of code expanding
10341         sequences when instruction should be optimized for size.
10342         (single strinop patterns): Enable when optimizing for size.
10343         (string expanders): Disable expanding of code expanding sequences
10344         when optimizning instruction for size.
10345         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
10346         per BB basis.
10347         (ix86_fp_comparison_sahf_cost): Likewise.
10348         (ix86_expand_branch): Likewise.
10349         (ix86_expand_ashl_const): Likewise.
10350         (ix86_split_ashl): Likewise.
10351         (ix86_expand_strlen): Likewise.
10352         (ix86_emit_fp_unordered_jump): Likewie.
10353
10354 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10355
10356         * c-common.c: Fix typo.
10357         (c_common_reswords): Activate more C++ keyword warnings.
10358
10359         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
10360
10361 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10362
10363         PR 26785
10364         * diagnostic.c (permerror_at): New.
10365         * toplev.h (permerror_at): Declare.
10366
10367 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
10368             Ira Rosen  <irar@il.ibm.com>
10369
10370         * tree-vect-transform.c (vect_model_simple_cost): Return
10371         immediately if stmt is pure SLP.
10372         (vect_model_store_cost): Ditto.
10373         (vect_model_load_cost): Ditto.
10374         (vectorizable_store): Remove PURE_SLP check before call
10375         to vect_model_store_cost.
10376         (vect_model_store_cost): When checking whether stmt describe
10377         strided access, add a check that it is not slp_node.
10378
10379 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10380
10381         PR 8715
10382         * c-common.c (warn_for_sign_compare): New. Handle separately the
10383         case that 'constant' is zero.
10384         * c-typeck.c (build_binary_op): Move code to c-common.c
10385
10386 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10387
10388         * config/alpha/alpha.c (alpha_preferred_reload_class,
10389         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
10390         alpha_output_mi_thunk_osf): Avoid C++ keywords.
10391         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
10392         * config/arm/arm.md: Likewise.
10393         * config/avr/avr-protos.h (preferred_reload_class,
10394         test_hard_reg_class, avr_simplify_comparison_p,
10395         out_shift_with_cnt, class_max_nregs): Likewise.
10396         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
10397         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
10398         preferred_reload_class, test_hard_reg_class): Likewise.
10399         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
10400         bfin_memory_move_cost, bfin_secondary_reload,
10401         bfin_output_mi_thunk): Likewise.
10402         * config/crx/crx.c (crx_secondary_reload_class,
10403         crx_memory_move_cost): Likewise.
10404         * config/frv/frv-protos.h (frv_secondary_reload_class,
10405         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
10406         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
10407         frv_secondary_reload_class, frv_class_likely_spilled_p,
10408         frv_class_max_nregs): Likewise.
10409         * config/h8300/h8300.c (h8300_classify_operand,
10410         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
10411         Likewise.
10412         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
10413         * config/ia64/ia64.c (ia64_preferred_reload_class,
10414         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
10415         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
10416         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
10417         Likewise.
10418         * config/m68hc11/m68hc11.c (preferred_reload_class,
10419         m68hc11_memory_move_cost): Likewise.
10420         * config/mcore/mcore.c (mcore_secondary_reload_class,
10421         mcore_reload_class): Likewise.
10422         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
10423         mips_class_max_nregs, mips_cannot_change_mode_class,
10424         mips_preferred_reload_class, mips_secondary_reload_class,
10425         mips_output_mi_thunk): Likewise.
10426         * config/mmix/mmix.c (mmix_preferred_reload_class,
10427         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
10428         Likewise.
10429         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10430         Likewise.
10431         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
10432         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
10433         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10434         * config/rs6000/rs6000.c (paired_expand_vector_init,
10435         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
10436         compare_section_name, rs6000_memory_move_cost): Likewise.
10437         * config/s390/s390.c (s390_emit_compare_and_swap,
10438         s390_preferred_reload_class, s390_secondary_reload,
10439         legitimize_pic_address, legitimize_tls_address,
10440         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
10441         s390_class_max_nregs): Likewise.
10442         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10443         * config/s390/s390.md: Likewise.
10444         * config/score/score-protos.h (score_secondary_reload_class,
10445         score_preferred_reload_class): Likewise.
10446         * config/score/score.c (score_preferred_reload_class,
10447         score_secondary_reload_class): Likewise.
10448         * config/score/score3.c (score3_output_mi_thunk,
10449         score3_preferred_reload_class, score3_secondary_reload_class,
10450         score3_hard_regno_mode_ok): Likewise.
10451         * config/score/score3.h (score3_preferred_reload_class,
10452         score3_secondary_reload_class): Likewise.
10453         * config/score/score7.c (score7_output_mi_thunk,
10454         score7_preferred_reload_class, score7_secondary_reload_class,
10455         score7_hard_regno_mode_ok): Likewise.
10456         * config/score/score7.h (score7_preferred_reload_class,
10457         score7_secondary_reload_class): Likewise.
10458         * config/sh/sh.c (prepare_move_operands, output_far_jump,
10459         output_branchy_insn, add_constant, gen_block_redirect,
10460         sh_insn_length_adjustment, sh_cannot_change_mode_class,
10461         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
10462         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10463         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
10464         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
10465         xstormy16_preferred_reload_class): Likewise.
10466         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
10467         xtensa_expand_atomic, override_options,
10468         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
10469         Likewise.
10470         * reorg.c (try_merge_delay_insns): Likewise.
10471         * tree.c (merge_dllimport_decl_attributes): Likewise.
10472
10473         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
10474
10475 2008-08-06  Michael Matz  <matz@suse.de>
10476
10477         * Makefile.in (write_entries_to_file): Quote words.
10478         * gengtype.c: (read_input_line): Skip over leading white-space.
10479
10480 2008-08-06  Marc Gauthier  <marc@tensilica.com>
10481
10482         * config.gcc: Match more processor names for Xtensa.
10483         * configure.ac: Likewise.
10484         * doc/install.texi (Specific): Likewise.
10485         * configure: Regenerate.
10486
10487 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10488
10489         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
10490         * calls.c (avoid_likely_spilled_reg): Likewise.
10491         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10492         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
10493         * config/i386/i386.c (ix86_expand_special_args_builtin,
10494         ix86_secondary_reload): Likewise.
10495         * except.c (struct eh_region, gen_eh_region_catch,
10496         remove_unreachable_regions, duplicate_eh_regions,
10497         assign_filter_values, build_post_landing_pads,
10498         sjlj_find_directly_reachable_regions, remove_eh_handler,
10499         reachable_next_level, foreach_reachable_handler,
10500         can_throw_internal_1, can_throw_external_1,
10501         collect_one_action_chain): Likewise.
10502         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
10503         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
10504         * function.c (update_temp_slot_address, instantiate_new_reg,
10505         instantiate_virtual_regs_in_rtx,
10506         instantiate_virtual_regs_in_insn): Likewise.
10507         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
10508         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
10509         gimplify_cleanup_point_expr): Likewise.
10510         * ipa-cp.c (ipcp_lattice_changed): Likewise.
10511         * passes.c (next_pass_1): Likewise.
10512         * print-tree.c (print_node_brief, print_node): Likewise.
10513         * profile.c (branch_prob): Likewise.
10514         * tree-dump.c (dump_register): Likewise.
10515         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
10516         Likewise.
10517         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
10518         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
10519         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
10520         copy_arguments_for_versioning, copy_static_chain): Likewise.
10521         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
10522         add_new_name_mapping, register_new_name_mapping): Likewise.
10523         * tree-mudflap.c (mf_xform_derefs): Likewise.
10524         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
10525         get_init_expr, combine_chains): Likewise.
10526         * tree-pretty-print.c (dump_generic_node): Likewise.
10527         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
10528         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
10529         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
10530         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
10531
10532 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10533
10534         PR middle-end/37010
10535         * calls.c (expand_call): Use the biggest preferred stack
10536         boundary.
10537
10538 2008-08-06  Michael Matz  <matz@suse.de>
10539
10540         PR target/36613
10541         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
10542         for reused reload, instead of overwriting them.
10543
10544 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         PR middle-end/37009
10547         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
10548         for incoming stack boundary.
10549
10550         * function.c (assign_parm_find_entry_rtl): Update
10551         parm_stack_boundary.
10552
10553         * function.h (rtl_data): Add parm_stack_boundary.
10554
10555         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
10556         parm_stack_boundary for incoming stack boundary.
10557
10558 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
10561         for unrepresentable subregs or treat them as equal to other regs
10562         or subregs with the same register number.
10563
10564 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
10565
10566         PR middle-end/35432
10567         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
10568         if want_value.
10569
10570 2008-08-06  Jan Hubicka  <jh@suse.cz>
10571
10572         * predict.c (maybe_hot_frequency_p): When profile is absent, all
10573         frequencies might be hot.
10574
10575 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
10576
10577         * reload.c (find_reloads): Force constants into literal pool
10578         also if they are wrapped in a SUBREG.
10579
10580 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10581
10582         PR target/35659
10583         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
10584         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
10585         Don't allow predicated instructions for data speculation.
10586         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
10587         declaration.
10588
10589 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10590
10591         * haifa-sched.c (extend_global): Split to extend_global_data and
10592         extend_region_data.  Update all uses.
10593         (extend_all): Rename to extend_block_data.
10594
10595 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10596
10597         * sched-rgn.c (new_ready): Check if instruction can be
10598         speculatively scheduled before attempting speculation.
10599         (debug_rgn_dependencies): Remove wrongful assert.
10600
10601 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
10602
10603         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
10604
10605 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
10606
10607         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
10608         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
10609         va_size, and type_size.
10610
10611 2008-08-04  Jason Merrill  <jason@redhat.com>
10612
10613         PR c++/37016
10614         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
10615         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
10616
10617 2008-08-05  Richard Henderson  <rth@redhat.com>
10618
10619         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
10620         * configure: Rebuild.
10621
10622 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10623
10624         PR tree-opt/37024
10625         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
10626         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
10627         is a conversion.
10628
10629 2008-08-05  Richard Henderson  <rth@redhat.com>
10630
10631         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
10632         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
10633         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
10634         * common.opt (fdwarf2-cfi-asm): New.
10635         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
10636         * config.in, configure: Rebuild.
10637         * dwarf2asm.c (dw2_asm_output_data_raw): New.
10638         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
10639         New.
10640         (dw2_force_const_mem): Externalize.
10641         * dwarf2asm.h: Update.
10642         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
10643         generate a real label.
10644         (output_cfi_directive): New.
10645         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
10646         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
10647         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
10648         and .cfi_lsda.
10649         (dwarf2out_end_epilogue): Emit .cfi_endproc.
10650         (output_loc_operands_raw, output_loc_sequence_raw): New.
10651         (output_cfa_loc_raw): New.
10652
10653 2008-08-05  Paul Brook  <paul@codesourcery.com>
10654
10655         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
10656         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
10657         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
10658         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
10659         * config/arm/arm.h (TARGET_VFPD32): Define.
10660         (TARGET_VFP3): Use TARGET_VFPD32.
10661         (fputype): Add FPUTYPE_VFP3D16.
10662         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
10663         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
10664         * config/arm/arm-cores.def: Add cortex-r4f.
10665         * config/arm/arm-tune.md: Regenerate.
10666
10667 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10668
10669         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
10670         Reword some comments throughout the file.
10671
10672         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
10673         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
10674         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
10675         MFC_MIN_DMA_LIST_ELEMENTS.
10676         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
10677         MFC_MAX_DMA_LIST_ELEMENTS.
10678
10679         (MFC_START_ENABLE): Remove PPU-only define.
10680         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
10681         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
10682
10683         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
10684         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
10685         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
10686         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
10687         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
10688         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
10689         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
10690
10691         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
10692         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
10693         (mfc_sdcrt, mfc_sdcrtst): Likewise.
10694         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
10695
10696         (spu_read_machine_status): Fix typo.
10697
10698 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10699
10700         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
10701         SUBREG of multi-word hard register.
10702         * config/spu/spu.c (valid_subreg): Likewise.
10703         (adjust_operand): Handle SUBREGs of multi-word hard registers.
10704
10705 2008-08-04  Richard Guenther  <rguenther@suse.de>
10706
10707         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
10708         the candidate with the stripped base if that base is different
10709         from the original base even for offset zero.
10710
10711 2008-08-04  Richard Guenther  <rguenther@suse.de>
10712
10713         PR middle-end/36691
10714         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
10715         check for no_overflow.
10716
10717 2008-08-04  Richard Guenther  <rguenther@suse.de>
10718
10719         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
10720
10721 2008-08-04  Paul Brook  <paul@codesourcery.com>
10722
10723         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
10724         (arm_order_regs_for_local_alloc): New function.
10725         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
10726         prototype.
10727         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
10728
10729 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10730
10731         PR target/37012
10732         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
10733         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
10734         (ix86_expand_epilogue): Likewise.
10735
10736 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10737
10738         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
10739         in comments.
10740
10741 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
10742
10743         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
10744         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
10745         (*movv2sf_internal_rex64): Ditto.
10746
10747 2008-08-03  Jan Hubicka  <jh@suse.cz>
10748
10749         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
10750         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
10751         * expmed.c (expand_smod_pow2): Likewise.
10752
10753 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
10754
10755         PR target/36992
10756         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
10757         alternative 0 of operand 1.
10758         (*vec_concatv2di_rex64_sse): Ditto.
10759         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
10760         of operand 1.
10761         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
10762         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
10763         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
10764         (*movv2sf_internal_rex64): Ditto.
10765
10766 2008-08-02  Richard Guenther  <rguenther@suse.de>
10767
10768         PR target/35252
10769         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
10770         (ssedoublesizemode): New mode attribute.
10771         (sse_shufps): Call gen_sse_shufps_v4sf.
10772         (sse_shufps_1): Macroize.
10773         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
10774         (sse2_shufpd_1): Macroize.
10775         (vec_extract_odd, vec_extract_even): New expanders.
10776         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
10777         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
10778         * i386.c (ix86_expand_vector_init_one_nonzero): Call
10779         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
10780         (ix86_expand_vector_set): Likewise.
10781         (ix86_expand_reduc_v4sf): Likewise.
10782
10783 2008-08-01  Doug Kwan  <dougkwan@google.com>
10784
10785         * matrix-reorg.c: Re-enable all code.
10786         (struct malloc_call_data): Change CALL_STMT to gimple type.
10787         (collect_data_for_malloc_call): Tuplify.
10788         (struct access_site_info): Change STMT to gimple type.
10789         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
10790         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
10791         (struct free_info): Change STMT to gimple type.
10792         (struct matrix_access_phi_node):  Change PHI to gimple type.
10793         (get_inner_of_cast_expr): Remove.
10794         (may_flatten_matrices_1): Tuplify.
10795         (may_flatten_matrices): Ditto.
10796         (mark_min_matrix_escape_level): Ditto.
10797         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
10798         (ssa_accessed_in_call_rhs): New
10799         (ssa_accessed_in_assign_rhs): New
10800         (record_access_alloc_site_info): Tuplify.
10801         (add_allocation_site): Ditto.
10802         (analyze_matrix_allocation_site): Ditto.
10803         (analyze_transpose): Ditto.
10804         (get_index_from_offset): Ditto.
10805         (update_type_size): Ditto.
10806         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
10807         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
10808         (analyze_accesses_for_phi_node): Tuplify.
10809         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
10810         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
10811         (analyze_matrix_accesses): Tuplify.
10812         (check_var_data): New call-back type for check_var_notmodified_p.
10813         (check_var_notmodified_p): Tuplify and use call-back struct to
10814         return statement found.
10815         (can_calculate_expr_before_stmt): Factor out statement related code
10816         into ...
10817         (can_calculate_stmt_before_stmt): New.
10818         (check_allocation_function): Tuplify.
10819         (find_sites_in_func): Ditto.
10820         (record_all_accesses_in_func): Ditto.
10821         (transform_access_sites): Ditto.
10822         (transform_allocation_sites): Ditto.
10823         (matrix_reorg): Re-enable.
10824         (gate_matrix_reorg): Re-enable.
10825
10826 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
10827
10828         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
10829         for labels for which it hasn't been set yet.  If it has been set,
10830         stop walking insns and continue with next worklist item.
10831         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
10832         if the only BARRIER is at the very end of a function.
10833
10834 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
10835
10836         * cfgexpand.c (expand_stack_alignment): Assert that
10837         stack_realign_drap and drap_rtx must match.
10838
10839         * function.c (instantiate_new_reg): If DRAP is used to realign
10840         stack, replace virtual_incoming_args_rtx with internal arg
10841         pointer.
10842
10843 2008-08-01  Richard Guenther  <rguenther@suse.de>
10844
10845         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
10846         loop information only if we initialized it.
10847         (execute_pre): Call fini_pre with in_fre.
10848         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
10849         if we do not unroll because we hit max-completely-peeled-insns.
10850         Use our estimation for consistency, do allow shrinking.
10851
10852 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
10853
10854         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
10855         with MIN_STACK_BOUNDARY.
10856         (ix86_update_stack_boundary): Likewise.
10857         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
10858         STACK_BOUNDARY.
10859
10860         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
10861         (MIN_STACK_BOUNDARY): This.
10862
10863 2008-08-01  Richard Guenther  <rguenther@suse.de>
10864
10865         PR middle-end/36997
10866         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
10867
10868 2008-08-01  Richard Guenther  <rguenther@suse.de>
10869
10870         PR tree-optimization/36988
10871         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
10872         do not matter if that doesn't change volatile qualification.
10873
10874 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
10875
10876         * configure.ac: Do not generate libada-mk.  Do not subst
10877         host_cc_for_libada.
10878         * libada-mk.in: Remove.
10879         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
10880         * configure: Regenerate.
10881
10882 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
10883
10884         * tree-pass.h: Added comment about not dumping passes with name
10885         starting with star in struct opt_pass.
10886         * passes.c (register_dump_files_1): Don't do dump for a pass with
10887         name starting with star.
10888         * doc/passes.texi (Pass manager): Mention pass names and special
10889         meaning of star prefix to avoid dump.
10890
10891 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
10892
10893         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
10894         to MIPS64r2.
10895         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
10896         (ISA_MIPS64R2): New macro.
10897         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
10898         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
10899         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
10900         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
10901         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
10902         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
10903         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
10904         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
10905         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
10906         Move up to keep list alphabetically sorted.
10907         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
10908         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
10909         processor.
10910         * doc/invoke.texi (MIPS Options): Add -mips64r2.
10911         (-march=@var{arch}): Add mips64r2.
10912
10913 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
10914
10915         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
10916
10917 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
10918
10919         * expr.c (expand_assignment): Check for complete type.
10920
10921 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
10922
10923         PR debug/36977
10924         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
10925
10926         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
10927         for stack alignment.
10928
10929         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
10930
10931 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
10932
10933         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
10934         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
10935
10936 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
10937
10938         PR rtl-optimization/36419
10939         * dwarf2out.c (barrier_args_size): New variable.
10940         (compute_barrier_args_size, compute_barrier_args_size_1): New
10941         functions.
10942         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
10943         if not called yet in the current function, use barrier_args_size
10944         array to find the new args_size value.
10945         (dwarf2out_frame_debug): Free and clear barrier_args_size.
10946
10947 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
10948
10949         PR debug/36980
10950         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
10951         rule 19.
10952
10953 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
10954
10955         PR debug/36976
10956         * dwarf2out.c (dwarf2out_args_size_adjust): New.
10957         (dwarf2out_stack_adjust): Use it.
10958         (dwarf2out_frame_debug_expr): Likewise.
10959
10960 2008-07-31  Richard Guenther  <rguenther@suse.de>
10961
10962         PR tree-optimization/36978
10963         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
10964         the generated condition.
10965
10966 2008-07-31  Richard Guenther  <rguenther@suse.de>
10967
10968         * passes.c (init_optimization_passes): Always call
10969         pass_early_warn_uninitialized.
10970         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
10971         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
10972         * doc/passes.texi (Warn for uninitialized variables): Adjust.
10973
10974 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
10975
10976         PR c/36970
10977         * builtins.c (maybe_emit_free_warning): New function.
10978         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
10979         maybe_emit_free_warning for BUILT_IN_FREE.
10980
10981         PR debug/36278
10982         * dwarf2out.c (get_context_die): New function.
10983         (force_decl_die, force_type_die): Use it.
10984         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
10985         returns NULL, force generation of DW_TAG_typedef and put that into
10986         DW_AT_import.
10987
10988         PR preprocessor/36649
10989         * c-pch.c (c_common_read_pch): Save and restore
10990         line_table->trace_includes across PCH restore.
10991
10992 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
10993
10994         PR ada/36554
10995         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
10996
10997 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
10998
10999         PR 36974
11000         * final.c (call_from_call_insn): Handle COND_EXEC.
11001
11002 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11003
11004         * builtins.c (std_gimplify_va_arg_expr): Replace
11005         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
11006         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11007
11008 2008-07-30  Joey Ye  <joey.ye@intel.com>
11009             H.J. Lu  <hongjiu.lu@intel.com>
11010
11011         * builtins.c (expand_builtin_setjmp_receiver): Replace
11012         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
11013         (expand_builtin_apply_args_1): Likewise.
11014         (expand_builtin_longjmp): Need DRAP for stack alignment.
11015         (expand_builtin_apply): Likewise.
11016
11017         * caller-save.c (setup_save_areas): Call assign_stack_local_1
11018         instead of assign_stack_local to allow alignment reduction.
11019
11020         * calls.c (emit_call_1): Need DRAP for stack alignment if
11021         return pops.
11022         (expand_call): Replace virtual_incoming_args_rtx with
11023         crtl->args.internal_arg_pointer.
11024         * stmt.c (expand_nl_goto_receiver): Likewise.
11025
11026         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
11027         alignment and store to stack_alignment_estimated and
11028         max_used_stack_slot_alignment.
11029         (expand_one_var): Likewise.
11030         (expand_stack_alignment): New function.
11031         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
11032         and stack_alignment_estimated fields in rtl_data.  Call
11033         expand_stack_alignment at end.
11034
11035         * defaults.h (INCOMING_STACK_BOUNDARY): New.
11036         (MAX_STACK_ALIGNMENT): Likewise.
11037         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
11038         (SUPPORTS_STACK_ALIGNMENT): Likewise.
11039
11040         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
11041         stack alignment when generating virtual registers.
11042
11043         * function.c (assign_stack_local): Renamed to ...
11044         (assign_stack_local_1): This.  Add a parameter to indicate
11045         if it is OK to reduce alignment.
11046         (assign_stack_local): Use it.
11047         (instantiate_new_reg): Instantiate virtual incoming args rtx
11048         to vDRAP if stack realignment and DRAP is needed.
11049         (assign_parms): Collect parameter/return type alignment and
11050         contribute to stack_alignment_estimated.
11051         (locate_and_pad_parm): Likewise.
11052         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
11053         with crtl->args.internal_arg_pointer.
11054
11055         * function.h (rtl_data): Add new field drap_reg,
11056         max_used_stack_slot_alignment, stack_alignment_estimated,
11057         stack_realign_needed, need_drap, stack_realign_processed and
11058         stack_realign_finalized.
11059         (stack_realign_fp): New macro.
11060         (stack_realign_drap): Likewise.
11061
11062         * global.c (compute_regsets): Frame pointer is needed when
11063         stack is realigned.  Can eliminate frame pointer when stack is
11064         realigned and dynamic realigned argument pointer isn't used.
11065
11066         * reload1.c (update_eliminables):  Frame pointer is needed
11067         when stack is realigned.
11068         (init_elim_table): Can eliminate frame pointer when stack is
11069         realigned and dynamic realigned argument pointer isn't used.
11070
11071         * rtl.h (assign_stack_local_1): Declare new funtion.
11072
11073         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
11074         (TARGET_GET_DRAP_RTX): Likewise.
11075         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
11076         TARGET_GET_DRAP_RTX.
11077
11078         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
11079
11080         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
11081         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
11082
11083 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
11084             H.J. Lu  <hongjiu.lu@intel.com>
11085
11086         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
11087         vdrap_reg, stack_realign and drap_reg_saved.
11088         (add_cfi): Don't allow redefining CFA when DRAP is used.
11089         (reg_save): Handle stack alignment.
11090         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
11091         alignment.  Don't generate DWARF information for (set fp sp)
11092         when DRAP is used.
11093         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
11094         to INVALID_REGNUM.
11095         (int_loc_descriptor): Move prototype forward.  Also define if
11096         DWARF2_UNWIND_INFO is true.
11097         (output_cfa_loc): Handle DW_CFA_expression.
11098         (build_cfa_aligned_loc): New.
11099         (based_loc_descr): Update assert for stack realign.  For local
11100         variables, use sp+offset when stack is aligned without drap and
11101         fp+offset when stack is aligned with drap.  For arguments, use
11102         cfa+offset when drap is used to align stack.
11103
11104 2008-07-30  Joey Ye  <joey.ye@intel.com>
11105             H.J. Lu  <hongjiu.lu@intel.com>
11106
11107         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
11108         Break long line.
11109         (ix86_gen_andsp): New.
11110         (ix86_user_incoming_stack_boundary): Likewise.
11111         (ix86_default_incoming_stack_boundary): Likewise.
11112         (ix86_incoming_stack_boundary): Likewise.
11113         (ix86_can_eliminate): Likewise.
11114         (find_drap_reg): Likewise.
11115         (ix86_update_stack_boundary): Likewise.
11116         (ix86_get_drap_rtx): Likewise.
11117         (ix86_finalize_stack_realign_flags): Likewise.
11118         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
11119         (TARGET_GET_DRAP_RTX): Likewise.
11120         (override_options): Overide option value for new options.
11121         (ix86_function_ok_for_sibcall): Remove check for
11122         force_align_arg_pointer.
11123         (ix86_handle_cconv_attribute): Likewise.
11124         (ix86_function_regparm): Likewise.
11125         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
11126         (ix86_va_start): Replace virtual_incoming_args_rtx with
11127         crtl->args.internal_arg_pointer.
11128         (ix86_select_alt_pic_regnum): Check DRAP register.
11129         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
11130         (ix86_compute_frame_layout): Compute frame layout wrt stack
11131         realignment.
11132         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
11133         (ix86_expand_prologue): Decide if stack realignment is needed
11134         and generate prologue code accordingly.
11135         (ix86_expand_epilogue): Generate epilogue code wrt stack
11136         realignment is really needed or not.
11137
11138         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
11139         (ABI_STACK_BOUNDARY): Likewise.
11140         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
11141         (STACK_REALIGN_DEFAULT): Likewise.
11142         (INCOMING_STACK_BOUNDARY): Likewise.
11143         (MAX_STACK_ALIGNMENT): Likewise.
11144         (ix86_incoming_stack_boundary): Likewise.
11145         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
11146         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
11147         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
11148         (machine_function): Remove force_align_arg_pointer.
11149
11150         * config/i386/i386.md (BX_REG): New.
11151         (R13_REG): Likewise.
11152
11153         * config/i386/i386.opt (mforce_drap): New.
11154         (mincoming-stack-boundary): Likewise.
11155         (mstackrealign): Add Init(-1).
11156
11157         * config/i386/i386-protos.h (ix86_can_eliminate): New
11158
11159 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11160
11161         * doc/extend.texi: Update force_align_arg_pointer.
11162
11163         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
11164         -mstackrealign.
11165
11166         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
11167         (INCOMING_STACK_BOUNDARY): Likewise.
11168         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
11169         (TARGET_GET_DRAP_RTX): Likewise.
11170
11171 2008-07-30  Andreas Schwab  <schwab@suse.de>
11172
11173         PR rtl-optimization/36929
11174         * dse.c (replace_inc_dec): Use emit_insn_before instead of
11175         add_insn_before and fix argument order.
11176         (replace_inc_dec_mem): Handle NULL rtx.
11177
11178 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
11179
11180         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
11181         function.
11182         (arm_compute_initial_elimination_offset): Use it.
11183         (arm_compute_save_reg_mask): Include static chain save slot when
11184         calculating alignment.
11185         (arm_get_frame_offsets): Ditto.
11186         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
11187         that we can use to decrement the stack when the stack decrement
11188         could be too big for an immediate value in a single insn.
11189         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
11190
11191 2008-07-30  Richard Guenther  <rguenther@suse.de>
11192
11193         PR tree-optimization/36967
11194         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
11195         Release defs of statements we remove.
11196
11197 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
11198
11199         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
11200         instead of NULL_RTVEC.
11201
11202 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
11203
11204         PR target/35866
11205
11206         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
11207         vector modes.
11208
11209 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
11210
11211         * final.c (call_from_call_insn): New.
11212         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
11213
11214 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
11215
11216         * configure.ac: Substitute ADA_CFLAGS.
11217         * configure: Regenerate.
11218         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
11219         * Makefile.in: Remove mention of X_* variables.
11220         * config/pa/x-ada-hpux10: Remove.
11221         * config/pa/x-ada: Remove.
11222
11223         * doc/fragments.texi: Update.
11224
11225 2008-07-30  Olivier Hainque  <hainque@adacore.com>
11226
11227         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
11228         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
11229         __dso_handle explicitly here.
11230
11231 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11232
11233         PR 34389
11234         * c-typeck.c (build_binary_op): Encapsulate code into...
11235         * c-common.c (shorten_binary_op): ...this new function.
11236         (conversion_warning): Use the new function. Handle non-negative
11237         constant in bitwise-and.
11238         * c-common.h (shorten_binary_op): Declare.
11239
11240 2008-07-30  Olivier Hainque  <hainque@adacore.com>
11241
11242         * scan.c (make_sstring_space): Add explicit conversions of
11243         allocator's return value.
11244         * fix-header.c (recognized_function): Likewise.
11245
11246 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11247
11248         * doc/cpp.texi: Update to GFDL 1.2.
11249         * doc/gcc.texi: Do not list GPL as Invariant Section.
11250         * doc/gccint.texi: Likewise.  Update copyright years.
11251         * doc/install.texi: Update copyright years.
11252
11253 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
11254
11255         PR target/36955
11256         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
11257         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
11258
11259 2008-07-29  Jan Hubicka  <jh@suse.cz>
11260
11261         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
11262         (grokdeclarator): Likewise.
11263         * langhooks.c (lhd_warn_unused_global_decl): Use
11264         DECL_DECLARED_INLINE_P.
11265         * print-tree.c (print_node): Remove DECL_INLINE check.
11266
11267 2008-07-29  Richard Guenther  <rguenther@suse.de>
11268
11269         PR tree-optimization/36945
11270         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
11271         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
11272         Record invariant addresses un-decomposed.
11273         (copy_reference_ops_from_call): Record reference call
11274         arguments properly.  Simplify.
11275         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
11276         helper split out from ...
11277         (create_component_ref_by_pieces): ... here.  Simplify.
11278         Prepare for recursive invocation for call arguments.
11279         (create_expression_by_pieces): Adjust call to
11280         create_component_ref_by_pieces.
11281         (compute_avail): Process operand 2 of reference ops.
11282
11283 2008-07-29  Richard Guenther  <rguenther@suse.de>
11284
11285         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
11286
11287 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
11288
11289         * c-format.c (check_format_types): Revert unwanted checkin.
11290
11291 2008-07-29  Jan Hubicka  <jh@suse.cz>
11292
11293         * flags.h (flag_really_no_inline): Remove.
11294         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
11295         * toplev.c (flag_really_no_inline): Remove.
11296         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
11297         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
11298         (cgraph_decide_inlining_incrementally): Likewise.
11299         (compute_inline_parameters): Likewise.
11300         * opts.c (decode_options): Simplify.
11301         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
11302         * common.opt (finline): Initialize to 1.
11303         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
11304
11305 2008-07-29  Jan Hubicka  <jh@suse.cz>
11306
11307         * predict.c (always_optimize_for_size_p): New function.
11308         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11309         optimize_edge_for_size_p, optimize_edge_for_speed_p,
11310         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
11311         functions.
11312         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
11313         * function.c (prepare_function_start): Set default profile.
11314         * function.h (rtl_data): Add maybe_hot_insn_p.
11315         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
11316         (construct_exit_block): Likewise.
11317         (tree_expand_cfg): Likewise.
11318         * basic-block.h
11319         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11320         optimize_edge_for_size_p, optimize_edge_for_speed_p,
11321         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
11322         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
11323         Declare.
11324
11325 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11326
11327         PR 34985
11328         * c-decl.c (merge_decls): Merge USED flags.
11329
11330 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11331
11332         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
11333         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
11334         next_stack, lab_false and lab_over trees.
11335
11336 2008-07-28  Richard Guenther  <rguenther@suse.de>
11337
11338         PR tree-optimization/36957
11339         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
11340         (useless_type_conversion_p): Remove.
11341         (types_compatible_p): Remove.
11342         * gimple.h (tree_ssa_useless_type_conversion): Declare.
11343         (useless_type_conversion_p): Declare.
11344         (types_compatible_p): Declare.
11345         (gimple_expr_type): Return the base type only if it is
11346         trivially convertible to the subtype.
11347
11348 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
11349
11350         * configure.ac: Use the m4_do macro to concatenate the warnings into
11351         one string in ACX_PROG_CC_WARNING_OPTS,
11352         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
11353         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
11354         * configure: Regenerate.
11355
11356 2008-07-28  Richard Guenther  <rguenther@suse.de>
11357
11358         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
11359         (insert_fake_stores): Remove.
11360         (realify_fake_stores): Likewise.
11361         (execute_pre): Remove dead code.
11362         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
11363         (find_func_aliases): Deal with it here instead.
11364         Re-enable gcc_unreachable call.
11365
11366 2008-07-28  Richard Guenther  <rguenther@suse.de>
11367
11368         Merge from gimple-tuples-branch.
11369
11370         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
11371         * gimple.def: New file.
11372         * gsstruct.def: Likewise.
11373         * gimple-iterator.c: Likewise.
11374         * gimple-pretty-print.c: Likewise.
11375         * tree-gimple.c: Removed.  Merged into ...
11376         * gimple.c: ... here.  New file.
11377         * tree-gimple.h: Removed.  Merged into ...
11378         * gimple.h: ... here.  New file.
11379
11380         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
11381         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
11382         --enable-checking=gimple flag.
11383         * config.in: Likewise.
11384         * configure: Regenerated.
11385
11386         * tree-ssa-operands.h: Tuplified.
11387         * tree-vrp.c: Likewise.
11388         * tree-loop-linear.c: Likewise.
11389         * tree-into-ssa.c: Likewise.
11390         * tree-ssa-loop-im.c: Likewise.
11391         * tree-dump.c: Likewise.
11392         * tree-complex.c: Likewise.
11393         * cgraphbuild.c: Likewise.
11394         * tree-ssa-threadupdate.c: Likewise.
11395         * tree-ssa-loop-niter.c: Likewise.
11396         * tree-pretty-print.c: Likewise.
11397         * tracer.c: Likewise.
11398         * gengtype.c: Likewise.
11399         * tree-loop-distribution.c: Likewise.
11400         * tree-ssa-loop-unswitch.c: Likewise.
11401         * cgraph.c: Likewise.
11402         * cgraph.h: Likewise.
11403         * tree-ssa-loop-manip.c: Likewise.
11404         * value-prof.c: Likewise.
11405         * tree-ssa-loop-ch.c: Likewise.
11406         * tree-tailcall.c: Likewise.
11407         * value-prof.h: Likewise.
11408         * tree.c: Likewise.
11409         * tree.h: Likewise.
11410         * tree-pass.h: Likewise.
11411         * ipa-cp.c: Likewise.
11412         * tree-scalar-evolution.c: Likewise.
11413         * tree-scalar-evolution.h: Likewise.
11414         * target.h: Likewise.
11415         * lambda-mat.c: Likewise.
11416         * tree-phinodes.c: Likewise.
11417         * diagnostic.h: Likewise.
11418         * builtins.c: Likewise.
11419         * tree-ssa-alias-warnings.c: Likewise.
11420         * cfghooks.c: Likewise.
11421         * fold-const.c: Likewise.
11422         * cfghooks.h: Likewise.
11423         * omp-low.c: Likewise.
11424         * tree-ssa-dse.c: Likewise.
11425         * ipa-reference.c: Likewise.
11426         * tree-ssa-uncprop.c: Likewise.
11427         * toplev.c: Likewise.
11428         * tree-gimple.c: Likewise.
11429         * tree-gimple.h: Likewise.
11430         * tree-chrec.c: Likewise.
11431         * tree-chrec.h: Likewise.
11432         * tree-ssa-sccvn.c: Likewise.
11433         * tree-ssa-sccvn.h: Likewise.
11434         * cgraphunit.c: Likewise.
11435         * tree-ssa-copyrename.c: Likewise.
11436         * tree-ssa-ccp.c: Likewise.
11437         * tree-ssa-loop-ivopts.c: Likewise.
11438         * tree-nomudflap.c: Likewise.
11439         * tree-call-cdce.c: Likewise.
11440         * ipa-pure-const.c: Likewise.
11441         * c-format.c: Likewise.
11442         * tree-stdarg.c: Likewise.
11443         * tree-ssa-math-opts.c: Likewise.
11444         * tree-ssa-dom.c: Likewise.
11445         * tree-nrv.c: Likewise.
11446         * tree-ssa-propagate.c: Likewise.
11447         * ipa-utils.c: Likewise.
11448         * tree-ssa-propagate.h: Likewise.
11449         * tree-ssa-alias.c: Likewise.
11450         * gimple-low.c: Likewise.
11451         * tree-ssa-sink.c: Likewise.
11452         * ipa-inline.c: Likewise.
11453         * c-semantics.c: Likewise.
11454         * dwarf2out.c: Likewise.
11455         * expr.c: Likewise.
11456         * tree-ssa-loop-ivcanon.c: Likewise.
11457         * predict.c: Likewise.
11458         * tree-ssa-loop.c: Likewise.
11459         * tree-parloops.c: Likewise.
11460         * tree-ssa-address.c: Likewise.
11461         * tree-ssa-ifcombine.c: Likewise.
11462         * matrix-reorg.c: Likewise.
11463         * c-decl.c: Likewise.
11464         * tree-eh.c: Likewise.
11465         * c-pretty-print.c: Likewise.
11466         * lambda-trans.c: Likewise.
11467         * function.c: Likewise.
11468         * langhooks.c: Likewise.
11469         * ebitmap.h: Likewise.
11470         * tree-vectorizer.c: Likewise.
11471         * function.h: Likewise.
11472         * langhooks.h: Likewise.
11473         * tree-vectorizer.h: Likewise.
11474         * ipa-type-escape.c: Likewise.
11475         * ipa-type-escape.h: Likewise.
11476         * domwalk.c: Likewise.
11477         * tree-if-conv.c: Likewise.
11478         * profile.c: Likewise.
11479         * domwalk.h: Likewise.
11480         * tree-data-ref.c: Likewise.
11481         * tree-data-ref.h: Likewise.
11482         * tree-flow-inline.h: Likewise.
11483         * tree-affine.c: Likewise.
11484         * tree-vect-analyze.c: Likewise.
11485         * c-typeck.c: Likewise.
11486         * gimplify.c: Likewise.
11487         * coretypes.h: Likewise.
11488         * tree-ssa-phiopt.c: Likewise.
11489         * calls.c: Likewise.
11490         * tree-ssa-coalesce.c: Likewise.
11491         * tree.def: Likewise.
11492         * tree-dfa.c: Likewise.
11493         * except.c: Likewise.
11494         * except.h: Likewise.
11495         * cfgexpand.c: Likewise.
11496         * tree-cfgcleanup.c: Likewise.
11497         * tree-ssa-pre.c: Likewise.
11498         * tree-ssa-live.c: Likewise.
11499         * tree-sra.c: Likewise.
11500         * tree-ssa-live.h: Likewise.
11501         * tree-predcom.c: Likewise.
11502         * lambda.h: Likewise.
11503         * tree-mudflap.c: Likewise.
11504         * ipa-prop.c: Likewise.
11505         * print-tree.c: Likewise.
11506         * tree-ssa-copy.c: Likewise.
11507         * ipa-prop.h: Likewise.
11508         * tree-ssa-forwprop.c: Likewise.
11509         * ggc-page.c: Likewise.
11510         * c-omp.c: Likewise.
11511         * tree-ssa-dce.c: Likewise.
11512         * tree-vect-patterns.c: Likewise.
11513         * tree-ssa-ter.c: Likewise.
11514         * tree-nested.c: Likewise.
11515         * tree-ssa.c: Likewise.
11516         * lambda-code.c: Likewise.
11517         * tree-ssa-loop-prefetch.c: Likewise.
11518         * tree-inline.c: Likewise.
11519         * tree-inline.h: Likewise.
11520         * tree-iterator.c: Likewise.
11521         * tree-optimize.c: Likewise.
11522         * tree-ssa-phiprop.c: Likewise.
11523         * tree-vect-transform.c: Likewise.
11524         * tree-object-size.c: Likewise.
11525         * tree-outof-ssa.c: Likewise.
11526         * cfgloop.c: Likewise.
11527         * system.h: Likewise.
11528         * tree-profile.c: Likewise.
11529         * cfgloop.h: Likewise.
11530         * c-gimplify.c: Likewise.
11531         * c-common.c: Likewise.
11532         * tree-vect-generic.c: Likewise.
11533         * tree-flow.h: Likewise.
11534         * c-common.h: Likewise.
11535         * basic-block.h: Likewise.
11536         * tree-ssa-structalias.c: Likewise.
11537         * tree-switch-conversion.c: Likewise.
11538         * tree-ssa-structalias.h: Likewise.
11539         * tree-cfg.c: Likewise.
11540         * passes.c: Likewise.
11541         * ipa-struct-reorg.c: Likewise.
11542         * ipa-struct-reorg.h: Likewise.
11543         * tree-ssa-reassoc.c: Likewise.
11544         * cfgrtl.c: Likewise.
11545         * varpool.c: Likewise.
11546         * stmt.c: Likewise.
11547         * tree-ssanames.c: Likewise.
11548         * tree-ssa-threadedge.c: Likewise.
11549         * langhooks-def.h: Likewise.
11550         * tree-ssa-operands.c: Likewise.
11551         * config/alpha/alpha.c: Likewise.
11552         * config/frv/frv.c: Likewise.
11553         * config/s390/s390.c: Likewise.
11554         * config/m32c/m32c.c: Likewise.
11555         * config/m32c/m32c-protos.h: Likewise.
11556         * config/spu/spu.c: Likewise.
11557         * config/sparc/sparc.c: Likewise.
11558         * config/i386/i386.c: Likewise.
11559         * config/sh/sh.c: Likewise.
11560         * config/xtensa/xtensa.c: Likewise.
11561         * config/stormy16/stormy16.c: Likewise.
11562         * config/ia64/ia64.c: Likewise.
11563         * config/rs6000/rs6000.c: Likewise.
11564         * config/pa/pa.c: Likewise.
11565         * config/mips/mips.c: Likewise.
11566
11567 2008-07-28  Simon Baldwin  <simonb@google.com>
11568
11569         * c-pragma.c (handle_pragma_message): New function.
11570         (init_pragma): Register handle_pragma_message.
11571         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
11572         documentation.
11573
11574 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
11575
11576         PR tree-optimization/35252
11577         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
11578         REALPART_EXPR to be considered as same load operation.
11579
11580 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
11581
11582         PR tree-optimization/36830
11583         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
11584         (expressions_equal_p): Return false if only one operand is null.
11585
11586 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
11587
11588         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
11589         version requirements.
11590
11591 2008-07-26  Olivier Hainque  <hainque@adacore.com>
11592
11593         * collect2.c (symkind): New enum.  Symbol kinds we care about.
11594         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
11595         code and head comment accordingly.
11596         (scan_prog_file): Use symkind names instead of bare integers.
11597
11598 2008-07-25  Jan Hubicka  <jh@suse.cz>
11599
11600         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
11601         DECL_INLINE.
11602         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
11603         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
11604         * dojump.c (clear_pending_stack_adjust): Likewise.
11605         * print-tree.c (print_node): Ignore DECL_INLINE.
11606         * tree-inline.c (inlinable_function_p): Likewise.
11607
11608 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
11609
11610         * doc/extend.texi (hot attribute): Document that the hot attribute
11611         turns on -O3 for some ports.
11612         (cold attribute): Document that the cold attribute turns on -Os
11613         for some ports
11614
11615         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
11616         reflect function specific option support.
11617
11618         * target.h (struct target_option_hooks): Add fields to say whether
11619         the cold attribute implies -Os and the hot attribute implies -O3.
11620
11621         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
11622         By default, do not turn on -Os for cold functions.
11623         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
11624         not turn on -O3 for hot functions.
11625
11626         * c-common.c (handle_hot_attribute): Use target hook to determine
11627         if hot functions should enable -O3.
11628         (handle_cold_attribute): Use target hook to determine if cold
11629         functions should enable -Os.
11630
11631         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
11632         (override_options): Move disable scheduling to
11633         optimization_options.
11634         (optimization_options): Disable scheduling here, not
11635         override_options.
11636         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11637         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11638
11639         * config/ia64/ia64.c (ia64_override_options): Move setting
11640         scheduling flags to ia64_optimization_options.
11641         (ia64_optimization_options): Disable scheduling options here, and
11642         not in ia64_override_options.
11643         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11644         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11645
11646 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11647
11648         PR target/36936
11649         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
11650
11651 2008-07-25  Martin Jambor  <mjambor@suse.cz>
11652
11653         PR tree-optimization/36926
11654         * ipa-prop.c (ipa_analyze_call_uses): Call
11655         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
11656
11657 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
11658
11659         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
11660         movv2si_internal): Add mem = reg alternative.
11661
11662 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
11663
11664         PR bootstrap/36918
11665         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
11666         DEFAULT_PCC_STRUCT_RETURN to 127.
11667
11668 2008-07-24  Jan Hubicka  <jh@suse.cz>
11669
11670         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
11671         (build_cgraph_edges): Likewise.
11672         * cgraph.c (cgraph_node): Do not update assembler hash.
11673         (cgraph_remove_node): Drop non-unit-at-a-time code.
11674         * tree-pass.h (pass_O0_always_inline): Remove.
11675         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
11676         * toplev.c (process_options): Flag unit-at-a-time does not imply
11677         no section anchors.
11678         * cgraphunit.c: Update comments.
11679         (decide_is_function_needed): Drop non-unit-at-a-time mode.
11680         (cgraph_assemble_pending_functions): Remove.
11681         (cgraph_reset_node): Drop non-unit-at-a-time code.
11682         (cgraph_finalize_function): Likewise.
11683         (cgraph_analyze_function): Likewise.
11684         (cgraph_finalize_compilation_unit): Likewise.
11685         (cgraph_expand_function): Likewise.
11686         (cgraph_optimize): Likesise.
11687         (save_inline_function_body): Likewise.
11688         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
11689         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
11690         * ipa-inline.c: Update comments.
11691         (enum inlining_mode): remove INLINE_SPEED.
11692         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
11693         (cgraph_mark_inline_edge): Likewise.
11694         (try_inline): Likewise.
11695         (cgraph_decide_inlining_incrementally): Likewise.
11696         (cgraph_gate_inlining): Remove.
11697         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
11698         (cgraph_gate_early_inlining): Likewise.
11699         (gate_inline_passes): Remove.
11700         (pass_inline_parameters, pass_ipa_inline): Remove gates.
11701         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
11702         pass_O0_always_inline): Remove.
11703         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
11704         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
11705         * opts.c (no_unit_at_a_time_default): Remove.
11706         (decode_options): Remove flag_unit_at_a_time reset and warning.
11707         * opts.h (no_unit_at_a_time_default): Remove.
11708         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
11709         early in GNU dialect.
11710         (merge_decls): Update comment; drop unit-at-a-time check.
11711         (finish_decl): Likewise.
11712         (grok_declaration): Remove flag_inline_trees code.
11713         (finish_functions): Return on function returning non-void on all
11714         statics.
11715         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
11716         * cfgexpand.c (expand_one_static_var): Remove.
11717         (expand_one_var): Remove expand_one_static_var call.
11718         (expand_used_vars_for_block): Remove flag_unit_a_time check.
11719         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
11720         and flag_unit_at_a-time compatibility checks.
11721         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
11722         * tree-inline.c (flag_inline_trees): Remove.
11723         (inlinable_function_p): Don't check it.
11724         (expand_call_inline): Remove non-unit-at-a-time code.
11725         * tree-inline.h (flag_inline_trees): Remove.
11726         * tree-optimize.c (execute_early_local_optimizations): Remove
11727         unit-at-a-time checks.
11728         (tree_rest_of_compilation): Likewise.
11729         * combine.c (setup_incoming_promotions): Likewise.
11730         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
11731         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
11732         * passes.c (pass_inline_parameters): Update comments; remove
11733         O0_alwaysinline pass.
11734         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
11735         (execute_one_pass): Likewise.
11736         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
11737         (ix86_function_sseregparm): Likewise.
11738         * arm.c (arm_function_in_section_p): Likewise.
11739         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
11740         * varpool.c: Update comments.
11741         (decide_is_variable_needed): Remove unit-at-a-time checks.
11742         (varpool_finalize_decl): Likewise.
11743
11744 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11745
11746         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
11747         to 2 instead of -1.
11748         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
11749
11750 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
11751
11752         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
11753         imp symbol extension.
11754
11755         2008-07-23  Ian Lance Taylor  <iant@google.com>
11756
11757         * tree-vrp.c (infer_value_range): Ignore asm statements when
11758         looking for memory accesses for -fdelete-null-pointer-checks.
11759
11760 2008-07-24  Ben Elliston  <bje@au.ibm.com>
11761
11762         * config/spu/spu-c.c (__vector_keyword): New variable.
11763         (vector_keyword): Likewise.
11764         (spu_categorize_keyword): New function.
11765         (spu_macro_to_expand): Likewise.
11766         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
11767         compiling an ISO C dialect.
11768
11769 2008-07-24  Ben Elliston  <bje@au.ibm.com>
11770
11771         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
11772         conventional usage.
11773
11774 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11775
11776         * configure: Regenerate.
11777         * configure.ac: Require texinfo 4.7.
11778         * doc/install.texi: Document texinfo 4.7 requirement.
11779
11780 2008-07-23  Martin Jambor  <mjambor@suse.cz>
11781
11782         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
11783         rather than for DECL_SAVED_TREE.
11784         * ipa-prop.c: Include diagnostic.h.
11785         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
11786         thoroughly.
11787         (ipa_detect_param_modifications): Function rewritten from scratch.
11788         (ipa_compute_jump_functions): Changed accesses to modification flags.
11789         (ipa_free_node_params_substructures): Update flags destruction.
11790         (ipa_node_duplication_hook): Update flags duplication.
11791         (ipa_print_all_params_modified): Updated flag access.
11792         * ipa-prop.h (struct ipa_param_flags): New structure.
11793         (struct ipa_node_params): New field modification_analysis_done,
11794         modified_flags changed into param_flags.
11795         (ipa_is_ith_param_modified): Changed to use new flags.
11796         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
11797
11798         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
11799         ipa-cp.c and split into two functions.
11800         (ipa_print_node_jump_functions): New function.
11801         (compute_scalar_jump_functions): New function.
11802         (type_like_member_ptr_p): New function.
11803         (compute_pass_through_member_ptrs): New function.
11804         (fill_member_ptr_cst_jump_function): New function.
11805         (determine_cst_member_ptr): New function.
11806         (compute_cst_member_ptr_arguments): New function.
11807         (ipa_compute_jump_functions): Complete rewrite.
11808         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
11809         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
11810         (struct ipa_member_ptr_cst): New structure.
11811         (union jump_func_value): New field member_cst.
11812         * ipa-cp.c (ipcp_lat_is_insertable): New function.
11813         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
11814         jump function types.
11815         (ipcp_print_all_lattices): Slight fprintf rearrangement.
11816         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
11817         instead of ipcp_print_all_jump_functions.
11818         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
11819         only for replacable scalars.
11820
11821         * doc/invoke.texi (Optimize options): Add description of
11822         -findirect-inlining.
11823         * common.opt (flag_indirect_inlining): New flag.
11824         * opts.c (decode_options): Set flag_indirect_inlining when
11825         optimize >= 3.
11826
11827         * ipa-inline.c: Include ipa-prop.h.
11828         (inline_indirect_intraprocedural_analysis): New function.
11829         (inline_generate_summary): Allocate parameter and argument info
11830         structures, call inline_indirect_intraprocedural_analysis on each
11831         node when doing indirect inlining and deallocate indirect inlining
11832         data structures in the end.
11833         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
11834         (free_all_ipa_structures_after_iinln): New function.
11835         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
11836         done.
11837         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
11838
11839         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
11840         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11841         of computing the frequency separately.
11842         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11843         of computing the frequency separately.
11844         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
11845         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
11846         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
11847         (ipa_get_stmt_member_ptr_load_param): New function.
11848         (ipa_is_ssa_with_stmt_def): New function.
11849         (ipa_note_param_call): New function.
11850         (ipa_analyze_call_uses): New function.
11851         (ipa_analyze_stmt_uses): New function.
11852         (ipa_analyze_params_uses): New function.
11853         (ipa_free_node_params_substructures): Also free the param_calls linked
11854         list.
11855         (ipa_node_duplication_hook): Also duplicate the param_calls
11856         linked list.
11857         (ipa_print_node_param_flags): New function.
11858         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
11859         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
11860         * ipa-prop.h (struct ipa_param_flags): New field called.
11861         (struct ipa_param_call_note): New structure.
11862         (struct ipa_node_params): New fields param_calls and
11863         uses_analysis_done.
11864         (ipa_is_ith_param_called): New function.
11865         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11866         ipa_analyze_params_uses and dump parameter flags.
11867
11868         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
11869         ipa_propagate_indirect_call_infos if performing indirect inlining,
11870         pass a new parameter new_edges to it.
11871         (add_new_edges_to_heap): New fucntion.
11872         (cgraph_decide_inlining_of_small_functions): New vector
11873         new_indirect_edges for newly found indirect edges , call
11874         ipa_propagate_indirect_call_infos after inlining.
11875         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
11876         inlining if performing indirect inlining.  Call
11877         free_all_ipa_structures_after_iinln when doing so too.
11878         (inline_generate_summary): Do not call
11879         free_all_ipa_structures_after_iinln here.
11880         * ipa-prop.c (update_jump_functions_after_inlining): New function.
11881         (print_edge_addition_message): New function.
11882         (update_call_notes_after_inlining): New function.
11883         (propagate_info_to_inlined_callees): New function.
11884         (ipa_propagate_indirect_call_infos): New function.
11885         * ipa-prop.h: Include cgraph.h
11886         (struct ipa_param_call_note): Fields reordered, new field processed.
11887         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
11888         flag indirect_call.
11889         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
11890         rediscovered call statements.
11891         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
11892         (dump_cgraph_node): Dump also the indirect_call flag.
11893         (cgraph_clone_edge): Copy also the indirect_call flag.
11894         * tree-inline.c (copy_bb): Do not check for fndecls from call
11895         expressions, check for edge availability when moving clones.
11896         (get_indirect_callee_fndecl): New function.
11897         (expand_call_inline): If callee declaration is not apprent from
11898         the statement, try calling get_indirect_callee_fndecl.  Do not
11899         issue warnings or call sorry when not inlinings an indirect edge.
11900         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
11901
11902         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
11903         bit more frandly to matching.
11904         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
11905         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
11906         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
11907
11908 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
11909
11910         PR 36907
11911         * opth-gen.awk: Suppress function specific features when building
11912         target libraries.
11913         * optc-gen.awk: Ditto.
11914
11915 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11916
11917         PR 35058
11918         * diagnostic.c (pedwarn): Add opt parameter.
11919         (pedwarn0): New.
11920         * c-tree.h (pedwarn_init): Add opt parameter.
11921         (pedwarn_c90): Likewise.
11922         (pedwarn_c99): Likewise.
11923         * c-errors.c (pedwarn_c99): Likewise.
11924         (pedwarn_c90): Likewise.
11925         * toplev.h (pedwarn): Update declaration.
11926         (pedwarn0): Declare.
11927         * c-lex.c: All calls to pedwarn changed.
11928         * builtins.c: All calls to pedwarn changed.
11929         * toplev.c: All calls to pedwarn changed.
11930         * c-decl.c: All calls to pedwarn changed.
11931         * c-typeck.c: All calls to pedwarn changed.
11932         * c-common.c: All calls to pedwarn changed.
11933         * c-parser.c: All calls to pedwarn changed.
11934
11935 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
11936             Karthik Kumar  <karthikkumar@gmail.com>
11937
11938         * attribs.c (file scope): Include c-common.h.
11939         (decl_attributes): Add support for #pragma GCC optimize and
11940         #pragma GCC option.
11941
11942         * targhooks.c (default_can_inline_p): New function that is the
11943         default for the TARGET_CAN_INLINE_P target hook.
11944
11945         * targhooks.h (default_can_inline_p): Add declaration.
11946
11947         * tree.c (cl_optimization_node): New static tree for building
11948         OPTIMIZATION_NODE tree.
11949         (cl_target_option_node): New static tree for building
11950         TARGET_OPTION_NODE tree.
11951         (cl_option_hash_table): New hash table for hashing
11952         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11953         (cl_option_hash_hash): New function to provide the hash value for
11954         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11955         (cl_option_hash_eq): New function to provide an equality test for
11956         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11957         (tree_code_size): Add support for OPTIMIZATION_NODE and
11958         TARGET_OPTION_NODE trees.
11959         (tree_code_structure): Add support for OPTIMIZATION_NODE and
11960         TARGET_OPTION_NODE trees.
11961         (build_optimization_node): Build a tree that has all of the
11962         current optimization options.
11963         (build_target_option_node): Build a tree that has the target
11964         options that might be changed on a per function basis.
11965
11966         * tree.h (file scope): Include options.h.
11967         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
11968         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
11969         (TREE_OPTIMIZATION): Ditto.
11970         (TREE_TARGET_SPECIFIC): Ditto.
11971         (struct tree_function_decl): Add fields for remembering the
11972         current optimization options and target specific options.
11973         (struct tree_optimization_option): New tree variant that remembers
11974         the optimization options.
11975         (struct tree_target_option): New tree variant that remembers the
11976         target specific flags that might change for compiling a particular
11977         function.
11978         (union tree_node): Include tree_optimization_option and
11979         tree_target_option fields.
11980         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
11981         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
11982         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
11983         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
11984         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
11985         optimization and target options.
11986         (optimization_default_node): New macro to refer to global_trees
11987         field.
11988         (optimization_current_node): Ditto.
11989         (optimization_cold_node): Ditto.
11990         (optimization_hot_node): Ditto.
11991         (target_option_default_node): Ditto.
11992         (target_option_current_node): Ditto.
11993         (current_option_pragma): Ditto.
11994         (current_optimize_pragma): Ditto.
11995
11996         * target.h (struct gcc_target): Add valid_option_attribute_p,
11997         target_option_save, target_option_restore, target_option_print,
11998         target_option_pragma_parse, and can_inline_p hooks.
11999
12000         * toplev.h (parse_optimize_options): Add declaration.
12001         (fast_math_flags_struct_set_p): Ditto.
12002
12003         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
12004         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
12005         optimize is used.
12006
12007         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
12008         tree_can_inline_p hook to see if one function can inline another.
12009         (cgraph_decide_inlining): Ditto.
12010         (cgraph_decide_inlining_incrementally): Ditto.
12011
12012         * opts.c (decode_options): Add support for running multiple times
12013         to allow functions with different target or optimization options
12014         than was specified on the command line.
12015         (fast_math_flags_struct_set_p): New function that is similar to
12016         fast_math_flags_set_p, except it uses the values in the
12017         cl_optimization structure instead of global variables.
12018
12019         * optc-gen.awk: Add support for TargetSave to allow a back end to
12020         declare new fields that need to be saved when using function
12021         specific options.  Include flags.h and target.h in the options.c
12022         source.  Add support for Save to indicate which options can be set
12023         for individual functions.  Generate cl_optimize_save,
12024         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
12025         cl_target_option_restore, cl_target_option_print functions to
12026         allow functions to use different optimization or target options.
12027
12028         * opt-functions.awk (var_type_struct): Return the type used for
12029         storing the field in a structure.
12030
12031         * opth-gen.awk: Add support for TargetSave to allow a back end to
12032         declare new fields that need to be saved when using function
12033         specific options.  Add support for Save to indicate which options
12034         can be set for individual functions.  Only generate one extern for
12035         Mask fields.  Generate cl_optimization and cl_target_option
12036         structures to remember optimization and target options.
12037
12038         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
12039         collecting new tree nodes.
12040         (TS_TARGET_OPTION): Ditto.
12041
12042         * c-decl.c (merge_decls): Merge function specific target and
12043         optimization options.
12044
12045         * function.c (invoke_set_current_function_hook): If the function
12046         uses different optimization options, change the global variables
12047         to reflect this.
12048
12049         * coretypes.h (struct cl_optimization): Add forward reference.
12050         (struct cl_target_option): Ditto.
12051
12052         * c-pragma.c (option_stack): New static vector to remember the
12053         current #pragma GCC option stack.
12054         (handle_pragma_option): New function to support #pragma GCC option
12055         to change target options.
12056         (optimize_stack): New static vector to remember the current
12057         #pragma GCC optimize stack.
12058         (handle_pragma_optimize): New function to support #pragma GCC
12059         optimize to change optimization options.
12060         (init_pragma): Add support for #pragma GCC optimize and #pragma
12061         GCC option.
12062
12063         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
12064         optimization options.
12065         (TARGET_OPTION_NODE): New tree code for remembering certain target
12066         options.
12067
12068         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
12069         TARGET_OPTION_NODE trees.
12070
12071         * common.opt (-O): Add Optimization flag.
12072         (-Os): Ditto.
12073         (-fmath-errno): Ditto.
12074         (-falign-functions): Add UInteger flag to make sure flag gets full
12075         int in cl_optimization structure.
12076         (-falign-jumps): Ditto.
12077         (-falign-labels): Ditto.
12078         (-falign-loops): Ditto.
12079         (-fsched-stalled-insns): Ditto.
12080         (-fsched-stalled-insns-dep): Ditto.
12081
12082         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
12083         definition.
12084         (TARGET_OPTION_SAVE): Ditto.
12085         (TARGET_OPTION_RESTORE): Ditto.
12086         (TARGET_OPTION_PRINT): Ditto.
12087         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
12088         (TARGET_CAN_INLINE_P): Ditto.
12089         (TARGET_INITIALIZER): Add new hooks.
12090
12091         * tree-inline.c (tree_can_inline_p): New function to determine
12092         whether one function can inline another.  Check if the functions
12093         use compatible optimization options, and also call the backend
12094         can_inline_p hook.
12095
12096         * tree-inline.h (tree_can_inline_p): Add declaration.
12097
12098         * c-common.c (c_common_attribute): Add support for option and
12099         optimize attributes.
12100         (handle_option_attribute): Add support for the option attribute to
12101         allow the user to specify different target options for compiling a
12102         specific function.
12103         (handle_optimize_attribute): Add support for the optimize
12104         attribute to allow the user to specify different optimization
12105         options for compiling a specific function.
12106         (handle_hot_attribute): Turn on -O3 optimization for this one
12107         function if it isn't the default optimization level.
12108         (handle_cold_attribute): Turn on -Os optimization for this one
12109         function if it insn't the default optimization.
12110         (const_char_p): New const char * typedef.
12111         (optimize_args): New static vector to remember the optimization
12112         arguments.
12113         (parse_optimize_options): New function to set up the optimization
12114         arguments from either the optimize attribute or #pragma GCC optimize.
12115
12116         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
12117         (builtin_define_std): Ditto.
12118
12119         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
12120         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
12121         (x86_64-*-*): Ditto.
12122
12123         * Makefile.in (TREE_H): Add options.h.
12124         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
12125
12126         * doc/extend.texi (option attribute): Document new attribute.
12127         (optimize attribute): Ditto.
12128         (hot attribute): Document hot attribute sets -O3.
12129         (cold attribute): Document cold attribute sets -Os.
12130         (#pragma GCC option): Document new pragma.
12131         (#pragma GCC optimize): Ditto.
12132
12133         * doc/options.texi (TargetSave): Document TargetSave syntax.
12134         (UInteger): Document UInteger must be used for certain flags.
12135         (Save): Document Save option to create target specific options
12136         that can be saved/restored on a function specific context.
12137
12138         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
12139         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
12140
12141         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
12142         (TARGET_OPTION_SAVE): Ditto.
12143         (TARGET_OPTION_RESTORE): Ditto.
12144         (TARGET_OPTION_PRINT): Ditto.
12145         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
12146         (TARGET_CAN_INLINE_P): Ditto.
12147
12148         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
12149         -mfpmath=sse,387.
12150         (-mfpmath=both): Ditto.
12151
12152 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
12153             Karthik Kumar  <karthikkumar@gmail.com>
12154
12155         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
12156         (TARGET_POPCNT): Ditto.
12157         (TARGET_SAHF): Ditto.
12158         (TARGET_AES): Ditto.
12159         (TARGET_PCLMUL): Ditto.
12160         (TARGET_CMPXCHG16B): Ditto.
12161         (TARGET_RECIP): Move switch into target_flags.
12162         (TARGET_FUSED_MADD): Ditto.
12163         (ix86_arch_features): Make an unsigned char type.
12164         (ix86_tune_features): Ditto.
12165         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
12166         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
12167         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
12168
12169         * config/i386/i386.opt (arch): New TargetSave field to define
12170         fields that need to be saved for function specific option support.
12171         (tune): Ditto.
12172         (fpmath): Ditto.
12173         (branch_cost): Ditto.
12174         (ix86_isa_flags_explicit): Ditto.
12175         (tune_defaulted): Ditto.
12176         (arch_specified): Ditto.
12177         (-m128-long-double): Add Save flag to save option for target
12178         specific option support.
12179         (-m80387): Ditto.
12180         (-maccumulate-outgoing-args): Ditto.
12181         (-malign-double): Ditto.
12182         (-malign-stringops): Ditto.
12183         (-mfancy-math-387): Ditto.
12184         (-mhard-float): Ditto.
12185         (-mieee-fp): Ditto.
12186         (-minline-all-stringops): Ditto.
12187         (-minline-stringops-dynamically): Ditto.
12188         (-mms-bitfields): Ditto.
12189         (-mno-align-stringops): Ditto.
12190         (-mno-fancy-math-387): Ditto.
12191         (-mno-push-args): Ditto.
12192         (-mno-red-zone): Ditto.
12193         (-mpush-args): Ditto.
12194         (-mred-zone): Ditto.
12195         (-mrtd): Ditto.
12196         (-msseregparm): Ditto.
12197         (-mstack-arg-probe): Ditto.
12198         (-m32): Ditto.
12199         (-m64): Ditto.
12200         (-mmmx): Ditto.
12201         (-m3dnow): Ditto.
12202         (-m3dnowa): Ditto.
12203         (-msse): Ditto.
12204         (-msse2): Ditto.
12205         (-msse3): Ditto.
12206         (-msse4.1): Ditto.
12207         (-msse4.2): Ditto.
12208         (-msse4): Ditto.
12209         (-mno-sse4): Ditto.
12210         (-msse4a): Ditto.
12211         (-msse5): Ditto.
12212         (-mrecip): Move flag into target_flags.
12213         (-mcld): Ditto.
12214         (-mno-fused-madd): Ditto.
12215         (-mfused-madd): Ditto.
12216         (-mabm): Move flag into ix86_isa_flags.
12217         (-mcx16): Ditto.
12218         (-mpopcnt): Ditto.
12219         (-msahf): Ditto.
12220         (-maes): Ditto.
12221         (-mpclmul): Ditto.
12222
12223         * config/i386/i386-c.c: New file for #pragma support.
12224         (ix86_target_macros_internal): New function to #define or #undef
12225         target macros based when the user uses the #pragma GCC option to
12226         change target options.
12227         (ix86_pragma_option_parse): New function to add #pragma GCC option
12228         support.
12229         (ix86_target_macros): Move defining the target macros here from
12230         TARGET_CPU_CPP_BUILTINS in i386.h.
12231         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
12232         defined, initialize any subtarget #pragmas.
12233
12234         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
12235         REGISTER_TARGET_PRAGMAS.
12236
12237         * config/i386/t-i386: New file for x86 dependencies.
12238         (i386.o): Make dependencies mirror the include files used.
12239         (i386-c.o): New file, add dependencies.
12240
12241         * config/i386/i386-protos.h (override_options): Add bool argument.
12242         (ix86_valid_option_attribute_tree): Add declaration.
12243         (ix86_target_macros): Ditto.
12244         (ix86_register_macros): Ditto.
12245
12246         * config/i386/i386.c (ix86_tune_features): Move initialization of
12247         the target masks to initial_ix86_tune_features to allow functions
12248         to have different target options.  Make type unsigned char,
12249         instead of unsigned int.
12250         (initial_ix86_tune_features): New static vector to hold processor
12251         masks for the tune variables.
12252         (ix86_arch_features): Move initialization of the target masks to
12253         initial_ix86_arch_features to allow functions to have different
12254         target options.  Make type unsigned char, instead of unsigned int.
12255         (initial_ix86_arch_features): New static vector to hold processor
12256         masks for the arch variables.
12257         (enum ix86_function_specific_strings): New enum to describe the
12258         string options used for attribute((option(...))).
12259         (ix86_target_string): New function to return a string that
12260         describes the target options.
12261         (ix86_debug_options): New function to print the current options in
12262         the debugger.
12263         (ix86_function_specific_save): New function hook to save the
12264         function specific global variables in the cl_target_option structure.
12265         (ix86_function_specific_restore): New function hook to restore the
12266         function specific variables from the cl_target_option structure to
12267         the global variables.
12268         (ix86_function_specific_print): New function hook to print the
12269         target specific options in the cl_target_option structure.
12270         (ix86_valid_option_attribute_p): New function hook to validate
12271         attribute((option(...))) arguments.
12272         (ix86_valid_option_attribute_tree): New function that is common
12273         code between attribute((option(...))) and #pragma GCC option
12274         support that parses the options and returns a tree holding the options.
12275         (ix86_valid_option_attribute_inner_p): New helper function for
12276         ix86_valid_option_attribute_tree.
12277         (ix86_can_inline_p): New function hook to decide if one function
12278         can inline another on a target specific basis.
12279         (ix86_set_current_function); New function hook to switch target
12280         options if the user used attribute((option(...))) or #pragma GCC
12281         option.
12282         (ix86_tune_defaulted): Move to static file scope from
12283         override_options.
12284         (ix86_arch_specified): Ditto.
12285         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
12286         ix86_isa_flags.
12287         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
12288         (OPTION_MASK_ISA_ABM_SET): Ditto.
12289         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
12290         (OPTION_MASK_ISA_CX16_SET): Ditto.
12291         (OPTION_MASK_ISA_SAHF_SET): Ditto.
12292         (OPTION_MASK_ISA_AES_UNSET): Ditto.
12293         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
12294         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
12295         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
12296         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
12297         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
12298         (struct ptt): Move to static file scope from override_options.
12299         (processor_target_table): Ditto.
12300         (cpu_names): Ditto.
12301         (ix86_handle_option): Add support for options that are now isa options.
12302         (override_options): Add support for declaring functions that
12303         support different target options than were specified on the
12304         command line.  Move struct ptt, processor_target_table, cpu_names,
12305         ix86_tune_defaulted, ix86_arch_specified to static file scope.
12306         Add bool argument.  Fix up error messages so the appropriate error
12307         is given for either command line or attribute.
12308         (ix86_previous_fndecl): New static to remember previous function
12309         declaration to see if we need to change target options.
12310         (ix86_builtins_isa): New array to record the ISA of each builtin
12311         function.
12312         (def_builtin): Always create the builtin function, even if the
12313         current ISA doesn't support it.
12314         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
12315         tests for those builtins.
12316         (ix86_init_builtins): Remove TARGET_MMX test for calling
12317         ix86_init_mmx_sse_builtins.
12318         (ix86_expand_builtin): If the current ISA doesn't support a given
12319         builtin, signal an error.
12320         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
12321         (TARGET_SET_CURRENT_FUNCTION): Ditto.
12322         (TARGET_OPTION_SAVE): Ditto.
12323         (TARGET_OPTION_RESTORE): Ditto.
12324         (TARGET_OPTION_PRINT): Ditto.
12325         (TARGET_CAN_INLINE_P): Ditto.
12326
12327 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
12328
12329         * c-typeck.c (build_external_ref): Don't call assemble_external.
12330         * final.c (output_operand): Call assemble_external.
12331
12332 2008-07-21  DJ Delorie  <dj@redhat.com>
12333
12334         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
12335         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12336
12337 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12338
12339         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
12340         original insn and splitter contents into ...
12341         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
12342         flag_unsafe_math_optimizations.  Add dummy scratch register.
12343         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
12344         !flag_unsafe_math_optimizations.  Returns number with next
12345         highest magnitude if this is still less or equal to the true
12346         quotient in magnitude.
12347
12348 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
12349
12350         * Makefile.in: Replace toplev.h with TOPLEV_H.
12351         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
12352         * c-lex.c (fe_file_change): Don't set in_system_header.
12353         * c-parser.c (c_token): Remove in_system_header.
12354         (c_lex_one_token): Don't set in_system_header.
12355         (c_parser_set_source_position_from_token): Don't set in_system_header.
12356         * diagnostic.c (diagnostic_report_diagnostic): Use location from
12357         diagnostic_info.
12358         (warning_at): New.
12359         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
12360         * flags.h (in_system_header): Remove.
12361         * function.c (saved_in_system_header): Remove.
12362         (push_cfun): Don't set in_system_header.
12363         (pop_cfun): Don't set in_system_header.
12364         (push_struct_function): Don't set in_system_header.
12365         * input.h (expanded_location): Add sysp.
12366         (in_system_header_at): New.
12367         (in_system_header): New.
12368         * toplev.c (in_system_header): Remove.
12369         * toplev.h: Include input.h
12370         (warning_at): New.
12371         * tree-cfg.c (execute_warn_function_return): Call warning_at.
12372         * tree-ssa.c (warn_uninit): Call warning_at.
12373         (warn_uninitialized_var): Update calls to warn_uninit.
12374         (warn_uninitialized_phi): Update calls to warn_uninit.
12375         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
12376         (expand_location): Initialize xloc.sysp.
12377         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
12378         (tree_decl_with_vis): Remove in_system_header_flag.
12379
12380 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
12381
12382         PR target/36822
12383         * recog.c (asm_operand_ok): Change the order of the extra
12384         memory constraint checks.
12385
12386 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12387
12388         PR tree-opt/36879
12389         * tree-switch-conversion.c (build_one_array): Call
12390         varpool_mark_needed_node and varpool_finalize_decl
12391         instead of assemble_variable.
12392
12393 2008-07-19  Jan Hubicka  <jh@suse.cz>
12394
12395         * cgraph.c (cgraph_add_new_function): Do early local passes.
12396         * tree-nrv.c (gate_pass_return_slot): New gate.
12397         (pass_nrv): Add the gate.
12398         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
12399         functions.
12400         (coalesce_ssa_name): Coalesce SSA names.
12401         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
12402         not optimizing so unused user vars remains visible.
12403         * common.opt (flag_tree_ter): Always enable by default.
12404         * tree-ssa-ter.c: Include flags.h
12405         (is_replaceable_p): Check that locations match; when aliasing
12406         is missing be conservative about loads.
12407         * tree-optimize.c (gate_init_datastructures): Remove.
12408         (pass_init_datastructures): New.
12409         * passes.c: Reorder passes so we always go into SSA.
12410
12411 2008-07-19  Jan Hubicka  <jh@suse.cz>
12412
12413         * doc/extend.texi (flatten attribute): Remove note about
12414         unit-at-a-time.
12415         * doc/invoke.texi (--combine): Likewise.
12416         (-finline-functions-called-once): Update levels when enabled.
12417         (-funit-at-a-time): Document new behaviour.
12418         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
12419         -fno-section-anchors when disabled explicitly.
12420         (inline params): They are not ignored now.
12421         (precompiled headers): Remove unit-at-a-time as being incompatible.
12422         * opts.c (decode_options): Handle unit-at-a-time as alias;
12423         imply -fno-section-anchors when toplevel reorder is disabled
12424         explicitly.
12425         * common.opt (ftoplevel-reorder): Set default value to 2.
12426         (funit-at-a-time): Set default value to 1.
12427         * config/rs6000/rs6000.c (optimization_options): Set section anchors
12428         to 2.
12429
12430 2008-07-19  Jan Hubicka  <jh@suse.cz>
12431
12432         * builtins.c (expand_builtin_int_roundingfn,
12433         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
12434         it is not useful.
12435
12436 2008-07-19  Richard Guenther  <rguenther@suse.de>
12437
12438         PR bootstrap/36864
12439         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
12440         * tree-ssa-sccvn.c (get_constant_value_id): New function.
12441         * tree-ssa-pre.c (get_expr_value_id): For newly created
12442         constant value-ids make sure to add the expression to its
12443         expression-set.
12444
12445 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
12446
12447         PR middle-end/36877
12448         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
12449         return value of the builtin is ignored.
12450
12451 2008-07-19  Olivier Hainque  <hainque@adacore.com>
12452
12453         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
12454         bits, a C conformant malloc implementation has to provide.
12455         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
12456
12457 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
12458
12459         PR target/36780
12460         PR target/36827
12461         * reload.c (find_reloads_subreg_address): Only reload address if
12462         reloaded == 0, not for reloaded != 1.
12463
12464         Revert:
12465         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
12466         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12467         (m32c_legitimate_address_p): Handle "++rii" addresses created by
12468         m32c_legitimize_reload_address.
12469
12470         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12471         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12472         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12473
12474 2008-07-19  Olivier Hainque  <hainque@adacore.com>
12475
12476         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
12477         argument, saying whether nested array are to be collapsed
12478         into a single array type DIE with multiple subscripts.
12479         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
12480         issues, centralize the nested array types collapsing control and
12481         disable the transformation for Ada.
12482
12483 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
12484
12485         PR target/36786
12486         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
12487         x86_64_shift_adj.
12488         (x86_64_shift_adj_2): New expander.
12489         (x86_64_shift_adj_3): Ditto.
12490         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
12491         to split TImode operands.
12492         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
12493         (ix86_split_lshr): Ditto.
12494
12495 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
12496
12497         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
12498         and __CHAR32_TYPE__.
12499         * c-typeck.c (digest_init): Support char16_t and char32_t.
12500         (set_nonincremental_init_from_string): Idem.
12501
12502 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12503
12504         PR middle-end/36859
12505         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
12506         PREFERRED_STACK_BOUNDARY.
12507         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12508
12509 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12510
12511         PR middle-end/36858
12512         * function.c (locate_and_pad_parm): Cap boundary earlier.
12513
12514 2008-07-17  Julian Brown  <julian@codesourcery.com>
12515
12516         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
12517         no-op for targets which don't use DLLs.
12518
12519 2008-07-17  Martin Jambor  <mjambor@suse.cz>
12520
12521         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
12522         that nodes are relevant by examining the node->analyzed flag.
12523         (ipcp_init_stage): Check which nodes are relevant, assert that the
12524         relevant ones are also required.
12525         (ipcp_propagate_stage): Check on the side arrays are properly
12526         allocated.
12527         (ipcp_print_all_jump_functions): Make sure not to touch any node
12528         that is not analyzed or an edge that does not have a corresponding
12529         entry in the on-the-side vectors.
12530         (ipcp_function_scale_print): Likewise.
12531         (ipcp_update_callgraph): Check that the node is relevant.
12532         (ipcp_insert_stage): Check that the node is relevant.  Check there is
12533         an info for every node and edge.
12534         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
12535         (ipa_print_all_tree_maps): Likewise and a new variable info.
12536         (ipa_print_all_params_modified): Likewise.
12537         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
12538
12539 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
12540
12541         PR target/25343
12542         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
12543
12544 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
12545
12546         PR rtl-optimization/36753
12547         * fwprop.c (use_killed_between): Don't shortcut
12548         single-definition global registers.
12549
12550 2008-07-16  Jan Hubicka  <jh@suse.cz>
12551
12552         * cgraph.h (varpool_empty_needed_queue): Declare.
12553         * cgraphunit.c (output_in_order): Mark all variables as needed;
12554         empty the queue.
12555         * varpool.c (varpool_assemble_node): Update debug queue.
12556         (varpool_assemble_pending_decls): Don't do it here.
12557         (varpool_empty_needed_queue):  New function.
12558
12559 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12560
12561         * recog.c (peephole2_optimize): Fix formatting.
12562
12563 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12564
12565         * c-pch.c (get_ident): Avoid C++ keywords.
12566         * combine-stack-adj.c (single_set_for_csa): Likewise.
12567         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
12568         output_asm_insn): Likewise.
12569         * reload.c (push_secondary_reload, find_reusable_reload,
12570         push_reload, combine_reloads, find_reloads,
12571         debug_reload_to_stream): Likewise.
12572         * reload.h (struct reload): Likewise.
12573         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
12574         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
12575         emit_output_reload_insns): Likewise.
12576         * targhooks.c (default_secondary_reload): Likewise.
12577         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
12578
12579 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12580
12581         * recog.c (validate_change_1, validate_change,
12582         validate_unshare_change, validate_replace_rtx_1, struct
12583         funny_match, constrain_operands, peephole2_optimize): Avoid C++
12584         keywords.
12585         * reload.c (push_secondary_reload, secondary_reload_class,
12586         scratch_reload_class, find_valid_class, find_reusable_reload,
12587         push_reload, find_dummy_reload, find_reloads_address_1,
12588         find_reloads_address_part, find_equiv_reg): Likewise.
12589         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
12590         choose_reload_regs): Likewise.
12591         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
12592         Likewise.
12593         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
12594         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
12595         * sched-rgn.c (concat_INSN_LIST): Likewise.
12596         * stor-layout.c (mode_for_size, mode_for_size_tree,
12597         smallest_mode_for_size): Likewise.
12598
12599 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12600
12601         * cfg.c (dump_reg_info): Avoid C++ keywords.
12602         * dwarf2asm.c (dw2_force_const_mem,
12603         dw2_asm_output_encoded_addr_rtx): Likewise.
12604         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
12605         * expmed.c (expand_shift): Likewise.
12606         * global.c (find_reg): Likewise.
12607         * graph.c (draw_edge): Likewise.
12608         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
12609         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
12610         widen_clz, widen_bswap, expand_parity, expand_unop,
12611         emit_cmp_and_jump_insn_1): Likewise.
12612         * postreload.c (reload_cse_simplify_operands): Likewise.
12613         * ra.h (add_neighbor): Likewise.
12614         * reg-stack.c (remove_regno_note, change_stack): Likewise.
12615         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
12616         record_reg_classes, copy_cost, record_address_regs,
12617         invalid_mode_change_p): Likewise.
12618         * regrename.c (regrename_optimize, scan_rtx_reg,
12619         dump_def_use_chain, find_oldest_value_reg,
12620         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
12621
12622 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
12623
12624         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
12625         MASK_POWERPC64 for power4 in previous commit.
12626
12627 2008-07-16  Olivier Hainque  <hainque@adacore.com>
12628
12629         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
12630         instead of bare conversion to cast const-ness away.
12631
12632 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
12633
12634         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
12635         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
12636         * config/xtensa/xtensa.c (xtensa_function_value): New function.
12637         (TARGET_FUNCTION_VALUE): Define.
12638
12639 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
12640
12641         * config/rs6000/rs6000.c (processor_target_table): Add
12642         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
12643
12644 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
12645
12646         PR target/36827
12647         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12648         (m32c_legitimate_address_p): Handle "++rii" addresses created by
12649         m32c_legitimize_reload_address.
12650
12651 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
12652
12653         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
12654         DECL_IN_SYSTEM_HEADER in sync.
12655
12656 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
12657
12658         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
12659         * tree-ssa-pre.c (pre_expr_eq): Ditto
12660         (get_constant_for_value_id): Take a type as an argument.
12661         (fully_constant_expression): Pass in type.
12662         (find_or_generate_expression): Short circuit constant case.
12663         (create_expression_by_pieces): Remove special casing of
12664         pointer_plus.
12665         (do_regular_insertion): Short circuit constant case.
12666         (do_partial_partial_insertion): Ditto.
12667
12668 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12669
12670         PR target/36782
12671         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
12672
12673 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
12674
12675         * config/xtensa/libgcc-xtensa.ver: New file.
12676         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
12677
12678 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12679
12680         * df-problems.c (df_set_note): Avoid C++ keywords.
12681         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
12682         * dse.c (record_store, remove_useless_values): Likewise.
12683         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
12684         gen_reg_rtx_offset, operand_subword, change_address_1,
12685         change_address, adjust_address_1, offset_address,
12686         widen_memory_access, emit_copy_of_insn_after): Likewise.
12687         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
12688         * fwprop.c (should_replace_address, propagate_rtx_1,
12689         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
12690         Likewise.
12691         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
12692         gcse_emit_move_after, update_ld_motion_stores): Likewise.
12693         * lcm.c (compute_insert_delete, pre_edge_lcm,
12694         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
12695         * lower-subreg.c (resolve_reg_notes): Likewise.
12696         * mode-switching.c (optimize_mode_switching): Likewise.
12697
12698 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12699
12700         * bt-load.c (add_btr_def, migrate_btr_def,
12701         branch_target_load_optimize): Avoid C++ keywords.
12702         * caller-save.c (insert_restore, insert_save, insert_one_insn):
12703         Likewise.
12704         * combine.c (subst, simplify_set, make_extraction,
12705         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
12706         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
12707         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
12708
12709 2008-07-15  Richard Guenther  <rguenther@suse.de>
12710
12711         PR middle-end/36369
12712         * c-common.c (strict_aliasing_warning): Do not warn for
12713         TYPE_REF_CAN_ALIAS_ALL pointers.
12714         (c_common_get_alias_set): may_alias types are not special.
12715         * tree.c (build_pointer_type_for_mode): Look up the may_alias
12716         attribute and set can_ref_all accordingly.
12717         (build_reference_type_for_mode): Likewise.
12718         * doc/extend.texi (may_alias): Clarify.
12719
12720 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12721
12722         PR target/36780
12723         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12724         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12725
12726 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12727
12728         PR target/31568
12729         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
12730         gcc_assert, instead call output_operand_lossage.
12731
12732 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
12733
12734         * builtins.c (std_canonical_va_list): Treat structure based
12735         va_list types.
12736
12737 2008-07-15  Ben Elliston  <bje@au.ibm.com>
12738
12739         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
12740
12741 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
12742
12743         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
12744         is set.
12745
12746 2008-07-14  Jan Hubicka  <jh@suse.cz>
12747
12748         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
12749         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
12750         fix predicates and constraints.
12751         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
12752         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
12753
12754 2008-07-14  Doug Kwan  <dougkwan@google.com>
12755
12756         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
12757         additional option file arm/eabi.opt.
12758         * config/arm/eabi.h (File): New configuration file for EABI targets.
12759         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
12760         SUBSUBTARGET_EXTRA_SPECS.
12761         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
12762         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
12763         from STARTFILE_SPEC so that it can be referenced in an override.
12764         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
12765         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
12766         can be referenced in an override.
12767         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
12768         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
12769         so that it can be referenced in an override.
12770         (LINK_SPEC): Use BPABI_LINK_SPEC.
12771         * config/arm/eabi.opt (File): New.
12772
12773 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12774
12775         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
12776         (FIXED_VALUE_H): New variable.
12777         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
12778         input.h, fixed-value.h.
12779         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
12780         (BASIC_BLOCK_H): Use $(BITMAP_H).
12781         (FUNCTION_H): Add varray.h.
12782         (IPA_REFERENCE_H): Use $(BITMAP_H).
12783         (CGRAPH_H): Add $(BASIC_BLOCK_H).
12784         (DF_H): Use $(BITMAP_H).
12785         (GGC_H): Add statistics.h.
12786         (INSN_ADDR_H): New.
12787         (INSN_ATTR_H): Use it.
12788         (SYSTEM_H): Add safe-ctype.h, filenames.h.
12789         (INPUT_H): New.
12790         (SYMTAB_H): Add $(OBSTACK_H).
12791         (CPP_INTERNAL_H): New.
12792         (TREE_DUMP_H): Add tree-pass.h.
12793         (TREE_FLOW_H): Use $(BITMAP_H)
12794         (PRETTY_PRINT_H): Use $(INPUT_H).
12795         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
12796         (GSTAB_H): New.
12797         (BITMAP_H): New.
12798         (many object files): Fix lots of header dependencies throughout.
12799
12800 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12801
12802         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
12803         New macros.
12804         (s-gtyp-input): Use them to write tmp-gi.list.
12805         (echo_to_gi.list): Remove.
12806
12807 2008-07-14  Richard Guenther  <rguenther@suse.de>
12808
12809         * tree-ssa-sccvn.c (pre_info): Remove.
12810         (switch_to_PRE_table): Likewise.
12811         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
12812         (set_hashtable_value_ids): Do not create value-ids for the
12813         optimistic tables.
12814         (run_scc_vn): Remove double test.  Remove bogus special-case
12815         in value-number printing.
12816         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
12817         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
12818         SSA_NAME_VALUE.
12819         * tree-flow-inline.h (get_value_handle): Remove.
12820         * tree-flow.h (get_value_handle): Remove.
12821
12822 2008-07-14  Martin Jambor  <mjambor@suse.cz>
12823
12824         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
12825         in which we generate arithmetics is not a subrange.
12826
12827 2008-07-14  Martin Jambor  <mjambor@suse.cz>
12828
12829         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
12830
12831 2008-07-14  Richard Guenther  <rguenther@suse.de>
12832
12833         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
12834
12835 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
12836
12837         PR target/36745
12838         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
12839         reload for symbol refs moved to r0 with -fPIC.
12840         (legitimize_pic_address): Use the target register as temporary
12841         reg if possible.
12842         (emit_symbolic_move): Adjust comment.
12843         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
12844         New expanders.
12845
12846 2008-07-14  Ben Elliston  <bje@au.ibm.com>
12847
12848         * c-common.h (C_CPP_HASHNODE): New macro.
12849         * coretypes.h (struct cpp_token): Forward declare.
12850         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12851         the context-sensitive keyword method.
12852         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
12853         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
12854         expand_bool_pixel): New.
12855         (altivec_categorize_keyword): New function.
12856         (init_vector_keywords): New function.
12857         (rs6000_macro_to_expand): Likewise.
12858         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
12859         compiling an ISO C dialect.
12860
12861 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
12862
12863         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
12864         (create_expression_by_pieces): Fix typo.
12865         (do_regular_insertion): Use debug counter here too.
12866
12867 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
12868
12869         PR target/35492.
12870         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
12871         CONST_OK_FOR_LETTER_P.  All port-local users changed.
12872         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
12873         implement Kp matching power-of-two.
12874         (CONSTRAINT_LEN): Define to match.
12875         * config/cris/cris.md: Replace all use of constraint K with Kc.
12876         ("*btst*): Use Kp for operand 0 of last alternative.
12877
12878 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12879
12880         PR testsuite/36440
12881         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
12882         and quad formats.
12883
12884 2008-07-13  Jan Hubicka  <jh@suse.cz>
12885
12886         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
12887         to be mangled too.
12888
12889 2008-07-13  Richard Guenther  <rguenther@suse.de>
12890
12891         PR middle-end/36811
12892         * langhooks.c (lhd_print_error_function): Deal with recursive
12893         BLOCK trees.
12894
12895 2008-07-12  Jan Hubicka  <jh@suse.cz>
12896
12897         * cgraph.c (assembler_name_hash): New static var.
12898         (hash_node_by_assembler_name, eq_assembler_name): New.
12899         (cgraph_node_for_asm): Use hashtable.
12900         (cgraph_remove_node): Maintain hashtable.
12901         (change_decl_assembler_name): Sanity check that names are not changing
12902         after aliasing was processed.
12903         * cgraph.h (varpoon_node): Add next GGC marker.
12904         * tree.c (decl_assembler_name_equal): Constify.
12905         (decl_assembler_name_hash): New.
12906         * tree.h (decl_assembler_name_equal): Constify.
12907         (decl_assembler_name_hash): Update.
12908
12909 2008-07-12  David Daney  <ddaney@avtrex.com>
12910
12911         * config/mips/driver-native.c (host_detect_local_cpu): Handle
12912         sb1 and r5000 cpus.
12913
12914 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12915
12916         * doc/md.texi: Document the MIPS "v" constraint.
12917         * config/mips/mips.h (reg_class): Revert last change.
12918         (REG_CLASS_NAMES): Likewise.
12919         (REG_CLASS_CONTENTS): Likewise.
12920         * config/mips/mips.c (mips_regno_to_class): Likewise.
12921         * config/mips/constraints.md (v): Likewise, but add documentation.
12922         Add a comment to say that this constraint should not be used in
12923         gcc code.
12924
12925 2008-07-11  DJ Delorie  <dj@redhat.com>
12926
12927         * config/h8300/h8300.md (length): Fix branch offset limit.
12928
12929 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
12930
12931         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
12932         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
12933         (avr_hard_regno_scratch_ok): New function.
12934         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12935         * config/avr/avr.md (all peepholes that request a scratch register):
12936         Remove avr_peep2_scratch_safe use.
12937
12938 2008-07-11  Tom Tromey  <tromey@redhat.com>
12939             Ian Lance Taylor  <iant@google.com>
12940
12941         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
12942         (struct c_common_resword): Define.
12943         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
12944         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
12945         (c_common_reswords, num_c_common_reswords): Declare.
12946         * c-common.c (c_common_reswords): New global const array.
12947         (num_c_common_reswords): New const int.
12948         * c-parser.c (struct resword, reswords): Don't define.
12949         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
12950         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
12951         than reswords.  If warning about C++ keywords, give them a special
12952         RID code.
12953         (c_lex_one_token): Warn about C++ keywords.  Call
12954         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
12955         (c_parser_external_declaration): Look for RID_xxx rather than
12956         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
12957         (c_parser_statement_after_labels): Likewise.
12958         (c_parser_objc_class_instance_variables): Likewise.
12959         (c_parser_objc_class_declaration): Likewise.
12960         (c_parser_objc_try_catch_statement): Likewise.
12961         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
12962         (declspecs_add_type): Likewise.
12963
12964 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
12965
12966         * ggc-page.c (alloc_page):
12967         Substituting xmalloc, xcalloc with
12968         XNEWVEC and XCNEWVAR macros which add the
12969         needed casts.
12970
12971 2008-07-11  Richard Guenther  <rguenther@suse.de>
12972
12973         PR tree-optimization/36765
12974         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
12975         aliases from HEAP vars to SMTs.
12976
12977 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12978
12979         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
12980         * configure.ac (loose_warn): Move -Wc++-compat from here...
12981         (strict_warn): ...to here.
12982         * configure: Regenerate.
12983
12984 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
12985
12986         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
12987         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
12988         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
12989         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
12990         excluding more specific h8300-*-* and sh-*-* targets.
12991
12992 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
12993
12994         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
12995         (eliminate): Ditto.
12996         (execute_pre): Call loop_optimizer_finalize in early exit.
12997
12998 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
12999
13000         PR middle-end/36790
13001         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
13002         uids in the bitmap, not just VAR_DECL uids.
13003
13004         PR rtl-optimization/36419
13005         * combine-stack-adj.c (adjust_frame_related_expr): New function.
13006         (combine_stack_adjustments_for_block): Call it if needed.  Delete
13007         correct insn.
13008         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
13009         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
13010         prologue sp adjustment.
13011
13012 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
13013
13014         PR other/28322
13015         * opts.c (print_ignored_options): Report postponed diagnostics for
13016         unknown -Wno-* options as warnings, not errors.
13017         (postpone_unknown_option_error): Renamed to...
13018         (postpone_unknown_option_warning): ... this.
13019
13020 2008-07-09  Doug Kwan  <dougkwan@google.com>
13021
13022         Revert:
13023         2008-07-08  Doug Kwan  <dougkwan@google.com>
13024
13025         * config/arm/arm.opt (mandroid): New option.
13026         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
13027         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
13028         (CC1_SPEC): Same.
13029         (CC1PLUS_SPEC): Same.
13030         (LIB_SPEC): Same.
13031         (STARTFILE_SPEC): Same.
13032         (ENDFILE_SPEC): Same.
13033         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
13034         used.
13035
13036 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
13037
13038         PR target/35802
13039         * config/mips/mips.h (reg_class): Remove V1_REG.
13040         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
13041         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
13042         instead of V1_REGS.
13043         (mips_get_tp): New function.
13044         (mips_legitimize_tls_address): Use it.
13045         * config/mips/constraints.md (v): Delete.
13046         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
13047         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
13048         After reload, split into a move and ...
13049         (*tls_get_tp_<mode>_split): ...this new instruction.
13050
13051 2008-07-09  David Daney  <ddaney@avtrex.com>
13052
13053         * config/mips/driver-native.c: Include coretypes.h and tm.h.
13054
13055 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
13056
13057         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
13058         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
13059         Add c argument.
13060         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
13061         htab_delete should be called.  Don't free c.
13062         (lookup_tmp_var): Create temp_htab lazily.
13063         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
13064         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
13065         callers.
13066         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
13067         lower_omp_ordered, lower_omp_critical, lower_omp_for,
13068         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
13069         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
13070         * tree-sra.c (generate_element_init): Likewise.
13071         * tree-mudflap.c (execute_mudflap_function_ops,
13072         execute_mudflap_function_decls): Likewise.
13073         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
13074         * tree-gimple.h (struct gimplify_ctx): New type.
13075         (push_gimplify_context): Adjust prototype.
13076
13077 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
13078
13079         * tree-ssa-pre.c (phi_translate_1): Update placement of
13080         add_to_value calls.
13081
13082 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
13083
13084         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
13085         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
13086         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
13087         * targhooks.c (default_hard_regno_scratch_ok): New function.
13088         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
13089         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
13090         * recog.c:  Include "target.h".
13091         (peep2_find_free_register): Add check for global regs. Add target
13092         specific check.
13093         * Makefile.in (recog.o): Depend on target.h.
13094
13095 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13096
13097         * config/sh/sh.c (sh_canonical_va_list_type): New.
13098         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
13099
13100 2008-07-09  Raksit Ashok <raksit@google.com>
13101
13102         * doc/invoke.texi (Option Summary): Mention new option
13103         -Wdisallowed-function-list=...
13104         (Warning Options): Document -Wdisallowed-function-list=...
13105         * common.opt (Wdisallowed-function-list=): New flag.
13106         * flags.h (warn_disallowed_functions): External definition of new
13107         boolean warning flag.
13108         (warn_if_disallowed_function_p): Declare new function.
13109         * opts.c (warning_disallowed_functions): New static variable.
13110         (warn_disallowed_functions): New boolean warning flag.
13111         (warn_if_disallowed_function_p): New function.
13112         (add_comma_separated_to_vector): Rename
13113         add_instrument_functions_exclude_list to this.
13114         (common_handle_option): Handle new option. Rename calls to
13115         add_instrument_functions_exclude_list into calls to
13116         add_comma_separated_to_vector.
13117         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
13118         based on flag warn_disallowed_functions.
13119
13120 2008-07-09  Christian Bruel  <christian.bruel@st.com>
13121
13122         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
13123          instead of get_attr_length.
13124
13125 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13126
13127         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
13128         keywords.
13129         * genemit.c (gen_insn): Likewise.
13130         * gengtype.c (note_def_vec): Likewise.
13131         * gengtype.h (note_def_vec): Likewise.
13132         * genoutput.c (struct data, output_insn_data, process_template,
13133         gen_expand, gen_split, note_constraint): Likewise.
13134         * genrecog.c (new_decision, add_to_sequence, factor_tests,
13135         make_insn_sequence): Likewise.
13136         * gensupport.c (record_insn_name): Likewise.
13137
13138 2008-07-08  Doug Kwan  <dougkwan@google.com>
13139
13140         * config/arm/arm.opt (mandroid): New option.
13141         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
13142         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
13143         (CC1_SPEC): Same.
13144         (CC1PLUS_SPEC): Same.
13145         (LIB_SPEC): Same.
13146         (STARTFILE_SPEC): Same.
13147         (ENDFILE_SPEC): Same.
13148         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
13149         used.
13150
13151 2008-07-08  Raksit Ashok  <raksit@google.com>
13152
13153         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
13154         (set_storage_via_setmem): Fix expected_align parameter.
13155         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
13156         missing from the list.
13157         * doc/md.texi (movmem): Explicitly state that expected alignment is
13158         to be expressed in bytes.
13159         (setmem): Explicitly state that expected alignment is to be expressed
13160         in bytes.
13161
13162 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
13163
13164         * reload.c (find_reloads_subreg_address): Do not require validity
13165         of address in original mode before reloading address.
13166
13167 2008-07-07  Tianwei Sheng  <tianweis@google.com>
13168
13169         * df-core.c (df_remove_problem): Adjust the access to avoid out of
13170         bounds array access.
13171
13172 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
13173
13174         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
13175
13176 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
13177
13178         Fix PR tree-optimization/23455
13179         Fix PR tree-optimization/35286
13180         Fix PR tree-optimization/35287
13181         * Makefile.in (OBJS-common): Remove tree-vn.o.
13182         (tree-vn.o): Remove.
13183         * dbgcnt.def: Add treepre_insert debug counter.
13184         * gcc/tree-flow.h (add_to_value): Updated for other changes.
13185         (debug_value_expressions): Ditto.
13186         (print_value_expressions): Ditto.
13187         * tree-pretty-print.c (dump_generic_node): Updated for
13188         VALUE_HANDLE removal.
13189         * tree-ssa-dom.c (record_equality): Ditto.
13190         (cprop_operand): Ditto.
13191         (lookup_avail_expr): Ditto.
13192         * tree-ssa-threadedge.c
13193         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
13194         (simplify_control_stmt_condition): Ditto.
13195         * tree.c (tree_code_size): Ditto.
13196         (tree_node_structure): Ditto.
13197         (iterative_hash_expr): Ditto.
13198         * tree.def: Ditto.
13199         * tree.h (VALUE_HANDLE_ID): Ditto.
13200         (VALUE_HANDLE_EXPR_SET): Ditto.
13201         (struct tree_value_handle): Ditto.
13202         (union tree_node): Ditto.
13203         * treestruct.def: Ditto.
13204         * tree-vn.c: Removed.
13205         * tree-ssa-pre.c: Rewritten entirely.
13206         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
13207         (constant_value_ids): Ditto.
13208         (vn_nary_op_t): Moved to header.
13209         (vn_phi_t): Ditto.
13210         (vn_reference_op_t): Ditto
13211         (vn_reference_t): Ditto.
13212         (next_value_id): New variable.
13213         (VN_INFO): Add an assert.
13214         (vn_constant_eq): New function.
13215         (vn_constant_hash): Ditto.
13216         (get_or_alloc_constant_value_id): Ditto.
13217         (value_id_constant_p): Ditto.
13218         (vn_reference_compute_hash): De-staticify.
13219         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
13220         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
13221         (valueize_refs): Update opcode if it changes from ssa name to constant.
13222         (vn_reference_lookup_1): Add new argument.
13223         (vn_reference_lookup):  Ditto.
13224         (vn_reference_lookup_pieces): New function.
13225         (vn_reference_insert): Add return type. Modify to deal with value ids.
13226         (vn_reference_insert_pieces):  New function.
13227         (vn_nary_op_compute_hash): De-staticify.
13228         (vn_nary_op_eq): Ditto.
13229         (vn_nary_op_lookup_pieces): New function.
13230         (vn_nary_op_lookup): Add new argument.
13231         (vn_nary_op_insert_pieces): New function.
13232         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
13233         (vn_phi_insert): Ditto.
13234         (visit_unary_op): Update for callee changes.
13235         (visit_binary_op): Ditto.
13236         (visit_reference_op_load): Ditto.
13237         (visit_reference_op_store): Ditto.
13238         (init_scc_vn): Init next_value_id, constant_to_value_id and
13239         constant_value_ids.
13240         (free_scc_vn): Free them.
13241         (set_hashtable_value_ids): New function.
13242         (run_scc_vn): Use it.
13243         (get_max_value_id): New function.
13244         (get_next_value_id): Ditto.
13245         (expressions_equal_p): Moved from tree-vn.c
13246         (sort_vuses): Ditto.
13247         (sort_vuses_heap): Ditto.
13248         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
13249         above).
13250         * tree.c (iterative_hash_hashval_t): Made non-static
13251         * tree.h (iterative_hash_hashval_t): Declare it.
13252
13253 2008-07-08  Martin Jambor  <mjambor@suse.cz>
13254
13255         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
13256         instead of ipa_create_node_params.
13257         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
13258         ipa_check_create_edge_args, free them with
13259         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
13260
13261         * ipa-prop.c: Include flags.h and tree-inline.h.
13262         (ipa_node_params_vector): New variable.
13263         (ipa_edge_args_vector): New variable.
13264         (edge_removal_hook_holder): New variable.
13265         (node_removal_hook_holder): New variable.
13266         (edge_duplication_hook_holder): New variable.
13267         (node_duplication_hook_holder): New variable.
13268         (ipa_detect_param_modifications): Check for presence of modified flags.
13269         (ipa_compute_jump_functions): Check for presence of jump functions.
13270         (ipa_free_edge_args_substructures): New function.
13271         (ipa_create_node_params): Removed.
13272         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
13273         (ipa_free_node_params_substructures): New function.
13274         (ipa_free_all_node_params): Changed to deallocate the on-the-side
13275         vector.
13276         (ipa_edge_removal_hook): New function.
13277         (ipa_node_removal_hook): New function.
13278         (duplicate_array): New function.
13279         (ipa_edge_duplication_hook): New function.
13280         (ipa_node_duplication_hook): New function.
13281         (ipa_register_cgraph_hooks): New function.
13282         (ipa_unregister_cgraph_hooks): New function.
13283         (free_all_ipa_structures_after_ipa_cp): New function.
13284
13285         * ipa-prop.h: Include vec.h.
13286         (ipa_node_params_t): New typedef with vector types for it.
13287         (ipa_edge_args_t):  New typedef with vector types for it.
13288         (IPA_NODE_REF): Changed to access an on-the-side vector.
13289         (IPA_EDGE_REF): Changed to access an on-the-side vector.
13290         (ipa_check_create_node_params): New function.
13291         (ipa_check_create_edge_args): New function.
13292
13293         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
13294         all users.
13295
13296 2008-07-07  Tom Tromey  <tromey@redhat.com>
13297
13298         * configure, config.in: Rebuilt.
13299         * configure.ac: Don't check for scandir or alphasort.
13300
13301 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
13302
13303         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
13304         types immediately after creating them.
13305
13306 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
13307
13308         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
13309
13310 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
13311
13312         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
13313         dump_constraint_graph.
13314         (dump_constraint_edge): New function.
13315         (dump_constraint_graph): New function.
13316         (debug_constraint_graph): New function.
13317         (dump_constraint): Removed useless comparison.
13318         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
13319         (dump_constraint_graph): Declare.
13320         (debug_constraint_graph): Declare.
13321         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
13322
13323 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
13324
13325         * config/i386/i386.c (is_va_list_char_pointer): New.
13326         (ix86_va_start): Replace compare with ms_va_list_type_node
13327         by is_va_list_char_pointer.
13328         (ix86_gimplify_va_arg): Likewise.
13329
13330 2008-07-07  Martin Jambor  <mjambor@suse.cz>
13331
13332         * cgraph.c (cgraph_edge_max_uid): New variable.
13333         (struct cgraph_edge_hook_list): New type.
13334         (struct cgraph_node_hook_list): New type.
13335         (struct cgraph_2edge_hook_list): New type.
13336         (struct cgraph_2node_hook_list): New type.
13337         (first_cgraph_edge_removal_hook): New variable.
13338         (first_cgraph_node_removal_hook): New variable.
13339         (first_cgraph_edge_duplicated_hook): New variable.
13340         (first_cgraph_node_duplicated_hook): New variable.
13341         (cgraph_add_edge_removal_hook): New function.
13342         (cgraph_remove_edge_removal_hook): New function.
13343         (cgraph_call_edge_removal_hooks):  New function.
13344         (cgraph_add_node_removal_hook):  New function.
13345         (cgraph_remove_node_removal_hook):  New function.
13346         (cgraph_call_node_removal_hooks):  New function.
13347         (cgraph_add_edge_duplication_hook):  New function.
13348         (cgraph_remove_edge_duplication_hook):  New function.
13349         (cgraph_call_edge_duplication_hooks):  New function.
13350         (cgraph_add_node_duplication_hook):  New function.
13351         (cgraph_remove_node_duplication_hook):  New function.
13352         (cgraph_call_node_duplication_hooks):  New function.
13353         (cgraph_create_edge): Assign to edge uid.
13354         (cgraph_remove_edge): Call edge removal hooks.
13355         (cgraph_node_remove_callees): Call edge removal hooks.
13356         (cgraph_node_remove_callers): Call edge removal hooks.
13357         (cgraph_remove_node): Call node removal hooks.
13358         (cgraph_clone_edge): Call edge duplication hooks.
13359         (cgraph_clone_node): Call node duplication hooks.
13360
13361         * cgraph.h (cgraph_edge): New field uid.
13362         (cgraph_edge_hook): New type.
13363         (cgraph_node_hook): New type.
13364         (cgraph_2edge_hook): New type.
13365         (cgraph_2node_hook): New type.
13366
13367 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
13368
13369         * config.in: Regenerate.
13370
13371 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
13372
13373         * gcc.c (print_sysroot): New.
13374         (option_map, display_help, process_command): Handle the
13375         -print-sysroot option.
13376         (main): Print the sysroot if requested.
13377         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
13378
13379 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13380
13381         PR target/34780
13382         * unwind-pe.h (size_of_encoded_value): add attribute unused.
13383
13384 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
13385
13386         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
13387         (assign_parm_setup_block_p): Also check mode of entry_parm.
13388
13389 2008-07-07  Richard Guenther  <rguenther@suse.de>
13390
13391         * tree-ssa-structalias.h (set_used_smts): Remove.
13392         * tree-ssa-structalias.c (used_smts): Likewise.
13393         (set_used_smts): Likewise.
13394         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
13395         call to set_used_smts.
13396
13397 2008-07-07  Richard Guenther  <rguenther@suse.de>
13398
13399         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
13400         (new_var_info): Set it to false.
13401         (solution_set_add): Correctly handle pointers outside a var and
13402         inside a field.
13403         (type_safe): Treat variables with is_full_var properly.
13404         (do_sd_constraint): Likewise.
13405         (do_ds_constraint): Likewise.
13406         (process_constraint): Remove zeroing offset for !use_field_sensitive.
13407         (get_constraint_for_ptr_offset): New function.
13408         (get_constraint_for_component_ref): For addresses at least include
13409         the last field of the variable.  Handle is_full_vars properly.
13410         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
13411         (handle_ptr_arith): Remove.
13412         (find_func_aliases): Simplify assignment handling.
13413         (create_function_info_for): For parameter and result varinfos set
13414         is_full_var flag.
13415         (create_variable_info_for): Set is_full_var flag whenever we
13416         just created a single varinfo for a decl.
13417         (init_alias_vars): Initialize use_field_sensitive from
13418         max-fields-for-field-sensitive parameter.
13419
13420 2008-07-07  Richard Guenther  <rguenther@suse.de>
13421
13422         PR tree-optimization/36713
13423         * tree-flow-inline.h (is_call_used): New function.
13424         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
13425         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13426         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
13427
13428 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13429
13430         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
13431
13432 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
13433
13434         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
13435
13436 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13437             Nathan Sidwell  <nathan@codesourcery.com>
13438
13439         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
13440         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
13441         tmake_file.
13442         * config/m68k/t-linux: New.
13443         * doc/install.texi: Document m68k-*-linux is now multilibbed by
13444         default.
13445
13446 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13447
13448         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
13449         * config/m68k/m68k-devices.def: Remove multilibs that only differ
13450         by MAC/EMAC.
13451
13452 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13453
13454         * gcc.c (execute): Fix -Wc++-compat warning.
13455
13456 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13457
13458         PR target/36720
13459         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
13460         constant for little endian.
13461
13462 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
13463
13464         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
13465         mips_base_mips16 instead of TARGET_MIPS16.
13466         (mips_base_mips16): Declare.
13467         * config/mips/mips.c (mips_base_mips16): Make global.
13468         (was_mips16_p): Remove GTY marker.
13469         (was_mips16_pch_p): New variable.
13470         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
13471         (mips_override_options): Force to non-MIPS16 mode initially.
13472         Do not complain about MIPS16 PIC incompatibilities here.
13473         Only allow -mgpopt if -mexplicit-relocs is in force for
13474         non-MIPS16 code.
13475
13476 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
13477
13478         * configure.ac: Check for caddr_t, define to char * if not defined.
13479         * configure: Regenerate.
13480         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
13481         (mmap_gt_pch_use_address): Likewise.
13482         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
13483
13484 2008-07-06  Richard Guenther  <rguenther@suse.de>
13485
13486         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
13487         (new_var_info): Deal with it.
13488         (solution_set_add): Likewise.
13489         (bitpos_of_field): Make signed, fix.
13490         (struct fieldoff): Remove type and decl fields.  Make size field
13491         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
13492         flags.
13493         (fieldoff_compare): Deal with it.
13494         (push_fields_onto_fieldstack): Remove has_union argument, glob
13495         adjacent non-pointer fields together.
13496         (create_function_info_for): Do not set has_union.
13497         (create_variable_info_for): Simplify.
13498
13499 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
13500
13501         * config.gcc (extra_headers): Add cross-stdarg.h for target
13502         x86_64-*-* and i?86-*-*.
13503         * config/i386/cross-stdarg.h: New.
13504         * builtins.c (std_fn_abi_va_list): New.
13505         (std_canonical_va_list_type): New.
13506         (stabilize_va_list): Replace va_list_type_node use by
13507         mtarget.canonical_va_list_type.
13508         (gimplify_va_arg_expr): Likewise.
13509         (expand_builtin_va_copy): Replace va_list_type_node use by
13510         mtarget.fn_abi_va_list.
13511         * tree-sra.c (is_va_list_type): New helper.
13512         (decl_can_be_decomposed_p): Replace
13513         va_list_type_node use by is_va_list_type.
13514         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
13515         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13516         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
13517         * config/i386/i386-protos.h (ix86_get_valist_type): New.
13518         (ix86_enum_va_list): New.
13519         * config/i386/i386.c (sysv_va_list_type_node): New.
13520         (ms_va_list_type_node): New.
13521         (ix86_function_type_abi): Remove sorry.
13522         (ix86_build_builtin_va_list_abi): New.
13523         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
13524         for 64-bit targets.
13525         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
13526         (ix86_init_builtins_va_builtins_abi): New.
13527         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
13528         for 64-bit targets.
13529         (ix86_handle_abi_attribute): New.
13530         (attribute_spec): Add sysv_abi and ms_abi.
13531         (ix86_fn_abi_va_list): New.
13532         (ix86_canonical_va_list_type): New.
13533         (ix86_enum_va_list): New.
13534         (TARGET_FN_ABI_VA_LIST): New.
13535         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13536         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
13537         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
13538         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13539         (TARGET_ENUM_VA_LIST): New.
13540         * expr.h (std_fn_abi_va_list): New.
13541         (std_canonical_va_list_type): New.
13542         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
13543         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13544         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
13545         TARGET_CANONICAL_VA_LIST_TYPE.
13546         * target.h (struct gcc_target): Add fn_abi_va_list hook
13547         and canonical_va_list_type hook.
13548
13549 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13550
13551         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
13552         integral and pointer types.
13553
13554 2008-07-04  Roger Sayle  <roger@eyesopen.com>
13555
13556         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
13557         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
13558
13559 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13560
13561         PR target/36684
13562         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
13563
13564 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
13565
13566         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
13567         build_gimple_modify_stmt.
13568         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
13569         gimple operand.  Use fold_build* instead of build*.
13570
13571 2008-07-04  Richard Guenther  <rguenther@suse.de>
13572
13573         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
13574         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
13575         properly to compute the reachability set if we do field-sensitive PTA.
13576         * invoke.texi (max-fields-for-field-sensitive): Document default.
13577         * opts.c (decode_options): Set max-fields-for-field-sensitive to
13578         100 for optimize >= 2.
13579
13580 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13581
13582         * ggc-zone.c (lookup_page_table_if_allocated,
13583         set_page_table_entry, zone_find_object_size, alloc_small_page,
13584         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
13585         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
13586         -Wc++-compat and/or -Wcast-qual warnings.
13587
13588 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
13589
13590         PR target/36634
13591         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
13592         pic_offset_table_rtx to be marked as used here.
13593         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
13594         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
13595         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
13596         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
13597         !TARGET_SECURE_PLT.
13598
13599 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13600
13601         * alloc-pool.c (hash_descriptor, eq_descriptor,
13602         alloc_pool_descriptor): Fix -Wc++-compat warnings.
13603         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
13604         Likewise.
13605         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
13606         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
13607         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
13608         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
13609         Likewise.
13610
13611 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
13612
13613         * tree-flow.h (loop_only_exit_p): Declare.
13614         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
13615         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
13616         the number of iterations if it is constant.  Otherwise, if this is the
13617         only possible exit of the loop, use the conservative estimate on the
13618         number of iterations of the entire loop if available.
13619
13620 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
13621
13622         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
13623         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
13624         Add synchronization functions.
13625         * config/sync.c: New file.
13626         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
13627         (LIBGCC_SYNC_CFLAGS): Likewise.
13628
13629 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
13630
13631         PR target/36710
13632         * config/i386/i386.md (mode): Add TF to "mode" attribute.
13633         (*pushtf_sse): New insn pattern.
13634         (pushtf splitters): New splitters.
13635
13636 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
13637
13638         PR middle-end/35736
13639         * predict.c (build_predict_expr): Use void_type_node for the tree
13640         type, instead of NULL_TREE.
13641
13642 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13643
13644         * config/i386/i386.c (contains_aligned_value_p): Return true
13645         for TCmode.
13646         (ix86_data_alignment): Align TCmode to 128bits.
13647         (ix86_local_alignment): Likewise.
13648
13649 2008-07-03  Andrew Haley  <aph@redhat.com>
13650
13651         PR bootstrap/33304
13652         * vec.h (VEC_TA): New.
13653         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
13654         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
13655         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
13656         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
13657         (C_COMMON_FIXED_TYPES): Remove first arg.
13658         (C_COMMON_FIXED_MODE_TYPES): Likewise.
13659         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
13660         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
13661         not to use empty macro arguments.
13662
13663 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
13664
13665         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
13666         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
13667         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
13668         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
13669         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
13670         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
13671         config/ia64/crtn.asm, config/m68hc11/larith.asm,
13672         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
13673         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
13674         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
13675         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
13676         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
13677         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
13678         config/rs6000/e500crtres64gpr.asm,
13679         config/rs6000/e500crtres64gprctr.asm,
13680         config/rs6000/e500crtrest32gpr.asm,
13681         config/rs6000/e500crtrest64gpr.asm,
13682         config/rs6000/e500crtresx32gpr.asm,
13683         config/rs6000/e500crtresx64gpr.asm,
13684         config/rs6000/e500crtsav32gpr.asm,
13685         config/rs6000/e500crtsav64gpr.asm,
13686         config/rs6000/e500crtsav64gprctr.asm,
13687         config/rs6000/e500crtsavg32gpr.asm,
13688         config/rs6000/e500crtsavg64gpr.asm,
13689         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
13690         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
13691         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
13692         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
13693         config/sparc/sol2-cn.asm: Remove .file directives.
13694
13695 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
13696
13697         * resource.c (mark_referenced_resources): Look inside
13698         UNSPEC_VOLATILEs and ASM_INPUTs.
13699
13700 2008-07-02  Ian Lance Taylor  <iant@google.com>
13701
13702         * rtlanal.c (add_reg_note): New function.
13703         * rtl.h (add_reg_note): Declare.
13704         * auto-inc-dec.c (attempt_change): Use add_reg_note.
13705         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
13706         * builtins.c (expand_builtin_longjmp): Likewise.
13707         (expand_builtin_nonlocal_goto): Likewise.
13708         * calls.c (emit_call_1, expand_call): Likewise.
13709         * cfgexpand.c (add_reg_br_prob_note): Likewise.
13710         * cfglayout.c (fixup_reorder_chain): Likewise.
13711         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13712         (commit_one_edge_insertion): Likewise.
13713         * combine.c (move_deaths, distribute_notes): Likewise.
13714         * df-problems.c (df_set_note): Likewise.
13715         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
13716         (set_unique_reg_note): Likewise.
13717         (emit_copy_of_insn_after): Likewise.
13718         * expr.c (expand_expr_real): Likewise.
13719         * gcse.c (add_label_notes): Likewise.
13720         * haifa-sched.c (create_check_block_twin): Likewise.
13721         * jump.c (mark_jump_label_1): Likewise.
13722         * loop-doloop.c (add_test, doloop_modify): Likewise.
13723         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13724         * lower-subreg.c (move_eh_region_note): Likewise.
13725         * optabs.c (emit_libcall_block): Likewise.
13726         * predict.c (predict_insn): Likewise.
13727         (combine_predictions_for_insn): Likewise.
13728         * recog.c (peephole2_optimize): Likewise.
13729         * regmove.c (try_auto_increment): Likewise.
13730         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
13731         * reload.c (find_reloads): Likewise.
13732         * reload1.c (fixup_eh_region_note): Likewise.
13733         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
13734         * reorg.c (delete_prior_computation): Likewise.
13735         (delete_computation, dbr_schedule): Likewise.
13736         * config/pa/pa.c (legitimize_pic_address): Likewise.
13737         * config/sh/sh.c (sh_reorg): Likewise.
13738
13739 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
13740
13741         PR target/36669
13742         * config/libgcc-glibc.ver: Add %exclude.
13743         * config/m32r/libgcc-glibc.ver: Likwise.
13744         * config/s390/libgcc-glibc.ver: Likwise.
13745         * config/sh/libgcc-glibc.ver: Likwise.
13746         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
13747
13748         * config/i386/libgcc-glibc.ver: New.
13749
13750         * config/i386/libgcc-x86_64-glibc.ver: Removed.
13751
13752 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
13753
13754         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
13755         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
13756         i[34567]86-*-linux*, x86_64-*-linux*.  Add
13757         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
13758         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
13759         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
13760         i[34567]86-*-linux*, x86_64-*-linux*.
13761
13762         * libgcc-std.ver: Add empty GCC_4.4.0.
13763
13764         * mkmap-symver.awk: Support multiple versions per symbol.
13765
13766         * config/i386/i386.c (ix86_init_builtins): Always define
13767         __builtin_fabsq and __builtin_copysignq with fallbacks.
13768         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
13769         and __builtin_copysignq if SSE2 isn't available.
13770
13771         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
13772         (LIBGCC2_TF_CEXT): Likwise.
13773         (TF_SIZE): Likwise.
13774
13775         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
13776
13777         * config/i386/sfp-machine.h: Moved to libgcc.
13778
13779         * config/i386/sfp-machine.h: New.
13780         * config/i386/t-linux: Likwise.
13781
13782         * config/i386/t-darwin: Remove softfp_wrap_start and
13783         softfp_wrap_end.
13784         * config/i386/t-darwin64: Likewise.
13785
13786         * config/i386/t-fprules-softfp64: Renamed to ...
13787         * config/i386/t-fprules-softfp: This.
13788
13789         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
13790         and softfp_wrap_end.
13791
13792 2008-07-02  Jason Merrill  <jason@redhat.com>
13793
13794         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
13795
13796         * tree.c (ctor_to_list): New fn.
13797         * tree.h: Declare it.
13798         (CONSTRUCTOR_ELT): New macro.
13799         (CONSTRUCTOR_NELTS): New macro.
13800
13801 2008-07-02  Richard Guenther  <rguenther@suse.de>
13802
13803         * tree-ssa-structalias.c (struct variable_info): Reorder
13804         to fill padding on 64bit hosts.  Make collapsed_to an int.
13805         (get_varinfo_fc): Deal with that.
13806         (new_var_info): Likewise.
13807         (collapse_rest_of_var): Likewise.
13808
13809 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
13810
13811         * doc/install.texi (--enable-java-home): Document.
13812         (--enable-aot-compile-rpm): Likewise.
13813         (--with-arch-directory): Likewise.
13814         (--with-os-directory): Likewise.
13815         (--with-origin-name): Likewise.
13816         (--with-arch-suffix): Likewise.
13817         (--with-jvm-root-dir): Likewise.
13818         (--with-jvm-jar-dir): Likewise.
13819         (--with-python-dir): Likewise.
13820
13821 2008-07-02  Richard Guenther  <rguenther@suse.de>
13822
13823         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
13824         from decls explicitly.  Merge operand checking from tuples.
13825
13826 2008-07-02  Martin Jambor  <mjambor@suse.cz>
13827
13828         * tree-switch-conversion.c: Included timevar.h which I forgot before.
13829
13830 2008-07-02  Martin Jambor  <mjambor@suse.cz>
13831
13832         * tree-switch-conversion.c: Included timevar.h
13833         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
13834
13835         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
13836
13837 2008-07-02  Martin Jambor  <mjambor@suse.cz>
13838
13839         * tree-switch-conversion.c: Corrected various comments and
13840         whitespace issues
13841         (build_constructors): Fixed minor formatting mistakes.
13842
13843         * invoke.texi (Optimize Options): Corrected the
13844         switch-conversion-max-branch-ratio parameter.
13845
13846 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
13847
13848         * final.c (asm_insn_count): Return zero for an empty asm body.
13849
13850 2008-07-02  Richard Guenther  <rguenther@suse.de>
13851
13852         * bitmap.h (bitmap_set_bit): Return bool.
13853         (bitmap_clear_bit): Likewise.
13854         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
13855         write to the bitmap if it would.
13856         (bitmap_clear_bit): Likewise.
13857         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
13858         bitmap_set_bit return value.
13859         (add_pred_graph_edge): Likewise.
13860         (add_graph_edge): Likewise.
13861         (do_sd_constraint): Likewise.
13862         (do_ds_constraint): Likewise.
13863
13864 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13865
13866         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
13867         Fix -Wc++-compat and/or -Wcast-qual warnings.
13868         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
13869         gen_regparm_prefix): Likewise.
13870         * vmsdbgout.c (write_modbeg, lookup_filename,
13871         vmsdbgout_source_line, vmsdbgout_init): Likewise.
13872
13873 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
13874
13875         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
13876         defaults.h definition apply.
13877
13878 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
13879
13880         * function.c (assign_parm_remove_parallels): New.
13881         (assign_parm_setup_block_p): Do not return true for non-BLKmode
13882         PARALLELs.
13883         (assign_parm_setup_block): Do not handle them.
13884         (assign_parm_setup_reg, assign_parm_setup_stack): Call
13885         assign_parm_remove_parallels.
13886
13887 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
13888
13889         * c-typeck.c (convert_for_assignment): Use
13890         vector_targets_convertible_p.
13891         * c-common.c (vector_targets_convertible_p): New.
13892         * c-common.h (vector_targets_convertible_p): New prototype.
13893         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
13894         opaque_p_V2SI_type_node.
13895
13896 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
13897
13898         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
13899         RFmode constants.
13900
13901 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
13902
13903         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
13904         TFmode constants via two element DImode vector for hosts with
13905         HOST_BITS_PER_WIDE_INT < 64.
13906         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
13907         also for HOST_BITS_PER_WIDE_INT < 64.
13908
13909 2008-07-01  Richard Guenther  <rguenther@suse.de>
13910
13911         PR tree-optimization/36666
13912         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
13913         (get_constraint_exp_from_ssa_var): Split into ...
13914         (get_constraint_exp_for_temp): ... this ...
13915         (get_constraint_for_ssa_var): ... and that.
13916         Return constraint expressions for all touched sub-fields
13917         if the results address is not taken.
13918         (process_constraint): Remove assertion that aggregate
13919         assignments do not happen at this place.
13920         (get_constraint_for_component_ref): Add address_p argument.
13921         Return constraint expressions for all touched sub-fields
13922         if the results address is not taken.
13923         (do_deref): Use get_constraint_exp_for_temp.
13924         (get_constraint_for_1): Rename from ...
13925         (get_constraint_for): ... this.  Add the old function as wrapper.
13926         (do_structure_copy): Use get_constraint_for_1.
13927
13928 2008-07-01  Martin Jambor  <mjambor@suse.cz>
13929
13930         * Makefile.in (tree-switch-conversion.o): Add.
13931         (OBJS-common): Add tree-swtch-conversion.o.
13932         * passes.c (init_optimization_passes): Add pass_convert_switch.
13933         * tree-pass.h: (pass_convert_switch): Add.
13934         * tree-switch-conversion.c: New file.
13935         * gcc.dg/tree-ssa/cswtch.c: New testcase.
13936         * common.opt (ftree-cswtch): New option.
13937         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13938         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13939         * opts.c (decode_options): Set flag_tree_switch_conversion when
13940         optimization level is >= 2.
13941         * doc/invoke.texi (Optimize Options): Added description of
13942         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
13943
13944 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13945
13946         * config/darwin-driver.c (darwin_default_min_version): Fix
13947         -Wc++-compat warnings.
13948
13949 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
13950
13951         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
13952         of operand 0.
13953
13954 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
13955
13956         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
13957
13958 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
13959
13960         PR rtl-optimization/34744
13961         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
13962         (df_scan_free_internal): Free data structures not
13963         allocated in storage pools.
13964         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
13965         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
13966         df_scan_free_mws_vec.
13967         * dse.c (dse_step6): Free offset_map_p and offset_map_n
13968         unconditionally.
13969
13970 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13971
13972         * config/i386/i386.c (contains_aligned_value_p): Return true
13973         for __float128.
13974         (ix86_function_arg_boundary): Return its natural boundary
13975         for __float128.
13976         (return_in_memory_32): Don't check TDmode.
13977         (ix86_split_to_parts): Support splitting into 4 parts and
13978         support TFmode for 32bit target.
13979         (ix86_split_long_move): Support splitting into 4 parts.
13980         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
13981         for SSE2.
13982         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
13983         (ix86_init_builtins): Here.
13984         (ix86_scalar_mode_supported_p): Always return true for TFmode.
13985         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
13986         'q' and 'w', respectively.
13987
13988         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
13989         TARGET_64BIT.
13990         (movtf_internal): Likewise.
13991         (<code>tf2): Likewise.
13992         (*absnegtf2_sse): Likewise.
13993         (copysign<mode>3): Likewise.
13994         (copysign<mode>3_const): Likewise.
13995         (copysign<mode>3_var): Likewise.
13996         (define_split UNSPEC_COPYSIGN): Likewise.
13997         * config/i386/sse.md (*nandtf3): Likewise.
13998         (<code>tf3): Likewise.
13999         (*<code>tf3): Likewise.
14000
14001 2008-06-30  Joey Ye  <joey.ye@intel.com>
14002             H.J. Lu  <hongjiu.lu@intel.com>
14003
14004         * global.c (compute_regsets): Set frame_pointer_needed here.
14005         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
14006
14007 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14008
14009         * doc/install.texi (specific): Expand Windows build notes.
14010
14011 2008-06-30  Ira Rosen  <irar@il.ibm.com>
14012
14013         PR tree-optimization/36648
14014         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
14015         number of prolog iterations by step. Fix the comment.
14016
14017 2008-06-30  Richard Guenther  <rguenther@suse.de>
14018
14019         PR middle-end/36671
14020         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
14021         handle calls from ECF_MALLOC functions.
14022         (handle_pure_call): ECF_MALLOC functions do not return
14023         call-used memory.
14024         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
14025
14026 2008-06-29  Andreas Schwab  <schwab@suse.de>
14027
14028         * config/m68k/m68k.c (print_operand): Always print a float
14029         constant in hex.
14030         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
14031         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
14032         Remove macros.
14033
14034         * config/rs6000/x-linux64: Remove never used file.
14035
14036 2008-06-29  Richard Guenther  <rguenther@suse.de>
14037
14038         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
14039         prototype.
14040         (struct alias_info): Move ...
14041         * tree-ssa-alias.c: ... here.
14042         (update_alias_info): Declare.
14043         (compute_may_aliases): Call it.
14044         (update_alias_info): New function.
14045         * tree-ssa-structalias.c (update_alias_info): Move ...
14046         * tree-ssa-alias.c (update_alias_info_1): ... here.
14047         * tree-ssa-structalias.c (process_constraint_1): Remove
14048         unused from_call argument.  Rename to ...
14049         (process_constraint): ... this.  Delete old wrapper.
14050         (make_constraint_to): Adjust callers.
14051         (handle_const_call): Likewise.
14052         (handle_pure_call): Likewise.
14053         (init_base_vars): Likewise.
14054         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
14055         (find_func_aliases): We don't need structure copies for
14056         complex types.
14057         (make_constraint_from_anything): Remove.
14058         (create_variable_info_for): For globals make constraints
14059         from escaped, not from anything.
14060         (compute_points_to_sets): Do not call update_alias_info.
14061         (ipa_pta_execute): Use make_constraint_from.
14062
14063 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14064
14065         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
14066         (bitmap.o-warn, dominance.o-warn): New.
14067         * configure.ac (cxx_compat_warn): Delete.
14068         (loose_warn): Add -Wcast-qual and -Wc++-compat.
14069         * system.h: Remove #pragma diagnostic for -Wcast-qual and
14070         -Wc++-compat.
14071         * configure: Regenerate.
14072
14073         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
14074         warnings.
14075
14076 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14077
14078         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
14079         * df-scan.c (df_notes_rescan): Likewise.
14080         * ggc-page.c (set_page_table_entry): Likewise.
14081         * intl.c (gcc_gettext_width): Likewise.
14082         * varasm.c (get_unnamed_section, get_noswitch_section,
14083         get_section): Likewise.
14084
14085 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
14086
14087         * regrename.c (build_def_use): Don't copy RTX.
14088
14089 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
14090
14091         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
14092         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
14093         punctuation.  Use @ref instead of @xref.
14094         (Function Names): Remove stray @display/@end display.
14095         (C++ Attributes): Use @ref instead of @xref.
14096         (Deprecated Features): Fix punctuation around @xref.
14097         (Backwards Compatibility): Likewise.
14098         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
14099
14100 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
14103         constants for E500 double.
14104
14105 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14106
14107         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
14108         element type of const_vector.
14109
14110 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
14111
14112         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
14113         Remove FLAGS_REG clobber from expander pattern.
14114         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
14115         (anddi3, andsi3, andhi3, andqi3): Ditto.
14116         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
14117         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
14118         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
14119         (ashlsi3, ashlhi3, ashlqi3): Ditto.
14120         (ashrsi3, ashrhi3, ashrqi3): Ditto.
14121         (lshrsi3, lshrhi3, lshrqi3): Ditto.
14122         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
14123         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
14124
14125 2008-06-28  Richard Guenther  <rguenther@suse.de>
14126
14127         * tree-ssa-structalias.c (callused_id, var_callused,
14128         callused_tree): Add.
14129         (handle_pure_call): New function.
14130         (find_func_aliases): Call it.
14131         (find_what_p_points_to): Handle the call-used set.
14132         (clobber_what_escaped): Likewise.
14133         (compute_call_used_vars): New function.
14134         (init_base_vars): Init the call-used variable.
14135         (do_sd_constraint): Do not propagate the solution from CALLUSED
14136         but use CALLUSED as a placeholder.
14137         (solve_graph): Likewise.
14138         * tree-flow-inline.h (gimple_call_used_vars): New function.
14139         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
14140         (compute_call_used_vars): Declare.
14141         * tree-ssa-alias.c (set_initial_properties): Call
14142         compute_call_used_vars.
14143         (reset_alias_info): Clear call-used variables.
14144         (add_call_clobber_ops): Assert we are not called for const/pure
14145         functions.  Remove handling of them.
14146         (add_call_read_ops): Handle pure functions by adding the
14147         call-used set of variables as VUSEs.
14148         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
14149         (delete_tree_ssa): Free it.
14150         * tree-dfa.c (remove_referenced_var): Clear the var from the
14151         call-used bitmap.
14152
14153 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
14154
14155         * tree.c (build_varargs_function_type_list): New.
14156         (build_function_type_list_1): New.
14157         (build_function_type_list): Use build_function_type_list_1.
14158         * tree.h (build_varargs_function_type_list): New.
14159
14160 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14161
14162         PR target/34856
14163         * config/spu/spu.c (spu_builtin_splats): Do not generate
14164         invalid CONST_VECTOR expressions.
14165         (spu_expand_vector_init): Likewise.
14166
14167 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
14168
14169         * optabs.c (libfunc_decls): New variable.
14170         (libfunc_decl_hash, libfunc_decl_eq): New functions.
14171         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
14172         for the same function twice.
14173
14174 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
14175
14176         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
14177         ix86_expand_binary_operator directly.
14178         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
14179         for operand 2.
14180         (*ashrti3_1): Ditto.
14181         (*lshrti3_1): Ditto.
14182         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
14183         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
14184         using only one splitter.  Conditionaly execute splitter before or
14185         after peephole2 pass.
14186         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
14187         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
14188         Use only one alternative in asm template.
14189         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
14190         in asm template.
14191         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
14192         "J" operand constraint for operand 2.
14193         (*ashldi3_cconly_rex64): Ditto.
14194         (*ashrdi3_cmp_rex64): Ditto.
14195         (*ashrdi3_cconly_rex64): Ditto.
14196         (*lshrdi3_cmp_rex64): Ditto.
14197         (*lshrdi3_cconly_rex64): Ditto.
14198         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
14199         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
14200         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
14201         gen_x86_shrd_1.
14202
14203 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14204
14205         * gimplify.c (omp_is_private): Don't return true if decl is not
14206         already private on #pragma omp for or #pragma omp parallel for.
14207
14208         PR debug/36617
14209         * tree-cfg.c (struct move_stmt_d): Replace block field with
14210         orig_block and new_block fields.
14211         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
14212         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
14213         (move_block_to_fn): Replace vars_map and new_label_map arguments
14214         with struct move_stmt_d pointer.
14215         (replace_block_vars_by_duplicates): New function.
14216         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
14217         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
14218         all subblocks of ORIG_BLOCK to the new function.  Call
14219         replace_block_vars_by_duplicates.
14220         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
14221         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
14222         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
14223         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
14224         (expand_omp): Temporarily set input_location to the location of
14225         region's controlling stmt.
14226         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
14227         BIND_EXPR, push ctx->block_vars and gimplification vars into
14228         the BIND_EXPR and its block's BLOCK_VARS instead of directly
14229         into dest function.
14230         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
14231         there are any BLOCK_VARS.
14232         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
14233         OMP_PARALLEL or OMP_TASK stmt.
14234         (lower_omp): Save and restore input_location around the lower_omp_1
14235         call.
14236
14237 2008-06-27  Richard Guenther  <rguenther@suse.de>
14238
14239         PR tree-optimization/36400
14240         PR tree-optimization/36373
14241         PR tree-optimization/36344
14242         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
14243         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
14244         (update_alias_info): Remove call clobbering code.
14245         (make_constraint_to): New helper function.
14246         (make_escape_constraint): Likewise.
14247         (handle_rhs_call): Use it on all pointer containing arguments.
14248         Also mark the static chain escaped.
14249         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
14250         instead of ANYTHING.
14251         (make_constraint_from): New helper split out from ...
14252         (make_constraint_from_anything): ... here.
14253         (find_func_aliases): Add constraints for escape sites.
14254         (intra_create_variable_infos): Make constraints from NONLOCAL
14255         for parameters.
14256         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
14257         as ANYTHING.
14258         (clobber_what_p_points_to): Remove.
14259         (clobber_what_escaped): New function.
14260         (init_base_vars): Init NONLOCAL and ESCAPED.
14261         (do_sd_constraint): Do not propagate the solution from ESCAPED
14262         but use ESCAPED as a placeholder.
14263         (solve_graph): Likewise.
14264         * tree-flow.h (clobber_what_p_points_to): Remove.
14265         (clobber_what_escaped): Declare.
14266         * tree-ssa-alias.c (set_initial_properties): Call it.
14267         Remove code clobbering escaped pointers.
14268
14269 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
14270
14271         * function.c (allocate_struct_function): Only allocate a unique
14272         funcdef_no if the decl is nonzero.
14273
14274 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
14275
14276         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
14277         * config/mips/mips.c (mips_split_const_insns): New function.
14278         * config/mips/mips.md (move_type): New attribute.
14279         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
14280         (dword_mode): New attribute.
14281         (type): Avoid long line.  Map "move_type"s to "type"s,
14282         choosing "multi" for doubleword moves if appropriate.
14283         Swap MTC/MFC comments to match their declaration order.
14284         (extended_mips16): Default to "yes" if "move_type" is "sll0",
14285         "type" is "branch" or "jal" is "direct".
14286         (length): Handle "extended_mips16" first.  Make the default
14287         "0" for "ghost" instructions.  Set the length from "move_type".
14288         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
14289         of "type", with "sll0" for the register alternative.  Remove the
14290         "extended_mips16" attribute.
14291         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
14292         of "type", with "shift_shift" for the register alternative.
14293         Remove the "length" attribute.
14294         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
14295         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
14296         of "type", with "andi" for the register alternative.
14297         (*zero_extendqihi2): Likewise.
14298         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
14299         of "andi" instead of a "type" of "arith".
14300         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
14301         instead of "type".
14302         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
14303         (mov_<store>r, *mov<mode>_ra): Likewise.
14304         (extendsidi2): Use "move_type" instead of "type", with "move"
14305         for the register alternative.
14306         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
14307         of "type", with "signext" for the register alternative.
14308         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
14309         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
14310         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
14311         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
14312         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
14313         (unnamed branch insn): Likewise.
14314         (*movdi_gp32_fp64): Fold into...
14315         (*movdi_32bit): ...here.
14316         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
14317         (*movdf_hardfloat): ...this new pattern.
14318         (*movdf_softfloat): Remove redundant FPR alternatives.
14319         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
14320         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
14321         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
14322         the "move" attribute.
14323         (*movdi_32bit): Use "move_type" instead of "type" and remove the
14324         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
14325         and "store" for COP loads and stores.
14326         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
14327         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
14328         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
14329         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
14330         (*movtf_mips16, *movv2sf): Likewise.
14331         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
14332         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
14333         (mfhc1<mode>): Use "move_type" instead of "move".
14334         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
14335         (loadgp_blockage): Remove the "length" attribute.
14336         (blockage, set_got_version, update_got_version): Likewise.
14337         (call_internal): Remove the "extended_mips16" attribute.
14338         (call_value_internal, call_value_multiple_internal): Likewise.
14339         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
14340         instead of "move".
14341         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
14342         the "length" attribute.
14343
14344 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14345
14346         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
14347         -Wcast-qual warnings.
14348         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
14349         handle_pragma_pop_macro): Likewise.
14350         * collect2.c (resolve_lib_name): Likewise.
14351         * config/arc/arc.c (arc_init): Likewise.
14352         * config/arm/arm.c (neon_builtin_compare,
14353         locate_neon_builtin_icode): Likewise.
14354         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
14355         * config/bfin/bfin.c (bfin_init_machine_status,
14356         bfin_optimize_loop): Likewise.
14357         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14358         * config/cris/cris.c (cris_init_expanders): Likewise.
14359         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
14360         * config/darwin.c (machopic_indirection_eq,
14361         machopic_indirection_name, machopic_output_indirection): Likewise.
14362         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
14363         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
14364         frv_optimize_membar): Likewise.
14365         * config/i386/cygwin.h (mingw_scan,
14366         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
14367         * config/i386/cygwin1.c (mingw_scan): Likewise.
14368         * config/i386/i386.c (machopic_output_stub): Likewise.
14369         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
14370         i386_pe_unique_section): Likewise.
14371         * config/ia64/ia64.c (ia64_init_machine_status,
14372         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
14373         Likewise.
14374         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
14375         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
14376         * config/m68k/m68k.c (m68k_handle_option,
14377         m68k_sched_md_init_global): Likewise.
14378         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
14379         mcore_unique_section): Likewise.
14380         * config/mips/mips.c (mips_block_move_straight,
14381         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
14382         Likewise.
14383         * config/mmix/mmix.c (mmix_init_machine_status,
14384         mmix_encode_section_info): Likewise.
14385         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
14386         * config/rs6000/rs6000.c (rs6000_init_machine_status,
14387         print_operand_address, output_toc, redefine_groups,
14388         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
14389         * config/s390/s390.c (s390_init_machine_status): Likewise.
14390         * config/score/score.c (score_block_move_straight,
14391         score_block_move_loop_body): Likewise.
14392         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14393         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14394         * emit-rtl.c (find_auto_inc): Likewise.
14395         * gcc.c (translate_options, process_command): Likewise.
14396         * reorg.c (dbr_schedule): Likewise.
14397         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
14398         * xcoffout.c (xcoffout_declare_function): Likewise.
14399
14400 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
14401
14402         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
14403         ipa-pta working again.
14404
14405 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
14406
14407         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
14408         genautomata.
14409
14410 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
14411
14412         * config.gcc (powerpc*-*-*): Add new core e500mc.
14413         * config/rs6000/e500mc.md: New file.
14414         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14415         e500mc.
14416         (rs6000_override_options): Add e500mc case to
14417         processor_target_table. Altivec and Spe options not allowed
14418         with e500mc. Add isel instruction to e500mc by
14419         default. Initialize rs6000_cost for e500mc.
14420         (rs6000_issue_rate): Set issue rate for e500mc.
14421         * config/rs6000/rs6000.h (processor_type): Add
14422         PROCESSOR_PPCE500MC.
14423         (ASM_CPU_SPEC): Add e500mc.
14424         Set TARGET_ISEL to rs6000_isel.
14425         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
14426         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
14427         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
14428         Include e500mc.md.
14429         * doc/invoke.texi: Add e500mc to list of cpus.
14430
14431 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14432
14433         PR c/34867
14434         * c-lex.c (lex_charconst): Initialize unsignedp.
14435
14436 2008-06-27  Olivier Hainque  <hainque@adacore.com>
14437
14438         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
14439         documented assumptions.
14440
14441 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
14442
14443         * dwarf2out.c: Remove trailing white spaces.  Break long line
14444         in comments.
14445
14446 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
14447
14448         * libfuncs.h (LTI_synchronize): New libfunc_index.
14449         (synchronize_libfunc): Declare.
14450         * builtins.c (expand_builtin_synchronize): Consider using
14451         synchronize_libfunc before falling back on an asm blockage.
14452         * config/mips/mips.c: Include libfuncs.h
14453         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
14454
14455 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
14456
14457         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
14458         parameter.  Copy stack_reg to r11 where appropriate.
14459         (no_global_regs_above): Add gpr parameter.
14460         (rs6000_stack_info): Only add padding for SPE save area if we
14461         are saving SPE GPRs and CR.
14462         (saveres_routine_syms): New variable.
14463         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
14464         Define.
14465         (rs6000_savres_routine_sym): New function.
14466         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
14467         split out of...
14468         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
14469         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
14470         Tweak FPR out-of-line saving.
14471         (rs6000_make_savres_rtx): New function.
14472         (rs6000_use_multiple_p): New function.
14473         (rs6000_savres_strategy): New function.
14474         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
14475         out-of-line if appropriate.
14476         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
14477         if we are optimizing for size.
14478         (GP_SAVE_INLINE): Define.
14479         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
14480         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
14481         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
14482         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
14483         (*save_fpregs_<mode>): Add use of r11.
14484         (*restore_gpregs_<mode>): New insn.
14485         (*return_and_restore_gpregs_<mode>): New insn.
14486         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
14487         use r11.
14488         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
14489         (*restore_gpregs_spe): New insn.
14490         (*return_and_restore_gpregs_spe): New insn.
14491         * config/rs6000/predicates.md (save_world_operation): Fix check.
14492
14493 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14494
14495         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
14496         this point, so assert that.
14497
14498 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14499
14500         * cfganal.c: Include vec.h and vecprim.h.
14501         (compute_idf): Import from...
14502         * tree-into-ssa (compute_idf): ...here.
14503         * basic-block.h (compute_idf): Export.
14504
14505 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
14506
14507         * c-decl.c (merge_decls): Use !current_function_decl to check for
14508         extern declaration of C99 inline function being at file scope.
14509
14510 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
14511
14512         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
14513
14514 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14515
14516         * alias.c (record_alias_subset, init_alias_analysis): Fix
14517         -Wc++-compat and/or -Wcast-qual warnings.
14518         * attribs.c (lookup_attribute_spec): Likewise.
14519         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
14520         copy_bb, connect_traces,
14521         find_rarely_executed_basic_blocks_and_cr): Likewise.
14522         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
14523         note_btr_set, migrate_btr_defs): Likewise.
14524         * builtins.c (result_vector, expand_builtin_memcpy,
14525         expand_builtin_mempcpy_args, expand_builtin_strncpy,
14526         builtin_memset_read_str, expand_builtin_printf,
14527         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
14528         Likewise.
14529         * caller-save.c (mark_set_regs): Likewise.
14530         * calls.c (expand_call, emit_library_call_value_1): Likewise.
14531         * cgraph.c (cgraph_edge): Likewise.
14532         * combine.c (likely_spilled_retval_1): Likewise.
14533         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
14534         htab_counts_entry_del, get_coverage_counts): Likewise.
14535         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
14536         new_cselib_val): Likewise.
14537         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
14538         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
14539         Likewise.
14540         * df-core.c (df_compact_blocks): Likewise.
14541         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
14542         * df-scan.c (df_grow_reg_info, df_ref_create,
14543         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
14544         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
14545         df_record_entry_block_defs, df_record_exit_block_uses,
14546         df_bb_verify): Likewise.
14547         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
14548         DF_REF_EXTRACT_MODE_CONST): New.
14549         * dominance.c (get_immediate_dominator, get_dominated_by,
14550         nearest_common_dominator, root_of_dom_tree,
14551         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
14552         -Wc++-compat and/or -Wcast-qual warnings.
14553         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
14554         record_store, replace_read, check_mem_read_rtx, scan_insn,
14555         dse_step1, dse_record_singleton_alias_set): Likewise.
14556         * dwarf2asm.c (dw2_force_const_mem): Likewise.
14557
14558 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14559
14560         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
14561         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
14562         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
14563         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
14564         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
14565         add_ranges_num, add_ranges_by_labels, file_info_cmp,
14566         file_name_acquire, output_file_names, add_const_value_attribute,
14567         premark_used_types_helper, file_table_eq, file_table_hash,
14568         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
14569         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
14570         -Wcast-qual warnings.
14571         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
14572         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
14573         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
14574         gen_reg_rtx, start_sequence, init_emit): Likewise.
14575         * et-forest.c (et_new_occ, et_new_tree): Likewise.
14576         * except.c (init_eh_for_function, gen_eh_region,
14577         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
14578         arh_to_landing_pad, arh_to_label, add_action_record,
14579         add_call_site, switch_to_exception_section): Likewise.
14580         * expmed.c (synth_mult): Likewise.
14581         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
14582         store_expr): Likewise.
14583         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
14584         Likewise.
14585         * function.c (assign_stack_temp_for_type,
14586         allocate_struct_function, match_asm_constraints_1): Likewise.
14587         * gcov-io.c (gcov_allocate): Likewise.
14588         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
14589         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
14590         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
14591         record_one_set, insert_expr_in_table, insert_set_in_table,
14592         dump_hash_table, compute_hash_table_work, alloc_hash_table,
14593         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
14594         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
14595         -Wcast-qual warnings.
14596
14597 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14598
14599         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
14600         -Wcast-qual warnings.
14601         * gcc.c (process_command): Likewise.
14602         * genattrtab.c (oballoc): Use XOBNEW.
14603         (oballocvec): Define.
14604         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
14605         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
14606         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
14607         -Wc++-compat and/or -Wcast-qual warnings.
14608         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
14609         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
14610         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
14611         gen_presence_absence_set, gen_automaton, gen_regexp_el,
14612         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
14613         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
14614         add_excls, process_presence_absence_names,
14615         process_presence_absence_patterns, add_presence_absence,
14616         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
14617         get_free_state, add_arc, get_free_automata_list_el,
14618         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
14619         transform_3, cache_presence, create_ainsns, create_automata,
14620         create_state_ainsn_table, dfa_insn_code_enlarge,
14621         output_trans_func, output_min_issue_delay_func,
14622         output_dead_lock_func, output_reset_func,
14623         output_get_cpu_unit_code_func, output_dfa_start_func,
14624         expand_automata): Likewise.
14625         * genextract.c (gen_insn): Likewise.
14626         * gengtype-lex.l: Likewise.
14627         * gengtype.c (read_input_list, adjust_field_type,
14628         process_gc_options): Likewise.
14629         * genoutput.c (note_constraint): Likewise.
14630         * genpreds.c (mangle, add_constraint): Likewise.
14631         * genrecog.c (process_define_predicate, new_decision,
14632         add_to_sequence): Likewise.
14633         * gensupport.c (record_insn_name): Likewise.
14634
14635 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14636
14637         * config/i386/driver-i386.c (detect_caches_amd,
14638         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
14639         and/or -Wcast-qual warnings.
14640         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
14641         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
14642         gt_pch_save): Likewise.
14643         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
14644         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
14645         * global.c (compute_regsets): Likewise.
14646         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14647         finish_graph_dump_file): Likewise.
14648         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
14649         unlink_bb_notes): Likewise.
14650         * integrate.c (get_hard_reg_initial_val): Likewise.
14651         * ipa-prop.c (ipa_push_func_to_list): Likewise.
14652         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
14653         * local-alloc.c (update_equiv_regs): Likewise.
14654         * loop-invariant.c (check_invariant_table_size,
14655         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
14656         Likewise.
14657         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
14658         altered_reg_used, mark_altered): Likewise.
14659         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
14660         insert_var_expansion_initialization,
14661         combine_var_copies_in_loop_exit, apply_opt_in_copies,
14662         release_var_copies): Likewise.
14663         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
14664         analyze_matrix_decl, add_allocation_site, analyze_transpose,
14665         analyze_accesses_for_phi_node, check_var_notmodified_p,
14666         check_allocation_function, find_sites_in_func,
14667         record_all_accesses_in_func, transform_access_sites,
14668         transform_allocation_sites): Likewise.
14669         * omp-low.c (new_omp_region, create_omp_child_function_name,
14670         check_omp_nesting_restrictions, check_combined_parallel,
14671         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
14672         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
14673         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
14674         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
14675         Likewise.
14676         * opts-common.c (prune_options): Likewise.
14677         * opts.c (add_input_filename, print_filtered_help,
14678         get_option_state): Likewise.
14679         * params.c (add_params): Likewise.
14680         * passes.c (set_pass_for_id, next_pass_1,
14681         do_per_function_toporder, pass_fini_dump_file): Likewise.
14682         * postreload.c (reload_cse_simplify_operands): Likewise.
14683         * predict.c (tree_predicted_by_p, tree_predict_edge,
14684         clear_bb_predictions, combine_predictions_for_bb): Likewise.
14685
14686 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14687
14688         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
14689         warnings.
14690         * recog.c (check_asm_operands, validate_change_1): Likewise.
14691         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
14692         subst_asm_stack_regs): Likewise.
14693         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
14694         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
14695         * regmove.c (reg_is_remote_constant_p): Likewise.
14696         * regrename.c (regrename_optimize, scan_rtx_reg,
14697         kill_clobbered_value, kill_set_value, kill_autoinc_value):
14698         Likewise.
14699         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
14700         regstat_compute_calls_crossed): Likewise.
14701         * reload1.c (init_reload, new_insn_chain,
14702         has_nonexceptional_receiver, reload, copy_reloads,
14703         calculate_needs_all_insns, init_elim_table): Likewise.
14704         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
14705         * rtl.c (shallow_copy_rtx_stat): Likewise.
14706         * rtlanal.c (parms_set): Likewise.
14707         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
14708         sbitmap_resize, sbitmap_vector_alloc): Likewise.
14709         * sched-ebb.c (earliest_block_with_similiar_load,
14710         add_deps_for_risky_insns): Likewise.
14711         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
14712         schedule_region): Likewise.
14713         * see.c (eq_descriptor_pre_extension,
14714         hash_descriptor_pre_extension, hash_del_pre_extension,
14715         eq_descriptor_properties, hash_descriptor_properties,
14716         hash_del_properties, see_seek_pre_extension_expr,
14717         see_initialize_data_structures, see_print_register_properties,
14718         see_print_pre_extension_expr, see_delete_merged_def_extension,
14719         see_delete_unmerged_def_extension, see_emit_use_extension,
14720         see_pre_delete_extension, see_map_extension, see_commit_changes,
14721         see_analyze_merged_def_local_prop,
14722         see_analyze_merged_def_local_prop,
14723         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
14724         see_set_prop_merged_def, see_set_prop_unmerged_def,
14725         see_set_prop_unmerged_use, see_print_one_extension,
14726         see_merge_one_use_extension, see_merge_one_def_extension,
14727         see_store_reference_and_extension, see_update_uses_relevancy,
14728         see_update_defs_relevancy): Likewise.
14729         * statistics.c (hash_statistics_hash, hash_statistics_eq,
14730         hash_statistics_free, curr_statistics_hash): Likewise.
14731         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
14732         expand_asm_operands, expand_return, case_bit_test_cmp,
14733         expand_case): Likewise.
14734         * stor-layout.c (start_record_layout): Likewise.
14735         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
14736         gt_pch_save_stringpool): Likewise.
14737         * tree-data-ref.c (hash_stmt_vertex_info,
14738         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
14739         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
14740
14741 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
14742
14743         PR target/36627
14744         * config/i386/i386.md : Change constraints of HImode and QImode
14745         immediate operands from "i" to "n".  Change SImode "ni" constraint to
14746         "i" and SImode "rmi" constraint to "g".  Remove all constraints
14747         from const0_operand and const1_operand predicated operands.
14748         (i): Change QImode and HImode attribute from "i" to "n".
14749         (*subqi_2): Change HImode operands to QImode.
14750         (*subqi_3): Ditto.
14751
14752 2008-06-25  Olivier Hainque  <hainque@adacore.com>
14753
14754         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
14755         sed substitutions.
14756
14757 2008-06-25  Richard Guenther  <rguenther@suse.de>
14758
14759         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
14760         not overflow the result type.
14761
14762 2008-06-25  Richard Guenther  <rguenther@suse.de>
14763
14764         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
14765         (vn_lookup): Likewise.
14766
14767 2008-06-25  Richard Guenther  <rguenther@suse.de>
14768
14769         PR tree-optimization/35518
14770         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
14771         * tree-sra.c (instantiate_element): Use fold_build3 to build
14772         BIT_FIELD_REFs.
14773         (try_instantiate_multiple_fields): Likewise.
14774
14775 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14776
14777         * config/rs6000/rs6000.md: Change all string instruction's clobber to
14778         be early clobbers.
14779
14780 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14781
14782         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
14783         use_backchain_to_restore_sp to true
14784         if the offset of the link register save area would go over the 32k - 1
14785         offset limit of the load
14786         instructions.
14787
14788 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
14789
14790         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
14791         anchor for the type-punning blurb.  Cross-reference "Structures
14792         unions enumerations and bit-fields implementation".  Provide a
14793         cast-through-pointer example.  Make final sentence self-contained.
14794         * doc/implement-c.texi (Structures unions enumerations and
14795         bit-fields implementation): Cross-reference the type-punning blurb
14796         in the -fstrict-aliasing documentation.
14797
14798 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14799
14800         PR middle-end/36594
14801         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
14802         the memory instead of the memory itself for the save area.
14803
14804 2008-06-24  Olivier Hainque  <hainque@adacore.com>
14805             Nicolas Roche  <roche@adacore.com>
14806
14807         * gengtype.c (srcdir_len): size_t instead of int.
14808         (get_file_realbasename): New function.  For F a filename, the real
14809         basename of F, with all the path components stripped.
14810         (get_file_srcdir_relative_path): New function.  For F a filename, the
14811         relative path to F from $(srcdir).
14812         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
14813         get_file_realbasename.  Adjust the head comment.
14814         (get_prefix_langdir_index): New function. For F a filename, return the
14815         lang_dir_names[] relative index of the language directory that is
14816         a prefix in F.
14817         (get_file_langdir): For F a filename, return the name of the language
14818         directory where F is located.
14819         (get_file_gtfilename): New function. The gt- output file name for an
14820         input filename F.
14821         (get_output_file_with_visibility): Replace in-line computations with
14822         uses of get_file_gtfilename and get_prefix_langdir_index.
14823         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
14824
14825 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
14826
14827         PR tree-optimization/36504
14828         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
14829         references without base address.
14830
14831 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
14832
14833         PR middle-end/36584
14834         * calls.c (expand_call): Increase alignment for recursive functions.
14835
14836 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
14837
14838         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
14839         (TARGET_FUNCTION_VALUE): New define.
14840         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
14841         * config/avr/avr.h (FUNCTION_VALUE): Remove.
14842
14843 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
14844
14845         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
14846         (fmod<mode>3): Ditto.
14847         (remainderxf3): Ditto.
14848         (remainder<mode>3): Ditto.
14849
14850 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
14851
14852         PR target/36533
14853         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
14854         REG is a hard register.
14855
14856         PR tree-optimization/36508
14857         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
14858         499, don't check it at all in release compilers.
14859
14860 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
14861
14862         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
14863         together with SSE_TARGET_MATH to disable insn pattern.
14864         (*fop_<MODEF:mode>_2_i387): Ditto.
14865         (*fop_<MODEF:mode>_3_i387): Ditto.
14866
14867 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
14868
14869         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
14870
14871 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14872
14873         PR middle-end/34906
14874         * gimplify.c (gimplify_asm_expr): Check the return code of
14875         parse_output_constraint call, set function return and is_inout
14876         value if it failed.
14877
14878 2008-06-22  Ian Lance Taylor  <iant@google.com>
14879
14880         * c-lex.c (narrowest_unsigned_type): Change itk to int.
14881         (narrowest_signed_type): Likewise.
14882         * c-typeck.c (c_common_type): Change local variable mclass to enum
14883         mode_class, twice.
14884         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
14885         tcc_comparison, not the tree code itself.
14886         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
14887         (c_expand_expr): Cast modifier to enum expand_modifier.
14888         * c-common.h (C_RID_CODE): Add casts.
14889         (C_SET_RID_CODE): Define.
14890         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
14891         (c_lex_one_token): Add cast to avoid warning.
14892         (c_parser_objc_type_name): Rename local typename to type_name.
14893         (check_no_duplicate_clause): Change code parameter to enum
14894         omp_clause_code.
14895         (c_parser_omp_var_list_parens): Change kind parameter to enum
14896         omp_clause_code.
14897         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
14898         c_parser_omp_list_var_parens.
14899         (c_parser_omp_threadprivate): Likewise.
14900         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
14901         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
14902         * c-format.c (NO_FMT): Define.
14903         (printf_length_specs): Use NO_FMT.
14904         (asm_fprintf_length_specs): Likewise.
14905         (gcc_diag_length_specs): Likewise.
14906         (scanf_length_specs): Likewise.
14907         (strfmon_length_specs): Likewise.
14908         (gcc_gfc_length_specs): Likewise.
14909         (printf_flag_specs): Change 0 to STD_C89.
14910         (asm_fprintf_flag_specs): Likewise.
14911         (gcc_diag_flag_specs): Likewise.
14912         (gcc_cxxdiag_flag_specs): Likewise.
14913         (scanf_flag_specs): Likewise.
14914         (strftime_flag_specs): Likewise.
14915         (strfmon_flag_specs): Likewise.
14916         (print_char_table): Likewise.
14917         (asm_fprintf_char_table): Likewise.
14918         (gcc_diag_char_table): Likewise.
14919         (gcc_tdiag_char_table): Likewise.
14920         (gcc_cdiag_char_table): Likewise.
14921         (gcc_cxxdiag_char_table): Likewise.
14922         (gcc_gfc_char_table): Likewise.
14923         (scan_char_table): Likewise.
14924         (time_char_table): Likewis.
14925         (monetary_char_table): Likewise.
14926         * c-format.h (BADLEN): Likewise.
14927
14928 2008-06-21  Ian Lance Taylor  <iant@google.com>
14929
14930         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
14931         Define END_OF_BASE_TREE_CODES around inclusion.
14932         * tree.c (tree_code_type): New global array.
14933         (tree_code_length, tree_code_name): Likewise.
14934         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
14935         $(lang_tree_files).
14936         (all-tree.def, s-alltree): New targets.
14937         (gencheck.h, s-gencheck): Remove.
14938         (tree.o): Depend upon all-tree.def.
14939         (build/gencheck.o): Remove gencheck.h dependency.
14940         (mostlyclean): Don't remove gencheck.h.
14941         * c-common.h (enum c_tree_code): Remove.
14942         * c-lang.c (tree_code_type): Remove.
14943         (tree_code_length, tree_code_name): Remove.
14944         * gencheck.c (tree_codes): Include all-tree.def, rather than
14945         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
14946         after it is used.
14947         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
14948         than tree.def.
14949         * cp/cp-tree.h (enum cplus_tree_code): Remove.
14950         (operator_name_info): Size to MAX_TREE_CODES.
14951         (assignment_operator_name_info): Likewise.
14952         * cp/cp-lang.c (tree_code_type): Remove.
14953         (tree_code_length, tree_code_name): Remove.
14954         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
14955         (assignment_operator_name_info): Likewise.
14956         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
14957         MAX_TREE_CODES.
14958         * cp/mangle.c (write_expression): Likewise.
14959         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
14960         * fortran/f95-lang.c (tree_code_type): Remove.
14961         (tree_code_length, tree_code_name): Remove.
14962         * java/java-tree.h (enum java_tree_code): Remove.
14963         * java/lang.c (tree_code_type): Remove.
14964         (tree_code_length, tree_code_name): Remove.
14965         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
14966         * objc/objc-act.h (enum objc_tree_code): Remove.
14967         * objc/objc-lang.c (tree_code_type): Remove.
14968         (tree_code_length, tree_code_name): Remove.
14969         * objcp/objcp-lang.c (tree_code_type): Remove.
14970         (tree_code_length, tree_code_name): Remove.
14971         * ada/ada-tree.h (enum gnat_tree_code): Remove.
14972         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
14973         * ada/misc.c (tree_code_type): Remove.
14974         (tree_code_length, tree_code_name): Remove.
14975
14976 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
14977
14978         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
14979         the grand_bitmap_obstack.
14980
14981 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14982
14983         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
14984         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
14985         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
14986         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
14987         move_stmt_r, new_label_mapper): Likewise.
14988         * tree-complex.c (cvc_lookup): Likewise.
14989         * tree-dfa.c (create_function_ann): Likewise.
14990         * tree-dump.c (dump_register): Likewise.
14991         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
14992         find_phi_replacement_condition): Likewise.
14993         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
14994         tree_function_versioning): Likewise.
14995         * tree-into-ssa.c (cmp_dfsnum): Likewise.
14996         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
14997         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
14998         get_nonlocal_debug_decl, convert_nonlocal_reference,
14999         convert_nonlocal_omp_clauses, get_local_debug_decl,
15000         convert_local_reference, convert_local_omp_clauses,
15001         convert_nl_goto_reference, convert_nl_goto_receiver,
15002         convert_tramp_reference, convert_call_expr): Likewise.
15003         * tree-outof-ssa.c (contains_tree_r): Likewise.
15004         * tree-parloops.c (reduction_phi, initialize_reductions,
15005         eliminate_local_variables_1, add_field_for_reduction,
15006         add_field_for_name, create_phi_for_local_result,
15007         create_call_for_reduction_1, create_loads_for_reductions,
15008         create_stores_for_reduction, create_loads_and_stores_for_name):
15009         Likewise.
15010         * tree-phinodes.c (allocate_phi_node): Likewise.
15011         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
15012         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
15013         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
15014         * tree-ssa-coalesce.c (compare_pairs): Likewise.
15015         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
15016         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
15017         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
15018         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
15019         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
15020         vn_nary_op_insert): Likewise.
15021         * tree-ssa.c (redirect_edge_var_map_add,
15022         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
15023         * tree-vectorizer.c (vectorize_loops): Likewise.
15024         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
15025         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
15026         tree_cons_stat, build1_stat, build_variant_type_copy,
15027         decl_init_priority_lookup, decl_fini_priority_lookup,
15028         decl_priority_info, decl_restrict_base_lookup,
15029         decl_restrict_base_insert, decl_debug_expr_lookup,
15030         decl_debug_expr_insert, decl_value_expr_lookup,
15031         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
15032         type_hash_add, get_file_function_name, tree_check_failed,
15033         tree_not_check_failed, tree_range_check_failed,
15034         omp_clause_range_check_failed, build_omp_clause,
15035         build_vl_exp_stat): Likewise.
15036         * value-prof.c (gimple_histogram_value,
15037         gimple_duplicate_stmt_histograms): Likewise.
15038         * var-tracking.c (attrs_list_insert, attrs_list_copy,
15039         unshare_variable, variable_union_info_cmp_pos, variable_union,
15040         dataflow_set_different_1, dataflow_set_different_2,
15041         vt_find_locations, variable_was_changed, set_variable_part,
15042         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
15043         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
15044         section_entry_hash, object_block_entry_eq,
15045         object_block_entry_hash, create_block_symbol,
15046         initialize_cold_section_name, default_function_rodata_section,
15047         strip_reg_name, set_user_assembler_name, const_desc_eq,
15048         build_constant_desc, output_constant_def, lookup_constant_def,
15049         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
15050         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
15051         default_internal_label): Likewise.
15052         * varray.c (varray_init, varray_grow): Likewise.
15053         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
15054
15055 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
15056
15057         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
15058         operators for "test" insn.  Macroize insn using SWI mode macro.
15059         (*jcc_fused_2): Ditto.
15060         (*jcc_fused_3): Macroize insn using SWI mode macro.
15061         (*jcc_fused_4): Ditto.
15062
15063 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
15064
15065         * tree-ssa-pre.c: Fix typo in comment.
15066         (init_antic, fini_antic): Add explicit funtions for
15067         initializing and deinitializing ANTIC and AVAIL sets.
15068         (create_expression_by_pieces): Fix typo in comment.
15069         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
15070         (execute_pre): Eventually dump details about ANTIC_IN.
15071
15072 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15073
15074         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
15075         * gcc.c (translate_options, init_spec, store_arg, read_specs,
15076         add_to_obstack, file_at_path, find_a_file, execute,
15077         add_preprocessor_option, add_assembler_option, add_linker_option,
15078         process_command, insert_wrapper, do_option_spec, do_self_spec,
15079         spec_path, do_spec_1, is_directory, main, used_arg,
15080         getenv_spec_function): Likewise.
15081         * tlink.c (symbol_hash_lookup, file_hash_lookup,
15082         demangled_hash_lookup, symbol_push, file_push, frob_extension):
15083         Likewise.
15084
15085 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
15086
15087         * doc/rtl.texi: Updated subreg section.
15088
15089 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
15090
15091         PR c++/36523
15092         * cgraphunit.c (cgraph_process_new_functions): Don't clear
15093         node->needed and node->reachable.
15094         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
15095         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
15096         (expand_task_call): Don't call expand_task_copyfn.
15097         (expand_task_copyfn): Renamed to...
15098         (finalize_task_copyfn): ... this.
15099
15100 2008-06-19  Jan Hubicka  <jh@suse.cz>
15101
15102         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
15103         clobbering framepointer.
15104
15105 2008-06-19  Jan Hubicka  <jh@suse.cz>
15106
15107         * tree-optimize.c (execute_early_local_optimizations): Set
15108         cgraph_state only at first invocation.
15109
15110 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15111
15112         * system.h (-Wc++-compat): Activate as a warning, no an error.
15113
15114 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
15115
15116         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
15117         instead of "#" in insn asm template.
15118         (*jcc_fused_2): Ditto.
15119
15120 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
15121
15122         * config/i386/i386.h (ix86_tune_indices)
15123         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
15124         (TARGET_FUSE_CMP_AND_BRANCH): New define.
15125         * config/i386/i386.md (*jcc_fused_1): New insn pattern
15126         (*jcc_fused_2): Ditto.
15127         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
15128         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
15129         (print operand): Handle 'E' and 'e' code.
15130
15131 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
15132
15133         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
15134         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
15135         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15136
15137 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
15138
15139         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
15140         node->decl.
15141         (cgraph_expand_function): Use local copy of decl.
15142         (cgraph_expand_all_functions): Remove redundant initialization of
15143         order_pos.
15144         (cgraph_optimize): Reword internal_error message.
15145
15146 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
15147
15148         * arm-protos.h (arm_return_in_memory): Remove public
15149         arm_return_in_memory() prototype.
15150         * arm.c (arm_return_in_memory): Add static prototype, add target
15151         hook macro, change definition and comments.
15152         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
15153
15154 2008-06-19  Ben Elliston  <bje@au.ibm.com>
15155
15156         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
15157         real.c: Remove references to IEEE 754R.
15158         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
15159         * doc/libgcc.texi (Decimal float library routines): Likewise.
15160
15161 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15162
15163         * targhooks.h (struct gcc_target): New member unwind_word_mode.
15164         (default_unwind_word_mode): Add prototype.
15165         * targhooks.c (default_unwind_word_mode): New function.
15166         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
15167         instead of word_mode.
15168         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
15169         (TARGET_INITIALIZER): Use it.
15170
15171         * c-common.c (handle_mode_attribute): Support "unwind_word"
15172         mode attribute.
15173         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
15174
15175         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
15176         word_mode to access SjLj_Function_Context member "data".
15177         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
15178         conversion from targetm.eh_return_filter_mode () to
15179         targetm.unwind_word_mode () if they differ.
15180
15181         * builtin-types.def (BT_UNWINDWORD): New primitive type.
15182         (BT_FN_UNWINDWORD_PTR): New function type.
15183         (BT_FN_WORD_PTR): Remove.
15184         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
15185         * except.c (expand_builtin_extend_pointer): Convert pointer to
15186         targetm.unwind_word_mode () instead of word_mode.
15187
15188         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
15189         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
15190         (spu_unwind_word_mode): New function.
15191         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
15192         (TARGET_UNWIND_WORD_MODE): Define.
15193         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
15194
15195 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15196
15197         * config/spu/spu.c (reg_align): Remove.
15198         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
15199         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
15200         (spu_split_store): Likewise.
15201
15202 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
15203
15204         * gcc/tree-vn.c: Fix typo in comment.
15205
15206 2008-06-18  Jan Hubicka  <jh@suse.cz>
15207
15208         * cgraphunit.c (cgraph_optimize): Output debug info when doing
15209         toplevel reorder too.
15210
15211 2008-06-18  Jan Hubicka  <jh@suse.cz>
15212
15213         * c-opts.c (c_common_post_options): PCH is not compatible with
15214         no-unit-at-a-time.
15215         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
15216         -fno-toplevel-reorder by default now.
15217
15218 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15219
15220         PR documentation/30739
15221         * doc/install.texi (Prerequisites): Document dependency on awk.
15222
15223 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
15224             Ian Lance Taylor  <iant@google.com>
15225
15226         PR rtl-optimization/35604
15227         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
15228         only want to change jump destinations, not eventual label comparisons.
15229
15230 2008-06-16  Jan Hubicka  <jh@suse.cz>
15231
15232         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
15233         syntax errors.
15234         (cgraph_analyze_function): Likewise.
15235
15236 2008-06-16  Jan Hubicka  <jh@suse.cz>
15237
15238         * cgraph.h (cgraph_mark_if_needed): New function.
15239         * cgraphunit.c (cgraph_mark_if_needed): New function.
15240         * c-decl.c (duplicate_decl): Use it.
15241
15242 2008-06-16  Jan Hubicka  <jh@suse.cz>
15243
15244         * cgraph.c (cgraph_add_new_function): When in expansion state, do
15245         lowering.
15246
15247 2008-06-16  Jan Hubicka  <jh@suse.cz>
15248
15249         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
15250
15251 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
15252             Kazu Hirata  <kazu@codesourcery.com>
15253             Maxim Kuvyrkov  <maxim@codesourcery.com
15254
15255         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
15256         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
15257         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
15258         EXTRA_SPEC_FUNCTIONS.
15259         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
15260         (DRIVER_SELF_SPECS): Adjust.
15261         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
15262         * config/mips/st.h, config/mips/t-st: New.
15263         * config/mips/driver-native.c, config/mips/x-native: New.
15264         * doc/invoke.texi (MIPS): Document 'native' value for -march and
15265         -mtune options.
15266
15267 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15268
15269         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
15270         from it.
15271         (ISA_HAS_FP_CONDMOVE): New macro.
15272         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
15273         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
15274         (ISA_HAS_NMADD3_NMSUB3): New macro.
15275         * config/mips/mips.c (mips_rtx_costs): Update.
15276         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
15277         compiling for ST Loongson 2E/2F.
15278         (madd<mode>): Rename to madd4<mode>.  Update.
15279         (madd3<mode>): New pattern.
15280         (msub<mode>): Rename to msub4<mode>.  Update.
15281         (msub3<mode>): New pattern.
15282         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
15283         (nmadd3<mode>): New pattern.
15284         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
15285         (nmadd3<mode>_fastmath): New pattern.
15286         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
15287         (nmsub3<mode>): New pattern.
15288         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
15289         (nmsub3<mode>_fastmath): New pattern.
15290         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
15291
15292 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
15293
15294         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
15295         (DF_REF_INSN_INFO): New.
15296         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
15297         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
15298         with a NULL DF_REF_INSN_INFO.
15299         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
15300         DF_INSN_SET.
15301         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
15302         DF_INSN_INFO_EQ_USES): New.
15303         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
15304         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
15305         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
15306         * df-core.c: Update comment for above changes.
15307         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
15308         DF_INSN_UID_* macros.
15309         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
15310         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
15311         insn rtx.  Update all callers.
15312         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
15313         df_ref_create_structure, df_insn_refs_collect): Likewise.
15314         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
15315         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
15316         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
15317         macros to access the insn refs.
15318         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
15319         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
15320         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
15321         for accessing the refs.
15322         (try_fwprop_subst): Likewise.
15323         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
15324         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
15325         for accessing the refs.
15326         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
15327         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
15328         to look at the insn refs.
15329         (record_uses): Likewise.
15330         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
15331         function anymore.
15332         (mark_artificial_uses): Don't mark_insn for artificial refs.
15333         (mark_reg_rependencies): Likewise.
15334
15335         * doc/rtl.texi: Remove documentation of ADDRESSOF.
15336
15337 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15338
15339         * configure: Regenerate.
15340
15341 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15342
15343         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
15344         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15345         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15346
15347 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15348
15349         * config/avr/avr.c (avr_mcu_t): Add attiny167.
15350         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15351         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15352
15353 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15354
15355         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
15356         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15357         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15358
15359 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
15360
15361         * tree-ssa-sccvn.c: Fix format of comments.
15362
15363 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
15364
15365         * cgraph.c: Remove unneeded forward declarations of eq_node()
15366         and hash_node().
15367
15368 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
15369
15370         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
15371         REG_RETVAL notes.
15372         (see_update_relevancy): Likewise.
15373         * fwprop.c (try_fwprop_subst): Likewise.
15374         * rtlanal.c (noop_move_p): Likewise.
15375         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
15376         notes to non-existing libcall blocks.
15377         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
15378         Remove orig_set.
15379         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
15380         (dead_libcall_p): Remove.
15381         (delete_trivially_dead_insns): Don't use it.
15382         * web.c (union_defs): Remove comment about keeping nops.
15383         * gcse.c (hash_scan_insn): Don't take libcall pointers.
15384         (compute_hash_table_work): Don't track libcall notes.
15385         (do_local_cprop): Don't take libcall pointers.  Don't update
15386         libcall notes.
15387         (adjust_libcall_notes): Deleted.
15388         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
15389         ever have existed in the first place).
15390         (replace_store_insn): Don't try to remove libcall notes.
15391         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
15392         (resolve_reg_notes): Don't call them.
15393         (resolve_simple_move): Likewise.
15394         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
15395         Don't remove REG_RETVAL notes.
15396         * emit-rtl.c (try_split): Don't update libcall notes.
15397         (emit_copy_of_insn_after): Dito.
15398         * cselib.c (cselib_current_insn_in_libcall): Remove.
15399         (cselib_process_insn): Don't set/clear it.
15400         (new_elt_loc_list): Don't record it.
15401         (cselib_init): Don't initialize it.
15402         * cselib.c (struct elt_loc_list): Remove in_libcall field.
15403         * loop-invariant.c (find_invariant_insn): Don't look for libcall
15404         notes.
15405         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
15406         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
15407         (init_deps): Don't initialize it.
15408         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
15409         * combine.c (delete_noop_moves): Don't update libcall notes.
15410         (can_combine_p): Remove now pointless #if 0 block.
15411         (try_combine): Remove another obsolete #if 0 block.
15412         (distribute_notes): Don't distribute libcall notes.
15413         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
15414         * dce.c (libcall_dead_p): Remove.
15415         (delete_unmarked_insns): Don't handle libcall blocks.
15416         (preserve_libcall_for_dce): Remove.
15417         (prescan_insns_for_dce): Don't special-case libcall block insns.
15418         * reload1 (reload): Don't handle libcall notes.
15419         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
15420         documentation.
15421
15422 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
15423
15424         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
15425         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15426         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15427
15428 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
15429
15430         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
15431         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15432         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15433
15434 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15435
15436         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
15437
15438 2008-06-16  Ira Rosen  <irar@il.ibm.com>
15439
15440         PR tree-optimization/36493
15441         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
15442         the arguments list. Use VECTYPE to create vector pointer.
15443         (vectorizable_store): Fail if accesses through a pointer to vectype
15444         do not alias the original memory reference operands.
15445         Call vect_create_data_ref_ptr without the removed argument.
15446         (vectorizable_load): Likewise.
15447         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
15448         removed argument.
15449
15450 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
15451
15452         PR target/36336
15453         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
15454         reg_equiv_constant.
15455
15456 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15457
15458         * config/mips/loongson2ef.md: New file.
15459         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15460         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15461         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15462         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
15463         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
15464         and loongson_2f.
15465         (loongson2ef.md): New include.
15466         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
15467         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
15468         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
15469         (loongson_gt_<mode>, loongson_extract_halfword)
15470         (loongson_insert_halfword_0, loongson_insert_halfword_2)
15471         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
15472         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
15473         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
15474         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
15475         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
15476         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
15477         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
15478         (vec_interleave_low<mode>): Define type attribute.
15479         * config/mips/mips.c (mips_ls2): New static variable.
15480         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
15481         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
15482         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
15483         Implement target scheduling hooks.
15484         (mips_multipass_dfa_lookahead): Update to handle tuning for
15485         Loongson 2E/2F.
15486         (mips_sched_init): Initialize data for Loongson scheduling.
15487         (mips_ls2_variable_issue): New static function.
15488         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
15489         Add sanity check.
15490         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
15491         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
15492         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
15493         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
15494         Handle ST Loongson 2E/2F cores.
15495         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
15496
15497 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15498
15499         * omp-low.c (extract_omp_for_data): Fix comment typo.
15500         * c.opt: Fix typo.
15501
15502 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15503
15504         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
15505         FIXME note about gcc/config.guess.
15506         * doc/options.texi (Option file format): Remove non-ASCII bytes.
15507         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
15508         * doc/cppopts.texi: Likewise.
15509         * doc/extend.texi: Likewise.
15510         * doc/gcc.texi: Likewise.
15511         * doc/gccint.texi: Likewise.
15512         * doc/gcov.texi: Likewise.
15513         * doc/gty.texi: Likewise.
15514         * doc/hostconfig.texi: Likewise.
15515         * doc/install.texi: Likewise.
15516         * doc/invoke.texi: Likewise.
15517         * doc/loop.texi: Likewise.
15518         * doc/makefile.texi: Likewise.
15519         * doc/md.texi: Likewise.
15520         * doc/passes.texi: Likewise.
15521         * doc/tm.texi: Likewise.
15522         * doc/tree-ssa.texi: Likewise.
15523         * doc/trouble.texi: Likewise.
15524
15525 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
15526             Nathan Sidwell  <nathan@codesourcery.com>
15527             Maxim Kuvyrkov  <maxim@codesourcery.com>
15528             Richard Sandiford  <rdsandiford@googlemail.com>
15529
15530         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
15531         * config/mips/mips-protos.h (mips_expand_vector_init): New.
15532         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
15533         builtins.
15534         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
15535         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
15536         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
15537         V8QImode cases.
15538         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
15539         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
15540         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
15541         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
15542         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
15543         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
15544         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
15545         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
15546         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
15547         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
15548         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
15549         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
15550         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
15551         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
15552         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
15553         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
15554         (mips_builtins): Add Loongson builtins.
15555         (mips_loongson_2ef_bdesc): New.
15556         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
15557         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
15558         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
15559         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
15560         New.
15561         (mips_expand_vector_init): New.
15562         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
15563         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
15564         if appropriate.
15565         * config/mips/mips.md: Add unspec numbers for Loongson
15566         builtins.  Include loongson.md.
15567         (MOVE64): Include Loongson vector modes.
15568         (SPLITF): Include Loongson vector modes.
15569         (HALFMODE): Handle Loongson vector modes.
15570         * config/mips/loongson.md: New.
15571         * config/mips/loongson.h: New.
15572         * config.gcc: Add loongson.h header for mips*-*-* targets.
15573         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
15574
15575 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
15576
15577         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
15578         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
15579         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
15580         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
15581         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
15582         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
15583         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
15584         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
15585         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
15586         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
15587         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
15588         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
15589         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
15590         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
15591         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
15592         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
15593         Remove use_fixproto=yes.
15594         (ia64*-*-hpux*): Remove comment about using fixproto.
15595         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
15596
15597 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15598
15599         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
15600         library rebuilds.
15601         * configure: Regenerate.
15602
15603 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
15604
15605         PR middle-end/36520
15606         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
15607         before evaluating it.
15608
15609 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
15610
15611         PR c/36507
15612         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
15613         nested inline functions.
15614         (start_decl, start_function): Don't invert DECL_EXTERNAL
15615         for nested inline functions.
15616
15617 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
15618
15619         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
15620         splits that must be made for correctness.
15621
15622 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
15623
15624         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
15625         (AVAIL_NON_MIPS16): Likewise.
15626         (mips_builtin_description): Replace target_flags with a predicate.
15627         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
15628         (dspr2_32): New availability predicates.
15629         (MIPS_BUILTIN): New macro.
15630         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
15631         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
15632         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
15633         Replace the TARGET_FLAGS parameters with AVAIL parameters.
15634         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
15635         (mips_dsp_32only_bdesc): Merge into...
15636         (mips_builtins): ...this new array.
15637         (mips_bdesc_map, mips_bdesc_arrays): Delete.
15638         (mips_init_builtins): Update after above changes.
15639         (mips_expand_builtin_1): Merge into...
15640         (mips_expand_builtin): ...here and update after above changes.
15641
15642 2008-06-12  Paul Brook  <paul@codesourcery.com>
15643
15644         * longlong.h (__arm__): Define count_leading_zeros.
15645         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
15646         (clzsi2, clzdi2): New functions.
15647         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
15648         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
15649         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
15650         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
15651         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
15652         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
15653         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
15654         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
15655         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
15656         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
15657
15658 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
15659
15660         * config/m68k/m68k.c (m68k_tune_flags): New.
15661         (override_options): Compute m68k_tune_flags.
15662         (MULL_COST, MULW_COST): Update for various variants of CFV2.
15663         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
15664
15665 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
15666
15667         PR middle-end/36506
15668         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
15669
15670 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
15671
15672         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
15673         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
15674
15675 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
15676
15677         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
15678         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
15679
15680 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR middle-end/36506
15683         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
15684         reductions.
15685
15686 2008-06-12  Richard Guenther  <rguenther@suse.de>
15687
15688         PR tree-optimization/36345
15689         * tree-flow.h (struct ptr_info_def): Align escape_mask,
15690         add memory_tag_needed flag.
15691         (may_alias_p): Declare.
15692         * tree-ssa-alias.c (may_alias_p): Export.
15693         (set_initial_properties): Use memory_tag_needed flag.
15694         (update_reference_counts): Likewise.
15695         (reset_alias_info): Reset memory_tag_needed flag.
15696         (create_name_tags): Check memory_tag_needed flag.
15697         (dump_points_to_info_for): Dump it.
15698         * tree-ssa-structalias.c (struct variable_info): Remove
15699         directly_dereferenced flag.
15700         (new_var_info): Do not initialize it.
15701         (process_constraint_1): Do not set it.
15702         (update_alias_info): Set is_dereferenced flag.
15703         (set_uids_in_ptset): Use may_alias_p.
15704         (set_used_smts): Check memory_tag_needed flag.
15705         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
15706         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
15707         memory_tag_needed flag.
15708         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
15709         from broken design.
15710
15711 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
15712
15713         * config/i386/i386.c (ix86_compute_frame_layout): Disable
15714         red zone for w64 abi.
15715         (ix86_expand_prologue): Likewise.
15716         (ix86_force_to_memory): Likewise.
15717         (ix86_free_from_memory): Likewise.
15718
15719 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
15720
15721         PR target/36425
15722         * config/rs6000/rs6000.c (rs6000_override_options): Set
15723         rs6000_isel conditionally to the absence of comand line override.
15724         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15725         Remove duplicate rs6000_isel setting.
15726         * config/rs6000/eabispe.h: Ditto.
15727
15728 2008-06-11  Richard Guenther  <rguenther@suse.de>
15729
15730         * alias.c (get_alias_set): Use the element alias-set for arrays.
15731         (record_component_aliases): For arrays and vectors do nothing.
15732         * c-common.c (strict_aliasing_warning): Handle the cases
15733         of alias set zero explicitly.
15734         * Makefile.in (dfp.o-warn): Add -Wno-error.
15735
15736 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
15737
15738         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
15739         tune_32 tune_64.
15740         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
15741         tune_32 tune_64 to supported_defaults.  Allow values not
15742         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
15743         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
15744         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
15745         with_cpu_64 to generic for 64-bit-supporting configurations, not
15746         with_cpu.  Remove FIXMEs.
15747         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
15748         --with-arch-64, --with-tune-32, --with-tune-64): Document.
15749         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
15750         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
15751         arch_32 and arch_64.
15752
15753 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
15754             Olivier Hainque  <hainque@adacore.com>
15755
15756         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
15757         Use DECL_SIZE_UNIT to retrieve the size of the field.
15758
15759 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
15760
15761         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
15762         with function calls after declarations.  Lay out
15763         neon_float_type_node before further use.
15764
15765 2008-06-11  Richard Guenther  <rguenther@suse.de>
15766
15767         * tree-flow.h (may_point_to_global_var): Declare.
15768         * tree-ssa-alias.c (may_point_to_global_var): New function.
15769         * tree-ssa-sink.c (is_hidden_global_store): Use it.
15770
15771 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
15772
15773         * configure.ac: Teach that fido supports .debug_line.
15774         * configure: Regenerate.
15775
15776 2008-06-10  Tom Tromey  <tromey@redhat.com>
15777
15778         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
15779         debug hook.
15780
15781 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
15782
15783         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
15784         (encode_decimal64, decode_decimal64, encode_decimal128,
15785         decode_decimal128): Reverse order of 32-bit parts of value if host
15786         and target endianness differ.
15787
15788 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
15789
15790         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
15791         Avoid division by 0.
15792         (tree_mod_pow2_value_transform): Likewise.
15793         (tree_ic_transform): Likewise.
15794         (tree_stringops_transform): Likewise.
15795         (tree_mod_subtract_transform): Likewise.
15796         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
15797         (copy_edges_for_bb): Likewise.
15798         (initialize_cfun): Likewise.
15799
15800 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
15801
15802         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
15803         nonmemory_operand. Add "N" operand constraint.
15804         (*btsi): Ditto.
15805         (*jcc_btdi_mask_rex64): New instruction and split pattern.
15806         (*jcc_btsi_mask): Ditto.
15807         (*jcc_btsi_mask_1): Ditto.
15808
15809 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
15810
15811         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
15812         TYPE_CANONICAL for copied element type.
15813
15814 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
15815
15816         PR target/36473
15817         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
15818         Add m_CORE2 and m_GENERIC.
15819         * config/i386/predicates.md (bt_comparison_operator): New predicate.
15820         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
15821         (*btsi): Ditto.
15822         (*jcc_btdi_rex64): New instruction and split pattern.
15823         (*jcc_btsi): Ditto.
15824         (*jcc_btsi_1): Ditto.
15825         (*btsq): Fix Intel asm dialect operand order.
15826         (*btrq): Ditto.
15827         (*btcq): Ditto.
15828
15829 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
15830
15831         PR middle-end/36447
15832         * simplify-rtx.c (simplify_subreg): Add check for shift count
15833         greater than size.
15834
15835 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
15836
15837         * doc/md.texi: Synchronize with later constraints.md change.
15838         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
15839         with a C implementation.
15840         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
15841         MFLO handling.
15842         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
15843         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
15844         when moving to and from MD_REGNUM.
15845         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
15846         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
15847         Handle byte and halfword moves.
15848         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
15849         separately.
15850         * config/mips/constraints.md (h): Turn into NO_REGS.
15851         (l, x): Update documentation.
15852         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
15853         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
15854         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
15855         (HILO): New mode iterator.
15856         (MOVE128): Add TI.
15857         (any_div): New code iterator.
15858         (u): Extend code attribute to div and udiv.
15859         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
15860         d_operand in the splitters.  Remove redundant CONST_INT checks.
15861         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
15862         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
15863         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
15864         accordingly, using normal moves instead of unspecs to move LO into
15865         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
15866         (<u>mulsidi3): Handle expansion in C code.
15867         (<u>mulsidi3_32bit_internal): Rename to...
15868         (<u>mulsidi3_32bit): ...this.
15869         (<u>mulsidi3_32bit_r4000): Fix insn separator.
15870         (*<u>mulsidi3_64bit): Rename to...
15871         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
15872         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
15873         to set LO and HI to the multiplication result.  Use a normal move
15874         for MFLO and an unspec for MFHI.
15875         (*<u>mulsidi3_64bit_parts): Replace with...
15876         (<u>mulsidi3_64bit_hilo): ...this new instruction.
15877         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
15878         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
15879         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
15880         instead of HI.  Split the instruction into a separate multiplication
15881         and MFHI if !TARGET_FIX_R4000.
15882         (<su>muldi3_highpart): Likewise.
15883         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
15884         and the "=h" clobber.
15885         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
15886         (<u>mulditi3): New expander.
15887         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
15888         (madsi): Remove "=h" clobber.
15889         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
15890         Force the modulus result to be a GPR and split the instruction into
15891         a division followed by an MFHI after reload.
15892         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
15893         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
15894         the MIPS16 HIGH define_split.
15895         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
15896         of acc<->gpr moves to "multi".
15897         (*movdi_64bit): Replace the single "x" alternative with
15898         alternatives for moving into and out of "a".
15899         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
15900         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
15901         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
15902         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
15903         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
15904         (movti): New expander.
15905         (*movti, *movti_mips16): New insns.
15906         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
15907         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
15908         (mthi<GPR:mode>_<HILO:mode>): Likewise.
15909         * config/mips/predicates.md (fpr_operand): Delete.
15910         (d_operand): New predicate.
15911
15912 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
15913
15914         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
15915         failure on some Bourne shells.
15916         (x86_64-*-*): Ditto.
15917
15918 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
15919
15920         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
15921
15922 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15923
15924         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
15925         (sparc-sun-solaris2*): Likewise.
15926
15927 2008-06-09  Arnaud Charlet  <charlet@adacore.com
15928
15929         * doc/install.texi: Update requirements to build the Ada compiler.
15930
15931 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15932
15933         * df-scan.c (struct df_scan_problem_data): Remove the
15934         mw_link_pool alloc pool.
15935         (df_scan_free_internal): Don't free it.
15936         (df_scan_alloc): Don't allocate it.
15937         * df.h (struct df_link): Update comment.
15938
15939 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
15940
15941         * except.h: Correct checks for when SJLJ exceptions must be used.
15942
15943 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15944
15945         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
15946         default.
15947
15948 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
15949
15950         PR tree-optimization/36218
15951         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
15952         configure for the build system.
15953         (BUILD_LDFLAGS): Define.
15954         * configure: Regenerate.
15955         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
15956
15957 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
15958
15959         PR target/36424
15960         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
15961         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
15962         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
15963
15964 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
15965
15966         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
15967
15968 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
15969
15970         * config.gcc (Obsolete configurations): Remove list of
15971         configurations.
15972         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
15973         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
15974         targets matched by those patterns.
15975         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
15976         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
15977         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
15978         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
15979         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15980         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
15981         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
15982         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
15983         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
15984         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
15985         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
15986         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
15987         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
15988         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
15989         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
15990         Make code for Solaris 7 and greater unconditional for Solaris.
15991         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
15992         Remove --with-* handling.
15993         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
15994         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
15995         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
15996         LINK_OS_WINDISS_SPEC): Remove.
15997         * config/rs6000/sysv4.opt (mwindiss): Remove.
15998         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
15999         * configure: Regenerate.
16000         * doc/cpp.texi: Don't mention BeOS.
16001         * doc/extend.texi (interrupt): Don't mention MS1.
16002         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
16003         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
16004         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
16005         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
16006         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
16007         Remove.
16008         * doc/invoke.texi (MT Options): Remove.
16009         (-mwindiss): Remove.
16010         (CRIS Options): Remove cris-axis-aout references.
16011         (HPPA Options): Don't mention hppa1.1-*-pro.
16012         * doc/md.texi: (MorphoTech family): Remove.
16013         * libgcc2.c: Don't handle UWIN.
16014         * config/alpha/t-unicosmk: Remove.
16015         * config/alpha/unicosmk.h: Remove.
16016         * config/arm/kaos-arm.h: Remove.
16017         * config/arm/kaos-strongarm.h: Remove.
16018         * config/arm/strongarm-coff.h: Remove.
16019         * config/arm/strongarm-elf.h: Remove.
16020         * config/arm/strongarm-pe.h: Remove.
16021         * config/arm/t-strongarm-pe: Remove.
16022         * config/arm/t-xscale-coff: Remove.
16023         * config/arm/t-xscale-elf: Remove.
16024         * config/arm/xscale-coff.h: Remove.
16025         * config/arm/xscale-elf.h: Remove.
16026         * config/chorus.h: Remove.
16027         * config/cris/aout.h: Remove.
16028         * config/cris/aout.opt: Remove.
16029         * config/cris/t-aout: Remove.
16030         * config/i386/beos-elf.h: Remove.
16031         * config/i386/kaos-i386.h: Remove.
16032         * config/i386/ptx4-i.h: Remove.
16033         * config/i386/sco5.h: Remove.
16034         * config/i386/sco5.opt: Remove.
16035         * config/i386/sysv4-cpp.h: Remove.
16036         * config/i386/sysv5.h: Remove.
16037         * config/i386/t-beos: Remove.
16038         * config/i386/t-sco5: Remove.
16039         * config/i386/t-uwin: Remove.
16040         * config/i386/uwin.asm: Remove.
16041         * config/i386/uwin.h: Remove.
16042         * config/kaos.h: Remove.
16043         * config/mips/windiss.h: Remove.
16044         * config/mt: Remove directory.
16045         * config/pa/pa-osf.h: Remove.
16046         * config/pa/pa-pro-end.h: Remove.
16047         * config/pa/t-pro: Remove.
16048         * config/ptx4.h: Remove.
16049         * config/rs6000/beos.h: Remove.
16050         * config/rs6000/kaos-ppc.h: Remove.
16051         * config/rs6000/t-beos: Remove.
16052         * config/rs6000/windiss.h: Remove.
16053         * config/sh/kaos-sh.h: Remove.
16054         * config/sol2-6.h: Remove.
16055         * config/sparc/sol26-sld.h: Remove.
16056         * config/sparc/sysv4-only.h: Remove.
16057         * config/vax/bsd.h: Remove.
16058         * config/vax/t-memfuncs: Remove.
16059         * config/vax/ultrix.h: Remove.
16060         * config/vax/vaxv.h: Remove.
16061         * config/windiss.h: Remove.
16062
16063 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
16064
16065         PR rtl-optimization/36438
16066         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
16067         for vector shifts with constant scalar shift operands.
16068
16069 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
16070
16071         * doc/invoke.texi: Document -march=xlr.
16072         * config/mips/xlr.md: New file.
16073         * config/mips/mips.md: Include it.
16074         (cpu): Add "xlr".
16075         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
16076         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
16077         (mips_rtx_cost_data): Likewise.
16078
16079 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
16080
16081         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
16082         PRE_INC and PRE_DEC cases.
16083
16084 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
16085
16086         PR rtl-optimization/36419
16087         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
16088         the emitting jump insn.
16089
16090         PR target/36362
16091         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
16092         is not bool, boolify the whole *expr_p and convert to the desired type.
16093
16094 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
16095
16096         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
16097         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
16098         Add omp_private_outer_ref hook, add another argument to
16099         omp_clause_default_ctor hook.
16100         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
16101         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
16102         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
16103         hook_tree_tree_tree_tree_null.
16104         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
16105         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
16106         * hooks.c (hook_tree_tree_tree_tree_null): New function.
16107         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
16108         * tree.def (OMP_TASK): New tree code.
16109         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
16110         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
16111         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
16112         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
16113         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
16114         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
16115         OMP_CLAUSE_COLLAPSE_EXPR): Define.
16116         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
16117         (OMP_DIRECTIVE_P): Add OMP_TASK.
16118         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
16119         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
16120         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
16121         and OMP_CLAUSE_UNTIED entries.
16122         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
16123         num_ops to 2.
16124         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16125         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
16126         * tree-pretty-print.c (dump_omp_clause): Handle
16127         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
16128         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
16129         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
16130         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
16131         warning about unsigned iterators.  Change decl/init/cond/incr
16132         arguments to TREE_VECs, check arguments for all collapsed loops.
16133         (c_finish_omp_taskwait): New function.
16134         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
16135         ws_clauses.
16136         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
16137         default_function_array_conversion on init.  Add par_clauses argument.
16138         If decl is present in parallel's lastprivate clause, change it to
16139         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
16140         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
16141         collapse count in clauses.
16142         (c_parser_omp_for, c_parser_omp_parallel): Adjust
16143         c_parser_omp_for_loop callers.
16144         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
16145         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
16146         (c_parser_omp_clause_name): Handle collapse and untied clauses.
16147         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
16148         functions.
16149         (c_parser_omp_clause_schedule): Handle schedule(auto).
16150         Include correct location in the error message.
16151         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
16152         and PRAGMA_OMP_CLAUSE_UNTIED.
16153         (OMP_TASK_CLAUSE_MASK): Define.
16154         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
16155         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
16156         * tree-nested.c (convert_nonlocal_omp_clauses,
16157         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
16158         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
16159         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16160         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
16161         OMP_CLAUSE_DECL.
16162         (conver_nonlocal_reference, convert_local_reference,
16163         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
16164         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
16165         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
16166         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
16167         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
16168         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
16169         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
16170         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
16171         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
16172         OMP_CLAUSE_UNTIED.
16173         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
16174         * c-common.h (c_finish_omp_taskwait): New prototype.
16175         * gimple-low.c (lower_stmt): Handle OMP_TASK.
16176         * tree-parloops.c (create_parallel_loop): Create 1 entry
16177         vectors for OMP_FOR_{INIT,COND,INCR}.
16178         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16179         (make_edges): Handle OMP_TASK.
16180         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
16181         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16182         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
16183         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
16184         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
16185         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16186         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16187         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
16188         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
16189         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
16190         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
16191         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
16192         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
16193         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
16194         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
16195         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
16196         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
16197         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
16198         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
16199         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
16200         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
16201         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
16202         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
16203         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
16204         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
16205         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
16206         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
16207         original iterator is present in lastprivate clause or if
16208         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
16209         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16210         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
16211         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
16212         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
16213         if it is set, lookup var in outer contexts too.  Handle
16214         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
16215         to be implicitly determined firstprivate for task regions.
16216         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
16217         if it is set, lookup var in outer contexts too.  Set
16218         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
16219         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
16220         OMP_CLAUSE_UNTIED.  Take region_type as last argument
16221         instead of in_parallel and in_combined_parallel.
16222         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
16223         Adjust callers.
16224         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
16225         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
16226         (new_omp_context): Set default_kind to
16227         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
16228         (omp_region_type): New enum.
16229         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
16230         fields, add region_type.
16231         (new_omp_context): Take region_type as argument instead of is_parallel
16232         and is_combined_parallel.
16233         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
16234         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
16235         ctx->is_combined_parallel checks.
16236         (gimplify_omp_task): New function.
16237         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
16238         OMP_CLAUSE_UNTIED.
16239         * omp-low.c (extract_omp_for_data): Use schedule(static)
16240         for schedule(auto).  Handle pointer and unsigned iterators.
16241         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
16242         Add loops argument.  Extract data for collapsed OMP_FOR loops.
16243         (expand_parallel_call): Assert sched_kind isn't auto,
16244         map runtime schedule to index 3.
16245         (struct omp_for_data_loop): New type.
16246         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
16247         Add loop, loops, collapse and iter_type fields.
16248         (workshare_safe_to_combine_p): Disallow combined for if
16249         iter_type is unsigned long long.  Don't combine collapse > 1 loops
16250         unless all bounds and steps are constant.  Adjust extract_omp_for_data
16251         caller.
16252         (expand_omp_for_generic): Handle pointer, unsigned and long long
16253         iterators.  Handle collapsed OMP_FOR loops.  Adjust
16254         for struct omp_for_data changes.  If libgomp function doesn't return
16255         boolean_type_node, add comparison of the return value with 0.
16256         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
16257         pointer, unsigned and long long iterators.  Adjust for struct
16258         omp_for_data changes.
16259         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
16260         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
16261         unsigned long long.  Allocate loops array, pass it to
16262         extract_omp_for_data.  For collapse > 1 loops use always
16263         expand_omp_for_generic.
16264         (omp_context): Add sfield_map and srecord_type fields.
16265         (is_task_ctx, lookup_sfield): New functions.
16266         (use_pointer_for_field): Use is_task_ctx helper.  Change first
16267         argument's type from const_tree to tree.  Clarify comment.
16268         In OMP_TASK disallow copy-in/out sharing.
16269         (build_sender_ref): Call lookup_sfield instead of lookup_field.
16270         (install_var_field): Add mask argument.  Populate both record_type
16271         and srecord_type if needed.
16272         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
16273         in srecord_type.
16274         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
16275         and DECL_FIELD_OFFSET.
16276         (scan_sharing_clauses): Adjust install_var_field callers.  For
16277         firstprivate clauses on explicit tasks allocate the var by value in
16278         record_type unconditionally, rather than by reference.
16279         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
16280         Use is_taskreg_ctx instead of is_parallel_ctx.
16281         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16282         (create_omp_child_function_name): Add task_copy argument, use
16283         *_omp_cpyfn* names if it is true.
16284         (create_omp_child_function): Add task_copy argument, if true create
16285         *_omp_cpyfn* helper function.
16286         (scan_omp_parallel): Adjust create_omp_child_function callers.
16287         Rename parallel_nesting_level to taskreg_nesting_level.
16288         (scan_omp_task): New function.
16289         (lower_rec_input_clauses): Don't run constructors for firstprivate
16290         explicit task vars which are initialized by *_omp_cpyfn*.
16291         Pass outer var ref to omp_clause_default_ctor hook if
16292         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
16293         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
16294         OMP_CLAUSE_REDUCTION_INIT.
16295         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
16296         avoid duplicate setting of fields.  Handle
16297         OMP_CLAUSE_PRIVATE_OUTER_REF.
16298         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
16299         copy-out if TREE_READONLY, only copy-in.
16300         (expand_task_copyfn): New function.
16301         (expand_task_call): New function.
16302         (struct omp_taskcopy_context): New type.
16303         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
16304         New functions.
16305         (lower_omp_parallel): Rename to...
16306         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
16307         Call create_task_copyfn if srecord_type is needed.  Adjust
16308         sender_decl type.
16309         (task_shared_vars): New variable.
16310         (check_omp_nesting_restrictions): Warn if work-sharing,
16311         barrier, master or ordered region is closely nested inside OMP_TASK.
16312         Add warnings for barrier if closely nested inside of work-sharing,
16313         ordered, or master region.
16314         (scan_omp_1): Call check_omp_nesting_restrictions even for
16315         GOMP_barrier calls.  Rename parallel_nesting_level to
16316         taskreg_nesting_level.  Handle OMP_TASK.
16317         (lower_lastprivate_clauses): Even if some lastprivate is found on a
16318         work-sharing construct, continue looking for them on parent parallel
16319         construct.
16320         (lower_omp_for_lastprivate): Add lastprivate clauses
16321         to the beginning of dlist rather than end.  Adjust for struct
16322         omp_for_data changes.
16323         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
16324         not after it.  Handle collapsed OMP_FOR loops, adjust for
16325         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
16326         (get_ws_args_for): Adjust extract_omp_for_data caller.
16327         (scan_omp_for): Handle collapsed OMP_FOR
16328         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16329         (lower_omp_single_simple): If libgomp function doesn't return
16330         boolean_type_node, add comparison of the return value with 0.
16331         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
16332         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
16333         (parallel_nesting_level): Rename to...
16334         (taskreg_nesting_level): ... this.
16335         (is_taskreg_ctx): New function.
16336         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
16337         of is_parallel_ctx.
16338         (execute_lower_omp): Rename parallel_nesting_level to
16339         taskreg_nesting_level.
16340         (expand_omp_parallel): Rename to...
16341         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
16342         Call omp_task_call for OMP_TASK regions.
16343         (expand_omp): Adjust caller, handle OMP_TASK.
16344         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
16345
16346         * bitmap.c (bitmap_default_obstack_depth): New variable.
16347         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
16348         if argument is NULL and bitmap_default_obstack is already initialized.
16349         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
16350         at the end.
16351         * matrix-reorg.c (matrix_reorg): Likewise.
16352
16353 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
16354
16355         * config/i386/i386.md (*indirect_jump): Macroize using P
16356         mode iterator.  Remove !TARGET_64BIT from insn constraints.
16357         (*tablejump_1): Ditto.
16358         (*indirect_jump_rex64): Remove insn pattern.
16359         (*tablejump_1_rex64): Ditto.
16360         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
16361         and eh_return_si insn patterns.
16362
16363 2008-06-06  Richard Guenther  <rguenther@suse.de>
16364
16365         * tree-ssa-structalias.c (merge_smts_into): Remove.
16366         (find_what_p_points_to): Do not bother to compute the
16367         points-to set for pt_anything pointers.
16368         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
16369         for pt_anything pointers is ok.
16370
16371 2008-06-06  Jan Hubicka  <jh@suse.cz>
16372
16373         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
16374
16375 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16376
16377         * cgraph.c: Fix typos in comments.
16378         (cgraph_availability_names): Fix string typo.
16379         * fold-const.c: Fix typos in comments.
16380         (fold_binary): Fix typo in warning.
16381         * genautomata.c: Fix typos in comments.
16382         (check_presence_pattern_sets): Fix typo in local variable.
16383         (output_description): Fix typo in output.
16384         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
16385         * hwint.h: Likewise.
16386         * matrix-reorg.c (check_allocation_function): Likewise.
16387         * omega.c (smooth_weird_equations): Likewise.
16388         * auto-inc-dec.c: Fix typos in comments.
16389         * bb-reorder.c: Likewise.
16390         * builtins.c: Likewise.
16391         * c-common.c: Likewise.
16392         * c-cppbuiltin.c: Likewise.
16393         * c-parser.c: Likewise.
16394         * c-pretty-print.c: Likewise.
16395         * cfgcleanup.c: Likewise.
16396         * cfgexpand.c: Likewise.
16397         * cfghooks.c: Likewise.
16398         * cfglayout.c: Likewise.
16399         * cfgloopmanip.c: Likewise.
16400         * cgraphunit.c: Likewise.
16401         * coverage.c: Likewise.
16402         * dbxout.c: Likewise.
16403         * df-byte-scan.c: Likewise.
16404         * df-core.c: Likewise.
16405         * df-problems.c: Likewise.
16406         * df-scan.c: Likewise.
16407         * dfp.c: Likewise.
16408         * dominance.c: Likewise.
16409         * domwalk.c: Likewise.
16410         * dse.c: Likewise.
16411         * dwarf2out.c: Likewise.
16412         * emit-rtl.c: Likewise.
16413         * et-forest.c: Likewise.
16414         * function.c: Likewise.
16415         * function.h: Likewise.
16416         * gcc.c: Likewise.
16417         * gcov-io.c: Likewise.
16418         * gcov.c: Likewise.
16419         * gcse.c: Likewise.
16420         * genattrtab.c: Likewise.
16421         * ggc-page.c: Likewise.
16422         * gimplify.c: Likewise.
16423         * gthr-lynx.h: Likewise.
16424         * haifa-sched.c: Likewise.
16425         * ipa-cp.c: Likewise.
16426         * ipa-inline.c: Likewise.
16427         * ipa-prop.h: Likewise.
16428         * ipa-pure-const.c: Likewise.
16429         * ipa-struct-reorg.c: Likewise.
16430         * ipa-struct-reorg.h: Likewise.
16431         * ipa-type-escape.c: Likewise.
16432         * ipa.c: Likewise.
16433         * loop-doloop.c: Likewise.
16434         * mips-tfile.c: Likewise.
16435         * mkmap-flat.awk: Likewise.
16436         * mkmap-symver.awk: Likewise.
16437         * modulo-sched.c: Likewise.
16438         * omp-low.c: Likewise.
16439         * optabs.c: Likewise.
16440         * optabs.h: Likewise.
16441         * opts.c: Likewise.
16442         * passes.c: Likewise.
16443         * postreload-gcse.c: Likewise.
16444         * postreload.c: Likewise.
16445         * predict.c: Likewise.
16446         * pretty-print.h: Likewise.
16447         * profile.c: Likewise.
16448         * protoize.c: Likewise.
16449         * ra-conflict.c: Likewise.
16450         * real.c: Likewise.
16451         * recog.c: Likewise.
16452         * regclass.c: Likewise.
16453         * regs.h: Likewise.
16454         * reload.c: Likewise.
16455         * rtl-error.c: Likewise.
16456         * rtlanal.c: Likewise.
16457         * scan.h: Likewise.
16458         * sched-rgn.c: Likewise.
16459         * see.c: Likewise.
16460         * stmt.c: Likewise.
16461         * target.h: Likewise.
16462         * tree-dfa.c: Likewise.
16463         * tree-eh.c: Likewise.
16464         * tree-flow-inline.h: Likewise.
16465         * tree-inline.c: Likewise.
16466         * tree-into-ssa.c: Likewise.
16467         * tree-loop-distribution.c: Likewise.
16468         * tree-nested.c: Likewise.
16469         * tree-parloops.c: Likewise.
16470         * tree-pass.h: Likewise.
16471         * tree-pretty-print.c: Likewise.
16472         * tree-profile.c: Likewise.
16473         * tree-scalar-evolution.c: Likewise.
16474         * tree-sra.c: Likewise.
16475         * tree-ssa-alias-warnings.c: Likewise.
16476         * tree-ssa-ccp.c: Likewise.
16477         * tree-ssa-coalesce.c: Likewise.
16478         * tree-ssa-dom.c: Likewise.
16479         * tree-ssa-dse.c: Likewise.
16480         * tree-ssa-forwprop.c: Likewise.
16481         * tree-ssa-live.c: Likewise.
16482         * tree-ssa-live.h: Likewise.
16483         * tree-ssa-loop-im.c: Likewise.
16484         * tree-ssa-loop-ivopts.c: Likewise.
16485         * tree-ssa-loop-niter.c: Likewise.
16486         * tree-ssa-loop-prefetch.c: Likewise.
16487         * tree-ssa-phiopt.c: Likewise.
16488         * tree-ssa-phiprop.c: Likewise.
16489         * tree-ssa-sccvn.c: Likewise.
16490         * tree-ssa-ter.c: Likewise.
16491         * tree-ssa-threadupdate.c: Likewise.
16492         * tree-ssa.c: Likewise.
16493         * tree-vect-analyze.c: Likewise.
16494         * tree-vect-transform.c: Likewise.
16495         * tree-vectorizer.c: Likewise.
16496         * tree-vn.c: Likewise.
16497         * tree-vrp.c: Likewise.
16498         * tree.c: Likewise.
16499         * tree.def: Likewise.
16500         * tree.h: Likewise.
16501         * unwind-dw2-fde.c: Likewise.
16502         * unwind.inc: Likewise.
16503         * value-prof.c: Likewise.
16504         * vmsdbgout.c: Likewise.
16505
16506 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
16507
16508         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
16509         always place FP constants in the TOC for TARGET_POWERPC64.
16510         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
16511
16512 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
16513
16514         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
16515         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
16516         enable for TARGET_E500_DOUBLE.
16517         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
16518         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
16519         floating-point modes like integer modes for E500 double.
16520         (rs6000_legitimate_offset_address_p): Likewise.
16521         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
16522         addressing for DDmode for E500 double.
16523         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
16524         modes as using 64-bits of registers for E500 double.
16525         (spe_build_register_parallel): Do not handle DDmode or TDmode.
16526         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
16527         specially for E500 double.
16528         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
16529         TDmode for E500 double.
16530         (rs6000_gimplify_va_arg): Only handle SDmode in registers
16531         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
16532         (rs6000_split_multireg_move): Do not handle TDmode specially for
16533         E500 double.
16534         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
16535         using 64-bit registers for E500 double.
16536         (emit_frame_save): Do not handle DDmode specially for E500 double.
16537         (gen_frame_mem_offset): Likewise.
16538         (rs6000_function_value): Do not call spe_build_register_parallel
16539         for DDmode or TDmode.
16540         (rs6000_libcall_value): Likewise.
16541         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
16542         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
16543         for E500 double.
16544
16545 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16546
16547         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
16548         in comments.
16549
16550 2008-06-04  Junjie Gu <jgu@tensilica.com>
16551
16552         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
16553         comparison for frame pointers.
16554
16555 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
16556
16557         PR target/27386
16558         * config/avr/avr.h (PUSH_ROUNDING): Remove.
16559
16560 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
16561
16562         PR target/30243
16563         * builtins.c (expand_builtin_signbit): Don't take lowpart when
16564         register is already smaller or equal to required mode.
16565
16566 2008-06-04  Xinliang David Li  <davidxl@google.com>
16567
16568         * tree-call-cdce.c: New file.
16569         (cond_dead_built_in_calls): New static variable.
16570         (input_domain): New struct.
16571         (check_pow): New function.
16572         (check_builtin_call): Ditto.
16573         (check_target_format): Ditto.
16574         (is_call_dce_candidate): Ditto.
16575         (gen_one_condition): Ditto.
16576         (gen_conditions_for_domain): Ditto.
16577         (get_domain): Ditto.
16578         (gen_conditions_for_pow_cst_base): Ditto.
16579         (gen_conditions_for_pow_int_base): Ditto.
16580         (gen_conditions_for_pow): Ditto.
16581         (get_no_error_domain): Ditto.
16582         (gen_shrink_wrap_conditions): Ditto.
16583         (shrink_wrap_one_built_in_call): Ditto.
16584         (shink_wrap_conditional_dead_built_in_calls): Ditto.
16585         (tree_call_cdce): Ditto.
16586         (gate_call_cdce): Ditto.
16587         (pass_call_cdce): New gimple pass.
16588         * passes.c: (init_optimization_passes): New pass.
16589         * tree-pass.h: New pass declaration.
16590         * opts.c (decode_options): New flag setting.
16591         * common.opt: Add -ftree-builtin-call-dce flag.
16592         * Makefile.in: Add new source file.
16593         * tempvar.def: New tv_id.
16594         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
16595
16596 2008-06-04  Richard Guenther  <rguenther@suse.de>
16597
16598         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
16599         (is_call_clobbered): Always check var_ann->call_clobbered.
16600         (mark_call_clobbered): Always set var_ann->call_clobbered.
16601         (clear_call_clobbered): Always clear var_ann->call_clobbered.
16602         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
16603         (reset_alias_info): Clear call clobbering info on MTAGs and
16604         globals as well.
16605         (set_pt_anything): Set pt_global_mem.
16606         (create_tag_raw): Adjust comment.
16607         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
16608
16609 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
16610             Maxim Kuvyrkov  <maxim@codesourcery.com>
16611
16612         * config/m68k/m68k.opt (mxgot): New option.
16613         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
16614         (m68k_output_addr_const_extra): New.
16615         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
16616         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
16617         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
16618         * doc/invoke.texi (M680x0 Options): Document -mxgot.
16619
16620 2008-06-04  Richard Guenther  <rguenther@suse.de>
16621
16622         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
16623         negative or non-representable offsets.
16624
16625 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16626
16627         * config/i386/i386.c (ix86_gen_leave): New.
16628         (ix86_gen_pop1): Likewise.
16629         (ix86_gen_add3): Likewise.
16630         (ix86_gen_sub3): Likewise.
16631         (ix86_gen_sub3_carry): Likewise.
16632         (ix86_gen_one_cmpl2): Likewise.
16633         (ix86_gen_monitor): Likewise.
16634         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
16635         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16636         ix86_gen_one_cmpl2 and ix86_gen_monitor.
16637         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
16638         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
16639         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
16640         (ix86_expand_epilogue): Updated.
16641         (print_operand): Handle integer register operand for 'z'.
16642         (ix86_expand_strlensi_unroll_1): Likewise.
16643         (ix86_expand_strlen): Likewise.
16644         (ix86_expand_builtin): Likewise.
16645         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
16646         mov{q}/mov{l} and add{q}/add{l}.
16647
16648 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
16649
16650         * config/i386/i386.md (P): New mode iterator.
16651         (SFmode push_operand splitter): Macroize DImode and SImode pushes
16652         using P mode iterator.
16653         (DFmode push_operand splitter): Ditto.
16654         (XFmode push_operand splitter): Ditto.
16655         (DFmode float_extend SFmode push_operand splitter): Ditto.
16656         (XFmode float_extend SFmode push_operand splitter): Do not generate
16657         SImode pushes for 64bit target.  Macroize Dimode and SImode
16658         pushes using P mode iterator.
16659         (XFmode float_extend DFmode push_operand splitter): Ditto.
16660
16661 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
16662
16663         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
16664         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
16665         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
16666         return type to int.
16667         (ix86_call_abi_override): Remove check for call_used_regs.
16668
16669 2008-06-03  Richard Guenther  <rguenther@suse.de>
16670
16671         * tree-ssa-structalias.c (find_func_aliases): Add constraints
16672         for the lhs of calls if the return type contains pointers.
16673
16674 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
16675
16676         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
16677         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
16678         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
16679         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
16680         of cfun and DEFAULT_ABI to deceide abi mode.
16681         (DEFAULT_ABI): New.
16682         (REG_PARM_STACK_SPACE): Removed.
16683         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
16684         (STACK_BOUNDARY): Use default target to deceide stack boundary.
16685         * config/i386/i386-protos.h (ix86_cfun_abi): New.
16686         (ix86_function_abi): Likewise.
16687         (ix86_function_type_abi): Likewise.
16688         (ix86_call_abi_override): Likewise.
16689         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
16690         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
16691         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
16692         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
16693         specific defines.
16694         (X86_64_REGPARM_MAX): New.
16695         (X86_64_SSE_REGPARM_MAX): New.
16696         (X64_REGPARM_MAX): New.
16697         (X64_SSE_REGPARM_MAX): New.
16698         (X86_32_REGPARM_MAX): New.
16699         (X86_32_SSE_REGPARM_MAX): New.
16700         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
16701         (ix86_function_regparm): Handle user calling abi.
16702         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
16703         by DEFAULT_ABI versus SYSV_ABI check.
16704         (ix86_reg_parm_stack_space): New.
16705         (ix86_function_type_abi): New.
16706         (ix86_call_abi_override): New.
16707         (ix86_function_abi): New.
16708         (ix86_cfun_abi): New.
16709         (init_cumulative_args): Call abi specific initialization.
16710         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
16711         (function_arg_64): Extend SSE_REGPARM_MAX check.
16712         (function_arg (): Remove TARGET_64BIT_MS_ABI.
16713         (ix86_pass_by_reference): Likewise.
16714         (ix86_function_value_regno_p): Likewise.
16715         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
16716         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
16717         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
16718         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
16719         (setup_incoming_varargs_64): Adjust regparm for call abi.
16720         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
16721         (ix86_va_start): Likewise.
16722         (ix86_gimplify_va_arg): Likewise.
16723         (ix86_expand_prologue): Likewise.
16724         (output_pic_addr_const): Likewise.
16725         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
16726         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
16727         (x86_output_mi_thunk): Likewise.
16728         (x86_function_profiler): Likewise.
16729         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
16730         (SYSV_ABI, MS_ABI): New constants.
16731         (DEFAULT_ABI): New.
16732         (init_regs): Add prototype of function in regclass.c file.
16733         (OVERRIDE_ABI_FORMAT): New.
16734         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
16735         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
16736         (OUTGOING_REG_PARM_STACK_SPACE): New.
16737         (ix86_reg_parm_stack_space): New prototype.
16738         (CUMULATIVE_ARGS): Add call_abi member.
16739         (machine_function): Add call_abi member.
16740         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
16741         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
16742
16743 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
16744
16745         PR target/34879
16746         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
16747         (avr_builtin_setjmp_frame_value): New function.
16748         * config/avr/avr.md (nonlocal_goto_receiver): Define.
16749         (nonlocal_goto): Define.
16750
16751 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
16752
16753         * config/mips/mips.c (mips_emit_loadgp): Return early if
16754         there is nothing do to, otherwise emit a blockage if
16755         !TARGET_EXPLICIT_RELOCS || crtl->profile.
16756         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
16757
16758 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16759
16760         * configure.ac: Drop unneeded backslash ending up in config.in.
16761         * acinclude.m4: Likewise.
16762         * config.in: Regenerate.
16763
16764 2008-05-26  Jan Hubicka  <jh@suse.cz>
16765
16766         * predict.c (maybe_hot_frequency_p): Break out of...
16767         (maybe_hot_bb_p): ... here.
16768         (maybe_hot_edge_p): New.
16769         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
16770         * basic-block.h (maybe_hot_edge_p): Declare.
16771
16772 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
16773
16774         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
16775         (*cmpfp_<mode>_cc): Ditto.
16776         (*fp_jcc_8<mode>_387): Ditto.
16777         (*fop_<MODEF:mode>_2_i387): Ditto.
16778         (*fop_<MODEF:mode>_3_i387): Ditto.
16779         (*fop_xf_2_i387): Ditto.
16780         (*fop_xf_3_i387): Ditto.
16781
16782 2008-06-02  Tomas Bily  <tbily@suse.cz>
16783
16784         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
16785
16786 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
16787
16788         * config/mips/mips.c (mips_valid_offset_p): New function.
16789         (mips_valid_lo_sum_p): Likewise.
16790         (mips_classify_address): Use them.
16791         (mips_force_address): New function.
16792         (mips_legitimize_address): Use it.
16793         * config/mips/mips.md (MOVE128): New mode iterator.
16794         (movtf): Require TARGET_64BIT.  Remove empty strings.
16795         (*movtf_internal): Rename to...
16796         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
16797         of "R" and use {,fp}{load,store} attributes instead of "multi".
16798         Use a separate define_split.
16799         (*movtf_mips16): New pattern.
16800
16801 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
16802
16803         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
16804         * config/mips/mips.c (mips_expand_before_return): New function.
16805         (mips_expand_epilogue): Call it.
16806         * config/mips/mips.md (return): Turn into a define_expand.
16807         (*return): New insn.
16808
16809 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
16810
16811         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
16812         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
16813         functions.  Do not emit uses and clobbers of CONCATs; individually
16814         use and clobber their operands.
16815         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
16816         gen_clobber, emit_use and gen_use.
16817         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16818         (expand_builtin_return): Likewise.
16819         * cfgbuild.c (count_basic_blocks): Likewise.
16820         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
16821         * explow.c (emit_stack_restore): Likewise.
16822         * expmed.c (extract_bit_field_1): Likewise.
16823         * expr.c (convert_move, emit_move_complex_parts): Likewise.
16824         (emit_move_multi_word, store_constructor): Likewise.
16825         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
16826         (thread_prologue_and_epilogue_insns): Likewise.
16827         * lower-subreg.c (resolve_simple_move): Likewise.
16828         * optabs.c (widen_operand, expand_binop): Likewise.
16829         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
16830         * reload.c (find_reloads): Likewise.
16831         * reload1.c (eliminate_regs_in_insn): Likewise.
16832         * stmt.c (expand_nl_goto_receiver): Likewise.
16833         * config/alpha/alpha.md (builtin_longjmp): Likewise.
16834         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
16835         * config/arm/arm.c (arm_load_pic_register): Likewise.
16836         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
16837         * config/arm/arm.md (untyped_return): Likewise.
16838         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
16839         * config/avr/avr.c (expand_prologue): Likewise.
16840         * config/bfin/bfin.c (do_unlink): Likewise.
16841         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
16842         * config/cris/cris.c (cris_expand_prologue): Likewise.
16843         * config/darwin.c (machopic_indirect_data_reference): Likewise.
16844         (machopic_legitimize_pic_address): Likewise.
16845         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
16846         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
16847         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
16848         (ix86_expand_convert_uns_didf_sse): Likewise.
16849         (ix86_expand_vector_init_general): Likewise.
16850         * config/ia64/ia64.md (eh_epilogue): Likewise.
16851         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
16852         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
16853         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
16854         (config/iq2000/iq2000.c): Likewise.
16855         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
16856         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
16857         (builtin_longjmp): Likewise.
16858         * config/mn10300/mn10300.md (call, call_value): Likewise.
16859         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
16860         * config/pdp11/pdp11.md (abshi2): Likewise.
16861         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
16862         * config/s390/s390.c (s390_emit_prologue): Likewise.
16863         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
16864         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
16865         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
16866         * config/sh/sh.c (prepare_move_operands): Likewise.
16867         (output_stack_adjust, sh_expand_epilogue): Likewise.
16868         (sh_set_return_address, sh_expand_t_scc): Likewise.
16869         * config/sparc/sparc.c (load_pic_register): Likewise.
16870         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
16871         * config/spu/spu.c (spu_expand_epilogue): Likewise.
16872         * config/v850/v850.c (expand_epilogue): Likewise.
16873
16874 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
16875
16876         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
16877         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
16878         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
16879         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
16880         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
16881         stack pointer register.
16882         (output_movhi): Remove code for interrupt specific writing to the
16883         stack pointer register.
16884
16885 2008-05-31  Richard Guenther  <rguenther@suse.de>
16886
16887         PR tree-optimization/34244
16888         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
16889         (tree_expr_nonzero_warnv_p): Likewise.
16890         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
16891         ssa_name_nonnegative_p.
16892         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
16893         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
16894         not tree_expr_nonzero_warnv_p.
16895
16896         PR tree-optimization/36262
16897         Revert
16898         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
16899
16900         PR tree-optimization/34244
16901         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
16902         (record_numbers_of_iterations): New function.
16903         (execute_vrp): Cache the numbers of iterations of loops.
16904         * tree-scalar-evolution.c (scev_reset_except_niters):
16905         New function.
16906         (scev_reset): Use scev_reset_except_niters.
16907         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
16908
16909 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
16910
16911         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16912         __WORKAROUND_RETS when appropriate.
16913
16914 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
16915
16916         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
16917         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
16918         mode iterator.
16919         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
16920         *fop_df_comm_sse insn patterns using MODEF mode iterator.
16921         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
16922         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
16923         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
16924         *fop_df_1_mixed insn patterns using MODEF mode iterator.
16925         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
16926         *fop_df_1_sse insn patterns using MODEF mode iterator.
16927         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
16928         *fop_df_1_i387 insn patterns using MODEF mode iterator.
16929         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
16930         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
16931         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
16932         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
16933         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
16934         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
16935         (*fop_xf_4_i387): Use <MODE> for mode attribute.
16936         (*fop_xf_5_i387): Ditto.
16937         (*fop_xf_6_i387): Ditto.
16938
16939 2008-05-30  Richard Guenther  <rguenther@suse.de>
16940
16941         * builtins.c (build_string_literal): Avoid generating
16942         a non-gimple_val result.
16943
16944 2008-05-30  DJ Delorie  <dj@redhat.com>
16945
16946         * exec-tool.in: Use an environment variable (private) instead of a
16947         file (shared) as a semaphore, so as to not break parallel builds.
16948
16949 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
16950
16951         * optabs.c (maybe_encapsulate_block): Remove.
16952         (emit_libcall_block): Adjust accordingly.
16953         * optabs.h (maybe_encapsulate_block): Remove prototype.
16954
16955         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
16956         Don't use maybe_encapsulate_block.
16957
16958 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
16959
16960         * config/rs6000/rs6000.c (rs6000_legitimize_address,
16961         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
16962         rtx is a SYMBOL_REF before calling get_pool_constant.
16963
16964 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
16965
16966         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
16967
16968 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
16969
16970         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
16971         rather than OS names to choose INO_T_EQ definition.
16972         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
16973         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
16974
16975 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
16976
16977         PR target/36348
16978         * config/darwin-f.c: New.
16979         * config/t-darwin: Added rule to build darwin-f.o.
16980         * config.gcc: Defined new variable, fortran_target_objs.
16981         (*-*-darwin*): Set fortran_target_objs.
16982         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
16983         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
16984         * configure: Regenerated.
16985
16986 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
16987
16988         PR target/35771
16989         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
16990         canonical type if needed.
16991
16992 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16993
16994         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
16995
16996 2008-05-29  Richard Guenther  <rguenther@suse.de>
16997
16998         PR tree-optimization/36343
16999         PR tree-optimization/36346
17000         PR tree-optimization/36347
17001         * tree-flow.h (clobber_what_p_points_to): Declare.
17002         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
17003         pointed-to variable is dereferenced is irrelevant to whether
17004         the pointer can access the pointed-to variable.
17005         (clobber_what_p_points_to): New function.
17006         * tree-ssa-alias.c (set_initial_properties): Use it.
17007         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
17008         call clobber check for NMTs.
17009
17010 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
17011
17012         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
17013         for printing gcov_type.
17014
17015 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
17016
17017         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
17018         and the eh region information.
17019         * value-prof.c (gimple_move_stmt_histograms): New function.
17020         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
17021
17022 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
17023
17024         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
17025
17026 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
17027
17028         * value-prof.c (tree_ic_transform): Print counts.
17029         * tree-profile.c (tree_gen_ic_func_profiler):
17030         Clear __gcov_indreict_call_callee variable to avoid misattribution
17031         of the profile.
17032
17033 2008-05-28  Rafael Espíndola  <espindola@google.com>
17034
17035         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
17036         invalid sharing.
17037
17038 2008-05-28  Richard Guenther  <rguenther@suse.de>
17039
17040         PR tree-optimization/36339
17041         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
17042         and clobbering code out of the loop.
17043
17044 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
17045
17046         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
17047         letters defined.
17048
17049         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
17050         s390_contiguous_bitmask_p, s390_symref_operand_p,
17051         s390_check_symref_alignment, s390_reload_larl_operand,
17052         s390_reload_symref_address): New functions.
17053         (s390_branch_condition_mnemonic): Support compare and branch
17054         instructions.
17055         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
17056         and 'W' constraints.
17057         (s390_secondary_reload): Add secondary reloads for unaligned
17058         symbol refs or symbol refs to floating point or QI/TI mode
17059         integer values.
17060         (legitimate_address_p): Accept symbol references as addresses.
17061         (s390_expand_insv): Use rotate and insert selected bits
17062         instruction for insv when building for z10.
17063         (print_operand_address): Handle symbol ref addresses.
17064         (print_operand): Output modifier 'c' added for signed byte values.
17065         (s390_encode_section_info): Mark symbol refs with
17066         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
17067
17068         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
17069         (length attribute): RRF, RRR have 4 byte length.
17070         (FPALL, INTALL): New mode iterators added.
17071         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
17072         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
17073         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
17074         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
17075         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
17076         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
17077         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
17078         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
17079         instructions.
17080         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
17081         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
17082         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
17083         reload<INTALL:mode><P:mode>_toreg_z10,
17084         reload<FPALL:mode><P:mode>_tomem_z10,
17085         reload<FPALL:mode><P:mode>_toreg_z10,
17086         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
17087         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
17088         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
17089         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
17090         definition.
17091         (movmem, clrmem, cmpmem): New splitters added.
17092
17093         * config/s390/predicates.md (larl_operand): Use
17094         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
17095         SYMBOL_REF_ALIGN1_P.
17096         (s390_signed_integer_comparison,
17097         s390_unsigned_integer_comparison): New predicates.
17098
17099         * config/s390/s390-protos.h (s390_check_symref_alignment,
17100         s390_contiguous_bitmask_p, s390_reload_larl_operand,
17101         s390_reload_symref_address,
17102         s390_compare_and_branch_condition_mask): Prototypes added.
17103
17104         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
17105         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
17106         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
17107
17108 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
17109
17110         * config/s390/s390.c (z10_cost): New cost function for z10.
17111         (s390_handle_arch_option, override_options): Support -march=z10 switch.
17112         (s390_issue_rate): Adjust issue rate for z10.
17113         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
17114         (processor_flags): Add PF_Z10.
17115         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
17116         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
17117         * gcc/config.gcc: Add z10.
17118
17119 2008-05-28  Richard Guenther  <rguenther@suse.de>
17120
17121         PR tree-optimization/36291
17122         * tree-flow. h (struct gimple_df): Remove var_anns member.
17123         * tree-flow-inline.h (gimple_var_anns): Remove.
17124         (var_ann): Simplify.
17125         * tree-dfa.c (create_var_ann): Simplify.
17126         (remove_referenced_var): Clear alias info from var_anns of globals.
17127         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
17128         (delete_tree_ssa): Clear alias info from var_anns of globals.
17129         Do not free var_anns.
17130         (var_ann_eq): Remove.
17131         (var_ann_hash): Likewise.
17132
17133 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
17134
17135         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
17136         and loongson2f entries.
17137         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
17138         * config/mips/mips.h (processor_type): Add Loongson-2E
17139         and Loongson-2F entries.
17140         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
17141         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
17142         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
17143         * doc/invoke.texi (MIPS Options): Document loongson2e
17144         and loongson2f processor names.
17145
17146 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17147
17148         PR target/35767
17149         PR target/35771
17150         * config/i386/i386.c (ix86_function_arg_boundary): Use
17151         alignment of canonical type.
17152         (ix86_expand_vector_move): Check unaligned memory access for
17153         all SSE modes.
17154
17155 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17156
17157         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
17158         Moved to the front of file.
17159
17160 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
17161             H.J. Lu  <hongjiu.lu@intel.com>
17162
17163         * dwarf2out.c (current_fde): New.
17164         (add_cfi): Use it.
17165         (lookup_cfa:): Likewise.
17166         (dwarf2out_end_epilogue): Likewise.
17167         (dwarf2out_note_section_used): Likewise.
17168
17169 2008-05-27  Michael Matz  <matz@suse.de>
17170
17171         PR c++/27975
17172         * c.opt (Wenum-compare): New warning option.
17173         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
17174
17175 2008-05-27  Michael Matz  <matz@suse.de>
17176
17177         PR middle-end/36326
17178         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
17179         non-BLKmode types.
17180         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
17181         into memory as tail calls.
17182
17183 2008-05-27  Richard Guenther  <rguenther@suse.de>
17184
17185         PR tree-optimization/36339
17186         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
17187         pointers cause all addressable variables to be call clobbered.
17188
17189 2008-05-27  Richard Guenther  <rguenther@suse.de>
17190
17191         PR tree-optimization/36245
17192         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
17193
17194 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17195
17196         * config/s390/s390.md: Replace all occurences of the 'm'
17197         constraint with 'RT'.
17198
17199 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17200
17201         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
17202         definitions added.
17203         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
17204         "*movdi_64".
17205         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
17206         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
17207         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
17208
17209 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17210
17211         * reload.c: (find_reloads): Skip alternatives according to the
17212         "enabled" attribute. Constify the constraint variable.
17213         * recog.c (get_attr_enabled): Add default implementation.
17214         (extract_insn): Set the alternative_enabled_p array
17215         in the recog_data struct.
17216         (preprocess_constraints, constrain_operands): Skip
17217         alternatives according to the "enabled" attribute
17218         * recog.h (struct recog_data): New field alternative_enabled_p.
17219         (skip_alternative): New inline function.
17220         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
17221         (record_reg_classes): Skip alternative according to the
17222         "enabled" attribute.
17223
17224         * doc/md.texi: Add documention for the "enabled" attribute.
17225
17226 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17227
17228         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
17229         * postreload.c (reload_cse_simplify_operands): Replace 'm'
17230         constraint with TARGET_MEM_CONSTRAINT.
17231         * recog.c (asm_operand_ok, preprocess_constraints,
17232         constrain_operands): Likewise.
17233         * regclass.c (record_reg_classes): Likewise.
17234         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
17235         * reload1.c (maybe_fix_stack_asms): Likewise.
17236         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17237         * recog.h: Adjust comment.
17238         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
17239         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
17240         * doc/md.texi: Add a note to description of 'm' constraint.
17241         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
17242
17243 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17244
17245         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
17246         that the bitfield is of integral type before testing its precision.
17247
17248 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
17249             Sa Liu  <saliu@de.ibm.com>
17250
17251         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
17252         __modti3, __udivti3, __umodti3 and __udivmodti4.
17253         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
17254         that implement TImode mul and div functions.
17255         * config/spu/multi3.c: New. Implement __multi3.
17256         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
17257         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
17258         functions on SPU.
17259
17260 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
17261
17262         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
17263         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
17264         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
17265         tls_sysv_suffix): New mode and mode attribute iterators.
17266         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
17267         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
17268         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
17269         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
17270         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
17271         iterators.
17272
17273 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17274
17275         PR tree-optimization/36329
17276         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
17277         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
17278         * cgraphbuild.c (initialize_inline_failed): Use the latter
17279         macro in lieu of the former.
17280         * ipa-inline.c (cgraph_mark_inline): Likewise.
17281         (cgraph_decide_inlining_of_small_function): Likewise.
17282         (cgraph_decide_inlining): Likewise.
17283         (cgraph_decide_inlining_incrementally): Likewise.
17284
17285 2008-05-26  Tristan Gingold  <gingold@adacore.com>
17286             Anatoly Sokolov  <aesok@post.ru>
17287
17288         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
17289         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
17290         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
17291         optimization for 'avr6' architecture.
17292
17293 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
17294
17295         PR target/34932
17296         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
17297
17298 2008-05-26  Richard Guenther  <rguenther@suse.de>
17299
17300         * tree-ssa-sccvn.c (expr_has_constants): Declare.
17301         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
17302
17303 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
17304
17305         PR middle-end/36253
17306         * caller-save.c (insert_restore): Verify alignment of spill space.
17307         (insert_save): Likewise.
17308         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
17309         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
17310         (STACK_SLOT_ALIGNMENT): Likewise.
17311         * function.c (LOCAL_ALIGNMENT): Removed.
17312         (get_stack_local_alignment): New.
17313         (assign_stack_local): Use it.  Set alignment on stack slot.
17314         (assign_stack_temp_for_type): Use get_stack_local_alignment.
17315         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
17316         (STACK_SLOT_ALIGNMENT): New.
17317         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
17318         stack slot in XFmode.
17319
17320         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
17321
17322 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
17323
17324         PR/36321
17325         * config/i386/i386.md (allocate_stack_worker_64): Make sure
17326         argument operand in rax isn't removed.
17327
17328 2008-05-26  Richard Guenther  <rguenther@suse.de>
17329
17330         PR middle-end/36300
17331         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
17332         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
17333
17334 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17335
17336         PR bootstrap/36331
17337         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
17338
17339 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
17340
17341         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
17342         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
17343
17344 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17345
17346         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
17347         build a trampoline if we don't want one.
17348         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
17349         return zero for nested functions if we don't want a trampoline.
17350
17351 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17352
17353         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
17354
17355 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17356
17357         PR fortran/18428
17358         * c.opt: Removed undocumented option '-lang-fortran'.
17359         * c-common.h: Removed global variable 'lang_fortran'.
17360         * c-opts.c (c_common_handle_option): Removed code to handle
17361         option '-lang-fortran'. Updated includes.
17362         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
17363         definition of '__GFORTRAN__'.
17364         (define__GNUC__): Reimplemented to use BASEVER and
17365         cpp_define_formatted.
17366         (builtin_define_with_value_n): Removed.
17367         * c-incpath.h: Renamed to ...
17368         * incpath.h: ... this.
17369         * c-incpath.c: Renamed to ...
17370         * incpath.c: ... this. Updated includes.
17371         * fix-header.c: Updated includes.
17372         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
17373         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
17374         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
17375
17376 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17377
17378         * tree.h: Update the table of flags used on tree nodes.
17379         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
17380         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
17381         (FORCED_LABEL): Add access check.
17382         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
17383         (ASM_INPUT_P): Likewise.
17384         (ASM_VOLATILE_P): Likewise.
17385         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
17386         (OMP_SECTION_LAST): Access private_flag directly.
17387         (OMP_RETURN_NOWAIT): Likewise.
17388         (OMP_PARALLEL_COMBINED): Likewise.
17389         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
17390         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
17391         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
17392         deprecated_flag directly.
17393
17394 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
17395
17396         * final.c (frame_pointer_needed): Removed.
17397         * flags.h (frame_pointer_needed): Likewise.
17398
17399         * function.h (rtl_data): Add frame_pointer_needed.
17400         (frame_pointer_needed): New.
17401
17402 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
17403
17404         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
17405
17406 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
17407
17408         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
17409         SRC is a REG.
17410
17411 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
17412
17413         * c-common.c (strip_array_types): Move function to..
17414         * tree.c: ..here.
17415         (get_inner_array_type): Delete.
17416         * c-common.h (strip_array_types): Move declaration to..
17417         * tree.h: ..here.
17418         (get_inner_array_type): Delete.
17419         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
17420         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
17421         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17422         * config/pa/pa.c (emit_move_sequence): Likewise.
17423
17424 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17425
17426         * config/i386/i386.md (*sse_prologue_save_insn): Set length
17427         attribute to 34.
17428
17429 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
17430
17431         * function.c: Include target hook for nonlocal_goto frame value.
17432
17433 2008-05-24  Richard Guenther  <rguenther@suse.de>
17434
17435         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
17436         variable can be only accessed through a pointer or a union.
17437
17438 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17439
17440         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
17441         * doc/extend.texi: Likewise.
17442
17443 2008-05-23  DJ Delorie  <dj@redhat.com>
17444
17445         * config/m32c/jump.md (untyped_call): Add.
17446
17447         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
17448         for A24 to PSImode.
17449         (m32c_address_cost): Detail costs for indirect offsets.
17450
17451 2008-05-23  Rafael Espíndola  <espindola@google.com>
17452
17453         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
17454         if a node is a SUBREG.
17455         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
17456         is a SUBREG.
17457
17458 2008-05-23  Paul Brook  <paul@codesourcery.com>
17459             Carlos O'Donell  <carlos@codesourcery.com>
17460
17461         * doc/extend.texi: Clarify use of __attribute__((naked)).
17462         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17463         * target.h (gcc_target): Add allocate_stack_slots_for_args.
17464         * function.c (use_register_for_decl): Use
17465         targetm.calls.allocate_stack_slots_for_args.
17466         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17467         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
17468         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
17469
17470 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17471
17472         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
17473
17474 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
17475
17476         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
17477         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
17478         is only rounded once.
17479
17480 2008-05-23  Richard Guenther  <rguenther@suse.de>
17481
17482         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
17483
17484 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
17485             Jakub Jelinek  <jakub@redhat.com>
17486
17487         PR target/36079
17488         * configure.ac: Handle --enable-cld.
17489         * configure: Regenerated.
17490         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
17491         * config/i386/i386.h (struct machine_function): Add needs_cld field.
17492         (ix86_current_function_needs_cld): New define.
17493         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
17494         (cld): New isns pattern.
17495         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
17496         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
17497         * config/i386/i386.opt (mcld): New option.
17498         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
17499         TARGET_CLD and ix86_current_function_needs_cld.
17500         (override_options): Use -mcld by default for 32-bit code if
17501         USE_IX86_CLD.
17502
17503         * doc/install.texi (Options specification): Document --enable-cld.
17504         * doc/invoke.texi (Machine Dependent Options)
17505         [i386 and x86-64 Options]: Add -mcld option.
17506         (Intel 386 and AMD x86-64 Options): Document -mcld option.
17507
17508 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
17509         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
17510         (return_in_memory_64): Likewise.
17511         (return_in_memory_ms_64): Likewise.
17512
17513 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17514
17515         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
17516         * builtins.c (fold_builtin_fpclassify): New.
17517         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
17518         * builtins.def (BUILT_IN_FPCLASSIFY): New.
17519         * c-common.c (handle_type_generic_attribute): Adjust to accept
17520         fixed arguments before an elipsis.
17521         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
17522         * doc/extend.texi: Document __builtin_fpclassify.
17523
17524 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
17525
17526         * omp-low.c (gate_expand_omp_ssa): Remove.
17527         (pass_expand_omp_ssa): Remove.
17528         (gate_expand_omp): Do not check for flag_openmp_ssa.
17529         * common.opt (-fopenmp-ssa): Remove.
17530         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
17531
17532 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17533
17534         * config/sh/sh.opt (mfixed-range): New option.
17535         * config/sh/sh-protos.h (sh_fix_range): Declare.
17536         * config/sh/sh.c (sh_fix_range): New function.
17537         * config/sh/sh.h (sh_fixed_range_str): Declare.
17538         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
17539         is not empty.
17540         * doc/invoke.texi (SH Options): Document -mfixed-range.
17541
17542 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
17543
17544         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
17545         it before the redeclaration.
17546
17547 2008-05-22  Anatoly Sokolov <aesok@post.ru>
17548
17549         * config/avr/avr.c (get_sequence_length): Add new function.
17550         (expand_prologue, expand_epilogue): Remove duplicate code.
17551
17552 2008-05-22  Rafael Espíndola  <espindola@google.com>
17553
17554         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
17555         sharing.
17556
17557 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17558
17559         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
17560         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
17561
17562         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
17563         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
17564         (vect_update_misalignment_for_peel): Likewise.
17565         (vector_alignment_reachable_p): Likewise.
17566         * tree-vect-transform.c (vectorizable_load): Likewise.
17567         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
17568         (get_vectype_for_scalar_type): Pass mode of scalar_type
17569         to UNITS_PER_SIMD_WORD.
17570
17571         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
17572         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
17573         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
17574         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
17575         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
17576
17577 2008-05-22  Ira Rosen  <irar@il.ibm.com>
17578
17579         PR tree-optimization/36293
17580         * tree-vect-transform.c (vect_transform_strided_load): Don't check
17581         if the first load must be skipped because of a gap.
17582
17583 2008-05-22  Richard Guenther  <rguenther@suse.de>
17584
17585         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
17586         more cases of offset disambiguation that is possible if
17587         strict-aliasing rules apply.
17588         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
17589         for basic offset and type-based disambiguation.
17590
17591 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17592
17593         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
17594         ix86_expand_vector_set on V16QImode for SSE4.1.
17595
17596 2008-05-21  Tom Tromey  <tromey@redhat.com>
17597
17598         * c.opt (Wimport): Mark as undocumented.
17599         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
17600         -Wno-import.
17601         (Warning Options): Likewise.
17602         * doc/cppopts.texi: Don't mention -Wimport.
17603
17604 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
17605
17606         PR tree-optimization/36287
17607         PR tree-optimization/36286
17608         * lambda-code.c (build_access_matrix): Do not use the loop->num
17609         for computing the number of induction variables: use the loop depth
17610         instead.
17611
17612 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
17613
17614         PR/36280
17615         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
17616         option -f(no-)leading-underscore.
17617
17618 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17619
17620         * config/i386/i386.c (ix86_expand_vector_init_general): Use
17621         GET_MODE_NUNITS (mode).
17622
17623 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
17624
17625         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
17626         (-mmulhw): Add 464 to description.
17627         (-mdlmzb): Likewise.
17628         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
17629         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
17630         464fp entries.
17631         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
17632         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
17633         * config/rs6000/rs6000.md: Update comments for 464.
17634
17635 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
17636
17637         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
17638
17639 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17640
17641         * config/i386/sse.md (vec_extractv4sf): Removed.
17642         (vec_extractv2df): Likewise.
17643         (vec_extractv2di): Likewise.
17644         (vec_extractv4si): Likewise.
17645         (vec_extractv8hi): Likewise.
17646         (vec_extractv16qi): Likewise.
17647         (vec_extract<mode>): New.
17648
17649 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17650
17651         * config/i386/sse.md (vec_setv4sf): Removed.
17652         (vec_setv2df): Likewise.
17653         (vec_setv2di): Likewise.
17654         (vec_setv4si): Likewise.
17655         (vec_setv8hi): Likewise.
17656         (vec_setv16qi): Likewise.
17657         (vec_set<mode>): New.
17658
17659 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17660
17661         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
17662         goto for vec_concat and vec_interleave.
17663
17664 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17665
17666         * config/i386/sse.md (vec_initv4sf): Removed.
17667         (vec_initv2df): Likewise.
17668         (vec_initv2di): Likewise.
17669         (vec_initv4si): Likewise.
17670         (vec_initv8hi): Likewise.
17671         (vec_initv16qi): Likewise.
17672         (vec_init<mode>): New.
17673
17674 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
17675
17676         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
17677
17678 2008-05-21  Tom Tromey  <tromey@redhat.com>
17679
17680         * ggc-zone.c (lookup_page_table_if_allocated): New function.
17681         (zone_find_object_offset): Likewise.
17682         (gt_ggc_m_S): Likewise.
17683         (highest_bit): Likewise.
17684         * ggc-page.c (gt_ggc_m_S): New function.
17685         * stringpool.c (string_stack): Remove.
17686         (init_stringpool): Update.
17687         (ggc_alloc_string): Use ggc_alloc.
17688         (maybe_delete_ident): New function.
17689         (ggc_purge_stringpool): Likewise.
17690         (gt_ggc_m_S): Remove.
17691         * ggc-common.c (ggc_protect_identifiers): New global.
17692         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
17693         ggc_protect_identifiers.
17694         * ggc.h (ggc_protect_identifiers): Declare.
17695         (gt_ggc_m_S): Update.
17696         (ggc_purge_stringpool): Declare.
17697         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
17698         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
17699         special case.
17700         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
17701
17702 2008-05-21  David S. Miller  <davem@davemloft.net>
17703
17704         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
17705         tmake_file.
17706
17707 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17708
17709         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
17710         once finished.
17711
17712 2008-05-20  David Daney  <ddaney@avtrex.com>
17713
17714         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
17715         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
17716         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17717         UNSPEC_UPDATE_GOT_VERSION): Renumber.
17718         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
17719         (atomic_hiqi_op): New define_code_iterator.
17720         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
17721         mips_expand_compare_and_swap_12.
17722         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
17723         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
17724         (sync_<optab><mode>, sync_old_<optab><mode>,
17725         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
17726         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
17727         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
17728         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
17729         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
17730         (test_and_set_12): New insn.
17731         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
17732         sync_new_<optab><mode>, sync_old_nand<mode>,
17733         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
17734         clobber to operand 0 for SI and DI mode insns.
17735         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
17736         mips_gen_fn_4): New typedefs.
17737         (mips_gen_fn_ptrs): Define new union type.
17738         (mips_expand_compare_and_swap_12): Remove declaration.
17739         (mips_expand_atomic_qihi): Declare function.
17740         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
17741         (mips_expand_atomic_qihi): ... this.  Use new generator function
17742         parameter.
17743         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
17744         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
17745         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
17746         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
17747         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
17748         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
17749         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
17750         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
17751         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
17752         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
17753         New macros.
17754
17755 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
17756
17757         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
17758         the missing break.
17759
17760 2008-05-20  Anatoly Sokolov <aesok@post.ru>
17761
17762         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
17763         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
17764         (avr_attribute_table): Add 'OS_main' function attribute.
17765         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
17766         functions with 'OS_main' attribute.
17767
17768 2008-05-20  Richard Guenther  <rguenther@suse.de>
17769
17770         PR tree-optimization/35204
17771         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
17772         helper, split out from ...
17773         (DFS): ... here.  Make the DFS walk non-recursive.
17774
17775 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
17776             Jan Sjodin  <jan.sjodin@amd.com>
17777
17778         PR tree-optimization/36181
17779         * tree-parloops.c (loop_has_vector_phi_nodes): New.
17780         (parallelize_loops): Don't parallelize when the loop has vector
17781         phi nodes.
17782
17783 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
17784             Sebastian Pop  <sebastian.pop@amd.com>
17785
17786         * tree-loop-linear.c (gather_interchange_stats): Look in the access
17787         matrix, and never look at the tree representation of the memory
17788         accesses.
17789         (linear_transform_loops): Computes parameters and access matrices.
17790         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
17791         when fails.
17792         (access_matrix_get_index_for_parameter): New.
17793         * tree-data-ref.h (struct access_matrix): New.
17794         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17795         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17796         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
17797         am_vector_index_for_loop): New.
17798         (struct data_reference): Add field access_matrix.
17799         (DR_ACCESS_MATRIX): New.
17800         (compute_data_dependences_for_loop): Update declaration.
17801         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
17802         * lambda.h (lambda_vector_vec_p): Declared.
17803         * lambda-code.c: Depend on pointer-set.h.
17804         (lambda_collect_parameters_from_af, lambda_collect_parameters,
17805         av_for_af_base, av_for_af, build_access_matrix,
17806         lambda_compute_access_matrices): New.
17807         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
17808
17809 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
17810
17811         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
17812         $SOURCEDIR/include.
17813
17814 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
17815             Sebastian Pop  <sebastian.pop@amd.com>
17816
17817         PR tree-optimization/36206
17818         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
17819         FOLD_CONVERSIONS.
17820         (instantiate_scev_1): Rename flags to fold_conversions.
17821         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
17822         outeside instantiation_loop.
17823         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
17824         (evolution_function_is_affine_or_constant_p): Removed.
17825         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
17826         instantiate_scev.
17827         (analyze_siv_subscript): Pass in the loop nest number.
17828         Call evolution_function_is_affine_in_loop instead of
17829         evolution_function_is_affine_p.
17830         (analyze_overlapping_iterations): Pass in the loop nest number.
17831
17832 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
17833             Sebastian Pop  <sebastian.pop@amd.com>
17834
17835         PR tree-optimization/36206
17836         * tree-chrec.h (chrec_fold_op): New.
17837         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
17838         and other trees.
17839
17840 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
17841
17842         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
17843         (DIRS_EQ): New.
17844         (remove_duplicates): Do not set inode on non-inode systems.
17845         Use DIRS_EQ.
17846
17847 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
17848
17849         * config.gcc (tm_file): Update comments about relative pathnames.
17850
17851 2008-05-20  Richard Guenther  <rguenther@suse.de>
17852
17853         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
17854         * tree-ssa-sccvn.c (process_scc): Likewise.
17855         * tree-ssa-sink.c (execute_sink_code): Likewise.
17856         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17857         * tree-vrp.c (process_assert_insertions): Likewise.
17858         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17859         (perform_tree_ssa_dce): Likewise.
17860         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
17861         (dump_dominator_optimization_stats): Likewise.
17862         * tree-vectorizer.c (vectorize_loops): Likewise.
17863
17864 2008-05-20  Richard Guenther  <rguenther@suse.de>
17865
17866         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
17867
17868 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
17869
17870         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
17871         (ix86_i386elf_return_in_memory): Likewise.
17872         (ix86_i386interix_return_in_memory): Likewise.
17873         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
17874         (SUBTARGET_RETURN_IN_MEMORY): New.
17875         * config/i386/i386elf.h: Likewise.
17876         * config/i386/ptx4-i.h: Likewise.
17877         * config/i386/sol2-10.h: Likewise.
17878         * config/i386/sysv4.h: Likewise.
17879         * config/i386/vx-common.h: Likewise.
17880         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
17881         * config/i386/i386.c (ix86_return_in_memory): Made static and
17882         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
17883         (ix86_i386elf_return_in_memory): Removed.
17884         (ix86_i386interix_return_in_memory): Removed.
17885         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
17886         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
17887
17888 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
17889
17890         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
17891
17892 2008-05-19  Xinliang David Li  <davidxl@google.com>
17893
17894         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
17895         * opts.c: Ditto.
17896         * common.opt: Ditto.
17897         * doc/invoke.texi: Ditto.
17898
17899 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
17900
17901         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
17902         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
17903
17904 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
17905
17906         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
17907         sizes of operand array from 8/4 to 4/2.
17908         (ix86_expand_vector_init_general): Change size of operand array
17909         from 32 to 16.  Remove op0, op1 and half_mode.
17910
17911 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
17912
17913         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
17914         (ix86_expand_vector_init_interleave): Likewise.
17915         (ix86_expand_vector_init_general): Use them.  Assert
17916         word_mode == SImode when n_words == 4.
17917
17918 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
17919
17920         * config/i386/i386.c (ix86_secondary_reload): New static function.
17921         (TARGET_SECONDARY_RELOAD): New define.
17922         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
17923         * config/i386/i386.md (reload_outqi): Remove.
17924
17925 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17926
17927         PR middle-end/35509
17928         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
17929         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
17930         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
17931         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
17932         (fold_builtin_1): Likewise.
17933         * builtins.def (BUILT_IN_ISINF_SIGN): New.
17934         c-common.c (check_builtin_function_arguments): Handle
17935         BUILT_IN_ISINF_SIGN.
17936         * doc/extend.texi: Document __builtin_isinf_sign.
17937         * fold-const.c (operand_equal_p): Handle COND_EXPR.
17938
17939 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
17940
17941         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
17942         EH cleanup at the end of the pass, search for those that have been
17943         turned into forwarder blocks and do the cleanup on their successor.
17944
17945 2008-05-18  Richard Guenther  <rguenther@suse.de>
17946
17947         * tree-cfg.c (verify_gimple_expr): Allow conversions from
17948         pointers to sizetype and vice versa.
17949
17950 2008-05-18 Xinliang David Li   <davidxl@google.com>
17951
17952         * gcc/tree-ssa-dce.c: Coding style fix.
17953         (check_pow): Documentation comment.
17954         (check_log): Documenation comment. Coding style fix.
17955         (is_unnecessary_except_errno_call): Ditto.
17956         (gen_conditions_for_pow): Ditto.
17957         (gen_conditions_for_log): Ditto.
17958         (gen_shrink_wrap_conditions): Ditto.
17959         (shrink_wrap_one_built_in_calls): Ditto.
17960         * gcc/doc/invoke.texi: Better documentation string.
17961         * ChangeLog: Fix wrong change log entries from
17962         May 17 checkin on function call DCE.
17963
17964 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
17965
17966         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
17967
17968 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
17969
17970         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
17971         * df-problems.c (simulation routines): Fixed block comment to
17972         properly say how to add forwards scanning functions.
17973
17974 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
17975
17976         * tree-inline.c (setup_one_parameter): Remove dead code.
17977
17978 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
17979
17980         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
17981         a BIT_AND_EXPR only for an INTEGER_TYPE.
17982
17983 2008-05-17 Xinliang David Li   <davidxl@google.com>
17984
17985         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
17986         (check_pow, check_log, is_unnecessary_except_errno_call): New
17987         functions to check for eliminating math functions that are pure
17988         except for setting errno.
17989         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
17990         general condition expressions for shrink-wrapping pow/log calls.
17991         (gen_shrink_wrap_conditions): Ditto.
17992         (shrink_wrap_one_built_in_call): Ditto.
17993         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
17994         (mark_operand_necessary): If debugging, output if OP is necessary.
17995         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
17996         unnecessary.
17997         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
17998         opt level >= 2.
17999         * gcc/common.opt: New user flag -ftree-builtin-dce.
18000         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
18001
18002 2008-05-16  David S. Miller  <davem@davemloft.net>
18003
18004         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
18005         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18006
18007 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
18008
18009         PR target/36246
18010         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
18011
18012 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18013
18014         * ifcvt.c (dead_or_predicable): Rename
18015         df_simulate_one_insn_backwards to df_simulate_one_insn.
18016         * recog.c (peephole2_optimize): Ditto.
18017         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
18018         Ditto.
18019         * df.h: Rename df_simulate_one_insn_backwards to
18020         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
18021         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
18022         scanning of defs and uses.
18023         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
18024         (df_simulate_one_insn_forwards): Removed.
18025
18026 2008-05-16  Doug Kwan  <dougkwan@google.com>
18027
18028         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
18029         QNaN & SNaN.
18030         (real_from_string): Handle NaNs and Inf as approriate.
18031
18032 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
18033
18034         * doc/gty.texi (Source Files Containing Type Information): Note
18035         that headers should appear first in the gtfiles list.
18036
18037 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18038
18039         * tree.def (COND_EXEC): Properly documented this code.
18040
18041 2008-05-16  Diego Novillo  <dnovillo@google.com>
18042
18043         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
18044         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
18045         the new field.
18046
18047 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18048
18049         * tree-ssa-dse (max_stmt_uid): Removed.
18050         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
18051         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
18052         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
18053         * function.h (cfun.last_stmt_uid): New field.
18054         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
18055         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
18056         New functions.
18057         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
18058         (create_stmt_ann): Initialize the ann->uid field.
18059         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
18060         with new calls.
18061         * tree-flow.h (renumber_gimple_stmt_uids): New function.
18062
18063 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
18064
18065         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
18066         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
18067         (init_empty_tree_cfg): Call it.
18068
18069 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18070
18071         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
18072         Update all users.
18073
18074 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18075
18076         * doc/invoke.text (-fdump-tree-*-verbose): New option.
18077         * tree-dump.c (dump_options): New verbose option.
18078         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
18079         Add verbose dump.
18080         * tree-pass.h (TDF_VERBOSE): New dump flag.
18081         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
18082         (tree-flow.h): Added include.
18083         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
18084
18085 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
18086
18087         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
18088
18089         From Jie Zhang  <jie.zhang@analog.com>
18090         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18091         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
18092         mcpu=bf561-none and mcpu=bf561-0.2.
18093         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18094         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
18095         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18096         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
18097         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
18098         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
18099         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
18100         option.
18101         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
18102         (cputype_selected): Remove.
18103         (bfin_handle_option): Don't use cputype_selected.
18104         (override_options): When no mcpu option, enable all workarounds.
18105         Don't use bfin_workarounds.
18106         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
18107         processor type.
18108         (DEFAULT_CPU_TYPE): Don't define.
18109
18110 2008-05-16  Richard Guenther  <rguenther@suse.de>
18111
18112         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
18113         on deletion of the last stmt.
18114
18115 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18116
18117         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
18118         V8HImode for SSE2 and V16QImode for SSE4.1.
18119
18120 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
18121
18122         * cgraph.h (compute_inline_parameters): Made public.
18123         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
18124         variable_generate_summary, function_write_summary,
18125         variable_write_summary, variable_read_summary.  Added generate_summary,
18126         write_summary, read_summary.
18127         * cgraphunit.c (cgraph_process_new_functions): Changed call from
18128         pass_ipa_inline.function_generate_summary, to
18129         compute_inline_parameters.
18130         * ipa-inline.c (compute_inline_parameters): Made public and added
18131         node parameter.
18132         (compute_inline_parameters_for_current): New function.
18133         (pass_inline_param): Now calls compute_inline_parameters_for_current.
18134         (inline_generate_summary): Removed parameter and made to loop over
18135         all cgraph nodes.
18136         (pass_ipa_inline): Updated for new IPA_PASS structure.
18137         * passes.c (execute_ipa_summary_passes): Now is called once per
18138         pass rather than once per node*pass.
18139
18140 2008-05-15  Anatoly Sokolov <aesok@post.ru>
18141
18142         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
18143         avr_have_mul_p, avr_asm_only_p): Remove variables.
18144         (avr_override_options): Remove initialization of removed variables.
18145         (avr_file_start):  Convert removed variables to fields of
18146         'struct base_arch_s *avr_current_arch'.
18147         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
18148         (AVR_HAVE_MUL): (Ditto.).
18149         (AVR_HAVE_MOVW): (Ditto.).
18150         (AVR_HAVE_LPMX): (Ditto.).
18151         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
18152         avr_asm_only_p): Remove declaration.
18153
18154 2008-05-15  Diego Novillo  <dnovillo@google.com>
18155
18156         * config/arm/arm.c (arm_return_in_memory): Fix return type.
18157         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
18158
18159 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
18160
18161         PR middle-end/36194
18162         * combine.c (check_conversion): Rename back to check_promoted_subreg.
18163         Don't call record_truncated_value from here.
18164         (record_truncated_value): Turn it into a for_each_rtx callback.
18165         (record_truncated_values): New function.
18166         (combine_instructions): Call note_uses with record_truncated_values.
18167         Change name of check_conversion to check_promoted_subreg.
18168
18169 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18170
18171         * doc/sourcebuild.texi: Document support for torture tests.
18172
18173 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
18174
18175         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
18176         to alternative 4 of operand 2.
18177
18178 2008-05-15  Richard Guenther  <rguenther@suse.de>
18179
18180         * tree-pass.h (current_pass): Declare.
18181         (get_pass_for_id): Likewise.
18182         * passes.c (passes_by_id, passes_by_id_size): New globals.
18183         (set_pass_for_id): New function.
18184         (get_pass_for_id): Likewise.
18185         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
18186         (execute_function_todo): Flush per function statistics.
18187         * toplev.c (compile_file): Init statistics.
18188         (general_init): Do early statistics initialization.
18189         (finalize): Finish statistics.
18190         * statistics.h (statistics_early_init): Declare.
18191         (statistics_init): Likewise.
18192         (statistics_fini): Likewise.
18193         (statistics_fini_pass): Likewise.
18194         (statistics_counter_event): Likewise.
18195         (statistics_histogram_event): Likewise.
18196         * statistics.c: New file.
18197         * Makefile.in (OBJS-common): Add statistics.o.
18198         (statistics.o): Add dependencies.
18199         * doc/invoke.texi (-fdump-statistics): Document.
18200
18201         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
18202         (insert): Likewise.
18203         (execute_pre): Use statistics_counter_event.
18204         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
18205         (substitute_and_fold): Increment it.  Use statistics_counter_event.
18206
18207 2008-05-15  Diego Novillo  <dnovillo@google.com>
18208
18209         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
18210
18211         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
18212         * tree-ssa-alias.c (new_type_alias): Remove references to
18213         sub-variables from comment.
18214         * tree-ssa-operands.c (swap_tree_operands): Likewise.
18215
18216 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18217
18218         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
18219         attribute to 1 only for insertps alternative.
18220
18221 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
18222
18223         * config/bfin/bfin.md (loadbytes): New pattern.
18224         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
18225         (bfin_init_builtins): Initialize it.
18226         (bdesc_1arg): Add it.
18227
18228 2008-05-15  Sa Liu  <saliu@de.ibm.com>
18229
18230         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
18231         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
18232         * testsuite/lib/target-supports.exp: Add
18233         check_effective_target_fortran_integer_16.
18234
18235 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
18236
18237         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
18238         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
18239         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
18240         (TARGET_RETURN_IN_MEMORY): Define.
18241
18242 2008-05-15  Richard Guenther  <rguenther@suse.de>
18243
18244         PR middle-end/36244
18245         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
18246         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
18247         represent unmodifiable vars.
18248
18249 2008-05-15  Richard Guenther  <rguenther@suse.de>
18250
18251         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
18252         INDIRECT_REF and TARGET_MEM_REF.
18253         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18254         TARGET_MEM_REF.
18255
18256 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
18257             H.J. Lu  <hongjiu.lu@intel.com>
18258
18259         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
18260         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
18261         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
18262         insn alternatives.  Add missing alternatives.
18263         (*vec_concatv2di_rex64_sse4_1): Likewise.
18264         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
18265         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
18266         Require TARGET_SSE.
18267
18268 2008-05-15  Richard Guenther  <rguenther@suse.de>
18269
18270         PR tree-optimization/36009
18271         PR tree-optimization/36204
18272         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
18273         (determine_invariantness_stmt): Record the loop a store is
18274         always executed in.
18275         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
18276         dependency.
18277
18278 2008-05-15  Richard Guenther  <rguenther@suse.de>
18279
18280         PR tree-optimization/34330
18281         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
18282         through the pointer will alias the SMT.
18283
18284 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
18285
18286         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
18287
18288 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18289
18290         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
18291
18292 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18293             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
18294
18295         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
18296         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
18297         (vashl_optab): New optab for vector/vector shifts.
18298         (vashr_optab): Ditto.
18299         (vlshr_optab): Ditto.
18300         (vrotl_optab): Ditto.
18301         (vrotr_optab): Ditto.
18302         (optab_subtype): New enum for optab_for_tree_code call.
18303         (optab_for_tree_code): Add enum optab_subtype argument.
18304
18305         * optabs.c (optab_for_tree_code): Take an additional argument to
18306         distinguish between a vector shift by a scalar and vector shift by
18307         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
18308         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
18309         vector shift by a vector.
18310         (expand_widen_pattern_expr): Pass additional argument to
18311         optab_for_tree_code.
18312
18313         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
18314         vrotl_optab, vrotr_optab.
18315
18316         * expr.c (expand_expr_real_1): Update calls to
18317         optab_for_tree_code to distinguish between vector shifted by a
18318         scalar and vector shifted by a vector.
18319         * tree-vectorizer.c (supportable_widening_operation): Ditto.
18320         (supportable_narrowing_operation): Ditto.
18321         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
18322         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
18323         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
18324         (vect_create_epilog_for_reduction): Ditto.
18325         (vectorizable_reduction): Ditto.
18326         (vectorizable_operation): Ditto.
18327         (vect_strided_store_supported): Ditto.
18328         (vect_strided_load_supported): Ditto.
18329         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
18330         * expmed.c (expand_shift): Ditto.
18331
18332         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
18333         scalar type.
18334         (ashr@var{m}3): Ditto.
18335         (vashl@var{m}3): Document new vector/vector shift standard name.
18336         (vashr@var{m}3): Ditto.
18337         (vlshr@var{m}3): Ditto.
18338         (vrotl@var{m}3): Ditto.
18339         (vrotr@var{m}3): Ditto.
18340
18341         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
18342         (PPERM_INVERT): Ditto.
18343         (PPERM_REVERSE): Ditto.
18344         (PPERM_REV_INV): Ditto.
18345         (PPERM_ZERO): Ditto.
18346         (PPERM_ONES): Ditto.
18347         (PPERM_SIGN): Ditto.
18348         (PPERM_INV_SIGN): Ditto.
18349         (PPERM_SRC1): Ditto.
18350         (PPERM_SRC2): Ditto.
18351
18352         * config/i386/sse.md (mulv2di3): Add SSE5 support.
18353         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
18354         allows a memory operand to be the value being added, and split it
18355         to improve vectorization.
18356         (sse5_pmacsdqh_mem): Ditto.
18357         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
18358         (sse5_mulv2div2di3_high): Ditto.
18359         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
18360         (vec_pack_trunc_v4si): Ditto.
18361         (vec_pack_trunc_v2di): Ditto.
18362         (sse5_pcmov_<mode>): Remove code that tried to use use
18363         andps/andnps instead of pcmov.
18364         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
18365         pmacsdqh instructions.
18366         (vec_widen_smult_lo_v4si): Ditto.
18367
18368         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
18369         (PPERM_INVERT): Ditto.
18370         (PPERM_REVERSE): Ditto.
18371         (PPERM_REV_INV): Ditto.
18372         (PPERM_ZERO): Ditto.
18373         (PPERM_ONES): Ditto.
18374         (PPERM_SIGN): Ditto.
18375         (PPERM_INV_SIGN): Ditto.
18376         (PPERM_SRC1): Ditto.
18377         (PPERM_SRC2): Ditto.
18378         (ix86_expand_sse_movcc): Move the SSE5 test after the if
18379         true/false tests.
18380         (ix86_expand_int_vcond): If SSE5 generate all possible integer
18381         comparisons.
18382         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
18383         says ignore whether the last reference is a memory operand.
18384
18385 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18386             Paolo Bonzini <bonzini at gnu dot org>
18387
18388         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
18389         shift patterns.
18390
18391         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
18392         (vlshr<mode>3): Rename from vlshr<mode>3.
18393         (vashr<mode>3): Rename from vashr<mode>3.
18394         (mulv4sf3): Change the names of vector shift patterns.
18395         (mulv4si3): Ditto.
18396         (negv4sf2): Ditt.
18397
18398         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
18399         shift insns.
18400
18401         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
18402         (SI_SHLHI): Ditto.
18403         (SI_SHL): Ditto.
18404         (SI_SHLI): Ditto.
18405         (SI_ROTH): Ditto.
18406         (SI_ROTHI): Ditto.
18407         (SI_ROT): Ditto.
18408         (SI_ROTI): Ditto.
18409         (SPU_RL_0): Ditto.
18410         (SPU_RL_1): Ditto.
18411         (SPU_RL_2): Ditto.
18412         (SPU_RL_3): Ditto.
18413         (SPU_RL_4): Ditto.
18414         (SPU_RL_5): Ditto.
18415         (SPU_RL_6): Ditto.
18416         (SPU_RL_7): Ditto.
18417         (SPU_SL_0): Ditto.
18418         (SPU_SL_1): Ditto.
18419         (SPU_SL_2): Ditto.
18420         (SPU_SL_3): Ditto.
18421         (SPU_SL_4): Ditto.
18422         (SPU_SL_5): Ditto.
18423         (SPU_SL_6): Ditto.
18424         (SPU_SL_7): Ditto.
18425
18426         * config/spu/spu.md (v): New iterator macro to add v for vector types.
18427         (floatunssidf2_internal): Change vector/vector shift names.
18428         (floatunsdidf2_internal): Ditto.
18429         (mulv8hi3): Ditto.
18430         (ashrdi3): Ditto.
18431         (ashrti3): Ditto.
18432         (cgt_df): Ditto.
18433         (cgt_v2df): Ditto.
18434         (dftsv): Ditto.
18435         (vashl<mode>3): Rename from ashl<mode>3.
18436         (vashr<mode>3): Rename from ashr<mode>3.
18437         (vlshr<mode>3): Rename from lshr<mode>3.
18438         (vrotl<mode>3): Rename from rotl<mode>3.
18439
18440 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18441
18442         PR target/36224
18443         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
18444         multiply gives the wrong value when doing widening multiplies.
18445         (vec_widen_smult_lo_v4si): Ditto.
18446
18447 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
18448
18449         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
18450         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
18451         emit_library_call_value.
18452         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
18453         * tree.h (ECF_LIBCALL_BLOCK): Removed.
18454         * calls.c (initialize_argument_information, precompute_arguments,
18455         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
18456         (precompute_arguments): Removed flags parameter.
18457         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
18458
18459 2008-05-14  Richard Guenther  <rguenther@suse.de>
18460
18461         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
18462         Make sure to register the store if the use is a PHI_NODE.
18463
18464 2008-05-14  Olivier Hainque  <hainque@adacore.com>
18465
18466         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
18467         memory if the component is to be referenced in BLKmode according
18468         to get_inner_reference.
18469
18470 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
18471
18472         * calls.c (emit_library_call_value_1): Restore code clearing
18473         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
18474
18475 2008-05-14  Olivier Hainque  <hainque@adacore.com>
18476             Nicolas Roche  <roche@adacore.com>
18477
18478         * configure.ac: Add support for a "gcc_subdir" variable in
18479         config-lang.in, to denote a subdirectory where the language/GCC
18480         integration files are to be found.
18481         * configure: Regenerate.
18482
18483 2008-05-14  Ira Rosen  <irar@il.ibm.com>
18484
18485         PR tree-optimization/36098
18486         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
18487         value for the first load in the group in case of a gap.
18488         (vect_build_slp_tree): Check that there are no gaps in loads.
18489
18490 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
18491
18492         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
18493         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
18494         expand_copysign_bit, ): Change call to emit_no_conflict_block to
18495         emit_insn and remove unneeded code to construct extra args.
18496         (emit_no_conflict_block): Removed.
18497         * optabls.h: (emit_no_conflict_block): Removed.
18498         * cse.c (cse_extended_basic_block): Remove search for
18499         REG_NO_CONFLICT note.
18500         * global.c: Removed incorrect comment added in revision 117.
18501         * expr.c (convert_move): Change call to emit_no_conflict_block to
18502         emit_insn.
18503         * recog.c: Change comments so that they do not mention
18504         REG_NO_CONFLICT.
18505         * local_alloc.c (combine_regs): Removed last parameter.
18506         (no_conflict_p): Removed.
18507         (block_alloc): Removed note, no_conflict_combined_regno and set
18508         local vars. Removed all code to process REG_NO_CONFLICT blocks.
18509         (combine_regs): Removed already_dead and code to look for
18510         REG_NO_CONFLICT notes.
18511         * lower_subreg (remove_retval_note): Removed code to look for
18512         REG_NO_CONFLICT block.
18513         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
18514         (resolve_clobber): Remove code to process libcalls that have
18515         REG_NO_CONFLICT notes.
18516         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
18517         case.
18518         * combine.c (can_combine_p, distribute_notes):  Removed
18519         REG_NO_CONFLICT case.
18520         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
18521         to emit_insns.
18522         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
18523         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
18524         Ditto.
18525         * reg-notes.def (NO_CONFLICT): Removed.
18526
18527 2008-05-14  David S. Miller  <davem@davemloft.net>
18528
18529         * config/sparc/sparc.c (sparc_profile_hook): If
18530         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
18531         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
18532         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18533
18534 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
18535
18536         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
18537
18538 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
18539
18540         PR target/36222
18541         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
18542         and op1 expansion before vector concat to have less live pseudos.
18543
18544 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18545
18546         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18547         ix86_expand_vector_set if supported.
18548
18549 2008-05-13  Diego Novillo  <dnovillo@google.com>
18550             Kenneth Zadeck  <zadeck@naturalbridge.com>
18551
18552         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
18553
18554         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
18555         phinodes_print_statistics, init_ssanames, fini_ssanames,
18556         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
18557         release_ssa_name, release_defs, replace_ssa_name_symbol,
18558         ssanames_print_statistics): Move ...
18559         * tree-flow.h: ... here.
18560         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
18561         Use FN instead of cfun.
18562         (make_ssa_name_fn): Rename from make_ssa_name.
18563         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
18564         * tree-flow-inline.h (make_ssa_name): Move from
18565         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
18566         * omp-low.c (expand_omp_parallel):
18567         * tree-flow-inline.h (redirect_edge_var_map_result):
18568         * tree-ssa.c (init_tree_ssa): Add argument FN.
18569         Use it instead of cfun.  Update all users.
18570
18571 2008-05-13  Tom Tromey  <tromey@redhat.com>
18572
18573         PR preprocessor/22168:
18574         * doc/cpp.texi (Top): Update menu.
18575         (Alternatives to Wrapper #ifndef): New node.
18576         (Other Directives): Document deprecation.
18577         (Obsolete Features): Remove menu.
18578         (Assertions): Merge node into Obsolete Features.
18579         (Obsolete once-only headers): Move earlier; rename to Alternatives
18580         to Wrapper #ifndef.
18581         * doc/cppopts.texi: Update.
18582         * c.opt (Wdeprecated): Enable for C and ObjC.
18583         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
18584         (C++ Dialect Options): Move -Wno-deprecated from here to...
18585         (Warning Options): ... here.
18586
18587 2008-05-13  Richard Guenther  <rguenther@suse.de>
18588
18589         PR middle-end/36227
18590         * fold-const.c (fold_sign_changed_comparison): Do not allow
18591         changes in pointer-ness.
18592
18593 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18594
18595         PR target/24713
18596         * config/sh/sh.c (sh_expand_prologue): Don't clear
18597         RTX_FRAME_RELATED_P for push insns.
18598
18599 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
18600
18601         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
18602
18603 2008-05-12  Anatoly Sokolov <aesok@post.ru>
18604
18605         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
18606         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
18607         Use 'machine->is_leaf' instead of 'leaf_func_p'.
18608
18609 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
18610
18611         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
18612         (*vec_concatv4sf_sse): This.
18613         (*sse2_concatv2si): Renamed to ...
18614         (*vec_concatv2si_sse2): This.
18615         (*sse1_concatv2si): Renamed to ...
18616         (*vec_concatv2si_sse): This.
18617         (*vec_concatv2di_rex): Renamed to ...
18618         (*vec_concatv2di_rex64): This.
18619         (*vec_concatv2si_sse4_1): New.
18620         (*vec_concatv2di_rex64_sse4_1): Likewise.
18621
18622 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
18623
18624         PR rtl-optimization/36111
18625         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
18626         that was created for swappable operands.
18627
18628 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
18629
18630         PR ada/36001
18631         * Makefile.in: Substitute GNATMAKE and GNATBIND.
18632         * configure.ac: Add call to ACX_PROG_GNAT.
18633
18634 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
18635
18636         * optc-gen.awk: Fix comment typo.
18637
18638 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18639
18640         * pretty-print.c (pp_integer_with_precision): Use
18641         HOST_LONG_LONG_FORMAT.
18642
18643 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
18644
18645         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
18646
18647 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18648
18649         * config/i386/i386.c (bdesc_ptest): Removed.
18650         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
18651         (bdesc_args): Add __builtin_ia32_ptestz128,
18652         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
18653         (ix86_init_mmx_sse_builtins): Updated.
18654         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
18655         (ix86_expand_builtin): Updated.
18656
18657 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
18658
18659         * tree-cfg.c (valid_fixed_convert_types_p): New function.
18660         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
18661
18662 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
18663
18664         * value-prof.c (interesting_stringop_to_profile): Do not
18665         return early for BUILT_IN_MEMPCPY.
18666
18667 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18668
18669         * calls.c (expand_call): Don't use callgraph to increase
18670         preferred_stack_boundary.
18671
18672         * cgraph.h (cgraph_rtl_info): Use unsigned on
18673         preferred_incoming_stack_boundary.
18674
18675         * final.c (rest_of_clean_state): Use unsigned on
18676         preferred_stack_boundary.
18677
18678 2008-05-09  Tom Tromey  <tromey@redhat.com>
18679
18680         PR preprocessor/22231:
18681         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
18682         proceeding.
18683
18684 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
18685
18686         PR tree-optimization/36129
18687         * tree-ssa-ccp.c: Include value-prof.h.
18688         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
18689         built-in function was folded to a constant.
18690         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
18691
18692 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
18693             Sebastian Pop  <sebastian.pop@amd.com>
18694
18695         * tree-scalar-evolution.c: Document instantiate_scev.
18696         (instantiate_parameters_1): Renamed instantiate_scev_1.
18697         Don't use the same loop for instantiation_loop and evolution_loop.
18698         (instantiate_scev): New.
18699         (instantiate_parameters): Moved...
18700         (resolve_mixers): Update call to instantiate_scev_1 to pass the
18701         same loop twice.  Maintains the semantics for this function.
18702         * tree-scalar-evolution.h (instantiate_scev): Declare.
18703         (instantiate_parameters): ...here.  Now static inline.
18704         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
18705         instead of resolve_mixers.
18706
18707 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18708
18709         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
18710
18711 2008-05-09  Tomas Bily  <tbily@suse.cz>
18712
18713         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
18714         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
18715         * tree-ssa-structalias.c (get_constraint_for): Likewise.
18716         * c-common.c (c_common_truthvalue_conversion): Likewise.
18717         * tree-object-size.c (compute_object_offset): Likewise.
18718         * tree-inline.c (estimate_num_insns_1): Likewise.
18719         * varasm.c (const_hash_1, compare_constant, copy_constant)
18720         (compute_reloc_for_constant, output_addressed_constants)
18721         (initializer_constant_valid_p): Likewise.
18722         * c-omp.c (check_omp_for_incr_expr): Likewise.
18723         * gimplify.c (gimplify_expr): Likewise.
18724         * c-typeck.c (c_finish_return): Likewise.
18725         * tree-vectorizer.c (supportable_widening_operation)
18726         (supportable_narrowing_operation): Likewise.
18727         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
18728         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
18729         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
18730         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
18731         (descr_info_loc): Likewise.
18732         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
18733         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
18734         (fold_unary): Likewise.
18735         * builtins.c (get_pointer_alignment): Likewise.
18736         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
18737         (instantiate_parameters_1): Likewise.
18738         * tree.c (expr_align, stabilize_reference): Likewise.
18739         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
18740         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18741         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
18742         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18743         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
18744         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
18745         Likewise.
18746         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
18747         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
18748         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
18749         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
18750         (forward_propagate_comparison)
18751         (tree_ssa_forward_propagate_single_use_vars): Likewise.
18752         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
18753         * emit-rtl.c (component_ref_for_mem_expr)
18754         (set_mem_attributes_minus_bitpos): Likewise.
18755         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
18756         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
18757         Likewise.
18758         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
18759         (build_function_call, pointer_diff, build_compound_expr)
18760         (c_finish_return): Likewise.
18761         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
18762         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
18763         Likewise.
18764         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
18765         * expr.c (is_aligning_offset): Likewise.
18766         * tree-ssa-alias.c (is_escape_site): Likewise.
18767         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
18768         (check_all_va_list_escapes): Likewise.
18769         * tree-ssa-loop-ivopts.c (determine_base_object)
18770         (determine_common_wider_type): Likewise.
18771         * dojump.c (do_jump): Likewise.
18772         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
18773         * tree-gimple.c (is_gimple_cast): Likewise.
18774         * fold-const.c (decode_field_reference, )
18775         (fold_sign_changed_comparison, fold_unary, fold_comparison)
18776         (fold_binary): Likewise.
18777         * tree-ssa-alias-warnings.c (find_alias_site_helper)
18778         (already_warned_in_frontend_p): Likewise.
18779         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
18780         * tree.c (really_constant_p, get_unwidened): Likewise.
18781         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
18782         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
18783         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
18784         Likewise.
18785         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
18786         CONVERT_EXPR_P.
18787         (CONVERT_EXPR_P): Define.
18788         (CASE_CONVERT): Define.
18789
18790 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
18791
18792         PR middle-end/36117
18793         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
18794         (delete_unmarked_insns): When deleting a call, call
18795         delete_unreachable_blocks.
18796         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
18797         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
18798
18799 2008-05-08  Richard Guenther  <rguenther@suse.de>
18800
18801         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
18802         (-ftree-salias): Likewise.
18803         (salias-max-implicit-fields): Remove param documentation.
18804         (salias-max-array-elements): Likewise.
18805         * tree-pass.h (pass_create_structure_vars): Remove.
18806         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18807         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18808         * tree-ssa-alias.c (create_structure_vars): Remove.
18809         (gate_structure_vars): Likewise.
18810         (pass_create_structure_vars): Likewise.
18811         (gate_build_alias): Likewise.
18812         (pass_build_alias): Adjust to run always and dump the function.
18813         * common.opt (ftree-salias): Hide.
18814         * passes.c (init_optimization_passes): Remove
18815         pass_create_structure_vars, adjust comment.
18816         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18817         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18818         * opts.c (decode_options): Do not set flag_tree_salias.
18819         (common_handle_option): Add OPT_ftree_salias to the backward
18820         compatibility section.
18821
18822 2008-05-08  Richard Guenther  <rguenther@suse.de>
18823
18824         * tree-flow-inline.h (var_can_have_subvars): Move ...
18825         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
18826         * tree-flow.h (var_can_have_subvars): Remove.
18827         (push_fields_onto_fieldstack): Remove.
18828         (sort_fieldstack): Likewise.
18829         (struct fieldoff): Move ...
18830         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
18831         alias_set and base_for_components fields.
18832         (sort_fieldstack): Make static.
18833         (push_fields_onto_fieldstack): Likewise.  Remove code that
18834         handles anything but RECORD_TYPEs.  Remove alias_set and
18835         base_for_components handling.
18836         (create_variable_info_for): Adjust.
18837
18838 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
18839
18840         * common.opt (Wframe-larger-than=): Shorten the help message
18841         to one line.
18842         * doc/invoke.texi (Wframe-larger-than=): Add more description.
18843
18844 2008-05-08  Rafael Espíndola  <espindola@google.com>
18845
18846         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
18847         trap.
18848         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
18849         trap and that both operands are gimple values.
18850         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
18851         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
18852         is a fp operation.
18853
18854 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
18855
18856         * read-rtl.c (join_c_conditions): Return the first string if the
18857         two strings are equal.
18858
18859 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
18860
18861         * gensupport.h (pred_data): Add a "num_codes" field.
18862         (add_predicate_code): Declare.
18863         * gensupport.c (add_predicate_code): New function.
18864         (std_pred_table): Add an "allows_const_p" field.
18865         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
18866         Remove the (incomplete) list of such codes from the codes field.
18867         (init_predicate_table): Use add_predicate_code.  Add all
18868         RTX_CONST_OBJs if allows_const_p is true.
18869         * genrecog.c (process_define_predicate): Use add_predicate_code.
18870
18871 2008-05-08  David Daney  <ddaney@avtrex.com>
18872             Richard Sandiford  <rsandifo@nildram.co.uk>
18873
18874         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
18875         special case of constant zero operands.
18876         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
18877         old and new values.  Special case constant zero values.
18878         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
18879         fails.
18880         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
18881         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
18882
18883 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
18884
18885         PR target/36090
18886         * simplify-rtx.c (simplify_plus_minus): Create CONST of
18887         similar RTX_CONST_OBJ before CONST_INT.
18888
18889 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
18890
18891         * stmt.c (expand_stack_restore): Change sa mode if needed.
18892
18893 2008-05-08  Richard Guenther  <rguenther@suse.de>
18894
18895         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
18896         return type to bool.
18897         (ix86_sol10_return_in_memory): Likewise.
18898         (ix86_i386elf_return_in_memory): Likewise.
18899         (ix86_i386interix_return_in_memory): Likewise.
18900         * config/i386/i386.c (ix86_return_in_memory): Likewise.
18901         (ix86_sol10_return_in_memory): Likewise.
18902         (ix86_i386elf_return_in_memory): Likewise.
18903         (ix86_i386interix_return_in_memory): Likewise.
18904
18905 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
18906
18907         PR bootstrap/36180
18908         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
18909         fndecl argument.
18910         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
18911         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
18912         declared in front.
18913
18914 2008-05-08  Richard Guenther  <rguenther@suse.de>
18915
18916         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
18917         * tree-data-ref.h (struct dr_alias): Remove subvars field.
18918         (DR_SUBVARS): Remove.
18919         * tree-dfa.c (dump_subvars_for): Remove.
18920         (debug_subvars_for): Likewise.
18921         (dump_variable): Do not dump subvars.
18922         (remove_referenced_var): Do not remove subvars.
18923         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
18924         (lookup_subvars_for_var): Remove.
18925         (get_subvars_for_var): Likewise.
18926         (get_subvars_at): Likewise.
18927         (get_first_overlapping_subvar): Likewise.
18928         (overlap_subvar): Likewise.
18929         * tree-flow.h (subvar_t): Remove.
18930         (struct var_ann_d): Remove subvars field.
18931         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
18932         argument.  Remove special handling of SFTs.
18933         (compute_tag_properties): Likewise.
18934         (set_initial_properties): Likewise.
18935         (compute_call_clobbered): Likewise.
18936         (count_mem_refs): Likewise.
18937         (compute_memory_partitions): Likewise.
18938         (compute_flow_insensitive_aliasing): Likewise.
18939         (setup_pointers_and_addressables): Likewise.
18940         (new_type_alias): Likewise.
18941         (struct used_part): Remove.
18942         (used_portions): Likewise.
18943         (struct used_part_map): Likewise.
18944         (used_part_map_eq): Likewise.
18945         (used_part_map_hash): Likewise.
18946         (free_used_part_map): Likewise.
18947         (up_lookup): Likewise.
18948         (up_insert): Likewise.
18949         (get_or_create_used_part_for): Likewise.
18950         (create_sft): Likewise.
18951         (create_overlap_variables_for): Likewise.
18952         (find_used_portions): Likewise.
18953         (create_structure_vars): Likewise.
18954         * tree.def (STRUCT_FIELD_TAG): Remove.
18955         * tree.h (MTAG_P): Adjust.
18956         (struct tree_memory_tag): Remove base_for_components and
18957         unpartitionable flags.
18958         (struct tree_struct_field_tag): Remove.
18959         (SFT_PARENT_VAR): Likewise.
18960         (SFT_OFFSET): Likewise.
18961         (SFT_SIZE): Likewise.
18962         (SFT_NONADDRESSABLE_P): Likewise.
18963         (SFT_ALIAS_SET): Likewise.
18964         (SFT_UNPARTITIONABLE_P): Likewise.
18965         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
18966         (union tree_node): Remove sft field.
18967         * alias.c (get_alias_set): Remove special handling of SFTs.
18968         * print-tree.c (print_node): Remove handling of SFTs.
18969         * tree-dump.c (dequeue_and_dump): Likewise.
18970         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
18971         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
18972         * tree-predcom.c (set_alias_info): Do not set subvars.
18973         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
18974         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
18975         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
18976         (add_vars_for_offset): Remove.
18977         (add_virtual_operand): Remove special handling of SFTs.
18978         (add_call_clobber_ops): Likewise.
18979         (add_call_read_ops): Likewise.
18980         (get_asm_expr_operands): Likewise.
18981         (get_modify_stmt_operands): Likewise.
18982         (get_expr_operands): Likewise.
18983         (add_to_addressable_set): Likewise.
18984         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
18985         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
18986         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
18987         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
18988         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
18989         (tree_node_structure): Likewise.
18990         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
18991         handling of SFTs.
18992         (find_what_p_points_to): Likewise.
18993
18994 2008-05-08  Sa Liu  <saliu@de.ibm.com>
18995
18996         * config/spu/spu.md: Fixed subti3 pattern.
18997
18998 2008-05-08  Richard Guenther  <rguenther@suse.de>
18999
19000         PR middle-end/36154
19001         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19002         sure to create a representative for trailing arrays for PTA.
19003
19004 2008-05-08  Richard Guenther  <rguenther@suse.de>
19005
19006         PR middle-end/36172
19007         * fold-const.c (operand_equal_p): Two objects which types
19008         differ in pointerness are not equal.
19009
19010 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
19011
19012         * calls.c (compute_argument_block_size): Add argument tree fndecl.
19013         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
19014         (emit_library_call_value_1): Add new variable fndecl initialized by
19015         NULL_TREE. It should be the decl type of orgfun, but this information
19016         seems not to be available here, so it uses the default calling abi.
19017         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
19018         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
19019         by TARGET_RETURN_IN_MEMORY.
19020         * config/i386/i386-interix.h: Likewise.
19021         * config/i386/i386.h: Likewise.
19022         * config/i386/i386elf.h: Likewise.
19023         * config/i386/ptx4-i.h: Likewise.
19024         * config/i386/sol2-10.h: Likewise.
19025         * config/i386/sysv4.h: Likewise.
19026         * config/i386/vx-common.h: Likewise.
19027         * config/cris/cris.h: Removed #if 0 clause.
19028         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
19029         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
19030         argument.
19031         (ix86_sol10_return_in_memory): Likewise.
19032         (ix86_i386elf_return_in_memory): New.
19033         (ix86_i386interix_return_in_memory): New.
19034         * config/mt/mt-protos.h (mt_return_in_memory): New.
19035         * config/mt/mt.c: Likewise.
19036         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
19037         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
19038         * config/bfin/bfin.h: Likewise.
19039         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
19040         argument.
19041         * config/bfin/bfin.c: Likewise.
19042         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
19043         * config/alpha/unicosmk.h: Likewise.
19044         * config/i386/cygming.h: Likewise.
19045         * config/iq2000/iq2000.h: Likewise.
19046         * config/mips/mips.h: Likewise.
19047         * config/mn10300/mn10300.h: Likewise.
19048         * config/rs6000/rs6000.h: Likewise.
19049         * config/score/score.h: Likewise.
19050         * config/spu/spu.h: Likewise.
19051         * config/v850/v850.h: Likewise.
19052         * defaults.h: Likewise.
19053         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
19054         * expr.c (emit_block_move): Adjust use of
19055         OUTGOING_REG_PARM_STACK_SPACE.
19056         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
19057         OUTGOING_REG_PARM_STACK_SPACE.
19058         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
19059
19060 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
19061
19062         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
19063         on OMP_RETURN for OMP_FOR.
19064
19065         PR debug/35896
19066         * dwarf2out.c (dw_expand_expr, common_check): Removed.
19067         (fortran_common): New function.
19068         (gen_variable_die): Call fortran_common instead of common_check,
19069         adjust for it returning tree instead of rtx.  Formatting.
19070
19071 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
19072
19073         PR rtl/7335
19074         PR rtl/33826
19075         * see.c (see_copy_insn): Copy new pure const attributes for new call.
19076         * c-decl.c (merge_decls): Ditto.
19077         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
19078         to RTL_CONST_OR_PURE_CALL_P.
19079         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
19080         Initialized DECL_LOOPING_CONST_PURE.
19081         (process_call_operands): Set tree_side_effects properly.
19082         * tree.h (TREE_READONLY_DECL_P): Removed.
19083         (DECL_IS_PURE): Renamed to DECL_PURE_P.
19084         (DECL_LOOPING_OR_CONST_P): New macro.
19085         (struct tree_function_decl): Added looping_const_or_pure_p.
19086         (ECF_*) Renumbered.
19087         (ECF_LOOPING_OR_CONST_P): New macro.
19088         * rtlanal.c (pure_const_p): Removed.
19089         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
19090         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
19091         to RTL_CONST_CALL_P.
19092         * ipa-pure-const.c (pure_const_state_e): Added looping field.
19093         (check_decl, check_tree, check_call, scan_function): Initialize
19094         looping.
19095         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
19096         (static_execute): Set looping true for recursive functions.
19097         Undo setting state to IPA_NEITHER for recursive functions.
19098         * cse.c (cse_insn):
19099         * ifcvt.c (noce_can_store_speculate_p): Changed
19100         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
19101         RTL_CONST_OR_PURE_CALL_P.
19102         * dse.c (scan_insn): Ditto.
19103         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
19104         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
19105         RTL_CONST_OR_PURE_CALL_P.
19106         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
19107         pure_call_p to RTL_CONST_CALL_P.
19108         * gimplify.c (gimplify_call_expr): Clear side effects for
19109         non-looping pure and constant calls.
19110         * calls.c (emit_call_1): Set rtl flags from ecf flags.
19111         (flags_from_decl_or_type): Set ecf flags from decl flags.
19112         (initialize_argument_information): Turn off
19113         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
19114         Change const to pure if callee_copies is true rather than just
19115         turning off const.
19116         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
19117         way of marking pure calls.
19118         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
19119         Remove hack that was supposed to fix pr7335 and remove old
19120         way of marking pure calls.
19121         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
19122         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
19123         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
19124         RTL_CONST_OR_PURE_CALL_P.
19125         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
19126         * loop-invariant.c (find_exits, find_invariant_bb): Changed
19127         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
19128         * sched-deps.c (schedule_analyze): Ditto.
19129         * rtl.h (struct rtx_def): Use call field, unchanging field, and
19130         return_val field of calls to represent pure and const function info.
19131         (CONST_OR_PURE_CALL_P): Deleted macro.
19132         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
19133         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
19134         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
19135         TREE_READONLY.
19136         * tree-optimize.c (execute_fixup_cfg): Added test for
19137         ECF_LOOPING_CONST_OR_PURE.
19138         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
19139         DECL_PURE_P.
19140         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
19141         effects for looping pure or const calls.
19142         (verify_gimple_expr): Added verification code.
19143         * config/alpha/alpha.c (alpha_legitimize_address,
19144         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
19145         RTL_CONST_CALL_P.
19146         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
19147         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
19148         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
19149         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
19150         RTL_CONST_OR_PURE_CALL_P.
19151         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
19152         and const calls to be deleted.
19153
19154 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
19155
19156         PR target/35714
19157         * config/i386/mmx.md (mmx_subv2sf3): New expander.
19158         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
19159         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
19160         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19161         to handle nonimmediate operands.
19162         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
19163         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
19164         to handle nonimmediate operands.
19165         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
19166         (mmx_pmulhrwv4hi3): New expander.  Use
19167         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19168         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
19169         (sse2_umulv1siv1di3): New expander.  Use
19170         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19171         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
19172         (mmx_eq<mode>3): New expander.  Use
19173         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19174         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
19175         (mmx_uavgv8qi3): New expander.  Use
19176         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19177         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
19178         (mmx_uavgv4hi3): New expander.  Use
19179         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19180
19181         * config/i386/sse.md
19182         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
19183         to handle nonimmediate operands.
19184         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
19185         to handle nonimmediate operands.
19186         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
19187         to handle nonimmediate operands.
19188         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
19189         to handle nonimmediate operands.
19190         (sse2_unpckhpd_exp): New expander.  Use
19191         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19192         (sse2_unpcklpd_exp): New expander.  Use
19193         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19194         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
19195         to handle nonimmediate operands.
19196         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
19197         to handle nonimmediate operands.
19198         (*sse2_<plusminus_insn><mode>3): Rename from
19199         sse2_<plusminus_insn><mode>3 insn pattern.
19200         (sse2_<plusminus_insn><mode>3): New expander.  Use
19201         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19202         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
19203         (sse2_umulv2siv2di3): New expander.  Use
19204         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19205         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
19206         (sse4_1_mulv2siv2di3): New expander.  Use
19207         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19208         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
19209         (sse2_pmaddwd): New expander.  Use
19210         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19211         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
19212         (sse2_eq<mode>3): New expander.  Use
19213         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19214         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
19215         (sse4_1_eqv2di3): New expander.  Use
19216         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19217         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19218         (sse2_uavgv16qi3): New expander.  Use
19219         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19220         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19221         (sse2_uavgv16qi3): New expander.  Use
19222         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19223         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
19224         (sse2_uavgv8hi3): New expander.  Use
19225         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19226         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
19227         (ssse3_pmulhrswv8hi3): New expander.  Use
19228         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19229         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
19230         (ssse3_pmulhrswv4hi3): New expander.  Use
19231         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19232
19233         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
19234         (<sse>_vmmul<mode>3): Ditto.
19235         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
19236         (divv2df3): Ditto.
19237         (ssse3_pmaddubsw128): Use register_operand for operand 1.
19238         (ssse3_pmaddubsw): Ditto.
19239
19240         * config/i386/i386.c (struct_builtin_description)
19241         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
19242         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
19243         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
19244         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
19245         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
19246         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
19247         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
19248         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
19249         (ix86_fixup_binary_operands): Assert that src1
19250         and src2 must have the same mode when swapped.
19251         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
19252         and ix86_binary_operator_ok.  Do not force operands in registers
19253         when optimizing.
19254
19255 2008-05-07  Jan Hubicka  <jh@suse.cz>
19256
19257         * cgraph.c (dump_cgraph_node): Update.
19258         * cgraph.h (cgraph_local_info): Break out inline summary.
19259         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
19260         hook.
19261         * ipa-inline (inline_summary): New accestor function.
19262         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
19263         cgraph_decide_inlining, compute_inline_parameters): Update.
19264         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
19265
19266 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
19267
19268         Cleanup ColdFire scheduling support and add V4 pipeline model.
19269
19270         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
19271         (define_attr cpu): Add cfv4 value.
19272         (define_attr type, define_attr type1): Merge into a single 'type'
19273         attribute.  Update all uses.
19274         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
19275         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
19276         Update all uses.
19277         (define_attr opx_mem, define_attr opy_mem): Remove.
19278         (define_attr op_mem): Clean up, update comment.
19279         (define_attr size): Use specific values instead of general int.
19280         (define_attr guess, define_attr split): Remove.  Update all uses.
19281         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
19282         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
19283         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
19284         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
19285         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
19286         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
19287         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
19288         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
19289         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
19290         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
19291         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
19292         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
19293         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
19294         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
19295         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
19296         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
19297         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
19298         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
19299         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
19300         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
19301         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
19302         Update or set attributes.
19303         (stack_tie): New fake instruction.
19304
19305         * config/m68k/m68k.h (TUNE_CFV4): New macro.
19306         (m68k_sched_attr_size): Update declaration.
19307         (m68k_sched_attr_type2): Remove.
19308         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
19309         Declare new bypass predicates.
19310
19311         * config/m68k/m68k.c (m68k_sched_issue_rate,
19312         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
19313         implementations.
19314         (TARGET_SCHED_ISSUE_RATE,
19315         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
19316         (override_options): Handle scheduling for ColdFire V4 core.
19317         (m68k_expand_prologue): Emit stack_tie.
19318         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
19319         'OP_TYPE_FPN'.  Update all uses.
19320         (sched_guess_p): Remove.
19321         (sched_address_type): Handle symbolic addresses.
19322         (sched_get_operand): New static function.
19323         (sched_operand_type): Merge into sched_attr_op_type.
19324         (sched_attr_op_type): Handle FP registers, handle quick constants,
19325         update.
19326         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
19327         (m68k_sched_attr_size): Update.  Move logic to ...
19328         (sched_get_attr_size_int): New static function.
19329         (sched_get_opxy_mem_type): New static function.
19330         (m68k_sched_attr_op_mem): Update.
19331         (m68k_sched_attr_type2): Remove.
19332         (sched_cfv4_bypass_data): New static variable.
19333         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
19334         (m68k_sched_issue_rate): Implement scheduler hook.
19335         (struct _sched_ib: enabled_p): New field.
19336         (m68k_sched_variable_issue): Update.  Handle V4.
19337         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
19338         sched_dump_class_func_t, sched_dump_split_class,
19339         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
19340         sched_dump_dfa_class, m68k_sched_dump): Remove.
19341         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
19342         hook.
19343         (m68k_sched_init_global): Remove statisctics dumping, introduce
19344         sanity check that all instructions have pipeline reservations.  Handle
19345         ColdFire V4 core.
19346         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19347         Handle ColdFire V4 core.
19348         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
19349         New static functions.
19350         (m68k_sched_address_bypass_p): New bypass predicate.
19351         (sched_get_indexed_address_scale): New static function.
19352         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
19353
19354         * cf.md: Update comments.
19355         (define_attr type2): Remove.  Use 'type' attribute instead.
19356         Update all uses.
19357         (cf_ib): Rename to cfv123_ib.  Update all uses.
19358         (cf_oep): Rename to cfv123_oep.  Update all uses.
19359         (cf_chr): Rename to cfv123_chr.  Update all uses.
19360         (cf_mem): Rename to cfv123_mem.  Update all uses.
19361         (cf_mac): Move to more appropriate place.
19362         (cfv123_guess): New automaton and cpu_unit.
19363         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
19364         Update uses of 'size' attribute.  Handle before reload scheduling.
19365         (cfv123_guess): New dummy reservation for unhandled instructions.
19366         (cfv4_*): Pipeline description of ColdFire V4 core.
19367         (ignore): New reservation to handle 'ignore' type.
19368
19369 2008-05-07  Ian Lance Taylor  <iant@google.com>
19370
19371         PR middle-end/36013
19372         * gimplify.c (find_single_pointer_decl_1): Don't look through
19373         indirections.
19374         (find_single_pointer_decl): Adjust comments.
19375
19376 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19377
19378         PR middle-end/36137
19379         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
19380         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
19381
19382         PR middle-end/36106
19383         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
19384         integral type rather than floating point, then VIEW_CONVERT_EXPR
19385         to the floating point type.
19386
19387 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
19388
19389         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
19390         TFmode op0 to register.
19391
19392 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
19393
19394         * c-decl.c (grokdeclarator): Comment typo.
19395
19396 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
19397
19398         * tree-flow.h: Remove prototype for computed_goto_p.
19399         * tree-cfg.c (computed_goto_p): Make static.
19400
19401 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19402
19403         PR target/35657
19404         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
19405         (contains_aligned_value_p): This.  Handle _Decimal128.
19406         (ix86_function_arg_boundary): Only align _Decimal128 to its
19407         natural boundary and handle it properly.
19408
19409 2008-05-06  Martin Jambor  <mjambor@suse.cz>
19410
19411         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
19412         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
19413         (ipcp_method_set_orig_node): Removed.
19414         (ipcp_cval_get_cvalue_type): Removed.
19415         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
19416         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
19417         (ipcp_cval_set_cvalue_type): Removed.
19418         (ipcp_cval_get_cvalue): Removed.
19419         (ipcp_cval_set_cvalue): Removed.
19420         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
19421         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
19422         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
19423         (ipcp_cval_meet): Renamed to ipa_lattice_meet
19424         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
19425         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
19426         (ipcp_get_ith_lattice): Changed parameters.
19427         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
19428         (ipcp_lattice_from_jfunc): Changed parameters.
19429         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
19430         (ipcp_method_cval_print): Added temporary variable info.
19431         (ipcp_redirect): Removed already unused local variable caller.
19432         (ipcp_redirect): New temporary variable orig_callee_info
19433         (ipcp_redirect): Removed newly unused local variable callee.
19434         (ipcp_redirect): Removed (a bit confusing) local variable type.
19435         (ipcp_insert_stage): Added local variable info.
19436         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
19437         renamed too
19438         (ipcp_formal_create): Removed.
19439         (ipcp_method_cval_set): Removed.
19440         (ipcp_propagate_stage): Renamed lattice variables.
19441         (ipcp_method_cval_set_cvalue_type): Removed.
19442         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
19443         (ipcp_print_all_lattices): Changed printed strings to refer to
19444         lattices rather than cvals.
19445         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
19446         (ipcp_propagate_const): Changed formal parameters.
19447         (build_const_val): Changed formal parameters.
19448         (ipcp_insert_stage): Removed useless variable cvalue
19449         (build_const_val): Changed formal parameters.
19450         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
19451         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
19452         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
19453         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
19454         (ipcp_print_func_profile_counts): Changed string from "method" to
19455         "function"
19456         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
19457         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
19458         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
19459         (ipcp_structures_print): Renamed to ipcp_print_all_structures
19460         (ipcp_profile_print): Renamed to ipcp_print_profile_data
19461         (ipcp_lat_is_const): Changed parameters and made inline.
19462         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
19463         (ipcp_redirect): Renamed to ipcp_need_redirect_p
19464         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
19465         the predicate condition directly
19466         (ipcp_propagate_stage): Added local variable args. Removed local
19467         variable callee.  (Both are mere code simplifications.)
19468         (ipcp_method_dont_insert_const): Renamed to
19469         ipcp_node_not_modifiable_p.
19470         (ipcp_node_not_modifiable_p): Made inline.
19471         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
19472         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
19473         (ipcp_print_all_lattices): Removed variable cvalue
19474         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
19475         Updated comments.
19476
19477 2008-05-06  Olivier Hainque  <hainque@adacore.com>
19478
19479         * tree-sra.c (try_instantiate_multiple_fields): Early return
19480         if field has POINTER_TYPE.
19481
19482 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
19483
19484         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
19485         by using 'q' specifier for instruction.
19486         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
19487
19488 2008-05-06  Anatoly Sokolov <aesok@post.ru>
19489
19490         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19491         Change mode of zero_extract from QImode to HImode.
19492         (sign bit tests peepholes): (Ditto.).
19493
19494 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
19495
19496         * config/i386/mmx.md: Remove double backslashes from asm templates.
19497         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
19498         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19499         to handle nonimmediate operands.
19500         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
19501         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19502         to handle nonimmediate operands.
19503         (*mmx_<code>v2sf3_finite): New insn pattern.
19504         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
19505         (mmx_<code>v2sf3): New expander.  Use
19506         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19507         (mmx_<plusminus_insn><mode>3): New expander.  Use
19508         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19509         (*mmx_<plusminus_insn><mode>3): New insn pattern.
19510         (mmx_add<mode>3): Removed.
19511         (mmx_ssadd<mode>3): Ditto.
19512         (mmx_usadd<mode>3): Ditto.
19513         (mmx_sub<mode>3): Ditto.
19514         (mmx_sssub<mode>3): Ditto.
19515         (mmx_ussub<mode>3): Ditto.
19516         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
19517         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
19518         to handle nonimmediate operands.
19519         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
19520         insn pattern.
19521         (mmx_smulv4hi3_highpart): New expander.  Use
19522         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19523         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
19524         insn pattern.
19525         (mmx_umulv4hi3_highpart): New expander.  Use
19526         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19527         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
19528         (mmx_<code>v4hi3): New expander.  Use
19529         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19530         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
19531         (mmx_<code>v8qi3): New expander.  Use
19532         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19533         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
19534         (mmx_<code><mode>3): New expander.  Use
19535         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19536
19537 2008-05-05  Jan Hubicka  <jh@suse.cz>
19538
19539         PR tree-optimization/36118
19540         * passes.c (pass_init_dump_file): Fix dump header.
19541
19542 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19543
19544         PR middle-end/36141
19545         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
19546         VCE for function decls.
19547
19548 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
19549
19550         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
19551
19552 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
19553
19554         * config/i386/i386.md (sat_plusminus): New.
19555         (plusminus_insn): Likewise.
19556         (plusminus_mnemonic): Likewise.
19557         (addsub): Removed.
19558         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
19559         (*<addsub><mode>3_cc_overflow): Renamed to ...
19560         (*<plusminus_insn><mode>3_cc_overflow): This.
19561         (*<addsub>si3_zext_cc_overflow): Renamed to ...
19562         (*<plusminus_insn>si3_zext_cc_overflow): This.
19563
19564         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
19565         (<plusminus_insn><mode>3): This.
19566         (*<addsub><mode>3): Renamed to ...
19567         (*<plusminus_insn><mode>3): This.
19568         (<sse>_vm<addsub><mode>3): Renamed to ...
19569         (<sse>_vm<plusminus_insn><mode>3): This.
19570         (sse3_h<addsub>v4sf3): Renamed to ...
19571         (sse3_h<plusminus_insn>v4sf3): This.
19572         (sse3_h<addsub>v2df3): Renamed to ...
19573         (sse3_h<plusminus_insn>v2df3): This.
19574         (<plusminus_insn><mode>3): New.
19575         (*<plusminus_insn><mode>3): Likewise.
19576         (sse2_<plusminus_insn><mode>3): Likewise.
19577         (add<mode>): Removed.
19578         (*add<mode>3): Likewise.
19579         (sse2_ssadd<mode>3): Likewise.
19580         (sse2_usadd<mode>3): Likewise.
19581         (sub<mode>3): Likewise.
19582         (*sub<mode>3): Likewise.
19583         (sse2_sssub<mode>3): Likewise.
19584         (sse2_ussub<mode>3): Likewise.
19585
19586 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
19587
19588         * gthr-single.h: Add in required interface elements as per gthr.h.
19589         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
19590         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
19591         Generalize UNUSED macro.
19592         (__gthread_once): Add.
19593         (__gthread_key_create): Add.
19594         (__gthread_key_delete): Add.
19595         (__gthread_getspecific): Add.
19596         (__gthread_setspecific): Add.
19597
19598 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
19599
19600         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
19601         the same size types for the indirect reference on the rhs, then
19602         create a VCE.
19603
19604 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
19605
19606         * config/i386/i386.md
19607         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
19608         one insn template instead of template series.
19609         (*xordi_1_rex64): Ditto.
19610         (*xordi_2_rex64): Ditto.
19611
19612 2008-05-05  Ira Rosen  <irar@il.ibm.com>
19613
19614         PR tree-optimization/36119
19615         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
19616         in case of SLP.
19617
19618 2008-06-04  Jan Hubicka  <jh@suse.cz>
19619
19620         tree-optimization/36100
19621         * tree-pass.h (pass_O0_always_inline): Declare.
19622         * ipa-inline.c (inline_transform): Remove dead code.
19623         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
19624         pass_O0_always_inline): New.
19625         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
19626
19627 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
19628
19629         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
19630         mnemonic in this_param move for TARGET_64BIT.
19631
19632 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
19633
19634         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
19635         (*strmovsi_rex_1): Ditto.
19636         (*strsetsi_1): Ditto.
19637         (*strsetsi_rex_1): Ditto.
19638
19639         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
19640         adddicc expanders using SWI mode iterator.
19641
19642 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
19643
19644         PR target/36121
19645         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
19646         argument handling.
19647
19648 2008-05-04  David S. Miller  <davem@davemloft.net>
19649
19650         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
19651         (sparc*-*-linux*): Use linux.h in tm_file.
19652         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
19653         compiler defaulting to 32-bit.
19654         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
19655         no longer needed.
19656         * config/sparc/linux.h: Remove definitions now obtained
19657         properly from linux.h
19658         * config/sparc/linux64.h: Likewise.
19659         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
19660         don't want this setting for 32-bit builds in a biarch compiler.
19661         * doc/install.texi: Add sparc-linux to list of targets
19662         supporting --enable-targets=all.
19663
19664 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
19665
19666         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
19667
19668 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
19669
19670         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
19671         after V4SI_FTYPE_V8HI.
19672         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
19673         case V4SI_FTYPE_V2DF.
19674
19675 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
19676
19677         * doc/invoke.texi (max-flow-memory-locations): Removed.
19678         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
19679
19680 2008-05-03  Richard Guenther  <rguenther@suse.de>
19681
19682         PR middle-end/34973
19683         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
19684
19685 2008-05-02  David S. Miller  <davem@davemloft.net>
19686
19687         * config.gcc (need_64bit_hwint): Document libcpp dependency.
19688
19689 2008-05-02  Simon Baldwin <simonb@google.com>
19690
19691         PR bootstrap/36108
19692         * c-common.h (warn_array_subscript_range): Removed.
19693         * c-common.c (warn_array_subscript_range): Ditto.
19694         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
19695         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
19696
19697 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
19698
19699         * config/i386/i386.c (ix86_special_builtin_type): New.
19700         (bdesc_special_args): Likewise.
19701         (ix86_expand_special_args_builtin): Likewise.
19702         (ix86_init_mmx_sse_builtins): Updated.
19703         (ix86_expand_builtin): Updated.
19704         (ix86_expand_store_builtin): Removed.
19705         (ix86_expand_unop_builtin): Likewise.
19706
19707         * config/i386/mm3dnow.h (__v2sf): Moved to ...
19708         * config/i386/mmintrin.h (__v2sf): Here.
19709
19710         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
19711         const __v2sf.
19712         (_mm_loadl_pi): Likewise.
19713         (_mm_storeh_pi): Replace __v2si with __v2sf.
19714         (_mm_storel_pi): Likewise.
19715
19716         * doc/extend.texi: Correct __builtin_ia32_loadhps,
19717         __builtin_ia32_loadlps, __builtin_ia32_storehps,
19718         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
19719         __builtin_ia32_loadlpd.
19720
19721 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
19722
19723         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
19724         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
19725         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
19726         (ix86_init_mmx_sse_builtins): Updated.
19727         (ix86_expand_args_builtin): Likewise.
19728         (ix86_expand_builtin): Likewise.
19729         (ix86_expand_unop1_builtin): Renamed to ...
19730         (ix86_expand_unop_vec_merge_builtin): This.
19731
19732 2008-05-01  Jan Hubicka  <jh@suse.cz>
19733
19734         PR bootstrap/36100
19735         * ipa-inline.c (inline_generate_summary): Make static.
19736         (inline_transform): Do not call inlining at -O0; make static.
19737         * passes.c (execute_todo): Add sanity check.
19738         (execute_one_ipa_transform_pass): Execute proper flags.
19739
19740 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
19741
19742         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
19743         (DECL_NONADDRESSABLE_P): Likewise.
19744         * alias.c (record_component_aliases): Fix comment.
19745
19746 2008-05-01  Simon Baldwin <simonb@google.com>
19747
19748         * c-common.h (warn_array_subscript_range): New function.
19749         * c-common.c (warn_array_subscript_range): Ditto.
19750         * tree-vrp.c (check_array_ref): Corrected code to agree with
19751         comment, ignoring only arrays of size 0 or size 1.
19752         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
19753
19754 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
19755
19756         * config/i386/i386.c (ix86_builtin_type): Replace
19757         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
19758         (bdesc_args): Updated.
19759         (ix86_init_mmx_sse_builtins): Likewise.
19760         (ix86_expand_args_builtin): Likewise.
19761
19762         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
19763         with __v1di.
19764
19765         * doc/extend.texi: Correct __builtin_ia32_palignr.
19766
19767 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
19768
19769         PR target/36095
19770         * config/i386/i386.c (bdesc_crc32): Removed.
19771         (ix86_expand_crc32): Likewise.
19772         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
19773         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
19774         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
19775         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
19776         UINT_FTYPE_UINT_UCHAR.
19777         (bdesc_args): Updated. Add crc32 builtins.
19778         (ix86_init_mmx_sse_builtins): Updated.
19779         (ix86_expand_args_builtin): Updated to support subreg.
19780
19781         * doc/extend.texi: Correct __builtin_ia32_crc32di.
19782
19783 2008-05-01  Jan Hubicka  <jh@suse.cz>
19784
19785         * tree-pass.h (opt_pass): Add IPA_PASS.
19786         (varpool_node, cgraph_node): Forward declare.
19787         (ipa_opt_pass): Define.
19788         (pass_ipa_inline): Turn into ipa_opt_pass.
19789         (pass_apply_inline): Remove.
19790         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
19791         (apply_inline): Turn into ....
19792         (inline_transform): ... this one.
19793         (inline_generate_summary): New function.
19794         (pass_apply_inline): Remove.
19795         * function.h (ipa_opt_pass): Forward declare structure; typedef;
19796         vector.
19797         (struct function): Add ipa_transforms_to_apply.
19798         * passes.c (register_one_dump_file): Work on IPA_PASS.
19799         (init_optimization_passes): Remove pass_inline_parameters and
19800         pass_apply_inline.
19801         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
19802         (execute_one_pass) ... here; apply transforms when possible.
19803         (add_ipa_transform_pass, execute_ipa_summary_asses,
19804         execute_one_ipa_transform_pass): New.
19805         (execute_ipa_pass_list): Update for IPA_PASS type.
19806
19807 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
19808
19809         * config/i386/i386.c (ix86_builtin_type): Add
19810         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
19811         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
19812         (bdesc_args): Add SSE4a builtins.
19813         (ix86_init_mmx_sse_builtins): Updated.
19814         (ix86_expand_args_builtin): Likewise.
19815         (ix86_expand_builtin): Likewise.
19816
19817 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
19818
19819         * config/i386/i386.c (ix86_builtin_type): Add
19820         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
19821         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
19822         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
19823         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
19824         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
19825         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
19826         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
19827         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
19828         and DI_FTYPE_DI_DI_INT.
19829         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
19830         (ix86_init_mmx_sse_builtins): Updated.
19831         (ix86_expand_args_builtin): Likewise.
19832         (ix86_expand_builtin): Likewise.
19833         (ix86_expand_binop_imm_builtin): Removed.
19834
19835         * doc/extend.texi: Correct __builtin_ia32_palignr128.
19836
19837 2008-04-30  Richard Guenther  <rguenther@suse.de>
19838
19839         PR tree-optimization/32921
19840         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
19841
19842 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
19843
19844         * config/arm/arm.c (arm_unwind_emit): Use
19845         crtl->all_throwers_are_sibcalls instead of
19846         cfun->all_throwers_are_sibcalls.
19847         (arm_output_fn_unwind): Likewise.
19848         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
19849         instead of cfun->uses_pic_offset_table.
19850         (frv_expand_prologue): Likewise.
19851         (frv_frame_pointer_required): Likewise.
19852         (frv_expand_fdpic_call): Likewise.
19853         (frv_emit_movsi): Likewise.
19854         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
19855         cfun->returns_pcc_struct instead of
19856         current_function_returns_pcc_struct.
19857         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
19858         instead of cfun->calls_eh_return.
19859         (m32c_pushm_popm): Likewise.
19860         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
19861         "extern" declaration.
19862
19863 2008-04-30  Richard Guenther  <rguenther@suse.de>
19864
19865         PR tree-optimization/21636
19866         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
19867         constant address.
19868         (evaluate_stmt): Print the likely value.
19869         (ccp_visit_stmt): Avoid excessive vertical spacing.
19870
19871 2008-04-30  Rafael Espíndola  <espindola@google.com>
19872
19873         * builtins.c (fold_call_expr): Return realret.
19874         * tree-ssa-threadedge.c
19875         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19876         __builtin_object_size.
19877
19878 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
19879
19880         * gcc.c (wrapper_string): New variable.
19881         (insert_wrapper): New function.
19882         (execute): New option -wrapper.
19883         * doc/invoke.texi (Overall Options): New driver option -wrapper.
19884
19885 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
19886
19887         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
19888         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
19889         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
19890         from...
19891         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
19892         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
19893         config/rs6000/e500crtres64gprctr.asm,
19894         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
19895         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
19896         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
19897         config/rs6000/e500crtsav64gprctr.asm,
19898         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
19899         config/rs6000/e500crtsavg64gprctr.asm: New files.
19900         * config/rs6000/t-ppccomm: Add build rules for new files.
19901         (LIB2FUNCS_STATIC_EXTRA): Add new files.
19902         * config/rs6000/t-netbsd: Add build rules for new files.
19903         (LIB2FUNCS_STATIC_EXTRA): New variable.
19904         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
19905         (CRTSAVRES_DEFAULT_SPEC): Likewise.
19906         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
19907
19908 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
19909
19910         * config/i386/i386.c (ix86_builtin_type): Add
19911         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
19912         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
19913         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
19914         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
19915         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
19916         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
19917         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
19918         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
19919         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
19920         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
19921         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
19922         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
19923         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
19924         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
19925         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
19926         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
19927         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
19928         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
19929         V1DI_FTYPE_V2SI_V2SI.
19930         (bdesc_2arg): Moved to ...
19931         (bdesc_args): Here.
19932         (ix86_init_mmx_sse_builtins): Updated.
19933         (ix86_expand_args_builtin): Updated.  Take a pointer
19934         to const struct builtin_description.  Handle comparison
19935         builtin functions.
19936         (ix86_expand_sse_compare): Take a new argument for swapping operands.
19937         (ix86_expand_builtin): Updated.
19938
19939         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
19940         (ssse3_pmaddubsw128): This.
19941         (ssse3_pmaddubswv4hi3): Renamed to ...
19942         (ssse3_pmaddubsw): This.
19943
19944         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
19945         (__builtin_ia32_packssdw128): Likewise.
19946         (__builtin_ia32_packuswb128): Likewise.
19947         (__builtin_ia32_pmaddubsw): Likewise.
19948         (__builtin_ia32_pmaddubsw128): Likewise.
19949
19950 2008-04-30  Richard Guenther  <rguenther@suse.de>
19951
19952         PR tree-optimization/14847
19953         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
19954         (recognize_bits_test): Use it.
19955         (recognize_single_bit_test): Likewise.
19956
19957 2008-04-30  Martin Jambor  <mjambor@suse.cz>
19958
19959         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
19960         instead of setting number of formal parameters to zero.
19961         (ipcp_init_stage): Do not set the number of actual parameters to zero
19962         either.
19963         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
19964         which are called with variable number of arguments.
19965         (ipcp_insert_stage): Explicitely skipping all nodes which are
19966         called with variable number of arguments.
19967         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
19968         number of parameters.
19969
19970         * ipa-prop.h (struct ipa_node_params): Added flag
19971         called_with_var_arguments
19972         (ipa_set_param_count): Added.  Changed sole setter to use it.
19973         (ipa_get_param_count): Added.  All readers of param_count
19974         converted to use it instead.
19975         (ipa_set_called_with_variable_arg): Added.
19976         (ipa_is_called_with_var_arguments): Added.
19977         (ipa_get_ith_param): Added.  All readers of param_decls converted
19978         to use it instead.
19979         (ipa_set_cs_argument_count): Added, sole writer to argument_count
19980         changed to use it.
19981         (ipa_get_cs_argument_count): Added, all readers of argument_count
19982         changed to cal it.
19983         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
19984         to use it.
19985
19986         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
19987         (struct ipcp_lattice): Renamed cval_type to type
19988         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
19989
19990         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
19991         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
19992         (ipcp_insert_stage): Changed the type of variable cvalue to tree
19993         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
19994         (build_const_val): Changed the type of parameter cvalue to tree
19995         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
19996         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
19997
19998         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
19999         constant
20000
20001         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
20002         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
20003         (ipa_add_method): Renamed to ipa_push_func_to_list
20004         (ipa_remove_method): Renamed to ipa_pop_func_from_list
20005         (ipa_callsite_param_count): Removed.
20006         (ipa_callsite_param_count_set): Removed.
20007         (ipa_callsite_param): Removed.
20008         (ipa_callsite_callee): Removed.
20009         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
20010         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
20011         (ipa_method_formal_count): Removed.
20012         (ipa_method_formal_count_set): Removed.
20013         (ipa_method_get_tree): Removed.
20014         (ipa_method_tree_map_create): Removed.
20015         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
20016         (ipa_create_param_decls_array): Creates the array itself
20017         (ipa_create_param_decls_array): Temporary variable info instead of
20018         a few dereferences.
20019         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
20020         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
20021         (get_type): Removed.
20022         (ipa_jf_get_info_type): Removed.
20023         (ipa_node_create): Renamed to ipa_create_node_params
20024         (ipa_free): Renamed to ipa_free_all_node_params
20025         (ipa_nodes_create): Renamed to ipa_create_all_node_params
20026         (ipa_edges_create): Renamed to ipa_create_all_edge_args
20027         (ipa_edges_free): Renamed to ipa_free_all_edge_args
20028         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
20029         (ipa_free_all_node_params): Deallocation to jump_functions moved to
20030         ipa_free_all_edge_args
20031         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
20032         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
20033         (ipa_create_methodlist_node): Removed.
20034         (ipa_methodlist_method): Removed.
20035         (ipa_methodlist_method_set): Removed.
20036         (ipa_methodlist_next_method): Removed.
20037         (ipa_methodlist_next_method_set): Removed.
20038         (ipa_method_is_modified): Removed.
20039         (ipa_method_modify_create): Removed.
20040         (ipa_method_modify_init): Temporary variable info instead of a few
20041         dereferences.
20042         (ipa_detect_param_modifications): Temporary variable info instead of
20043         a few dereferences.
20044         (ipa_compute_jump_functions): Temporary variable info instead of
20045         a few dereferences.
20046         (ipa_method_modify_set): Removed.
20047         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
20048         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
20049         than craph_node as the first parameter.
20050         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
20051         (ipa_method_modify_init): Removed.
20052         (ipa_compute_jump_functions): Added a temp variable instead of
20053         repeatadly dereferencing the cgraph_edge.aux pointer
20054         (ipa_callsite_param_set_type): Removed.
20055         (ipa_compute_jump_functions): i renamed to index and moved to
20056         an inner block
20057         (ipa_callsite_param_set_info_type_formal): Removed.
20058         (ipa_callsite_param_set_info_type): Removed.
20059         (ipa_callsite_param_map_create): Removed.
20060         (ipa_callsite_tree): Removed.
20061         (ipa_callsite_caller): Removed.
20062         (ipa_pop_func_from_list): return_method removed to return_func
20063
20064         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
20065         prefixed all values with IPA_. Changed all users.
20066         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
20067         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
20068         and FORMAL_IPATYPE IPA_PASS_THROUGH.
20069         (union parameter_info): Renamed to jump_func_value.
20070         (union jump_func_value): Renamed value to constant
20071         (struct ipa_jump_func): Renamed info_type to value
20072         (struct ipa_node): Renamed to ipa_node_params
20073         (struct ipa_node_params): Renamed ipa_arg_num to param_count
20074         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
20075         (struct ipa_node_params): Renamed ipa_mod to modified_flags
20076         (struct ipa_edge): Renamed to ipa_edge_args
20077         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
20078         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
20079         (struct ipa_methodlist): Renamed to ipa_func_list
20080         (struct ipa_func_list): method_p renamed to node, next_method
20081         renamed to next
20082         (ipa_methodlist_p): Removed, switched all users to struct pointer
20083         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
20084
20085 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
20086
20087         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
20088         (rs6000_emit_epilogue): Use backchain to restore only when we
20089         have a large frame.  Make use of frame pointer to restore if we
20090         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
20091
20092 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
20093
20094         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
20095         Add mode to zero_extract.
20096         (sign bit tests peepholes): (Ditto.).
20097
20098 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
20099
20100         * config/i386/i386.c (ix86_builtins): Replace Prescott New
20101         Instructions in comments with SSE3.
20102         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
20103         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
20104         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
20105         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
20106         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
20107         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
20108         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
20109         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
20110         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
20111         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
20112         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
20113         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
20114         (bdesc_sse_args): Renamed to ...
20115         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
20116         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
20117         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
20118         IX86_BUILTIN_FABSQ.
20119         (bdesc_1arg): Moved to ...
20120         (bdesc_args): Here.
20121         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
20122         Instructions in comments with SSE3.
20123         (ix86_expand_sse_operands_builtin): Renamed to ...
20124         (ix86_expand_args_builtin): This.  Updated.
20125         (ix86_expand_unop1_builtin): Update comments.
20126         (ix86_expand_builtin): Updated.
20127
20128 2008-04-29  Richard Guenther  <rguenther@suse.de>
20129
20130         PR tree-optimization/36078
20131         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
20132         Update virtual SSA form after cleaning up the CFG.
20133
20134 2008-04-29  Richard Guenther  <rguenther@suse.de>
20135
20136         PR middle-end/15255
20137         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
20138
20139 2008-04-29  Richard Guenther  <rguenther@suse.de>
20140
20141         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
20142         (compute_may_aliases): Do not call finalize_ref_all_pointers.
20143         (compute_flow_insensitive_aliasing): Do not treat
20144         PTR_IS_REF_ALL pointers special.
20145         (get_smt_for): Likewise.
20146         (may_alias_p): Re-structure.
20147         (is_escape_site): A ref-all pointer conversion is not an escape site.
20148         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
20149         PTR_IS_REF_ALL pointers special.
20150         * tree-ssa-structalias.h (struct alias_info): Remove
20151         ref_all_symbol_mem_tag field.
20152         (PTR_IS_REF_ALL): Remove.
20153
20154 2008-04-29  Richard Guenther  <rguenther@suse.de>
20155
20156         PR middle-end/36077
20157         * fold-const.c (extract_muldiv_1): In combining division constants
20158         make sure to never overflow.
20159
20160 2008-04-29  Nick Clifton  <nickc@redhat.com>
20161
20162         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
20163
20164 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20165
20166         PR bootstrap/35169
20167         * optc-gen.awk: Work around HP-UX/IA awk bug.
20168
20169 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
20170
20171         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
20172         2008-04-25 commit.
20173
20174 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
20175
20176         PR target/36073
20177         * config/i386/i386.md
20178         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
20179         Change operand 1 predicate to nonimmediate_operand.
20180
20181 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
20182
20183         PR debug/36060
20184         * dwarf2out.c (struct die_struct): Mark as chain_circular through
20185         die_sub field.
20186         * gengtype.c (walk_type, write_func_for_structure): Handle
20187         chain_circular.
20188         * doc/gty.texi: Document chain_circular.
20189
20190 2008-04-28  Richard Guenther  <rguenther@suse.de>
20191
20192         PR tree-optimization/36066
20193         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
20194         SCEV and loop.
20195
20196 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
20197
20198         PR target/36064
20199         * config/i386/i386.md
20200         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
20201         Use match_scratch instead of match_operand for operands 3 and 4.
20202
20203 2008-04-27  Richard Guenther  <rguenther@suse.de>
20204
20205         PR tree-optimization/18754
20206         PR tree-optimization/34223
20207         * tree-pass.h (pass_complete_unrolli): Declare.
20208         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
20209         loop size before and after unconditionally of UL_NO_GROWTH in effect.
20210         Rewrite loop into loop closed SSA form if it is not already.
20211         (tree_unroll_loops_completely): Re-structure to iterate over
20212         innermost loops with intermediate CFG cleanups.
20213         Unroll outermost loops only if requested or the code does not grow
20214         doing so.
20215         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
20216         loops are available.
20217         (tree_vectorize): Instead do so here.
20218         (tree_complete_unroll): Also unroll outermost loops.
20219         (tree_complete_unroll_inner): New function.
20220         (gate_tree_complete_unroll_inner): Likewise.
20221         (pass_complete_unrolli): New pass.
20222         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
20223         uses outside of the loop.
20224         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
20225         form if it is available.
20226         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
20227         * passes.c (init_optimization_passes): Schedule complete inner
20228         loop unrolling pass before the first CCP pass after final inlining.
20229
20230 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
20231
20232         * targhooks.h (default_emutls_var_fields,
20233         default_emutls_var_init): Declare.
20234         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
20235         * target.h (struct gcc_target): Add struct emutls member.
20236         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
20237         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
20238         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
20239         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
20240         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
20241         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
20242         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
20243         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
20244         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
20245         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
20246         emit debug information.
20247         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
20248         * varasm.c: Include targhooks.h.
20249         (emutls_object_section, emutls_tmpl_section): New.
20250         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
20251         (EMUTLS_SEPARATOR): New.
20252         (prefix_name): New.
20253         (get_emutls_object_name): New.
20254         (default_emutls_var_fields): New, broken out of ...
20255         (get_emutls_object_type): ... here.  Adjust to use target hooks.
20256         (get_emutls_init_templ_addr): Adjust to use target hooks.
20257         (emutls_decl): Adjust to use target hooks.
20258         (emutls_finish): Likewise.
20259         (default_emutls_var_init): New, broken out of ...
20260         (assemble_variable): ... here.  Adjust to use target hooks.
20261         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
20262         SECCAT_EMUTLS_TMPL.
20263         * c-common.c (handle_section_attribute): Prevent overriding
20264         sections for emulated tls with special sections.
20265         * config/i386/i386.c (x86_64_elf_select_section): Add
20266         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
20267         (x86_64_elf_unique_section): Likewise.
20268         * config/vxworks.c: Include tree.h.
20269         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
20270         (vxworks_override_options): Set TLS scheme.
20271         * doc/tm.texi (Emulated TLS): New node.
20272
20273 2008-04-26  Simon Baldwin <simonb@google.com>
20274
20275         PR c/35652
20276         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
20277         with propagated string constants.
20278
20279 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
20280
20281         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
20282         constraint for operand 2 when operand 0 is memory operand.
20283         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
20284         operand 0 is memory operand.
20285         (fix_trunc<mode>_i387_with_temp): Ditto.
20286         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
20287         operand 2 when operand 1 is memory operand.
20288         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
20289         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
20290         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
20291         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20292         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
20293         operands 2,3 and 4 when operand 1 is memory operand.
20294         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
20295         is memory operand.
20296         (fistdi2_floor_with_temp): Ditto.
20297         (fist<mode>2_floor_with_temp): Ditto.
20298         (fistdi2_ceil_with_temp): Ditto.
20299         (fist<mode>2_ceil_with_temp): Ditto.
20300         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
20301
20302 2008-04-26  David Daney  <ddaney@avtrex.com>
20303
20304         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
20305         unspec_volitile.
20306         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
20307         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
20308         UNSPEC_UPDATE_GOT_VERSION): Renumber.
20309         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
20310         (compare_and_swap_12): New insn.
20311         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
20312         * config/mips/mips.c (mips_force_binary): New function.
20313         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
20314         (mips_expand_compare_and_swap_12): New function.
20315         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
20316
20317 2008-04-25  Jan Hubicka  <jh@suse.cz>
20318
20319         PR testsuite/35843
20320         * cfgexpand.c (pass_expand): Turn into RTL pass.
20321         * passes.c (execute_one_pass): Do pass typechecking after execution.
20322         * tree-pass.h (pass_expand): Turn into RTL pass.
20323
20324         * function.h (struct rtl_data): Move here fields
20325         accesses_prior_frames, calls_eh_return, saves_all_registers,
20326         has_nonlocal_goto, has_asm_statement, is_thunk,
20327         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
20328         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
20329         arg_pointer_save_area_init from struct function; turn into bool.
20330         (struct function): Move
20331         calls_eh_return, saves_all_registers, has_nonlocal_goto,
20332         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
20333         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
20334         tail_call_emit, arg_pointer_save_area_init
20335         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
20336         (current_function_returns_struct, current_function_returns_pcc_struct,
20337         current_function_calls_setjmp, current_function_calls_alloca,
20338         current_function_accesses_prior_frames,
20339         current_function_calls_eh_return, current_function_is_thunk,
20340         current_function_stdarg, current_function_profile,
20341         current_function_limit_stack, current_function_uses_pic_offset_table,
20342         current_function_uses_const_pool, current_function_has_nonlocal_label,
20343         current_function_saves_all_registers,
20344         current_function_has_nonlocal_goto,
20345         current_function_has_asm_statement): Remove accesor macros.
20346         * ra-conflict.c (global_conflicts): Update.
20347         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
20348         (suitable_for_tail_call_opt_p): Update.
20349         * builtins.c (expand_builtin_return_addr): Update.
20350         (expand_builtin_setjmp_setup): Update.
20351         (expand_builtin_nonlocal_goto): Update.
20352         * final.c (final_start_function): Update.
20353         (profile_function): Update.
20354         (leaf_function_p): Update.
20355         (only_leaf_regs_used): Update.
20356         * df-scan.c (df_get_exit_block_use_set): Update.
20357         * dojump.c (clear_pending_stack_adjust): Update.
20358         * tree-stdarg.c (gate_optimize_stdarg): Update.
20359         * gimple-low.c (lower_function_body): Update.
20360         * global.c (compute_regsets): Update.
20361         (global_alloc): Update.
20362         * dwarf2out.c (dwarf2out_begin_prologue): Update.
20363         * expr.c (expand_assignment): Update.
20364         * dse.c (dse_step0): Update.
20365         (dse_step1): Update.
20366         * c-decl.c (store_parm_decls): Update.
20367         * local-alloc.c (combine_regs): Update.
20368         (find_free_reg): Update.
20369         * function.c (assign_parms_augmented_arg_list): Update.
20370         (assign_parm_find_data_types): Update.
20371         (assign_parms): Update.
20372         (allocate_struct_function): Update.
20373         (expand_function_start): Update.
20374         (expand_function_end): Update.
20375         (get_arg_pointer_save_area): Update.
20376         (thread_prologue_and_epilogue_insns): Update.
20377         (rest_of_match_asm_constraints): Update.
20378         * stor-layout.c (variable_size): Update.
20379         * gcse.c (gcse_main): Update.
20380         (bypass_jumps): Update.
20381         * gimplify.c (gimplify_function_tree): Update.
20382         * calls.c (emit_call_1): Update.
20383         (expand_call): Update.
20384         * bt-load.c (compute_defs_uses_and_gen): Update.
20385         * except.c (sjlj_assign_call_site_values): Update.
20386         (sjlj_emit_function_enter): Update.
20387         (can_throw_external): Update.
20388         (set_nothrow_function_flags): Update.
20389         (expand_builtin_unwind_init): Update.
20390         (expand_eh_return): Update.
20391         (convert_to_eh_region_ranges): Update.
20392         (output_function_exception_table): Update.
20393         * emit-rtl.c (gen_tmp_stack_mem): Update.
20394         * cfgexpand.c (expand_used_vars): Update.
20395         (tree_expand_cfg): Update.
20396         * cfgcleanup.c (rest_of_handle_jump): Update.
20397         * explow.c (allocate_dynamic_stack_space): Update.
20398         * varasm.c (assemble_start_function): Update.
20399         (force_const_mem): Update.
20400         (mark_constant_pool): Update.
20401         * tree-optimize.c (tree_rest_of_compilation): Update.
20402         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
20403         * tree-cfg.c (notice_special_calls): Update.
20404         (is_ctrl_altering_stmt): Update.
20405         (tree_can_make_abnormal_goto): Update.
20406         (tree_purge_dead_abnormal_call_edges): Update.
20407         * config/alpha/predicates.md: Update.
20408         * config/alpha/alpha.c (alpha_sa_mask): Update.
20409         (alpha_sa_size): Update.
20410         (alpha_does_function_need_gp): Update.
20411         (alpha_expand_prologue): Update.
20412         (alpha_start_function): Update.
20413         (alpha_output_function_end_prologue): Update.
20414         (alpha_expand_epilogue): Update.
20415         * config/frv/frv.c (frv_stack_info): Update.
20416         (frv_expand_epilogue): Update.
20417         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
20418         (s390_register_info): Update.
20419         (s390_frame_info): Update.
20420         (s390_init_frame_layout): Update.
20421         (s390_can_eliminate): Update.
20422         (save_gprs): Update.
20423         * config/spu/spu.c (spu_split_immediate): Update.
20424         (need_to_save_reg): Update.
20425         (spu_expand_prologue): Update.
20426         (spu_expand_epilogue): Update.
20427         * config/sparc/sparc.md: Update.
20428         * config/sparc/sparc.c (eligible_for_return_delay): Update.
20429         (sparc_tls_got): Update.
20430         (legitimize_pic_address): Update.
20431         (sparc_emit_call_insn): Update.
20432         (sparc_expand_prologue): Update.
20433         (output_return): Update.
20434         (print_operand): Update.
20435         (sparc_function_ok_for_sibcall): Update.
20436         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
20437         * config/m32r/m32r.md: Update.
20438         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
20439         (m32r_compute_frame_size): Update.
20440         (m32r_expand_prologue): Update.
20441         (m32r_expand_epilogue): Update.
20442         (m32r_legitimize_pic_address): Update.
20443         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
20444         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20445         * config/i386/i386.c (ix86_frame_pointer_required): Update.
20446         (gen_push): Update.
20447         (ix86_save_reg): Update.
20448         (ix86_compute_frame_layout): Update.
20449         (ix86_expand_prologue): Update.
20450         (ix86_expand_epilogue): Update.
20451         * config/sh/sh.c (output_stack_adjust): Update.
20452         (calc_live_regs): Update.
20453         (sh5_schedule_saves): Update.
20454         (sh_expand_prologue): Update.
20455         (sh_expand_epilogue): Update.
20456         (sh_setup_incoming_varargs): Update.
20457         (sh_allocate_initial_value): Update.
20458         (sh_get_pr_initial_val): Update.
20459         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
20460         * config/sh/sh.md (label:): Update.
20461         * config/avr/avr.c (out_movhi_mr_r): Update.
20462         * config/crx/crx.h (enum): Update.
20463         * config/xtensa/xtensa.h (along): Update.
20464         * config/stormy16/stormy16.c Update.
20465         (xstormy16_compute_stack_layout): Update.
20466         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
20467         (fr30_expand_prologue): Update.
20468         * config/cris/cris.c (cris_conditional_register_usage): Update.
20469         (cris_reg_saved_in_regsave_area): Update.
20470         (cris_initial_frame_pointer_offset): Update.
20471         (cris_simple_epilogue): Update.
20472         (cris_expand_prologue): Update.
20473         (cris_expand_epilogue): Update.
20474         (cris_expand_pic_call_address): Update.
20475         (cris_asm_output_symbol_ref): Update.
20476         (cris_asm_output_label_ref): Update.
20477         * config/cris/cris.md Update.
20478         * config/iq2000/iq2000.c (compute_frame_size): Update.
20479         (iq2000_expand_epilogue): Update.
20480         * config/mt/mt.h (save_direction): Update.
20481         * config/mn10300/mn10300.c (mn10300_function_value): Update.
20482         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20483         (ia64_secondary_reload_class): Update.
20484         * config/m68k/m68k.c (m68k_save_reg): Update.
20485         (m68k_expand_prologue): Update.
20486         (m68k_expand_epilogue): Update.
20487         (legitimize_pic_address): Update.
20488         * config/rs6000/rs6000.c (rs6000_got_register): Update.
20489         (first_reg_to_save): Update.
20490         (first_altivec_reg_to_save): Update.
20491         (compute_vrsave_mask): Update.
20492         (compute_save_world_info): Update.
20493         (rs6000_stack_info): Update.
20494         (spe_func_has_64bit_regs_p): Update.
20495         (rs6000_ra_ever_killed): Update.
20496         (rs6000_emit_eh_reg_restore): Update.
20497         (rs6000_emit_allocate_stack): Update.
20498         (rs6000_emit_prologue): Update.
20499         (rs6000_emit_epilogue): Update.
20500         (rs6000_output_function_epilogue): Update.
20501         (output_profile_hook): Update.
20502         (rs6000_elf_declare_function_name): Update.
20503         * config/rs6000/rs6000.h (rs6000_args): Update.
20504         * config/rs6000/rs6000.md: Update.
20505         * config/mcore/mcore.c (mcore_expand_prolog): Update.
20506         * config/arc/arc.c (arc_output_function_epilogue): Update.
20507         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
20508         * config/darwin.c (machopic_function_base_name): Update.
20509         * config/score/score3.c (score3_compute_frame_size): Update.
20510         (rpush): Update.
20511         (rpop): Update.
20512         (score3_epilogue): Update.
20513         * config/score/score7.c (score7_compute_frame_size): Update.
20514         (score7_prologue): Update.
20515         (score7_epilogue): Update.
20516         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
20517         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20518         * config/arm/arm.c (use_return_insn): Update.
20519         (require_pic_register): Update.
20520         (arm_load_pic_register): Update.
20521         (arm_compute_save_reg0_reg12_mask): Update.
20522         (arm_compute_save_reg_mask): Update.
20523         (thumb1_compute_save_reg_mask): Update.
20524         (output_return_instruction): Update.
20525         (arm_output_function_prologue): Update.
20526         (arm_output_epilogue): Update.
20527         (arm_get_frame_offsets): Update.
20528         (arm_expand_prologue): Update.
20529         (thumb_pushpop): Update.
20530         (thumb_exit): Update.
20531         (thumb1_expand_prologue): Update.
20532         (thumb1_expand_epilogue): Update.
20533         (arm_unwind_emit): Update.
20534         (arm_output_fn_unwind): Update.
20535         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
20536         * config/arm/arm.md: Update.
20537         * config/pa/pa.md: Update.
20538         * config/pa/pa.c (legitimize_pic_address): Update.
20539         (compute_frame_size): Update.
20540         (hppa_expand_prologue): Update.
20541         (hppa_expand_epilogue): Update.
20542         (borx_reg_operand): Update.
20543         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
20544         (HARD_REGNO_RENAME_OK): Update.
20545         * config/mips/mips.c (mips_global_pointer): Update.
20546         (mips_save_reg_p): Update.
20547         (mips_compute_frame_info): Update.
20548         (mips_frame_pointer_required): Update.
20549         (mips_expand_prologue): Update.
20550         (mips_expand_epilogue): Update.
20551         (mips_can_use_return_insn): Update.
20552         (mips_reorg_process_insns): Update.
20553         * config/v850/v850.c (compute_register_save_size): Update.
20554         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
20555         * config/mmix/mmix.c (along): Update.
20556         (mmix_expand_epilogue): Update.
20557         * config/bfin/bfin.c (legitimize_pic_address): Update.
20558         (must_save_p): Update.
20559         (stack_frame_needed_p): Update.
20560         (add_to_reg): Update.
20561         (bfin_expand_prologue): Update.
20562         * stmt.c (expand_asm_operands): Update.
20563         * reload1.c (reload): Update.
20564         (init_elim_table): Update.
20565
20566 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
20567
20568         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
20569
20570 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
20571
20572         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
20573         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
20574         (mov<mode>): Removed.
20575         (*movv4sf_internal): Likewise.
20576         (*movv2df_internal): Likewise.
20577
20578 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
20579
20580         * config.gcc (crx-*-elf): Remove deprecation.
20581
20582 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
20583
20584         * config/i386/cygming-crtend.c (register_frame_ctor): Register
20585         __gcc_deregister_frame with atexit.
20586         (deregister_frame_dtor): Remove.
20587
20588 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
20589             Nathan Sidwell  <nathan@codesourcery.com>
20590
20591         * config/rs6000/rs6000.opt (mspe): Remove Var property.
20592         (misel): Likewise.
20593         * config/rs6000/rs6000.h (rs6000_spe): Declare.
20594         (rs6000_isel): Likewise.
20595         * config/rs6000/rs6000.c (rs6000_spe): New variable.
20596         (rs6000_isel): New variable.
20597         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
20598
20599 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
20600
20601         PR c++/35758
20602         * c-common.c (handle_vector_size_attribute): Call
20603         lang_hooks.types.reconstruct_complex_type instead of
20604         reconstruct_complex_type.
20605         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
20606         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
20607         * langhooks.h (struct lang_hooks_for_types): Add
20608         reconstruct_complex_type hook.
20609         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
20610         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
20611
20612 2008-04-24  Richard Guenther  <rguenther@suse.de>
20613
20614         * c-common.h (check_builtin_function_arguments): Declare.
20615         * c-common.c (validate_nargs): New function.
20616         (check_builtin_function_arguments): Likewise.
20617         * c-typeck.c (build_function_call): Call
20618         check_builtin_function_arguments.
20619         * builtins.c (fold_builtin_classify): Remove error reporting code.
20620         (fold_builtin_unordered_cmp): Likewise.
20621         (fold_builtin_1): Likewise.
20622         (fold_builtin_n): Likewise.
20623
20624 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
20625
20626         PR tree-optimization/36008
20627         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
20628         the original op1, rather than delta by step.
20629
20630 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
20631             Sebastian Pop  <sebastian.pop@amd.com>
20632
20633         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
20634         eliminate_local_variables_stmt, eliminate_local_variables,
20635         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
20636         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
20637         of code delimited by two edges in the CFG.
20638         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
20639         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
20640         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
20641         the case of parallelisation of reductions.
20642         (expr_invariant_in_region_p): New.
20643
20644         * tree-flow.h (gather_blocks_in_sese_region): Declared.
20645         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
20646
20647 2008-04-24  Ira Rosen  <irar@il.ibm.com>
20648             Richard Guenther  <rguenther@suse.de>
20649
20650         PR tree-optimization/36034
20651         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
20652         incapable of dealing with loads with gaps.
20653
20654 2008-04-24  Rafael Espíndola  <espindola@google.com>
20655
20656         * tree-flow.h (vrp_evaluate_conditional): Change signature.
20657         * tree-ssa-propagate.c (fold_predicate_in): Update call to
20658         vrp_evaluate_conditional.
20659         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
20660         (vrp_evaluate_conditional): Split the cond argument.
20661         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
20662         (simplify_stmt_for_jump_threading): Update call to
20663         vrp_evaluate_conditional.
20664
20665 2008-04-24  Ira Rosen  <irar@il.ibm.com>
20666
20667         PR tree-optimization/35982
20668         * tree-vect-analyze.c (vect_check_interleaving): Check that the
20669         interleaved data-refs are of the same type.
20670
20671 2008-04-24  Danny Smith  <dannysmith@users.net>
20672
20673         * c-format.c (check_format_info_main): Use strncmp rather than a
20674         magic prefix to handle multichar length specs.
20675         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
20676         Don't prefix "I64" and "I32" with '\0'.
20677
20678 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
20679
20680         PR target/36015
20681         * config/i386/i386.c (init_cumulative_args): Don't pass anything
20682         in registers for -m32 only if stdarg_p (fntype).
20683
20684 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
20685
20686         PR rtl-optimization/36006
20687         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
20688         temp to op0 in order to avoid invalid rtx sharing.
20689
20690 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
20691
20692         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
20693         check TREE_INVARIANT.
20694         * tree-gimple.c (is_gimple_address): New.
20695         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
20696         * tree-gimple.h (is_gimple_address): New.
20697         * tree.h (decl_address_invariant_p): New.
20698         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
20699         (build_string): Likewise.
20700         (decl_address_invariant_p): New, from is_gimple_invariant_address.
20701         (tree_invariant_p_1): Likewise.
20702         (save_expr): Use it.
20703         (tree_invariant_p): New.
20704         (skip_simple_arithmetic): Use it.
20705         (stabilize_reference_1): Use it.
20706         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
20707         simplify.
20708         (build1_stat): Drop code to compute TREE_INVARIANT.
20709         (build2_stat): Drop code to compute TREE_INVARIANT.
20710         (build3_stat): Drop code to compute TREE_INVARIANT.
20711         (build4_stat): Drop code to compute TREE_INVARIANT.
20712         (build5_stat): Drop code to compute TREE_INVARIANT.
20713         (build7_stat): Drop code to compute TREE_INVARIANT.
20714         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
20715         * tree.h (struct tree_base): Remove invariant_flag.
20716         (TREE_INVARIANT): Remove.
20717         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
20718         (fold_builtin_expect): Check TREE_CONSTANT.
20719         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
20720         * c-tree.h (c_expr_to_decl): Drop third parameter.
20721         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
20722         (build_c_cast): Don't set TREE_INVARIANT.
20723         (pop_init_level): Don't set TREE_INVARIANT.
20724         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
20725         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
20726         TREE_CONSTANT.
20727         (gimplify_init_constructor): Don't set TREE_INVARIANT.
20728         (gimplify_addr_expr): Adjust comment.
20729         * tree-mudflap.c (mf_build_string):
20730         * print-tree.c (print_node): Don't print TREE_INVARIANT.
20731         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
20732         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
20733         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
20734         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
20735         * langhooks.h (struct lang_hooks): Drop third parameter from
20736         expr_to_decl.
20737
20738 2008-04-23  Richard Guenther  <rguenther@suse.de>
20739
20740         PR tree-optimization/27799
20741         PR tree-optimization/32921
20742         PR tree-optimization/32624
20743         * tree-ssa-structalias.c (merge_smts_into): Only merge the
20744         SMTs aliases and the tag itself into the solution.
20745         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
20746         merge the points-to solution back into the SMT aliases.
20747         (may_alias_p): Use alias_set_subset_of instead of
20748         aliases_conflict_p.  A pointer which points to
20749         memory with alias set zero may access any variable.
20750
20751 2008-04-23  Richard Guenther  <rguenther@suse.de>
20752
20753         * alias.c (alias_set_subset_of): Correctly handle asking
20754         if zero is a subset of an alias set with zero child.
20755         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
20756         (compute_flow_insensitive_aliasing): Correctly walk all
20757         pointers.  Do not unnecessarily union sets.
20758
20759 2008-04-23  Richard Guenther  <rguenther@suse.de>
20760
20761         PR middle-end/36021
20762         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
20763
20764 2008-04-22  Tomas Bily  <tbily@suse.cz>
20765
20766         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
20767         unreachable case.
20768         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
20769         NON_LVALUE_EXPR.
20770         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20771         * tree-ssa-structalias.c (get_constraint_for): Likewise.
20772         * tree-inline.c (estimate_num_insns_1): Likewise.
20773         * varasm.c (const_hash_1, compare_constant, copy_constant)
20774         (compute_reloc_for_constant, output_addressed_constants): Likewise.
20775         * emit-rtl.c (component_ref_for_mem_expr)
20776         (set_mem_attributes_minus_bitpos): Likewise.
20777         * expr.c (highest_pow2_factor, expand_expr_real_1, )
20778         (is_aligning_offset): Likewise.
20779         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
20780         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
20781         * dojump.c (do_jump): Likewise.
20782         * builtins.c (get_pointer_alignment, get_memory_rtx)
20783         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
20784         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
20785
20786 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
20787
20788         PR rtl-optimization/36017
20789         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
20790         expanding the library call.
20791
20792 2008-04-22  Ian Lance Taylor  <iant@google.com>
20793
20794         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
20795         than size_in_bytes.
20796
20797 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
20798
20799         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
20800         of LR/CTR moves for Power6.
20801
20802 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
20803
20804         PR middle-end/36003
20805         * passes.c (init_optimization_passes): Remove
20806         pass_fast_rtl_byte_dce.
20807
20808 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
20809
20810         PR target/29096
20811         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
20812         builtin functions to generate faster code.
20813         (_mm_cvtpu16_ps): Ditto.
20814         (_mm_cvtpi32x2_ps): Ditto.
20815
20816 2008-04-22  Nick Clifton  <nickc@redhat.com>
20817
20818         * common.opt (ftree-loop-distribution): Add Optimization
20819         attribute.
20820
20821         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
20822         (frv_expand_builtin_va_start): Likewise.
20823
20824         * config/arm/arm.c (thumb_find_work_register): Fix location of
20825         argument register count.
20826
20827 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
20828
20829         Support scheduling for ColdFire V1 and V3 microarchitecture.
20830         Improve scheduling of multiplication instructions.
20831
20832         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
20833         (mac): New instruction attribute.
20834         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
20835         (m68k_sched_mac): New variable.
20836         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
20837         Handle cfv1 and cfv3.
20838         (max_insn_size): New static variable.
20839         (struct _sched_ib): New type.
20840         (sched_ib): New static variable.
20841         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
20842         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
20843         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
20844         Update.
20845         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
20846         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
20847         new variables.  Update.
20848         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
20849         Add modeling of cfv3 instruction buffer.  Update.
20850         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
20851         * config/m68k/m68k.h (TUNE_CFV3): New macro.
20852         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
20853         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
20854         a particular reservation applies to.
20855         (type2): Reorganize attribute values.  Rename alu to alu_reg,
20856         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
20857         to mul_l and mul_w.
20858         (cf_ib_*): Simplify description of instruction buffer.
20859         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
20860         (cf_mem): Split into cf_mem1 and cf_mem2.
20861         (cf_v2_move_??): Rename to cfv12_alu_??.
20862         (cf_v2_move_l_??): Rename to cfv12_omove_??.
20863         (cf_v2_mul_??): Remove reservations.
20864         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
20865         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
20866         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
20867         appropriate place.
20868         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
20869         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
20870         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
20871         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
20872         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
20873         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
20874         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
20875         expansions of the above reservations for instructions of sizes
20876         1, 2 and 3 words.
20877
20878 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
20879
20880         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
20881
20882 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
20883
20884         * coverage.c: Include tree-pass.h.
20885         (coverage_counter_alloc): Print da_file_name to the dump file.
20886
20887 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
20888
20889         * sbitmap.c (sbitmap_range_empty_p): New function.
20890         * sbitmap.h (sbitmap_range_empty_p): New function.
20891         * bitmap.h: Now includes obstack.h.
20892
20893 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
20894             Kenneth Zadeck  <zadeck@naturalbridge.com>
20895
20896         * dbgcnt.def (ra_byte_scan): Added.
20897         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
20898         when the last hit happens for a counter.
20899         * timevar.def (TV_DF_BYTE_LR): New variable.
20900         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
20901         * passes.c (pass_fast_rtl_byte_dce): New pass.
20902         * fwprop.c (update_df): Added mode to call df_ref_create.
20903         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20904         DF_REF_EXTRACT_OFFSET.
20905         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
20906         DF_BYTE_LR_OUT, df_byte_lr): New macro.
20907         (df_mm): New enum.
20908         (df_ref_extract): Added mode field.
20909         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
20910         DF_REF_EXTRACT_OFFSET.
20911         (DF_REF_EXTRACT_MODE): New macro.
20912         (df_byte_lr_bb_info): New structure.
20913         (df_print_byte_regset, df_compute_accessed_bytes,
20914         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
20915         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
20916         df_byte_lr_simulate_uses,
20917         df_byte_lr_simulate_artificial_refs_at_top,
20918         df_byte_lr_simulate_artificial_refs_at_end,
20919         df_compute_accessed_bytes): New function.
20920         (df_ref_create): Add parameter.
20921         (df_byte_lr_get_bb_info): New inline function.
20922         * df-scan.c (df_ref_record, df_uses_record,
20923         df_ref_create_structure): Added mode parameter.
20924         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
20925         df_defs_record, df_uses_record, df_get_conditional_uses,
20926         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
20927         df_entry_block_defs_collect, df_exit_block_uses_collect):
20928         Added mode parameter to calls to df_ref_record, df_uses_record,
20929         df_ref_create_structure.
20930         (df_ref_equal_p, df_ref_compare): Added test for modes.
20931         (df_ref_create_structure): Added code to set mode.  Renamed
20932         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20933         DF_REF_EXTRACT_OFFSET.
20934         * df-core.c (df_print_byte_regset): New function.
20935         * df-byte-scan.c: New file.
20936         * df-problems.c (df_rd_transfer_function): Removed unnecessary
20937         calls to BITMAP_FREE.
20938         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
20939         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
20940         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
20941         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
20942         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
20943         df_byte_lr_local_compute, df_byte_lr_init,
20944         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20945         df_byte_lr_transfer_function, df_byte_lr_free,
20946         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
20947         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
20948         df_byte_lr_simulate_uses,
20949         df_byte_lr_simulate_artificial_refs_at_top,
20950         df_byte_lr_simulate_artificial_refs_at_end): New function.
20951         * dce.c (byte_dce_process_block): New function.
20952         (dce_process_block): au is now passed in rather than computed
20953         locally.  Changed loops that look at artificial defs to not look
20954         for conditional or partial ones, because there never are any.
20955         (fast_dce): Now is able to drive byte_dce_process_block or
20956         dce_process_block depending on the kind of dce being done.
20957         (rest_of_handle_fast_dce): Add parameter to fast_dce.
20958         (rest_of_handle_fast_byte_dce): New function.
20959         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
20960         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
20961
20962 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
20963
20964         PR fortran/35019
20965         * gcc.h: Added fortran options that take arguments to
20966         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
20967         macros.
20968
20969 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20970
20971         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
20972         scalarization if on the LHS and not a full access.
20973
20974 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20975
20976         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
20977
20978 2008-04-18  Rafael Espíndola  <espindola@google.com>
20979
20980         * tree-vrp.c (find_case_label_index): Fix the binary search.
20981         (find_case_label_range): New.
20982         (vrp_visit_switch_stmt): Use find_case_label_range.
20983         (simplify_switch_using_ranges): Use find_case_label_range.
20984
20985 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20986
20987         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
20988         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
20989
20990 2008-04-18  Tom Tromey  <tromey@redhat.com>
20991
20992         PR libcpp/15500:
20993         * doc/cpp.texi (Implementation-defined behavior): Mention
20994         -finput-charset.
20995
20996 2008-04-18  Ian Lance Taylor  <iant@google.com>
20997
20998         * fold-const.c (pointer_may_wrap_p): New static function.
20999         (fold_comparison): Add another test for pointer overflow.  Use
21000         pointer_may_wrap_p to disable some false positives.
21001
21002 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
21003
21004         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
21005         (fname_as_string): Match updated cpp_interpret_string prototype.
21006         (fix_string_type): Support char16_t* and char32_t*.
21007         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
21008         derivative) nodes.  Register as builtin if C++0x.
21009         (c_parse_error): Support CPP_CHAR{16,32}.
21010         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
21011         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
21012         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
21013         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
21014         CTI_CHAR32_ARRAY_TYPE>: New elements.
21015         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
21016         char32_type_node, signed_char32_type_node, char16_array_type_node,
21017         char32_array_type_node): New defines.
21018         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
21019         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
21020         (lex_string): Support CPP_STRING{16,32}, match updated
21021         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
21022         (lex_charconst): Support CPP_CHAR{16,32}.
21023         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
21024         and CPP_STRING{16,32}.
21025
21026 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
21027
21028         PR bootstrap/35457
21029         * aclocal.m4: Regenerate.
21030         * configure: Regenerate.
21031
21032 2008-04-18  Jan Hubicka  <jh@suse.cz>
21033
21034         * except.c (dw2_size_of_call_site_table,
21035         sjlj_size_of_call_site_table): Use vector API for call_site_record.
21036
21037         * cgraphbuild.c (build_cgraph_edges): Update.
21038         * tree-pass.h: Update comment.
21039         * final.c (leaf_function_p): Update.
21040         (leaf_renumber_regs): Update.
21041         (rest_of_clean_state): Update.
21042         * omp-low.c (expand_omp_parallel): Update.
21043         * ipa-reference.c (analyze_function): Update.
21044         * reorg.c (find_end_label): Update.
21045         (optimize_skip): Update.
21046         (fill_simple_delay_slots): Update.
21047         (fill_simple_delay_slots): Update.
21048         (make_return_insns): Update.
21049         (dbr_schedule): Update.
21050         * gimple-low.c (record_vars_into): Update.
21051         * cfgbuild.c (make_edges): Update.
21052         * function.c (assign_stack_local): Update.
21053         (assign_parm_adjust_stack_rtl): Update.
21054         (locate_and_pad_parm): Update.
21055         (allocate_struct_function): Do not initialize stack_alignment_needed
21056         and preferred_stack_boundary here.
21057         (stack_protect_prologue): Update.
21058         (stack_protect_epilogue): Update.
21059         (expand_function_start): Initialize stack_alignment_needed,
21060         preferred_stack_boundary and max_jumptable_ents.
21061         (expand_function_end): Update.
21062         (free_after_compilation): Do not NULLify epilogue_delay_list.
21063         * function.h (struct rtl_data): Add stack_protect_guard,
21064         stack_alignment_needed,
21065         preferred_stack_boundary, epilogue_delay_list.
21066         (struct function): Remove value_histograms, stack_alignment_needed,
21067         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
21068         last_label_uid,
21069         unexpanded_var_list, stack_protect_guard.
21070         (current_function_epilogue_delay_list): Remove.
21071         * ipa-type-escape.c (analyze_function): Update.
21072         * gimplify.c (pop_gimplify_context): Update comment.
21073         * calls.c (expand_call): Update.
21074         (emit_library_call_value_1): Update.
21075         * except.c (set_nothrow_function_flags): Update.
21076         * cfgexpand.c (get_decl_align_unit): Update.
21077         (create_stack_guard): Update.
21078         (estimated_stack_frame_size): Update.
21079         (expand_used_vars): Update.
21080         (tree_expand_cfg): Free histogram earliers, init expansion variables.
21081         * explow.c (allocate_dynamic_stack_space): Update.
21082         * tree-ssa-live.c (remove_unused_locals): Update.
21083         * varasm.c (mark_constant_pool): Update.
21084         * tree-inline.c (remap_decls): Update.
21085         (initialize_cfun): Update.
21086         (declare_return_variable): Update.
21087         (inline_forbidden_p): Update.
21088         (expand_call_inline): Update.
21089         (declare_inline_vars): Update.
21090         (tree_function_versioning): Update.
21091         * tree-flow.h (value_histograms): New.
21092         (VALUE_HISTOGRAMS): New macro.
21093         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
21094         last_label_uid.
21095         * tree-cfg.c (set_bb_for_stmt): Update.
21096         (replace_by_duplicate_decl): Update.
21097         (move_block_to_fn): Update.
21098         (new_label_mapper): Update.
21099         (dump_function_to_file): Update.
21100         * ipa-struct-reorg.c (build_data_structure): Update.
21101         * cfgrtl.c (print_rtl_with_bb): Update.
21102         * reload1.c (reload): Update.
21103         (reload): Update.
21104         * config/i386/i386.c (setup_incoming_varargs_64,
21105         ix86_compute_frame_layout): Update.
21106         * config/arc/arc.c (arc_output_function_epilogue): Update.
21107
21108 2008-04-18  Marius Strobl <marius@FreeBSD.org>
21109
21110         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
21111         for FreeBSD as well.
21112         * gthr-posix95.h: Likewise.
21113
21114 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
21115
21116         PR rtl-optimization/35838
21117         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
21118         out the byte offset of the first subreg.
21119
21120 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
21121
21122         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
21123         to split_ti instead of three separate calls with single member arrays.
21124         (subti3 splitter): Ditto.
21125         (adddi3 splitter): Ditto with split_di.
21126         (subdi3 splitter): Ditto.
21127         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
21128         two separate calls with single member arrays.  Swap match_dup
21129         operands 1 and 2 to better fit into the array.
21130         (negdi2 splitter): Ditto with split_di.
21131         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
21132         two separate calls with single member arrays.  Swap match_dup operands
21133         6 and 7 to better fit into the array.
21134
21135 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21136
21137         * config/i386/i386.c (sse_builtin_type): New.
21138         (bdesc_sse_args): Likewise.
21139         (bdesc_sse_3arg): Removed.
21140         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
21141         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
21142         IX86_BUILTIN_ROUNDPS.
21143         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
21144         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
21145         IX86_BUILTIN_ROUNDPS.
21146         (ix86_expand_sse_4_operands_builtin): Removed.
21147         (ix86_expand_sse_operands_builtin): New.
21148         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
21149         and CODE_FOR_sse4_1_roundps.
21150         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
21151         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
21152
21153 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
21154
21155         PR target/35907
21156         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
21157         regs before frame pop when needed.  If use_backchain_to_restore_sp
21158         then load backchain into a temp reg to restore vr and vrsave.  Add
21159         code to restore vr after frame pop if possible.
21160
21161 2008-04-17  Richard Guenther  <rguenther@suse.de>
21162
21163         * tree-vn.c (expressions_equal_p): Do not check type
21164         equality or compatibility before calling operand_equal_p.
21165         * fold-const.c (operand_equal_p): Check equivalence of
21166         integer constants before bailing out due to signedness or
21167         precision differences.
21168         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
21169         spurious differences in type qualification.  Ignore types
21170         for COMPONENT_REFs at all.
21171
21172 2008-04-17  Christian Bruel  <christian.bruel@st.com>
21173
21174         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
21175         msw_skip comparison.
21176
21177 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
21178
21179         PR c/35739
21180         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
21181         reg type.
21182
21183         PR tree-optimization/35899
21184         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
21185         rather than TREE_OPERAND.
21186
21187 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
21188
21189         PR target/35944
21190         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
21191         temporary registers.  Change operand predicate to general_operand.
21192         (remainderxf3): Ditto.
21193
21194 2008-04-16  Richard Guenther  <rguenther@suse.de>
21195
21196         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
21197         * tree-affine.c (aff_combination_expand): Look through some
21198         conversions.
21199
21200 2008-04-15  Doug Kwan  <dougkwan@google.com>
21201
21202         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
21203         for hex printing.
21204         * tree-pretty-print.c (dump_generic_node): Ditto.
21205         * final.c (output_addr_const): Ditto.
21206         * dwarf2out.c (output_cfi): Ditto.
21207         * c-pretty-print.c (pp_c_integer_constant): Ditto.
21208         * print-rtl.c (print_rtx): Ditto.
21209         * print-tree.c (print_node_brief, print_node): Ditto.
21210         * c-common.c (match_case_to_enum_1): Ditto.
21211         * sched-vis.c (print_value): Ditto.
21212         * config/i386/i386.c (print_operand): Cast to long unsigned int
21213         for hex printing.
21214
21215 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
21216         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
21217         MS Windows VirtualProtect function.
21218
21219 2008-04-15  Jan Hubicka  <jh@suse.cz>
21220
21221         * gengtype.c (write_root): Param_is argument is OK.
21222         * expr.c (expand_expr_real_1): Update call of get_exception_*.
21223         * function.h: Include varray.h
21224         (rtl_eh): New stucture based on except.c one.
21225         (call_site_record): New forward declaration and vector type.
21226         * calls.c (emit_call_1): Do not call
21227         note_current_region_may_contain_throw.
21228         * except.c (eh_status): Remove cur_region, try_region since they are
21229         unused.
21230         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
21231         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
21232         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
21233         Remove call_site_data_used, call_site_data_size.
21234         Turn call_site_record into vector in function.h.
21235         (note_current_region_may_contain_throw): Remove.
21236         (get_exception_pointer, get_exception_filter): Do not take struct
21237         function argument; update.
21238         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
21239         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
21240         build_post_landing_pads, dw2_build_landing_pads,
21241         sjlj_assign_call_site_values, sjlj_mark_call_sites,
21242         sjlj_emit_function_enter, sjlj_emit_function_enter,
21243         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
21244         sjlj_build_landing_pads, finish_eh_generation,
21245         remove_exception_handler_label, remove_eh_handler,
21246         maybe_remove_eh_handler, add_reachable_handler,
21247         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
21248         add_action_record, collect_one_action_chain, add_call_site,
21249         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
21250         sjlj_output_call_site_table, output_function_exception_table,
21251         * except.h (note_current_region_may_contain_throw): Remove
21252         (get_exception_pointer, get_exception_filter): Do not take struct
21253         function argument.
21254         * Makefile.in (GTFILES): Put varargs before struct function.
21255
21256 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21257
21258         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
21259         punt for STRING_CST.
21260         (get_constraint_for): Deal with STRING_CST here instead.
21261
21262 2008-04-15  Richard Guenther  <rguenther@suse.de>
21263
21264         * tree-ssa-propagate.c (substitute_and_fold): Substitute
21265         statements in a basic-block with a backward walk.  Do not
21266         substitute into dead statements but instead remove those.
21267
21268 2008-04-15  Richard Guenther  <rguenther@suse.de>
21269
21270         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
21271         to zero, thus disable creation of SFTs.
21272
21273 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21274
21275         * tree-predcom.c (suitable_reference_p): Return false if the
21276         reference can throw.
21277
21278 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
21279
21280         PR c/35751
21281         * c-decl.c (finish_decl): If extern or static var has variable
21282         size, set TREE_TYPE (decl) to error_mark_node.
21283
21284 2008-04-15  Rafael Espíndola  <espindola@google.com>
21285
21286         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
21287         variable arg1.
21288
21289 2008-04-15  Richard Guenther  <rguenther@suse.de>
21290
21291         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21292         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
21293         (visit_reference_op_load): Do walk vuse-vdef chains on
21294         vn_reference_lookup.
21295         (visit_reference_op_store): But do not here.
21296         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
21297         vn_reference_lookup.
21298         (vn_lookup_with_vuses): But do so here.
21299
21300 2008-04-14  Ian Lance Taylor  <iant@google.com>
21301
21302         * fold-const.c (fold_overflow_warning): Remove assertion.
21303
21304 2008-04-15  Ben Elliston  <bje@au.ibm.com>
21305
21306         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
21307         temp1 local variables.
21308
21309 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
21310
21311         PR target/35661
21312         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
21313         ".text.unlikely" section as executable.
21314
21315 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
21316
21317         * config/ia64/ia64.c (rtx_needs_barrier): Handle
21318         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
21319         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
21320         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
21321         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
21322         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
21323         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
21324
21325 2008-04-14  Ian Lance Taylor  <iant@google.com>
21326
21327         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
21328         * fold-const.c (fold_comparison): If appropriate, test
21329         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
21330         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
21331         reassociating a pointer type.
21332         * doc/invoke.texi (Optimize Options): Document that
21333         -fstrict-overflow applies to pointer wraparound.
21334
21335 2008-04-13  Jan Hubicka  <jh@suse.cz>
21336
21337         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
21338
21339 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
21340
21341         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
21342         we are going to "save the world".
21343
21344 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
21345
21346         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
21347         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
21348         operand 0 constraint, not "=".
21349
21350 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
21351
21352         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
21353
21354 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
21355
21356         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
21357         of size of positions_needed * CHAR_BIT.
21358
21359 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
21360
21361         PR middle-end/35897
21362         * dse.c (store_info): Change positions_needed to unsigned
21363         HOST_WIDE_INT.
21364         (lowpart_bitmask): New.
21365         (record_store): Cast to unsigned HOST_WIDE_INT for
21366         positions_needed.  Assert width <= size of positions_needed *
21367         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
21368         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
21369         lowpart_bitmask to set mask.
21370
21371 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
21372
21373         * config/bfin/constraints.md: New file.
21374         * config/bfin/bfin.md: Include it.
21375         (adddi3): Use satisfies_constraint functions instead of the old macros.
21376         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
21377         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
21378         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
21379         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
21380         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
21381         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
21382         EXTRA_CONSTRAINT): Delete.
21383         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
21384         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
21385         of the old macros.
21386         * config/bfin/bfin.c: Include "tm-constrs.h".
21387         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
21388         Use satisfies_constraint functions instead of the old macros.
21389         * doc/md.texi (Blackfin Constraints): Update file name reference.
21390
21391 2008-04-11  Richard Guenther  <rguenther@suse.de>
21392
21393         PR tree-optimization/35869
21394         * tree-vrp.c (execute_vrp): Move switch statement update after
21395         jump threading.  Schedule another cfg cleanup run.
21396
21397 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
21398
21399         PR c/35744
21400         * attribs.c (decl_attributes): Return early on errorneous node.
21401
21402 2008-04-10  Oleg Ryjkov  <olegr@google.com>
21403
21404         * tree.h (struct tree_base): Added a new flag default_def_flag.
21405         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
21406
21407 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
21408
21409         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
21410
21411 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21412
21413         PR target/35768
21414         * pa.md: Define mode iterator P.  Define mode attribute dwc.
21415         (dcacheflush): Update pattern to use iterator P and attribute dwc.
21416         (icacheflush): Likewise.
21417         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
21418         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
21419
21420 2008-04-11  Ben Elliston  <bje@au.ibm.com>
21421
21422         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
21423
21424 2008-04-10  Rafael Espíndola  <espindola@google.com>
21425
21426         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
21427         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
21428         (extract_range_from_expr): The same.
21429
21430 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
21431
21432         * config/mips/mips.md (GPR2): New mode iterator.
21433         (seq): Add comment.
21434         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
21435         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
21436         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
21437         Rewrite these to take two modes, the mode of comparison and the
21438         mode of the destination.
21439         * config/mips/mips.c (mips_expand_scc): Instead of having
21440         paradoxical subreg as destination, expand "narrowing" scc if mode
21441         of comparison is SI and target is requested in DI mode.
21442         (mips_emit_int_order_test): Update comment.  Make mode of
21443         comparison match CMP0 rather than TARGET.  When creating inverse
21444         target use mode of TARGET.
21445
21446 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
21447
21448         * gcov-dump.c (tag_summary): Only print summaries for the first
21449         GCOV_COUNTERS_SUMMABLE counters.
21450
21451 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
21452
21453         * config/i386/i386.md (absneg): New code iterator.
21454         (absnegprefix): New code attribute.
21455         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
21456         patterns using absneg code iterator.
21457         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
21458         using absneg code iterator.
21459         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
21460         *neg<mode>2 patterns using absneg code iterator.
21461         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21462         *negextendsfdf2 patterns using absneg code iterator.
21463         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
21464         *negextendsfxf2 patterns using absneg code iterator.
21465         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21466         *negextendsfdf2 patterns using absneg code iterator.
21467         * config/i386/sse.md (<code><mode>2): Macroize expander from
21468         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
21469
21470 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
21471
21472         * config/s390/s390.h: Remove the remains of the recent search
21473         & replace action of current_function_outgoing_args_size.
21474
21475 2008-04-10  Ira Rosen  <irar@il.ibm.com>
21476
21477         PR tree-optimization/35821
21478         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
21479         NEW_STMT_LIST is not NULL.
21480
21481 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
21482
21483         PR libstdc++/35597
21484         * toplev.c (process_options): Remove -ffunction-sections debugging
21485         warning.
21486
21487 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
21488
21489         PR middle-end/PR28690
21490         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
21491         than gen_rtx_fmt_ee to perform more canonicalizations.
21492
21493 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21494
21495         PR driver/35665
21496         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
21497
21498 2008-04-09  Richard Guenther  <rguenther@suse.de>
21499
21500         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
21501         (dump_function_to_file): Dump function arguments with types.
21502
21503 2008-04-08  Richard Guenther  <rguenther@suse.de>
21504
21505         * fold-const.c (fold_widened_comparison): Do not allow
21506         sign-changes that change the result.
21507
21508 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
21509
21510         PR target/35839
21511         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
21512         kinds of indirect references.
21513
21514 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
21515
21516         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
21517         GNU Fortran language string.
21518
21519 2008-04-08  Rafael Espíndola  <espindola@google.com>
21520
21521         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
21522         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
21523         * tree.h (tree_call_nonnegative_warnv_p): New.
21524
21525 2008-04-08  Jan Hubicka  <jh@suse.cz>
21526
21527         * function.c (free_after_compilation): Clear out regno_reg_rtx
21528         pointer.
21529
21530 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
21531
21532         Revert
21533         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
21534
21535         PR middle-end/PR28690
21536         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
21537         same precedence as REG_POINTER and MEM_POINTER operands.
21538
21539 2008-04-08  Richard Guenther  <rguenther@suse.de>
21540
21541         PR middle-end/35834
21542         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
21543         for adding index to base.
21544
21545 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
21546
21547         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
21548         (MINGW_ENABLE_EXECUTE_STACK): New.
21549         (IN_LIBGCC2): For libgcc include windows.h file for
21550         function declarations.
21551
21552 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
21553
21554         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
21555         and tem2 if tem1 is not a REG or MULT.
21556
21557 2008-04-08  Jan Hubicka  <jh@suse.cz>
21558
21559         * function.h (incomming_args): Break out of struct function.
21560         (function_subsections): Break out of struct function.
21561         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
21562         return_rtx and hard_reg_initial_vals from struct function.
21563         Kill inl_max_label_num.
21564         (current_function_pops_args, current_function_args_info,
21565         current_function_args_size, current_function_args_size,
21566         current_function_pretend_args_size,
21567         current_function_outgoing_args_size,
21568         current_function_internal_arg_pointer, current_function_return_rtx):
21569         Kill compatibility accestor macros.
21570         * builtins.c (expand_builtin_apply_args_1): Update.
21571         (expand_builtin_next_arg): Update.
21572         * df-scan.c (df_get_call_refs): Update.
21573         * dbxout.c (dbxout_function_end): Update.
21574         * dwarf2out.c (dwarf2out_switch_text_section): Update.
21575         (output_line_info): Update.
21576         (secname_for_decl): Update.
21577         (dwarf2out_var_location): Update.
21578         * function.c (free_after_compilation): Update.
21579         (assign_parm_find_stack_rtl): Update.
21580         (assign_parms): Update.
21581         (expand_dummy_function_end): Update.
21582         (expand_function_end): Update.
21583         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
21584         (expand_call): Update.
21585         (emit_library_call_value_1): Update.
21586         (store_one_arg): Update.
21587         * varasm.c (initialize_cold_section_name): Update.
21588         (unlikely_text_section): Update.
21589         (unlikely_text_section_p): Update.
21590         (assemble_start_function): Update.
21591         (assemble_end_function): Update.
21592         (default_section_type_flags): Update.
21593         (switch_to_section): Update.
21594         * integrate.c (set_decl_abstract_flags): Update.
21595         (get_hard_reg_initial_val): Update.
21596         (has_hard_reg_initial_val): Update.
21597         (allocate_initial_values): Update.
21598         * resource.c (init_resource_info): Update.
21599         * config/alpha/alpha.c (NUM_ARGS): Update.
21600         (direct_return): Update.
21601         (alpha_va_start): Update.
21602         (alpha_sa_size): Update.
21603         (alpha_initial_elimination_offset): Update.
21604         (alpha_expand_prologue): Update.
21605         (alpha_start_function): Update.
21606         (alpha_expand_epilogue): Update.
21607         (unicosmk_initial_elimination_offset):
21608         * config/alpha/alpha.md (call expander): Update.
21609         * config/s390/s390.c (s390_register_info): Update.
21610         (s390_register_info): Update.
21611         (s390_frame_info): Update.
21612         (s390_initial_elimination_offset): Update.
21613         (s390_build_builtin_va_list): Update.
21614         (s390_va_start): Update.
21615         * config/spu/spu.c (direct_return): Update.
21616         (spu_expand_prologue): Update.
21617         (spu_initial_elimination_offset): Update.
21618         (spu_build_builtin_va_list): Update.
21619         (spu_va_start): Update.
21620         * config/sparc/sparc.c (sparc_init_modes): Update.
21621         (sparc_compute_frame_size): Update.
21622         (function_value): Update.
21623         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
21624         * config/i386/i386.md (return expander): Update.
21625         * config/i386/i386.c (ix86_va_start): Update.
21626         (ix86_can_use_return_insn_p): Update.
21627         (ix86_compute_frame_layout): Update.
21628         (ix86_expand_epilogue): Update.
21629         * config/sh/sh.c (output_stack_adjust): Update.
21630         (calc_live_regs): Update.
21631         (sh_expand_prologue): Update.
21632         (sh_builtin_saveregs): Update.
21633         (sh_va_start): Update.
21634         (initial_elimination_offset): Update.
21635         (sh_allocate_initial_value): Update.
21636         (sh_function_ok_for_sibcall): Update.
21637         (sh_get_pr_initial_val): Update.
21638         * config/sh/sh.md (return expander): Update.
21639         * config/avr/avr.c (frame_pointer_required_p): UPdate.
21640         * config/crx/crx.c (crx_compute_frame): UPdate.
21641         (crx_initial_elimination_offset): UPdate.
21642         * config/xtensa/xtensa.c (compute_frame_size): Update
21643         (xtensa_builtin_saveregs): Update.
21644         (xtensa_va_start): Update.
21645         (order_regs_for_local_alloc): Update.
21646         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
21647         (xstormy16_expand_builtin_va_start): Update.
21648         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
21649         * config/m68hc11/m68hc11.md (return expanders): Update.
21650         * config/m68hc11/m68hc11.c (expand_prologue): Update.
21651         (expand_epilogue): Update.
21652         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
21653         (cris_simple_epilogue): Update.
21654         (cris_expand_prologue): Update.
21655         (cris_expand_epilogue): Update.
21656         * config/iq2000/iq2000.c (iq2000_va_start): Update.
21657         (compute_frame_size): Update.
21658         * config/mt/mt.c (mt_compute_frame_size): Update.
21659         * config/mn10300/mn10300.c (expand_prologue): Update.
21660         (expand_epilogue): Update.
21661         (initial_offset): Update.
21662         (mn10300_builtin_saveregs):
21663         * config/mn10300/mn10300.md (return expander): Update.
21664         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
21665         (ia64_initial_elimination_offset): Update.
21666         (ia64_initial_elimination_offset): Update.
21667         (ia64_expand_prologue): Update.
21668         * config/m68k/m68k.md (return expander): Update.
21669         * config/rs6000/rs6000.c (rs6000_va_start): Update.
21670         (rs6000_stack_info): Update.
21671         * config/mcore/mcore.c (layout_mcore_frame): Update.
21672         (mcore_expand_prolog): Update.
21673         * config/arc/arc.c (arc_compute_frame_size): Update.
21674         * config/score/score3.c (score3_compute_frame_size): Update.
21675         * config/score/score7.c (score7_compute_frame_size): Update.
21676         * config/arm/arm.c (use_return_insn): Update.
21677         (thumb_find_work_register): Update.
21678         (arm_compute_save_reg_mask): Update.
21679         (arm_output_function_prologue): Update.
21680         (arm_output_epilogue): Update.
21681         (arm_size_return_regs): Update.
21682         (arm_get_frame_offsets): Update.
21683         (arm_expand_prologue): Update.
21684         (thumb_exit): Update.
21685         (thumb_unexpanded_epilogue): Update.
21686         (thumb1_output_function_prologue): Update.
21687         * config/pa/pa.md (return expander): Update.
21688         * config/pa/pa.c (compute_frame_size): Update.
21689         (hppa_builtin_saveregs): Update.
21690         * config/mips/mips.c (mips_va_start): Update.
21691         (mips16_build_function_stub): Update.
21692         (mips_compute_frame_info): Update.
21693         (mips_restore_gp): Update.
21694         (mips_output_function_prologue): Update.
21695         (mips_expand_prologue): Update.
21696         * config/v850/v850.c (compute_frame_size): Update.
21697         (expand_prologue): * config/mmix/mmix.c (along): update.
21698         (mmix_initial_elimination_offset): update.
21699         (mmix_reorg): update.
21700         (mmix_use_simple_return): update.
21701         (mmix_expand_prologue): update.
21702         (mmix_expand_epilogue): Update.
21703         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
21704         (emit_link_insn): Update.
21705
21706 2008-04-08  Anatoly Sokolov <aesok@post.ru>
21707
21708         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
21709         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
21710         instructions.
21711         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
21712         atmega103 device.
21713
21714 2008-04-07  Jan Hubicka  <jh@suse.cz>
21715
21716         * function.h (rtl): Rename to x_rtl.
21717         (crtl): New define.
21718         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
21719         frame_offset, stack_check_probe_note, arg_pointer_save_area,
21720         used_temp_slots avail_temp_slots, temp_slot_level,
21721         nonlocal_goto_handler_labels): Update accesstors.
21722         (rtl): New global variable.
21723         (struct function): Move some fileds to rtl_data.
21724         (get_arg_pointer_save_area): Update prototype.
21725         * builtins.c (expand_builtin_setjmp_receiver): Update call of
21726         get_arg_pointer_save_area.
21727         * expr.c (init_expr): Update
21728         * function.c (get_frame_size): Update
21729         (assign_stack_local): Update
21730         (expand_function_end): Update.
21731         (get_art_pointer_save_area): Update
21732         * function.h
21733         * emit-rtl.c (rtl): Declare.
21734         (regno_reg_rtx): Declare.
21735         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
21736         Update.
21737         (gen_reg_rtx): Update.
21738         * varasm.c (n_deferred_constatns): Update accestor.
21739         (init_varasm_status): Do not allocate varasm_status.
21740         (force_const_mem, get_pool_size, output_constant_pool): Update.
21741         * stmt.c (force_label_rtx): Do not use x_ prefixes.
21742         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
21743         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
21744         * sparc/sparc.h (INIT_EXPANDERS): Update.
21745         * ia64/ia64.h (INIT_EXPANDERS): Update.
21746
21747 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
21748
21749         * reload.c (push_secondary_reload): Add missing break to for loop.
21750
21751 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
21752
21753         PR middle-end/PR28690
21754         * rtlanal.c: Update copyright years.
21755         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
21756         as REG_POINTER and MEM_POINTER operands.
21757         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
21758         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
21759         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
21760         * gcse.c: Update copyright years.
21761         (pre_delete): Call gen_reg_rtx_and_attrs.
21762         (hoist_code): Likewise.
21763         (build_store_vectors): Likewise.
21764         (delete_store): Likewise.
21765         * loop-invariant.c (move_invariant_reg): Likewise.
21766         Update copyright years.
21767
21768 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
21769
21770         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
21771         control string instead of quoted.
21772
21773 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
21774
21775         * doc/rtl.texi: Rewrite of subreg section.
21776
21777 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
21778
21779         PR/35842
21780         * config/i386/i386.c (legitimize_pic_address): Add treating
21781         of dllimport SYM_REF's.
21782         (legitimize_dllimport_symbol): Add prototype.
21783
21784 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
21785
21786         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
21787         reference in constructor with non self-referential type.
21788
21789 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
21790
21791         Removal of Return with Depressed Stack Pointer support
21792         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
21793         (ECF_SP_DEPRESSED): Likewise.
21794         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
21795         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
21796         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21797         (expand_call): Do not test ECF_SP_DEPRESSED.
21798         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21799         * function.c (keep_stack_depressed): Delete.
21800         (handle_epilogue_set): Likewise.
21801         (update_epilogue_consts): Likewise.
21802         (emit_equiv_load): Likewise.
21803         (thread_prologue_and_epilogue_insns): Remove support for Return with
21804         Depressed Stack Pointer.
21805         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21806
21807 2008-04-06  Richard Guenther  <rguenther@suse.de>
21808
21809         PR tree-optimization/35400
21810         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
21811         information from SSA_NAMEs.
21812
21813 2008-04-06  Anatoly Sokolov <aesok@post.ru>
21814
21815         * config/avr/avr.h (avr_mega_p): Remove declaration.
21816         (AVR_MEGA): Remove macro.
21817         * config/avr/avr.c (avr_mega_p): Remove variable.
21818         (avr_override_options): Remove inicializion of avr_mega_p.
21819         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21820         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21821         (avr_jump_mode): (Ditto.).
21822         (avr_output_progmem_section_asm_op): (Ditto.).
21823         (avr_asm_init_sections): (Ditto.).
21824         (avr_asm_init_sections): (Ditto.).
21825         (avr_rtx_costs): (Ditto.).
21826         * config/avr/avr.md: (Ditto.).
21827         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
21828         '__AVR_MEGA__'.
21829
21830 2008-04-06  Richard Guenther  <rguenther@suse.de>
21831
21832         PR tree-optimization/35842
21833         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
21834         is_gimple_invariant_address.
21835
21836 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21837
21838         * gcc.c (default_compilers): Sync Fortran extensions list with
21839         that in fortran/lang-specs.h.
21840         * doc/invoke.texi: Likewise.
21841         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
21842         * dwarf2out.c (gen_compile_unit_die): Likewise.
21843
21844 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
21845
21846         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
21847
21848 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
21849
21850         PR target/12329
21851         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
21852         attribute is used for nested functions.
21853
21854 2008-04-05  Jan Hubicka  <jh@suse.cz>
21855
21856         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
21857
21858         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
21859         letter argument.
21860         (dump_files): Update.
21861         (enable_rtl_dump_file): Do not accept letter argument.
21862         * tree-pass.h (dump_file_info): Remove letter argument.
21863         * toplev.c (decode_d_option): Update -da handling.
21864         * toplev.h (enable_rtl_dump_file): Update prototype.
21865         * passes.c (register_one_dump_file): Do not accept IPA argument; work
21866         it out based on pass type.
21867         (register_dump_files_1): Likewise.
21868         (init_optimization_passes): Update register_one_dump_file calls.
21869         (execute_one_pass): Sanity check that IPA passes are called at IPA
21870         level and RTL passes at RTL level.
21871         (execute_pass_list): IPA pass can not be after or subpass of
21872         GIMPLE/RTL pass.
21873         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
21874         disallov RTL subpasses of IPA subpasses.
21875
21876 2008-04-05  Ben Elliston  <bje@au.ibm.com>
21877
21878         * tree-cfg.c (need_fake_edge_p): Return false for calls to
21879         builtins that return exactly once and do not throw. Cache call to
21880         call_expr_flags.
21881
21882 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
21883
21884         PR rtl-optimization/34916
21885         PR middle-end/35519
21886         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
21887         between instruction pairs.
21888
21889 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
21890
21891         * doc/invoke.texi: Document -mbitops for SH.
21892         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
21893         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
21894         * config/sh/sh.c (print_operand): Add %t operand code.
21895         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
21896         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
21897         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
21898         (extendqihi2): Likewise.
21899         (movqi_i): Likewise.
21900         (insv): Use bset, bclr and bst instructions for SH2A if possible.
21901         (extv): Use bld instruction for SH2A if possible.
21902         (extzv): Likewise.
21903         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
21904         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
21905         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
21906         (bset.b, bclr.b): Define peepholes.
21907         * config/sh/sh.opt (mbitops): New option.
21908
21909 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
21910
21911         PR target/35620
21912         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
21913         and view convert expression.
21914
21915 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
21916
21917         PR target/35364
21918         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
21919
21920 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
21921
21922         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
21923
21924         * config/i386/cpuid.h (bit_AES): New.
21925         (bit_PCLMUL): Likewise.
21926
21927         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
21928         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
21929         SSE2 if AES or PCLMUL is enabled.
21930         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
21931         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21932         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
21933         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
21934         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
21935         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
21936         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21937         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
21938         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
21939         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
21940         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
21941         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
21942         __builtin_ia32_aeskeygenassist128 and
21943         __builtin_ia32_pclmulqdq128.
21944         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
21945         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
21946         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
21947
21948         * config/i386/i386.h (TARGET_AES): New.
21949         (TARGET_PCLMUL): Likewise.
21950         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
21951
21952         * config/i386/i386.md (UNSPEC_AESENC): New.
21953         (UNSPEC_AESENCLAST): Likewise.
21954         (UNSPEC_AESDEC): Likewise.
21955         (UNSPEC_AESDECLAST): Likewise.
21956         (UNSPEC_AESIMC): Likewise.
21957         (UNSPEC_AESKEYGENASSIST): Likewise.
21958         (UNSPEC_PCLMUL): Likewise.
21959
21960         * config/i386/i386.opt (maes): New.
21961         (mpclmul): Likewise.
21962
21963         * config/i386/sse.md (aesenc): New pattern.
21964         (aesenclast): Likewise.
21965         (aesdec): Likewise.
21966         (aesdeclast): Likewise.
21967         (aesimc): Likewise.
21968         (aeskeygenassist): Likewise.
21969         (pclmulqdq): Likewise.
21970
21971         * config/i386/wmmintrin.h: New.
21972
21973         * doc/extend.texi: Document AES and PCLMUL built-in function.
21974
21975         * doc/invoke.texi: Document -maes and -mpclmul.
21976
21977 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
21978
21979         * function.c (free_after_parsing): Replace with
21980         cxx_push_function_context from C++ front-end.
21981         (allocate_struct_function): Don't call langhook.
21982         * langhooks.h (struct lang_hooks_for_functions): Delete.
21983         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
21984         member "function".
21985         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
21986         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
21987         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
21988         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
21989         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
21990         remove LANG_HOOKS_FUNCTION_INITIALIZER.
21991         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
21992
21993         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
21994         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
21995
21996 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
21997
21998         PR c/35440
21999         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
22000         for all types.
22001
22002 2008-04-04  Richard Guenther  <rguenther@suse.de>
22003
22004         PR middle-end/35823
22005         * fold-const.c (optimize_minmax_comparison): Use the correct
22006         type for the constant in the simplified comparison.
22007
22008 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
22009
22010         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
22011         Pass L2 size as "--param l2-cache-size" to the compiler.
22012         (decode_l2_cache): New function to decode L2 cache parameters using
22013         0x8000006 extended cpuid function.
22014         (detect_caches_amd): Determine parameters of L2 cache using
22015         decode_l2_caches function.
22016         (decode_caches_intel): Decode L2 cache parameters.
22017         (detect_caches_intel): Determine L2 cache parameters using
22018         decode_caches_intel and decode_l2_caches functions.
22019
22020 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
22021
22022         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
22023         secondary input reload for subword loads from the constant pool.
22024
22025 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
22026
22027         PR target/35713
22028         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
22029           constants of the appropriate size for runtime calculations.
22030
22031         PR c/35712
22032         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
22033           decimal-float literal constant zero.
22034
22035 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
22036
22037         PR c/35738
22038         * c-parser.c (c_parser_omp_atomic): Call
22039         default_function_array_conversion on the RHS.
22040
22041         PR middle-end/35818
22042         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
22043         call is_variable_sized if decl has incomplete type.
22044
22045 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
22046
22047         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
22048
22049 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
22050
22051         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
22052         iterators.
22053         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
22054         (sgt<u>): Merge sgt and sgtu into new expander.
22055         (sgt, sgtu): Remove expanders.
22056         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
22057         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
22058         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
22059         *sgtu_<mode>_mips16 into new pattern.
22060         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
22061         (sge<u>): Merge sge and sgeu into new expander.
22062         (sge, sgeu): Remove expanders.
22063         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
22064         new pattern.
22065         (*sge_<mode>, second *sge_<mode>): Remove patterns.
22066         (slt<u>): Merge slt and sltu into new expander.
22067         (slt, sltu): Remove expanders.
22068         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
22069         (*slt_<mode>, *sltu_<mode>): Remove patterns.
22070         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
22071         *sltu_<mode>_mips16 into new pattern.
22072         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
22073         (sle<u>): Merge sle and sleu into new expander.
22074         (sle, sleu): Remove expanders.
22075         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
22076         (*sle_<mode>, *sleu_<mode>): Remove patterns.
22077         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
22078         *sleu_<mode>_mips16 into new pattern.
22079         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
22080
22081 2008-04-03  Jan Hubicka  <jh@suse.cz>
22082
22083         PR tree-optimization/35795
22084         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
22085         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22086         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22087         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
22088         * score/score3.c (score3_output_mi_thunk): Likewise.
22089         * score/score7.c (score7_output_mi_thunk): Likewise.
22090         * mips/mips.c (mips_output_mi_thunk): Likewise.
22091
22092 2008-04-03  Richard Guenther  <rguenther@suse.de>
22093
22094         * tree-vrp.c (extract_range_from_unary_expr): Handle all
22095         conversions.  Simplify code.
22096
22097 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
22098
22099         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
22100
22101 2008-04-03  Tom Tromey  <tromey@redhat.com>
22102             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22103
22104         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
22105         * config/bfin/t-bfin-linux (generated_files): Add
22106         linux-sysroot-suffix.h.
22107         * doc/install.texi (Prerequisites): Require make 3.80.
22108         * doc/sourcebuild.texi (Front End Directory): Document new
22109         variable.
22110         * Makefile.in (generated_files): New variable.
22111         (ALL_HOST_OBJS): New variable.
22112         ($(ALL_HOST_OBJS)): New target.
22113
22114 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
22115
22116         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
22117         (remap_block): Call id->transform_lang_insert_block instead
22118         of langhook.
22119         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
22120         Set id.transform_lang_insert_block to NULL.
22121         (clone_body): Move to cp/optimize.c
22122         * tree-inline.h (struct copy_body_data): Change
22123         transform_lang_insert_block to function pointer.
22124         (copy_generic_body, copy_decl_no_change): Export.
22125         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
22126         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
22127         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
22128
22129         * c-tree.h (insert_block): Kill.
22130         * c-decl.c (insert_block): Kill.
22131
22132 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
22133
22134         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
22135         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
22136         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
22137         argument.
22138         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
22139         argument, call {push,pop}_function_context from here.
22140         * c-parser.c: Use c_{push,pop}_function_context.
22141
22142         * function.c (push_function_context_to): Move meat ...
22143         (push_function_context): ... here.  Simplify.
22144         * function.c (pop_function_context_from): Move meat ...
22145         (pop_function_context): ... here.  Simplify.
22146         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
22147         leave_nested).
22148         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
22149         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
22150         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
22151         * tree.h (push_function_context_to, pop_function_context_from): Remove.
22152
22153 2008-04-03  Ben Elliston  <bje@au.ibm.com>
22154
22155         * expmed.c (extract_force_align_mem_bit_field): Remove.
22156
22157 2008-04-03  Richard Guenther  <rguenther@suse.de>
22158
22159         PR middle-end/35800
22160         * expr.h (try_casesi): Adjust prototype.
22161         * expr.c (try_casesi): Take fallback label as extra parameter.
22162         Use that for gen_casesi if default_label is NULL.
22163         * stmt.c (expand_case): Pass fallback label to try_casesi,
22164         make sure to fill gaps with a fallback label if default_label
22165         is not present.
22166
22167 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
22168
22169         PR target/35801
22170         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
22171
22172 2008-04-03  Ben Elliston  <bje@au.ibm.com>
22173
22174         * expmed.c (extract_split_bit_field): Remove if (0) code.
22175         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
22176         (do_ds_constraint): Likewise.
22177
22178 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
22179
22180         * doc/cppopts.texi (-dU): Document.
22181         * c-common.h (flag_dump_macros): Update comment.
22182         * c-opts.c (handle_OPT_d): Handle -dU.
22183         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
22184         dump_queued_macros, cb_used_define, cb_used_undef): New.
22185         (init_pp_output): Handle -dU.
22186         (cb_line_change): Call dump_queued_macros.
22187         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
22188
22189 2008-04-02  Anatoly Sokolov <aesok@post.ru>
22190
22191         * config/avr/predicates.md (io_address_operand): New predicate.
22192         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
22193         * config/avr/avr.c (avr_io_address_p): Remove function.
22194         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
22195         'avr_io_address_p' function.
22196         (out_movhi_r_mr): (Ditto.).
22197         (out_movqi_mr_r): (Ditto.).
22198         (out_movhi_mr_r): (Ditto.).
22199         (avr_address_cost): (Ditto.).
22200
22201 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
22202
22203         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
22204         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
22205         in 32bit mode when XMM registers are available to avoid store
22206         forwarding stalls.
22207         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
22208         corresponding post-reload splitters.
22209
22210 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22211
22212         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
22213         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
22214         __builtin_ia32_roundss.
22215         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
22216         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
22217         __builtin_ia32_roundss.
22218         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
22219         IX86_BUILTIN_SHUFPD here.
22220
22221 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22222
22223         * config/i386/i386.md (plogic): New.
22224         (plogicprefix): Likewise.
22225
22226         * config/i386/mmx.md (mmx_<code><mode>3): New.
22227         (mmx_and<mode>3): Removed.
22228         (mmx_ior<mode>3): Likewise.
22229         (mmx_xor<mode>3): Likewise.
22230
22231         * config/i386/sse.md (<code><mode>3): New.
22232         (*<code><mode>3): Likewise.
22233         (*<code><mode>3): Likewise.
22234         (<code><mode>3): Likewise.
22235         (*sse_<code><mode>3): Likewise.
22236         (*sse2_<code><mode>3): Likewise.
22237         (<code>tf3): Likewise.
22238         (*<code>tf3): Likewise.
22239         (and<mode>3): Likewise.
22240         (*and<mode>3): Likewise.
22241         (ior<mode>3): Removed.
22242         (*ior<mode>3): Likewise.
22243         (xor<mode>3): Likewise.
22244         (*xor<mode>3): Likewise.
22245         (*and<mode>3): Likewise.
22246         (*ior<mode>3): Likewise.
22247         (*xor<mode>3): Likewise.
22248         (and<mode>3): Likewise.
22249         (*sse_and<mode>3): Likewise.
22250         (*sse2_and<mode>3): Likewise.
22251         (andtf3): Likewise.
22252         (*andtf3): Likewise.
22253         (ior<mode>3): Likewise.
22254         (*sse_ior<mode>3): Likewise.
22255         (*sse2_ior<mode>3): Likewise.
22256         (iortf3): Likewise.
22257         (*iortf3): Likewise.
22258         (xor<mode>3): Likewise.
22259         (*sse_xor<mode>3): Likewise.
22260         (*sse2_xor<mode>3): Likewise.
22261         (xortf3): Likewise.
22262         (*xortf3): Likewise.
22263
22264 2008-04-02  Richard Guenther  <rguenther@suse.de>
22265
22266         PR tree-optimization/14495
22267         PR tree-optimization/34793
22268         * tree-vrp.c (struct switch_update): New structure.
22269         (to_remove_edges, to_update_switch_stmts): New VECs.
22270         (simplify_switch_using_ranges): New function.  Remove not taken
22271         case labels and edges.
22272         (simplify_stmt_using_ranges): Call it.
22273         (identify_jump_threads): Mark edges we have queued for removal
22274         so we don't thread them.
22275         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
22276         case label vector.
22277         * tree-cfg.c (group_case_labels): Deal with missing default label.
22278         (tree_verify_flow_info): Allow missing default label.
22279         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
22280         (emit_case_nodes): Likewise.
22281         (expand_case): Do not rely on the default label to be present.
22282         * expr.c (try_casesi): Deal with NULL default_label.
22283         (do_tablejump): Likewise.
22284
22285 2008-04-02  Richard Guenther  <rguenther@suse.de>
22286
22287         PR tree-optimization/14495
22288         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
22289         SWITCH_EXPR here ...
22290         (vrp_visit_switch_stmt): ... but here (new function).
22291         (find_case_label_index): New helper function.
22292         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
22293
22294 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22295
22296         * fwprop.c: Fix ISO-C99ism.
22297
22298 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22299
22300         PR bootstrap/35752
22301         * Makefile.in (objdir): Set it here.
22302         * configure.ac: Not here.  Find dynamic linker characteristics.
22303         * exec-tool.in: Use them.
22304         * aclocal.m4: Regenerate.
22305         * configure: Regenerate.
22306
22307 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22308
22309         * expr.c (expand_var): Delete it.
22310         * expr.h (expand_var): Delete prototype.
22311         * function.c (expand_function_start): Use expand_decl instead.
22312         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
22313         langhook.
22314
22315 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
22316
22317         PR rtl-optimization/35542
22318         * fwprop.c (forward_propagate_and_simplify): Replace
22319         loc_reg_mentioned_in_p with reg_mentioned_p.
22320
22321 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22322
22323         PR rtl-optimization/35281
22324         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
22325         (propagate_rtx_1): Handle PR_HANDLE_MEM.
22326         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
22327         (varying_mem_p): Move above propagate_rtx.
22328         (all_uses_available_at): Do not check MEMs.
22329
22330 2008-04-02  Rafael Espíndola  <espindola@google.com>
22331
22332         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
22333         (register_edge_assert_for_2): Split the cond argument.
22334         (register_edge_assert_for_1): Adjust for the change in
22335         register_edge_assert_for_2.
22336         (register_edge_assert_for): Split the cond argument.
22337         (find_switch_asserts): Adjust for the change in
22338         register_edge_assert_for.
22339
22340 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
22341
22342         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
22343         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
22344         offsets for 64-bit mingw.
22345         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
22346         abi for x86_64-pc-mingw.
22347
22348 2008-04-02  Richard Guenther  <rguenther@suse.de>
22349
22350         * tree-vrp.c (extract_range_from_assert): Make sure to not
22351         produce range min/max with TREE_OVERFOW set.
22352         If merging a anti-range and a range keep the anti-range if
22353         the range covers all values of the type.
22354         (register_edge_assert_for_2): Only allow sign-changing
22355         conversions in detecting canonical range checks.  Also
22356         register an assert for the unsigned name if useful.
22357
22358         PR tree-optimization/35787
22359         * tree-vrp.c (vrp_val_max): New function.
22360         (vrp_val_min): Likewise.
22361         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
22362         (vrp_val_is_min): Likewise.
22363         (supports_overflow_infinity): Use vrp_val_{min,max}.
22364         (negative_overflow_infinity): Likewise.
22365         (positive_overflow_infinity): Likewise.
22366         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
22367         (is_positive_overflow_infinity): Likewise.
22368         (is_overflow_infinity): Likewise.
22369         (avoid_overflow_infinity): Use vrp_val_{min,max} and
22370         vrp_val_is_{min,max}.
22371         (set_and_canonicalize_value_range): Canonicalize anti-ranges
22372         to ranges if possible.  Avoid empty ranges.
22373
22374 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22375
22376         PR middle-end/35705
22377         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
22378         the expression is a function address.
22379
22380 2008-04-01  George Helffrich  <george@gcc.gnu.org>
22381
22382         PR fortran/35154, fortran/23057
22383         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
22384         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
22385         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
22386         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
22387         in common.
22388         (dbxout_syms): Check for COMMON-based symbol and wrap in
22389         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
22390         in bracket for efficiency.
22391
22392         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
22393         using DW_TAG_common_block + member offset.
22394         (add_pubname_string): New function.
22395         (dw_expand_expr): New function to find block name and offset for
22396         COMMON var.
22397         (common_check): New function to check whether symbol in Fortran COMMON.
22398         (gen_variable_die): If COMMON, use DW_TAG_common_block.
22399
22400 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
22401
22402         PR c/35436
22403         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
22404
22405 2008-04-02  Ben Elliston  <bje@au.ibm.com>
22406
22407         * config/v850/v850.md (casesi): Remove if (0) code.
22408         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22409         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22410
22411 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
22412
22413         * config/i386/i386.md (rex64suffix): New mode attribute.
22414         (floathi<mode>2): Disable expander for SSE math.
22415         (*floathi<mode>2_1): New insn insn_and_split pattern.
22416         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
22417         corresponding post-reload splitters.
22418         (*floathi<mode>2_i387): New macroized insn pattern.
22419         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
22420         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
22421         insn_and_split pattern.
22422         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
22423         New macroized instruction patterns and corresponding post-reload
22424         splitters.
22425         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
22426         and corresponding post-reload splitters.
22427         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
22428         New macroized instruction patterns.
22429         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
22430         macroized instruction patterns and corresponding post-reload splitters.
22431         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
22432         corresponding post-reload splitters.
22433         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
22434         New macroized instruction patterns.
22435         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
22436         corresponding post-reload splitters.
22437         (*floatsi<mode>2_i387): New macroized instruction patterns.
22438
22439 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
22440
22441         * config/i386/i386.md (smaxmin): New.
22442         (umaxmin): Likewise.
22443         (maxminiprefix): Likewise.
22444         (maxminfprefix): Likewise.
22445         (<code><mode>3): Likewise.
22446         (smin<mode>3): Removed.
22447         (smax<mode>3): Likewise.
22448
22449         * config/i386/mmx.md (mmx_<code>v2sf3): New.
22450         (mmx_<code>v4hi3): Likewise.
22451         (mmx_<code>v8qi3): Likewise.
22452         (mmx_smaxv2sf3): Removed.
22453         (mmx_sminv2sf3): Likewise.
22454         (mmx_umaxv8qi3): Likewise.
22455         (mmx_smaxv4hi3): Likewise.
22456         (mmx_uminv8qi3): Likewise.
22457         (mmx_sminv4hi3): Likewise.
22458
22459         * config/i386/sse.md (<addsub><mode>3): New.
22460         (*<addsub><mode>3): Likewise.
22461         (<sse>_vm<addsub><mode>3): Likewise.
22462         (<maxmin><mode>3): Likewise.
22463         (*<maxmin><mode>3_finite): Likewise.
22464         (*<maxmin><mode>3): Likewise.
22465         (<sse>_vm<maxmin><mode>3): Likewise.
22466         (sse3_h<addsub>v4sf3): Likewise.
22467         (sse3_h<addsub>v2df3): Likewise.
22468         (<maxmin>v16qi3): Likewise.
22469         (*<maxmin>v16qi3): Likewise.
22470         (<maxmin>v8hi3): Likewise.
22471         (*<maxmin>v8hi3): Likewise.
22472         (*sse4_1_<maxmin><mode>3): Likewise.
22473         (*sse4_1_<maxmin><mode>3): Likewise.
22474         (add<mode>3): Removed.
22475         (*add<mode>3): Likewise.
22476         (<sse>_vmadd<mode>3): Likewise.
22477         (sub<mode>3): Likewise.
22478         (*sub<mode>3): Likewise.
22479         (<sse>_vmsub<mode>3): Likewise.
22480         (smin<mode>3): Likewise.
22481         (*smin<mode>3_finite): Likewise.
22482         (*smin<mode>3): Likewise.
22483         (<sse>_vmsmin<mode>3): Likewise.
22484         (smax<mode>3): Likewise.
22485         (*smax<mode>3_finite): Likewise.
22486         (*smax<mode>3): Likewise.
22487         (<sse>_vmsmax<mode>3): Likewise.
22488         (sse3_haddv4sf3): Likewise.
22489         (sse3_haddv2df3): Likewise.
22490         (sse3_hsubv4sf3): Likewise.
22491         (sse3_hsubv2df3): Likewise.
22492         (umaxv16qi3): Likewise.
22493         (*umaxv16qi3): Likewise.
22494         (smaxv8hi3): Likewise.
22495         (*smaxv8hi3): Likewise.
22496         (*sse4_1_smax<mode>3): Likewise.
22497         (*sse4_1_umax<mode>3): Likewise.
22498         (uminv16qi3): Likewise.
22499         (*uminv16qi3): Likewise.
22500         (sminv8hi3): Likewise.
22501         (*sminv8hi3): Likewise.
22502         (*sse4_1_smin<mode>3): Likewise.
22503         (*sse4_1_umin<mode>3): Likewise.
22504
22505 2008-04-01  Rafael Espíndola  <espindola@google.com>
22506
22507         * tree-cfg.c (verify_expr): remove in_phi.
22508         (verify_stmt): Don't call walk_tree with verify_expr. Use
22509         is_gimple_min_invariant instead of is_gimple_val.
22510
22511 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
22512
22513         * doc/include/gpl_v3.texi: Update for manpage generation.
22514         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
22515         gpl.texi.
22516         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
22517         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
22518         gpl_v3.texi instead of gpl.texi.
22519         (gpl.pod): New.
22520
22521 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
22522
22523         PR pch/13675
22524         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
22525
22526 2008-04-01  Rafael Espíndola  <espindola@google.com>
22527
22528         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
22529         (extract_code_and_val_from_cond): Use
22530         extract_code_and_val_from_cond_with_ops.
22531
22532 2008-04-01  Jan Hubicka  <jh@suse.cz>
22533
22534         * function.c (free_after_compilation): Free epilogue_delay_list.
22535         (prepare_function_start): Assert that previous compilation was freed.
22536
22537 2008-04-01  Jan Hubicka  <jh@suse.cz>
22538             Jim Wilson  <wilson@tuliptree.org>
22539             Andreas Tobler <andreast@gcc.gnu.org>
22540
22541         PR middle-end/35781
22542         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
22543         rtl.emit instead cfun->emit.
22544         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
22545         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
22546
22547 2008-04-01  Ben Elliston  <bje@au.ibm.com>
22548
22549         * doc/c-tree.texi (Function Basics): Fix grammatical error.
22550
22551 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
22552
22553         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
22554         New options
22555         (fprofile-use): Add var flag_profile_use
22556         * coverage.c (coverage_begin_output): Do not open a gcno file for
22557         output only if -ftest-coverage is set.
22558         Do not add getpwd() to gcda file path.
22559         (build_gcov_info): Check the new flag
22560         flag_profile_datafile_relative_path.
22561         (coverage_init): Use profile_data_prefix.
22562         Read profile counter only if flag_profile_use is set.
22563         * opts.c (common_handle_option): New option fprofile-use=,
22564         fprofile-dir=, fprofile-generate=.
22565         * toplev.c (profile_data_prefix): New variable definition.
22566         * toplev.h (profile_data_prefix): New declaration.
22567         * doc/invoke.tex (Option Summary, Optimization Options):
22568         Add new options.
22569
22570 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
22571
22572         * varasm.c (output_constant_pool_1): In LABEL_REF check,
22573         use tmp consistently.
22574
22575         PR target/35695
22576         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
22577         * config/ia64/ia64.c (rtx_needs_barrier): Handle
22578         UNSPEC_FR_RECIP_APPROX_RES.
22579         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
22580
22581 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
22582
22583         PR c/35750
22584         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
22585
22586 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22587
22588         PR middle-end/30186
22589         * fold-const.c (fold_indirect_ref_1): Support accessing non first
22590         element of the vector via a pointer.
22591
22592 2008-03-31  Ian Lance Taylor  <iant@google.com>
22593
22594         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
22595
22596 2008-03-31  Jan Hubicka  <jh@suse.cz>
22597
22598         * builtins.c (expand_builtin_setjmp_receiver): Update call of
22599         get_arg_pointer_save_area.
22600         * expr.c (init_expr): Just clear out rtl.expr.
22601         * function.c (free_after_compilation): Clear out whole RTL structure.
22602         (get_func_frame_size): Merge into ...
22603         (get_frame_size): ... this one.
22604         (assign_stack_local_1): Merge into ...
22605         (assign_stack_local): ... this one.
22606         (expand_function_end): Update call of get_arg_pointer_save_area.
22607         (get_art_pointer_save_area): Remove cfun argument.
22608         * function.h (emit_status): regno_pointer_align does not need length
22609         attribute. Move x_regno_reg_rtx to ...
22610         (regno_reg_rtx): ... new global array.
22611         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
22612         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
22613         apply_args_value, forced_labels, stack_pointer_delta):
22614         Update accestors.
22615         (struct varasm_status): Move here from varasm.c
22616         (struct rtl_data): New. Move here some fields from struct function.
22617         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
22618         frame_offset, stack_check_probe_note, arg_pointer_save_area,
22619         used_temp_slots avail_temp_slots, temp_slot_level,
22620         nonlocal_goto_handler_labels): Update accesstors.
22621         (rtl): New global variable.
22622         (struct function): Move some fileds to rtl_data.
22623         (get_arg_pointer_save_area): Update prototype.
22624         * emit-rtl.c (rtl): Declare.
22625         (regno_reg_rtx): Declare.
22626         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
22627         Update.
22628         (gen_reg_rtx): Update.
22629         (init_virtual_regs): Do not tate emit_status argument.
22630         (init_emit): Do not allocate emit.
22631         * varasm.c (varasm_statuc): Move to function.h.
22632         (n_deferred_constatns): Update accestor.
22633         (init_varasm_status): Do not allocate varasm_status.
22634         (force_const_mem, get_pool_size, output_constant_pool): Update.
22635         * stmt.c (force_label_rtx): Do not use x_ prefixes.
22636         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
22637
22638 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
22639
22640         PR rtl-optimization/35729
22641         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
22642         references.
22643
22644 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22645
22646         PR target/32000
22647         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
22648         load/store if memory is unaligned.
22649         (*movti_rex64): Likewise.
22650
22651         * config/i386/predicates.md (misaligned_operand): New.
22652
22653 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
22654
22655         PR tree-opt/35431
22656         * tree-ssa-phiopt.c (conditional_replacement): Return early for
22657         complex types.
22658
22659 2008-03-31  Jan Beulich  <jbeulich@novell.com>
22660
22661         * config/ia64/constraints.md: Add 'j' constraint.
22662         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
22663         (movdi_internal): Likewise.
22664
22665 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
22666
22667         PR c/35748
22668         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
22669
22670 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22671
22672         PR target/35757
22673         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
22674         proper error message for the third argument on blendpd and
22675         blendps.
22676
22677         * config/i386/sse.md (blendbits): New.
22678         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
22679
22680 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22681
22682         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
22683
22684 2008-03-30  Richard Guenther  <rguenther@suse.de>
22685
22686         PR middle-end/31023
22687         * fold-const.c (fold_sign_changed_comparison): Do leave
22688         conversions to base-types alone.
22689
22690 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22691
22692         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
22693         the link register if one altivec register is be saved.
22694
22695 2008-03-30  Ben Elliston  <bje@au.ibm.com>
22696
22697         * final.c (final_scan_insn): Remove if (0) code.
22698
22699 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
22700
22701         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
22702
22703 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
22704
22705         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
22706         of V4SFmode to ix86_binary_operator_ok.
22707
22708 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
22709
22710         * config/i386/i386.c (override_options): Initialize
22711         ix86_veclib_handler to ix86_veclibabi_svml when
22712         -mveclibabi=svml is used.
22713         (ix86_veclibabi_svml): New function for SVML ABI style
22714         vectorization support.
22715         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
22716
22717 2008-03-28  Rafael Espíndola  <espindola@google.com>
22718
22719         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
22720         (tree_binary_nonnegative_warnv_p): Make it public.
22721         (tree_single_nonnegative_warnv_p): Make it public.
22722         (tree_invalid_nonnegative_warnv_p): Make it public.
22723         (tree_unary_nonzero_warnv_p): Make it public.
22724         (tree_binary_nonzero_warnv_p): Make it public
22725         (tree_single_nonzero_warnv_p): Make it public.
22726         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
22727         (extract_range_from_binary_expr): Split the expr argument.
22728         (extract_range_from_unary_expr): Split the expr argument.
22729         (extract_range_from_comparison): Split the expr argument.
22730         (extract_range_from_expr): Use the new aux functions.
22731         (vrp_evaluate_conditional_warnv): Use
22732         vrp_evaluate_conditional_warnv_with_ops.
22733         * tree.h (tree_unary_nonzero_warnv_p): Declare.
22734         (tree_binary_nonzero_warnv_p): Declare.
22735         (tree_single_nonzero_warnv_p): Declare.
22736         (tree_expr_nonzero_warnv_p): Declare.
22737         (tree_unary_nonnegative_warnv_p): Declare.
22738         (tree_binary_nonnegative_warnv_p): Declare.
22739         (tree_single_nonnegative_warnv_p): Declare.
22740         (tree_invalid_nonnegative_warnv_p): Declare.
22741
22742 2008-03-28  Richard Guenther  <rguenther@suse.de>
22743
22744         PR tree-optimization/30317
22745         PR tree-optimization/30911
22746         PR tree-optimization/34793
22747         * tree-vrp.c (set_and_canonicalize_value_range): New function.
22748         (struct assert_locus_d): New member EXPR.
22749         (register_new_assert_for): Add EXPR parameter to support
22750         ASSERT_EXPR <name, expr OP limit>.
22751         (register_edge_assert_for_1): Adjust callers.
22752         (find_assert_locations): Likewise.
22753         (process_assert_insertions_for): Build condition from expression.
22754         (extract_range_from_assert): Handle ASSERT_EXPRs
22755         of the form ASSERT_EXPR <name, expr OP limit>.
22756         (register_edge_assert_for_2): New helper registering
22757         asserts for comparisons.  Recognize range tests of the form
22758         (unsigned)i - CST1 OP CST2.
22759         (register_edge_assert_for_1): Use it.
22760         (register_edge_assert_for): Likewise.
22761         (needs_overflow_infinity): Integer sub-types
22762         do not need overflow infinities.
22763         (vrp_val_is_max): The extreme values of integer sub-types
22764         are those of the base type.
22765         (vrp_val_is_min): Likewise.
22766         * tree.def (ASSERT_EXPR): Document extra allowed conditional
22767         expressions.
22768
22769 2008-03-28  Nick Clifton  <nickc@redhat.com>
22770
22771         PR target/31110
22772         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
22773         Return GENERAL_REGS for stack adjustment reloads.
22774
22775 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22776
22777         PR target/31334
22778         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
22779         const_vector when all the vectors are constant.
22780
22781 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
22782
22783         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
22784         comparisons.
22785         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
22786         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
22787         (scc_sf): New.
22788         (s<code>_sf): Use new scc_sf attribute for opcode names.
22789
22790 2008-03-27  Tom Tromey  <tromey@redhat.com>
22791
22792         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
22793         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
22794         config/spu/t-spu-elf, config/i386/t-interix,
22795         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
22796         config/i386/x-darwin, config/i386/x-mingw32,
22797         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
22798         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
22799         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
22800         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
22801         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
22802         config/rs6000/x-darwin, config/rs6000/t-rs6000,
22803         config/score/t-score-elf, config/arm/t-strongarm-pe,
22804         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
22805         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
22806         Revert automatic dependency patch.
22807
22808 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22809
22810         PR target/35657
22811         * config/i386/i386.c (ix86_function_arg_boundary): Align
22812         decimal floating point to its natural boundary.
22813
22814 2008-03-27  Richard Guenther  <rguenther@suse.de>
22815
22816         PR middle-end/35716
22817         * fold-const.c (fold_comparison): Restrict distinct decl
22818         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
22819         solely rely on operand_equal_p.
22820
22821 2008-03-27  Richard Guenther  <rguenther@suse.de>
22822
22823         PR c/32511
22824         * c-common.c (handle_weak_attribute): Reject combination of
22825         weak and inline.
22826
22827 2008-03-27  Richard Guenther  <rguenther@suse.de>
22828
22829         PR tree-optimization/32810
22830         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
22831         conversions from DECL_INITIAL.
22832         (fold_const_aggregate_ref): Likewise from constructor elements.
22833
22834 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
22835
22836         * tree-affine.h (aff_combination_expand): Declare.
22837         (get_inner_reference_aff): Likewise.
22838         * tree-affine.c (aff_combination_expand): Split out from
22839         tree_to_aff_combination_expand.
22840         (get_inner_reference_aff): New function.
22841         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
22842         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
22843         (struct lim_aux_data): sm_done field removed.
22844         (mem_ref_loc_p, mem_ref_locs_p): New types.
22845         (struct mem_ref): Added id, stored, accesses_in_loop,
22846         indep_loop, dep_loop, indep_ref, dep_ref fields.
22847         Removed is_stored, locs and next fields.
22848         (memory_accesses): New variable.
22849         (movement_possibility): Do not allow moving statements
22850         that store to memory.
22851         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
22852         New functions.
22853         (determine_max_movement): For statements with memory references,
22854         find the outermost loop in that the reference is independent.
22855         (move_computations_stmt): Mark the virtual operands for renaming.
22856         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
22857         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
22858         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
22859         add_vop_ref_mapping, create_vop_ref_mapping_loop,
22860         create_vop_ref_mapping, analyze_memory_references,
22861         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
22862         get_all_locs_in_loop, ref_always_accessed_p,
22863         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
22864         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
22865         store_motion_loop, store_motion): New functions.
22866         (struct vop_to_refs_elt): New type.
22867         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
22868         memref_hash, memref_eq, hoist_memory_references): Rewritten.
22869         (schedule_sm): Replaced by...
22870         (execute_sm): ... this.
22871         (determine_lsm_ref, hoist_memory_references,
22872         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
22873         find_more_ref_vops, free_mem_ref, free_mem_refs,
22874         determine_lsm_loop, determine_lsm): Removed.
22875         (tree_ssa_lim_finalize): Free data structures used by store motion.
22876         (tree_ssa_lim): Call analyze_memory_references.  Use
22877         store_motion instead of determine_lsm.
22878
22879 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
22880
22881         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
22882         rename tmake_file to m68hc11/t-m68hc11.
22883         (mcore): Set inhibit_libc to true.
22884         * config.host (alpha*-dec-*vms*): Set extra_programs.
22885         (interix3*): Don't use host_xmake_file.
22886         * configure.ac: Let config.gcc override inhibit_libc.
22887         * configure: Regenerate.
22888
22889         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
22890         * config/t-openbsd-thread: Remove commented out lines.
22891
22892         * config/x-interix: Remove.
22893
22894         * config/m68hc11/t-m68hc11-gas: Rename to...
22895         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
22896
22897         * config/mcore/t-mcore: Remove T_CFLAGS.
22898         * config/mcore/t-mcore-pe: Likewise.
22899
22900 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
22901
22902         * configure.ac: Replace custom __GNU_SOURCE test with
22903         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
22904         * aclocal.m4: Regenerate.
22905         * configure: Regenerate.
22906         * config.in: Regenerate.
22907
22908 2008-03-27  Richard Guenther  <rguenther@suse.de>
22909
22910         * fold-const.c (target.h): Include.
22911         (fold_comparison): Fold comparison of addresses of decls
22912         that bind locally or of constants.  Consolidate address folding code.
22913         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
22914         results from fold_binary_to_constant.
22915         (compare_values_warnv): Likewise.
22916
22917 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
22918
22919         PR middle-end/35429
22920         * fold-const.c (fold_truthop): Check for integeral types when folding
22921         a == 0 && b == 0 and a != 0 || b != 0 .
22922
22923 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
22924
22925         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
22926
22927 2008-03-26  Andreas Schwab  <schwab@suse.de>
22928
22929         * doc/invoke.texi: Fix use of @item vs. @itemx.
22930
22931 2008-03-26  Tom Tromey  <tromey@redhat.com>
22932
22933         * Makefile.in (build/gensupport.o, build/print-rtl.o,
22934         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
22935         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
22936         build/gencodes.o, build/genconditions.o, build/genconfig.o,
22937         build/genconstants.o, build/genemit.o, build/genextract.o,
22938         build/genflags.o, build/genmddeps.o, build/genopinit.o,
22939         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
22940         options.h.
22941
22942 2008-03-26  Richard Guenther  <rguenther@suse.de>
22943
22944         Revert
22945         2008-03-26  Richard Guenther  <rguenther@suse.de>
22946
22947         * fold-const.c (target.h): Include.
22948         (fold_comparison): Fold comparison of addresses of two decls
22949         that bind locally.  Consolidate address folding code.
22950
22951 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22952
22953         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
22954         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
22955         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
22956         dconstsqrt2, dconstthird, dconste and/or dconst10.
22957         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
22958         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
22959         dconstsqrt2, dconste): Delete.
22960         (init_emit_once): Likewise.  Simplify initializing dconstm1.
22961         Constify variable.
22962         * real.c (get_real_const): New.
22963         * real.h (dconst3, dconst10, dconstm2, dconstthird,
22964         dconstsqrt2, dconste): Delete.
22965         (real_value_const, get_real_const): New.
22966
22967 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
22968
22969         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
22970
22971         * config/i386/i386.c (ix86_function_arg_boundary): Check
22972         BIGGEST_ALIGNMENT instead of 128.
22973         (setup_incoming_varargs_64): Likewise.
22974
22975 2008-03-26  Tom Tromey  <tromey@redhat.com>
22976
22977         * Makefile.in (DEPFILES): Add missing '/'.
22978
22979 2008-03-26  Richard Guenther  <rguenther@suse.de>
22980
22981         * fold-const.c (target.h): Include.
22982         (fold_comparison): Fold comparison of addresses of two decls
22983         that bind locally.  Consolidate address folding code.
22984
22985 2008-03-26  Nick Clifton  <nickc@redhat.com>
22986
22987         PR target/31232
22988         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
22989         not allow INT+INT as a legitimate addressing mode.
22990
22991 2008-03-26  Richard Guenther  <rguenther@suse.de>
22992
22993         * tree-flow.h (widen_bitfield): Remove declaration.
22994         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
22995         (widen_bitfield): Remove function.
22996         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
22997         code.
22998
22999 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23000
23001         PR target/31558
23002         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
23003         error_mark_node's.
23004
23005 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
23006
23007         PR rtl-optimization/35232
23008         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
23009         (forget_old_reloads_1, forget_marked_reloads): Don't clear
23010         reg_reloaded_call_part_clobbered here.
23011         (reload_regs_reach_end_p): New function.
23012         (reload_reg_rtx_for_input): New variable.
23013         (reload_reg_rtx_for_output): Likewise.
23014         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
23015         when reassigning a pseudo register.  Load reloadreg from
23016         reload_reg_rtx_for_input, moving the mode and register
23017         calculation to...
23018         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
23019         instead of the original when deciding whether an input reload
23020         would be a no-op or whether an output reload can be deleted.
23021         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
23022         when setting up new_spill_reg_store.  Load it from
23023         reload_reg_rtx_for_output, moving the mode and register
23024         calculation to...
23025         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
23026         instead of the original when deciding whether an output reload
23027         would be a no-op.  Do the same when modifying insn notes.
23028         Use rtx_equal_p instead of == to compare the registers.
23029         (inherit_piecemeal_p): Take a mode and two register numbers
23030         as argument.
23031         (emit_reload_insns): Clear new_spill_reg_store for every hard
23032         register in the reload register.  Remove spill registers
23033         from reg_reloaded_valid before considering whether to record
23034         inheritance information for them.  Use reload_reg_rtx_for_output
23035         instead of reg_rtx when recording output reloads.  Use
23036         reload_reg_rtx_for_input instead of reg_rtx when recording
23037         input reloads.  Set or clear reg_reloaded_call_part_clobbered
23038         at the same time as setting reg_reloaded_valid.
23039         (delete_output_reload): Add a new_reload_reg parameter and use it
23040         instead of rld[j].reg_rtx.
23041         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
23042         calls accordingly.
23043
23044 2008-03-25  Tom Tromey  <tromey@redhat.com>
23045
23046         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
23047         (build/genattr.o): Likewise.
23048         (build/genattrtab.o): Likewise.
23049         (build/gencodes.o): Likewise.
23050         (build/genconfig.o): Likewise.
23051         (build/genconstants.o): Likewise.
23052         (build/genemit.o): Likewise.
23053         (build/genextract.o): Likewise.
23054         (build/genflags.o): Likewise.
23055
23056 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
23057
23058         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
23059         instead of size_int for integer types.
23060         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
23061         to match type of MINUS_EXPR.
23062
23063 2008-03-25  Tom Tromey  <tromey@redhat.com>
23064
23065         * configure: Rebuilt.
23066         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
23067         Makefile.
23068
23069 2008-03-25  Tom Tromey  <tromey@redhat.com>
23070
23071         * config/x-solaris (host-solaris.o): Update.
23072         * config/x-linux (host-linux.o): Update.
23073         * config/x-hpux (host-hpux.o): Update.
23074         * config/x-darwin (host-darwin.o): Update.
23075         * config/v850/t-v850e (v850-c.o): Update.
23076         * config/v850/t-v850 (v850-c.o): Update.
23077         * config/t-vxworks (vxworks.o): Update.
23078         * config/t-sol2 (sol2-c.o, sol2.o): Update.
23079         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
23080         * config/spu/t-spu-elf (spu-c.o): Update.
23081         (spu.o): Remove.
23082         * config/sh/t-symbian (sh-c.o): Update.
23083         (symbian.o): Update.
23084         * config/sh/t-sh (sh-c.o): Update.
23085         * config/score/t-score-elf (score7.o, score3.o): Update.
23086         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
23087         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
23088         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
23089         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
23090         (rs6000.o): Remove.
23091         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
23092         * config/m32c/t-m32c (m32c-pragma.o): Update.
23093         * config/ia64/t-ia64 (ia64-c.o): Update.
23094         * config/i386/x-mingw32 (host-mingw32.o): Update.
23095         * config/i386/x-i386 (driver-i386.o): Update.
23096         * config/i386/x-darwin (host-i386-darwin.o): Update.
23097         * config/i386/x-cygwin (host-cygwin.o): Update.
23098         * config/i386/t-nwld (nwld.o): Update.
23099         * config/i386/t-netware (netware.o): Update.
23100         * config/i386/t-interix (winnt.o): Update.
23101         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
23102         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
23103         msformat-c.o): Update.
23104         * config/bfin/t-bfin-linux (generated_files): Add
23105         linux-sysroot-suffix.h.
23106         * config/arm/t-wince-pe (pe.o): Update.
23107         * config/arm/t-strongarm-pe (pe.o): Update.
23108         * config/arm/t-pe (pe.o): Update.
23109         * config/arm/t-arm (arm-c.o): Update.
23110         * doc/install.texi (Prerequisites): Require make 3.80.
23111         * Makefile.in: Remove .o targets.
23112         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
23113         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
23114         (simple_generated_h, simple_generated_c): Move earlier.
23115         (generated_files): New variable.
23116         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
23117         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
23118         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
23119         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
23120         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
23121         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
23122         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
23123         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
23124         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
23125         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
23126         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
23127         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
23128         (.c.o): Remove.
23129         (COMPILE.base, COMPILE): New variables.
23130         (%.o): New pattern rule.
23131         (ALL_HOST_OBJS): New variable.
23132         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
23133         (dummy-checksum.o, cc1-checksum.o): Remove.
23134         (DRIVER_SHLIB): New variable.
23135         (DRIVER_DEFINES): Use it.
23136         (gencondmd.c): Move out of build/.
23137         (s-conditions): Update.
23138         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
23139         (ALL_BUILD_OBJS): Likewise.
23140         (build/%.o): Use BUILDCOMPILE.
23141         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
23142         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
23143         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
23144         build/gencheck.o, build/gencodes.o, build/genconditions.o,
23145         build/genconfig.o, build/genconstants.o, build/genemit.o,
23146         build/genextract.o, build/genflags.o, build/genmddeps.o,
23147         build/genopinit.o, build/genoutput.o, build/genpeep.o,
23148         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
23149         build/gen-protos.o, build/scan.o, build/fix-header.o,
23150         build/scan-decls.o): Simplify.
23151         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
23152         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
23153         prefix.o, toplev.o): Reduce to variable setting.
23154         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
23155         ($(out_object_file), gcc-options.o): New targets.
23156         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
23157         * configure: Rebuilt.
23158         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
23159         * doc/sourcebuild.texi (Front End Directory): Document new variable.
23160
23161 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
23162
23163         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
23164         complain when we hit an error, return ERROR_MARK_NODE.
23165
23166 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23167
23168         * config/sh/constraints.md (Pso, Psz): New constraints.
23169         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
23170         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
23171
23172 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23173
23174         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
23175         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
23176
23177 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23178
23179         * config/sh/sh.md (prefetch): Add condition for SH2A target.
23180         (prefetch_sh2a): New.
23181
23182 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
23183             Naveen.H.S  <naveen.hs@kpitcummins.com>
23184
23185         * config/sh/constraints.md (I28): New constraint.
23186         * config/sh/sh.c (broken_move): Add support for movi20s.
23187         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
23188
23189 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
23190             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
23191             Naveen.H.S  <naveen.hs@kpitcummins.com>
23192
23193         * config/sh/sh.c (SH_ATTRIBUTES): Define.
23194         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
23195         (print_operand): Handle resbank in %@ operand code.
23196         (sh_encode_section_info): New.
23197         (push_regs): Add conditions for resbank.
23198         (sh_expand_epilogue): Likewise.
23199         (sh_insert_attributes): Likewise.
23200         (sh_attribute_table): Likewise.
23201         (sh_handle_resbank_handler_attribute): New.
23202         (sh2a_handle_function_vector_handler_attribute): New.
23203         (sh2a_is_function_vector_call): New.
23204         (sh2a_get_function_vector_number): New.
23205         (sh2a_function_vector_p): New.
23206         (sh_cfun_resbank_handler_p): New.
23207         * config/sh/sh.md (calli): Emit jsr/n if possible.
23208         (calli_tbr_rel): New.
23209         (calli_pcrel): Emit jsr/n if possible.
23210         (return_i): Emit rts/n if possible.
23211         (call_valuei_tbr_rel): New.
23212         (call_valuei_pcrel): Add condition for SH2A target.
23213         (call_value): Likewise.
23214         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
23215         (sh2a_get_function_vector_number): Likewise.
23216         (sh2a_is_function_vector_call): Likewise.
23217         * doc/extend.texi: Document TBR relative addressing of SH2A.
23218         (resbank): Add description for SH2A.
23219
23220 2008-03-24  Richard Guenther  <rguenther@suse.de>
23221
23222         PR c/22371
23223         * gimplify.c (gimplify_modify_expr): For frontend type-correct
23224         pointer assignments change conversions according to middle-end rules.
23225         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
23226         * configure.ac: Include type checking in yes.
23227         * configure: Regenerate.
23228
23229 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23230
23231         * diagnostic.c (diagnostic_count_diagnostic): Delete.
23232         (diagnostic_report_diagnostic): Update. Handle ICEs here.
23233
23234 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
23235
23236         * gthr-vxworks.h (UNUSED): Define.
23237
23238 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23239
23240         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
23241
23242 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
23243
23244         * doc/extend.texi (Function Attributes): Add missing comma in the
23245         example of the "alloc_size" attribute.
23246
23247 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
23248
23249         Revert:
23250         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
23251
23252         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
23253         32bit host.
23254
23255         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
23256
23257         PR target/35496
23258         * stor-layout.c (update_alignment_for_field): Set minimum alignment
23259         of the underlying type of a MS bitfield layout to the natural
23260         alignment of the type.
23261
23262         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
23263
23264         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23265         to their natural alignment to avoid store forwarding stalls.
23266
23267 2008-03-22  Richard Guenther  <rguenther@suse.de>
23268
23269         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
23270         For PHI nodes verify the address is invariant.
23271         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
23272         (get_symbol_constant_value): Use is_gimple_min_invariant.
23273         (maybe_fold_stmt_indirect): Likewise.
23274
23275 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
23276
23277         PR rtl-optimization/33927
23278         * Makefile.in (dse.o): Depend on $(TM_P_H).
23279         * expr.h (extract_low_bits): Declare.
23280         * expmed.c (extract_low_bits): New function.
23281         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
23282         * dse.c: Include tm_p.h.
23283         (find_shift_sequence): Remove the read_reg argument and return the
23284         read value.  Emit the instructions instead of returning them.
23285         Iterate on new_mode rather than calculating it each time.
23286         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
23287         source to NEW_MODE and extract_low_bits to convert the shifted
23288         value to READ_MODE.
23289         (replace_read): Allow the load and store to have different mode
23290         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
23291         or extraction instructions before trying the replacement.  Update
23292         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
23293
23294 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
23295
23296         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23297         to their natural alignment to avoid store forwarding stalls.
23298
23299 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23300
23301         PR target/27946
23302         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
23303         encouraging but not allowing gprs for input;
23304         change the input constraint to !f#r.
23305         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
23306         gprs for output;
23307         change the output constraint to !f#r.
23308
23309 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
23310
23311         PR target/13958
23312         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
23313         corresponding post-reload splitters.
23314         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
23315         when x87 FP math is selected.
23316         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
23317         New function prototype.
23318         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
23319         unreachable function to ease macroization of insn patterns.
23320
23321 2008-03-21  Martin Jambor  <mjambor@suse.cz>
23322
23323         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
23324         reference dumps if ddr is NULL or dependence is unknown.
23325
23326 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
23327
23328         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
23329         unsigned extension into account.
23330         (ATOMIC_COMPARE_AND_SWAP): Likewise.
23331         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
23332         Do computations on a scratch register.
23333
23334 2008-03-21  Richard Guenther  <rguenther@suse.de>
23335
23336         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23337         Use is_gimple_min_invariant instead of TREE_INVARIANT.
23338         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
23339         * tree-ssa-dom.c (record_equality): Likewise.
23340         * tree-inline.c (copy_body_r): Likewise.
23341         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
23342         TREE_INVARIANT.
23343
23344 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
23345
23346         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
23347         as 'delete_unused' argument.
23348
23349 2008-03-20  Richard Guenther  <rguenther@suse.de>
23350
23351         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23352         special casing of constant qualifiers.
23353         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
23354         care about them in general.
23355         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
23356         regardless of their type.
23357         (fold_stmt_r): Forcefully fold *& if we end up with that.
23358
23359 2008-03-20  Paul Brook  <paul@codesourcery.com>
23360
23361         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
23362         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
23363         linker flags.
23364         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
23365         definition.
23366         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
23367         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
23368
23369 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
23370
23371         * common.opt (Wmudflap): New option.
23372         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
23373         (mx_register_decls): Likewise.
23374         (mudflap_finish_file): Likewise.
23375         * doc/invoke.texi: Document -Wno-mudflap.
23376
23377 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
23378
23379         * c-format.c (replace_format_name_to_system_name): New.
23380         (cmp_attribs): New.
23381         (convert_format_name_to_system_name): New.
23382         (decode_format_attr): Add use of convert_format_name_to_system_name.
23383         (format_types_orig): Add gnu_ prefix to names.
23384         (check_format_info_main): Special treating of \0 escaped names for
23385         supporting multi-character format specifiers as I32, I64.
23386         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
23387         (gnu_target_overrides_format_attributes): New.
23388         * c-format.h: Add structure target_ovr_attr to hold
23389         system specific formatter names.
23390         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
23391         msformat-c.o file to c_target_objs and cxx_target_objs.
23392         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23393         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
23394         (TARGET_N_FORMAT_TYPES): New.
23395         * config/i386/msformat-c.c: New.
23396         * config/i386/t-cygming: Add build rule for msformat-c.o.
23397         * doc/extend.texi: Add new format names gnu_* and ms_* and
23398         further details.
23399         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23400
23401 2008-03-20  Ira Rosen  <irar@il.ibm.com>
23402
23403         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
23404         optimizations turned on under -O3.
23405         (ftree-vectorize): Add that the flag is turned on with -O3.
23406
23407 2008-03-20  Ben Elliston  <bje@au.ibm.com>
23408
23409         * regmove.c (try_auto_increment): Fix spelling error in comment.
23410         * final.c (final_scan_insn): Likewise.
23411
23412 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
23413
23414         PR target/14552
23415         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
23416         allocator preferences for "y" and "r" class registers.
23417         ("*mov<mode>_internal"): Ditto.
23418         ("*movv2sf_internal_rex64"): Ditto.
23419         ("*movv2sf_internal"): Ditto.
23420
23421 2008-03-19  Michael Matz  <matz@suse.de>
23422
23423         PR middle-end/35616
23424         * calls.c (expand_call): Check overlap of arguments with call
23425         address for sibcalls.
23426
23427 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
23428
23429         PR target/35496
23430         * stor-layout.c (update_alignment_for_field): Set minimum alignment
23431         of the underlying type of a MS bitfield layout to the natural
23432         alignment of the type.
23433
23434 2008-03-19  Jan Hubicka  <jh@suse.cz>
23435
23436         PR other/35094
23437         * toplev.c (decode_d_option): Handle all CPP flags.
23438         * tree-vrp.c: Update tree_pass descriptors.
23439         * regrename.c: Update tree_pass descriptors.
23440         * fwprop.c: Update tree_pass descriptors.
23441         * doc/invoke.texi: Remove documentation of dropped -d? flags.
23442         * tree-into-ssa.c: Update tree_pass descriptors.
23443         * tree-dump.c: Update tree_pass descriptors.
23444         * tree-complex.c: Update tree_pass descriptors.
23445         * tree-dump.h: Update tree_pass descriptors.
23446         * see.c: Update tree_pass descriptors.
23447         * cgraphbuild.c: Update tree_pass descriptors.
23448         * tracer.c: Update tree_pass descriptors.
23449         * tree-loop-distribution.c: Update tree_pass descriptors.
23450         * cgraph.c: Update tree_pass descriptors.
23451         * postreload-gcse.c: Update tree_pass descriptors.
23452         * postreload.c: Update tree_pass descriptors.
23453         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
23454         * tree-tailcall.c: Update tree_pass descriptors.
23455         * tree-pass.h (tree_opt_pass): Rename to ...
23456         (opt_pass) ... this one; add "type" field and remove letter field.
23457         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
23458         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
23459         all_lowering_passes): Update declaration.
23460         * ipa-cp.c: Update tree_pass descriptors.
23461         * final.c: Update tree_pass descriptors.
23462         * omp-low.c: Update tree_pass descriptors.
23463         * tree-ssa-dse.c: Update tree_pass descriptors.
23464         * ipa-reference.c: Update tree_pass descriptors.
23465         * tree-ssa-uncprop.c: Update tree_pass descriptors.
23466         * auto-inc-dec.c: Update tree_pass descriptors.
23467         * reorg.c: Update tree_pass descriptors.
23468         * cgraphunit.c: Update tree_pass descriptors.
23469         * tree-ssa-copyrename.c: Update tree_pass descriptors.
23470         * tree-ssa-ccp.c: Update tree_pass descriptors.
23471         * df-core.c: Update tree_pass descriptors.
23472         * mode-switching.c: Update tree_pass descriptors.
23473         * tree-nomudflap.c: Update tree_pass descriptors.
23474         * modulo-sched.c: Update tree_pass descriptors.
23475         * ipa-pure-const.c: Update tree_pass descriptors.
23476         * cse.c: Update tree_pass descriptors.
23477         * web.c: Update tree_pass descriptors.
23478         * tree-stdarg.c: Update tree_pass descriptors.
23479         * tree-ssa-math-opts.c: Update tree_pass descriptors.
23480         * tree-ssa-dom.c: Update tree_pass descriptors.
23481         * tree-nrv.c: Update tree_pass descriptors.
23482         * tree-ssa-alias.c: Update tree_pass descriptors.
23483         * loop-init.c: Update tree_pass descriptors.
23484         * gimple-low.c: Update tree_pass descriptors.
23485         * ipa-inline.c: Update tree_pass descriptors.
23486         * tree-ssa-sink.c: Update tree_pass descriptors.
23487         * global.c: Update tree_pass descriptors.
23488         * ifcvt.c: Update tree_pass descriptors.
23489         * jump.c: Update tree_pass descriptors.
23490         * predict.c: Update tree_pass descriptors.
23491         * tree-ssa-loop.c: Update tree_pass descriptors.
23492         * recog.c: Update tree_pass descriptors.
23493         * dse.c: Update tree_pass descriptors.
23494         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
23495         * tree-eh.c: Update tree_pass descriptors.
23496         * regmove.c: Update tree_pass descriptors.
23497         * local-alloc.c
23498         * function.c: Update tree_pass descriptors.
23499         * tree-vectorizer.c: Update tree_pass descriptors.
23500         * gcse.c: Update tree_pass descriptors.
23501         * ipa-type-escape.c: Update tree_pass descriptors.
23502         * tree-if-conv.c: Update tree_pass descriptors.
23503         * init-regs.c: Update tree_pass descriptors.
23504         * ipa.c: Update tree_pass descriptors.
23505         * tree-ssa-phiopt.c: Update tree_pass descriptors.
23506         * rtl-factoring.c: Update tree_pass descriptors.
23507         * lower-subreg.c: Update tree_pass descriptors.
23508         * bt-load.c: Update tree_pass descriptors.
23509         * tree-dfa.c: Update tree_pass descriptors.
23510         * except.c: Update tree_pass descriptors.
23511         * emit-rtl.c: Update tree_pass descriptors.
23512         * cfgexpand.c: Update tree_pass descriptors.
23513         * tree-cfgcleanup.c: Update tree_pass descriptors.
23514         * cfgcleanup.c: Update tree_pass descriptors.
23515         * tree-ssa-pre.c: Update tree_pass descriptors.
23516         * tree-sra.c: Update tree_pass descriptors.
23517         * tree-mudflap.c: Update tree_pass descriptors.
23518         * tree-ssa-copy.c: Update tree_pass descriptors.
23519         * cfglayout.c: Update tree_pass descriptors.
23520         * tree-ssa-forwprop.c: Update tree_pass descriptors.
23521         * tree-ssa-dce.c: Update tree_pass descriptors.
23522         * tree-ssa.c: Update tree_pass descriptors.
23523         * regclass.c: Update tree_pass descriptors.
23524         * integrate.c: Update tree_pass descriptors.
23525         * tree-optimize.c: Update tree_pass descriptors.
23526         * tree-ssa-phiprop.c: Update tree_pass descriptors.
23527         * tree-object-size.c: Update tree_pass descriptors.
23528         * combine.c: Update tree_pass descriptors.
23529         * tree-outof-ssa.c: Update tree_pass descriptors.
23530         * bb-reorder.c: Update tree_pass descriptors.
23531         * stack-ptr-mod.c: Update tree_pass descriptors.
23532         * var-tracking.c: Update tree_pass descriptors.
23533         * tree-profile.c: Update tree_pass descriptors.
23534         * tree-vect-generic.c: Update tree_pass descriptors.
23535         * reg-stack.c: Update tree_pass descriptors.
23536         * sched-rgn.c: Update tree_pass descriptors.
23537         * tree-ssa-structalias.c: Update tree_pass descriptors.
23538         * tree-cfg.c: Update tree_pass descriptors.
23539         * passes.c (current_pass): Update declaration.
23540         (finish_optimization_passes): Update.
23541         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
23542         (register_one_dump_file, register_dump_files_1, next_pass_1):
23543         Update arguments.
23544         (init_optimization_passes): Update handling of new types.
23545         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
23546         * ipa-struct-reorg.c: Update tree_pass descriptors.
23547         * tree-ssa-reassoc.c: Update tree_pass descriptors.
23548         * combine-stack-adj.c: Update tree_pass descriptors.
23549         * cfgrtl.c: Update tree_pass descriptors.
23550         * dce.c: Update tree_pass descriptors.
23551         * tree-ssanames.c: Update tree_pass descriptors.
23552
23553 2008-03-19  Richard Guenther  <rguenther@suse.de>
23554
23555         PR middle-end/35609
23556         * tree-ssa.c (walk_data): New structure.
23557         (warn_uninitialized_var): If not always_executed warn with "maybe"
23558         instead of "is".
23559         (execute_early_warn_uninitialized): Compute post-dominators.
23560         Initialize always_executed before processing each basic block.
23561
23562 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
23563
23564         PR target/35504
23565         * config/i386/i386.c (x86_this_parameter): Calculate correct location
23566         of "this" pointer when "regparm = N" or "fastcall" is in effect.
23567
23568 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23569
23570         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
23571
23572 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
23573
23574         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
23575         is true.
23576         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
23577         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
23578         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
23579         target after ignore has been set, and move there also the commputation
23580         of subtarget and original_target.
23581         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
23582         (LANG_HOOKS_INITIALIZER): Remove it.
23583         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
23584
23585 2008-03-18  Richard Guenther  <rguenther@suse.de>
23586
23587         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
23588         found an expression with constants, note that in the VN for the lhs.
23589         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
23590         fold them to constants if possible.  Run cleanup_cfg if done so.
23591         (execute_pre): Return todo.
23592         (do_pre): Likewise.
23593         (execute_fre): Likewise.
23594         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
23595         of constants.
23596         (get_prop_source_stmt): Look through pointer conversions.
23597
23598 2008-03-18  Jan Hubicka  <jh@suse.cz>
23599
23600         * tree-pretty-print.c: Include predict.h.
23601         (dump_generic_node): Dump predictor.
23602         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
23603         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
23604         * gimple-low.c (lower_stmt): Likewise.
23605         * expr.c (expand_expr_real): Likewise.
23606         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
23607         them.
23608         (build_predict_expr, build_predict_expr): New.
23609         * predict.h (predictor_name, build_predict_expr): Update.
23610         * c-typeck.c (c_finish_bc_stmt): Add prediction.
23611         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
23612         * predict.def (PRED_CONTINUE): Update hitrate.
23613         * tree.def (PREDICT_EXPR): Define.
23614         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
23615         do not handle BIND_EXPR.
23616         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
23617         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
23618         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
23619         operands.
23620
23621 2008-03-18  Michael Matz  <matz@suse.de>
23622
23623         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
23624
23625 2008-03-18  Richard Guenther  <rguenther@suse.de>
23626
23627         * tree-gimple.h (is_gimple_invariant_address): Declare.
23628         (is_gimple_constant): Likewise.
23629         * tree-gimple.c (is_gimple_constant): New function.
23630         (is_gimple_invariant_address): Likewise.
23631         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
23632         and is_gimple_invariant_address.
23633         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
23634         previous change.
23635         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
23636         an addressable base.
23637
23638 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
23639
23640         PR middle-end/35611
23641         * gimplify.c (gimplify_expr): Gimplify second operand of
23642         OMP_ATOMIC_LOAD.
23643
23644 2008-03-17  Richard Guenther  <rguenther@suse.de>
23645
23646         PR tree-optimization/19637
23647         * fold-const.c (fold_unary): Remove restrictions of removing
23648         intermediate pointer-conversions (P2)(P1)P0.
23649         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
23650         conversion to void pointer.
23651         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
23652
23653 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
23654
23655         PR debug/31510
23656         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
23657         emulated thread local variables.
23658
23659 2008-03-16  Richard Guenther  <rguenther@suse.de>
23660
23661         PR middle-end/35607
23662         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23663         expand TREE_INVARIANT operations that are not gimple invariant.
23664
23665 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
23666
23667         * doc/extend.texi (Alignment): Say that the ABI controls
23668         the __alignof__ for non-strict-alignment targets rather
23669         than being a recommendation.
23670
23671 2008-03-15  Paul Brook  <paul@codesourcery.com>
23672
23673         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
23674         annotations.
23675         (arm_output_fn_unwind): Mark functions that can not be unwound.
23676
23677 2008-03-15  Paul Brook  <paul@codesourcery.com>
23678
23679         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
23680         extension instructions.
23681
23682 2008-03-15  Richard Guenther  <rguenther@suse.de>
23683
23684         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
23685         and fold constant aggregate refs.
23686         (fold_const_aggregate_ref): Handle string constants
23687         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
23688         (evaluate_stmt): Simplify now that ccp_fold folds constant
23689         aggregate refs.
23690
23691 2008-03-15  Paul Brook  <paul@codesourcery.com>
23692
23693         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
23694         (extzv): Use gen_extzv_t2.
23695         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
23696
23697 2008-03-15  Richard Guenther  <rguenther@suse.de>
23698
23699         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
23700         (fold_const_aggregate_ref): Likewise.
23701         (get_value): Return NULL if we don't have any values.
23702         (ccp_finalize): Set const_val to NULL after freeing it.
23703         * tree-flow.h (get_symbol_constant_value): Declare.
23704         (fold_const_aggregate_ref): Likewise.
23705         * tree-ssa-sccvn.c (try_to_simplify): Use them.
23706
23707 2008-03-15  Richard Guenther  <rguenther@suse.de>
23708
23709         PR middle-end/35593
23710         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
23711         to not produce negative array indices if not allowed.  Add
23712         parameter to indicate that.
23713         (maybe_fold_offset_to_component_ref): Allow negative array
23714         indices only for the first member of a structure.
23715         (maybe_fold_offset_to_reference): Allow negative array indices.
23716         (maybe_fold_stmt_addition): Likewise.
23717
23718 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
23719             Anatoly Sokolov <aesok@post.ru>
23720
23721         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
23722         (avr_arch): Add ARCH_AVR6.
23723         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
23724         (initial_elimination_offset): Initialize and use 'avr_pc_size'
23725         instead of fixed value 2.
23726         (print_operand_address): Use gs() asm specifier instead of pm().
23727         (avr_assemble_integer): (Ditto.).
23728         (avr_output_addr_vec_elt): (Ditto.).
23729         (print_operand): Handle "!" code.
23730         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
23731         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
23732         (AVR_HAVE_EIJMP_EICALL): Define.
23733         (AVR_3_BYTE_PC): Redefine.
23734         (AVR_2_BYTE_PC): (Ditto.).
23735         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
23736         (LINK_SPEC): Add atmega2560 and atmega2561.
23737         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
23738         (crtm2561.o).
23739         * config/avr/avr.md (call_insn): Use eicall instead of icall
23740         for 3 byte PC devices.
23741         (call_value_insn): (Ditto.).
23742         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
23743         (indirect_jump): Use only for for 2 byte PC devices.
23744         (*tablejump): (Ditto.).
23745         (*indirect_jump_avr6): Add insn.
23746         (*tablejump_rjmp): Don't use for 3 byte PC devices.
23747         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
23748         instead of ijmp for 3 byte PC devices.
23749         (__tablejump2__): (Ditto.).
23750         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
23751         (MULITLIB_DIRNAMES): (Ditto.).
23752         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
23753
23754 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
23755
23756         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
23757         "sse2_umulsidi3".  Use V1DI mode for operand 0.
23758         ("mmx_psadbw"): Use V1DI mode for operand 0.
23759         * config/i386/i386-modes.def (V1SI): New vector mode.
23760         * config/i386/i386.c (struct builtin_description)
23761         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
23762         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
23763         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
23764         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
23765         v1di_ftype_v8qi_v8qi type.
23766         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
23767
23768         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
23769         __builtin_ia32_pmuludq]: Fix the mode of return value.
23770
23771 2008-03-15  Richard Guenther  <rguenther@suse.de>
23772
23773         PR middle-end/35595
23774         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
23775         being a PHI_NODE.
23776
23777 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
23778
23779         * doc/invoke.texi (Option Summary, Xtensa Options): Document
23780         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
23781         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
23782         unless TARGET_SERIALIZE_VOLATILE is enabled.
23783         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
23784         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
23785         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
23786
23787 2008-03-14  Richard Guenther  <rguenther@suse.de>
23788
23789         PR tree-optimization/34172
23790         * tree-flow.h (refs_may_alias_p): Declare.
23791         (get_single_def_stmt): Likewise.
23792         (get_single_def_stmt_from_phi): Likewise.
23793         (get_single_def_stmt_with_phi): Likewise.
23794         * tree-dfa.c (refs_may_alias_p): New function.
23795         (get_single_def_stmt): Likewise.
23796         (get_single_def_stmt_from_phi): Likewise.
23797         (get_single_def_stmt_with_phi): Likewise.
23798         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
23799         (vn_reference_lookup_1): New helper function.
23800         (vn_reference_lookup): Walk the virtual use-def chain to
23801         continue searching for a match if the def does not alias the
23802         reference we are looking for.
23803
23804 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
23805
23806         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
23807         archive and Perzl.  Update The Written Word listing.
23808
23809 2008-03-14  Richard Guenther  <rguenther@suse.de>
23810
23811         PR tree-optimization/34043
23812         PR tree-optimization/33989
23813         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
23814         when doing FRE.
23815         (bitmap_find_leader): Use extra argument to verify dominance
23816         relationship inside a basic-block.
23817         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
23818         (find_leader_in_sets): Adjust.
23819         (create_component_ref_by_pieces): Take extra argument for
23820         dominance check, handle lookup failures.
23821         (find_or_generate_expression): Likewise.
23822         (create_expression_by_pieces): Likewise.
23823         (insert_into_preds_of_block): Adjust.
23824         (create_value_expr_from): If asked for, verify all operands
23825         are in the blocks AVAIL_OUT set.
23826         (make_values_for_stmt): Check for SSA_NAMEs that are life
23827         over an abnormal edge.
23828         (compute_avail): Remove such check.
23829         (do_SCCVN_insertion): New function.
23830         (eliminate): If we do not find a leader suitable for replacement
23831         insert a replacement expression from SCCVN if available.
23832         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
23833         (struct vn_ssa_aux): Add needs_insertion flag.
23834         * tree-ssa-sccvn.c (may_insert): New global flag.
23835         (copy_reference_ops_from_ref): Value-number union member access
23836         based on its size, not type and member if insertion is allowed.
23837         (visit_reference_op_load): For a weak match from union type
23838         punning lookup a view-converted value and insert a SSA_NAME
23839         for that value if that is not found.
23840         (visit_use): Make dumps shorter.  Do not disallow value numbering
23841         SSA_NAMEs that are life over an abnormal edge to constants.
23842         (free_scc_vn): Release inserted SSA_NAMEs.
23843         (run_scc_vn): New flag to specify whether insertion is allowed.
23844         Process SSA_NAMEs in forward order.
23845         * tree-ssa-loop-im.c (for_each_index): Handle invariant
23846         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
23847         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
23848         pointer type to/from integral types that do not change the
23849         precision to regular conversions.
23850
23851 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
23852
23853         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
23854         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
23855         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
23856         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
23857         input arguments and the mode of return value.  Built-in functions
23858         that operate on whole 64-bit MMX register now use V1DI mode.
23859
23860 2008-03-13  Alon Dayan  <alond@il.ibm.com>
23861             Olga Golovanevsky  <olga@il.ibm.com>
23862
23863         PR tree-optimization/35041
23864         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
23865         to locate the right position in a statement.
23866
23867 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
23868
23869         PR target/34000
23870         PR target/35553
23871         * config/i386/xmmintrin.h:  Change all static inline functions to
23872         extern inline and add __gnu_inline__ attribute.
23873         * config/i386/bmintrin.h: Ditto.
23874         * config/i386/smmintrin.h: Ditto.
23875         * config/i386/tmmintrin.h: Ditto.
23876         * config/i386/mmintrin-common.h: Ditto.
23877         * config/i386/ammintrin.h: Ditto.
23878         * config/i386/emmintrin.h: Ditto.
23879         * config/i386/pmmintrin.h: Ditto.
23880         * config/i386/mmintrin.h: Ditto.
23881         * config/i386/mm3dnow.h: Ditto.
23882
23883 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
23884
23885         PR middle-end/35185
23886         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
23887         (lower_omp_2): New function.
23888         (lower_omp_1, lower_omp): Rewritten.
23889
23890 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
23891
23892         PR 35054
23893         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
23894         with the phrase "Microsoft Windows compilers".
23895         (Push/Pop Macro Pragmas): New subsection. Document
23896         #pragma push_macro and pragma pop_macro.
23897
23898 2008-03-12  Paul Brook  <paul@codesourcery.com>
23899
23900         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
23901
23902 2008-03-12  Paul Brook  <paul@codesourcery.com>
23903
23904         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
23905         (thumb2_alusi3_short): Exclude PLUS and MINUS.
23906         (thumb2_addsi_shortim): Rename ...
23907         (thumb2_addsi_short): ... to this.  Allow register operands.
23908         (thumb2_subsi_short): New pattern.
23909         (thumb2_one_cmplsi2_short,
23910         thumb2_negsi2_short): New patterns and peepholes.
23911
23912 2008-03-12  Paul Brook  <paul@codesourcery.com>
23913
23914         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
23915
23916 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
23917
23918         * config/i386/i386.md (int_cond): New code iterator.
23919         (fp_cond): Ditto.
23920         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
23921         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
23922         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
23923         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
23924         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
23925         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
23926         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
23927         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
23928
23929 2008-03-12  Paul Brook  <paul@codesourcery.com>
23930
23931         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
23932         instead of {arm,thumb}_compute_save_reg_mask.
23933         (output_return_instruction): Ditto.
23934         (thumb_unexpanded_epilogue): Ditto.
23935         (thumb1_expand_prologue): Ditto.
23936         (thumb1_output_function_prologue): Ditto.
23937         (arm_set_return_address): Ditto.
23938         (thumb_set_return_address): Ditto.
23939         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
23940         regs to achieve stack alignment.
23941         (thumb1_compute_save_reg_mask): Fix compiler warning.
23942         (arm_output_epilogue): Use offsets->saved_regs_mask.
23943         Adjust stack pointer by poping call clobered registers.
23944         (arm_expand_prologue): Use offsets->saved_regs_mask.
23945         Adjust stack pointer by pushing extra registers.
23946         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
23947
23948 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
23949
23950         PR tree-opt/35422
23951         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
23952         conversion to the operands of a multiplication.
23953
23954 2008-03-12  Richard Guenther  <rguenther@suse.de>
23955
23956         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
23957         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
23958         * timevar.def (TV_TREE_PHIPROP): Add.
23959         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
23960         pass description.  Use TV_TREE_PHIPROP.
23961         * tree-ssa-forwprop.c: Remove phiprop code.
23962
23963 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
23964
23965         PR middle-end/35549
23966         * omp-low.c (maybe_lookup_decl): Constify first argument.
23967         (use_pointer_for_field): Change last argument from bool to
23968         omp_context *.  Disallow shared copy-in/out in nested
23969         parallel if decl is shared in outer parallel too.
23970         (build_outer_var_ref, scan_sharing_clauses,
23971         lower_rec_input_clauses, lower_copyprivate_clauses,
23972         lower_send_clauses, lower_send_shared_vars): Adjust callers.
23973
23974 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
23975             Ira Rosen  <irar@il.ibm.com>
23976
23977         * tree-vectorizer.c (free_stmt_vec_info): New function.
23978         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
23979         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
23980         * tree-vectorizer.h (free_stmt_vec_info): Declare.
23981         * tree-vect-transform.c (vectorizable_conversion): Free
23982         vec_oprnds0 if it was allocated.
23983         (vect_permute_store_chain): Remove unused VECs.
23984         (vectorizable_store): Free VECs that are allocated in the..
23985         function.
23986         (vect_transform_strided_load, vectorizable_load): Likewise.
23987         (vect_remove_stores): Simplify the code.
23988         (vect_transform_loop): Move code to vect_remove_stores().
23989         Call vect_remove_stores() and free_stmt_vec_info().
23990
23991 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23992
23993         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
23994         TARGET_HPUX.  Revise comment.
23995         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
23996         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
23997         Use sr4 variant of `be' instruction when not generating PIC code.
23998         (attr_length_call): Adjust for above change.
23999
24000 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24001
24002         * ipa-reference.c (static_execute): Remove module_statics_const and
24003         associated setting code.
24004
24005 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
24006
24007         PR target/35540
24008         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
24009         predicate for operand 1.
24010         (paritysi2_cmp): Use register_operand predicate for operand 2.
24011         Use earlyclobber modifier for operand 1.  Remove support for
24012         memory operands.
24013         (paritydi2_cmp): Use register_operand predicate for operand 3.
24014         Use earlyclobber modifier for operand 1.  Remove support for
24015         memory operands.
24016
24017 2008-03-11  Paul Brook  <paul@codesourcery.com>
24018             Vladimir Prus  <vladimir@codesourcery.com>
24019
24020         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
24021         (arm_compute_save_reg0_reg12_mask): Always
24022         check if register 11 must be saved.  Always safe hard frame pointer
24023         when frame_pointer_needeed.
24024         (arm_compute_save_reg_mask): Save IP and PC
24025         only with apcs frames.
24026         (arm_output_epilogue): Adjust Thumb2 codepath to
24027         be also invoked and work for ARM non-apcs frames.
24028         (arm_expand_prologue): Don't bother saving IP
24029         for non-apcs frame, since it's not clobbered by
24030         prologue code.  Implement non-apcs frame
24031         layout.
24032
24033 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
24034
24035         PR rtl-optimization/35281
24036         * expr.c (convert_move): Use a new pseudo for the intermediate
24037         from_mode->word_mode result.
24038
24039 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
24040
24041         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
24042         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
24043         * toplev.c (compile_file): Don't call it.
24044
24045 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
24046
24047         PR middle-end/35526
24048         * expr.c (store_expr): Call emit_block_move if the mode
24049         of "temp" RTX is BLKmode.
24050
24051 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24052             Richard Guenther  <rguenther@suse.de>
24053
24054         PR tree-optimization/31358
24055         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
24056         the step with a NULL_TREE.
24057         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
24058         to sizetype if type is a pointer type.
24059         (add_candidate_1): Don't convert the base and step to
24060         the generic type if the orginal type is a pointer type.
24061         (add_iv_value_candidates): Use sizetype for the step
24062         if type is a pointer type.
24063         (cand_value_at): Likewise.
24064         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
24065         for pointer types.
24066         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
24067         Don't convert the tem affine to the type.
24068         (add_elt_to_tree): Use sizetype for the step if a pointer.
24069         Use POINTER_PLUS_EXPR for pointers.
24070         (aff_combination_to_tree): Use sizetype for the step if a
24071         pointer.
24072
24073 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
24074
24075         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
24076         Remove commutativity hint.
24077
24078 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
24079
24080         PR c/35438
24081         PR c/35439
24082         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
24083         errorneous type.  Check that v is a VAR_DECL.
24084
24085         PR middle-end/35099
24086         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
24087
24088 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
24089
24090         PR tree-optimization/35494
24091         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
24092         may be overriden at link and run time.
24093
24094 2008-03-10  Richard Guenther  <rguenther@suse.de>
24095
24096         PR tree-optimization/34677
24097         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
24098         (poolify_tree): Likewise.
24099         (modify_expr_template): Likewise.
24100         (poolify_modify_stmt): Likewise.
24101         (insert_fake_stores): Handle all component-ref style stores
24102         in addition to INDIRECT_REF.  Also handle complex types.
24103         Do not poolify the inserted load.
24104         (realify_fake_stores): Do not rebuild the tree but only
24105         make it a SSA_NAME copy.
24106         (init_pre): Remove initialzation of modify_expr_template.
24107         Do not allocate modify_expr_node_pool.
24108         (fini_pre): Do not free modify_expr_node_pool.
24109
24110 2008-03-10  Paul Brook  <paul@codesourcery.com>
24111
24112         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
24113         to avoid conflicts.
24114
24115 2008-03-10  Paul Brook  <paul@codesourcery.com>
24116             Mark Shinwell  <shinwell@codesourcery.com>
24117
24118         * config/arm/cortex-r4.md: New.
24119         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
24120         insn attributes.
24121         * config/arm/arm.md: Include cortex-r4.md.
24122         (insn): Add smmls, sdiv and udiv values.
24123         (generic_sched): Don't use generic scheduling for Cortex-R4.
24124         (arm_issue_rate): New function.
24125         (TARGET_SCHED_ISSUE_RATE): Define.
24126
24127 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
24128
24129         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
24130
24131 2008-03-10  Richard Guenther  <rguenther@suse.de>
24132
24133         * tree-ssa-pre.c (get_sccvn_value): Simplify.
24134         (compute_avail): Do not add stmt uses to AVAIL_OUT.
24135
24136 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
24137
24138         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
24139         Set default to true.
24140
24141 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24142
24143         * c.opt (Wsynth): Deprecate.
24144         * doc/invoke.texi (Option Summary, Warning Options): Document
24145         -Wno-format-contains-nul.
24146
24147 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
24148
24149         PR target/35496
24150         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
24151         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
24152
24153 2008-03-09  Ira Rosen  <irar@il.ibm.com>
24154
24155         * config/rs6000/rs6000.c (builtin_description): Rename vector
24156         left shift operations.
24157         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
24158         (altivec_vsl<VI_char>): Rename to ...
24159         (ashl<mode>3): ... new name.
24160         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
24161         gen_ashlv4si3.
24162         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
24163
24164 2008-03-08  Richard Guenther  <rguenther@suse.de>
24165
24166         * coverage.h (tree_coverage_counter_addr): Declare.
24167         * coverage.c (tree_coverage_counter_addr): New function.
24168         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
24169         before using again.
24170         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
24171         (tree_gen_one_value_profiler): Likewise.
24172         (tree_gen_ic_profiler): Likewise.
24173         (tree_gen_average_profiler): Likewise.
24174         (tree_gen_ior_profiler): Likewise.
24175
24176 2008-03-08  Richard Guenther  <rguenther@suse.de>
24177
24178         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
24179         (vn_binary_op_insert): Likewise.
24180         (vn_unary_op_lookup): Likewise.
24181         (vn_unary_op_insert): Likewise.
24182         (vn_nary_op_lookup): Declare.
24183         (vn_nary_op_insert): Likewise.
24184         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
24185         and binary hashes, use a single obstack for unary_op_pool
24186         and binary_op_pool.
24187         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
24188         a single struct vn_nary_op_s.  Store tree code length and
24189         a variable number of operands.
24190         (struct vn_reference_op_struct): Remove unused op2.
24191         (vn_reference_op_eq): Do not compare op2.
24192         (vn_reference_op_compute_hash): Do not compute hash of op2.
24193         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
24194         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
24195         with vn_nary_op_compute_hash.
24196         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
24197         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
24198         vn_nary_op_lookup.
24199         (vn_unary_op_insert, vn_binary_op_insert): Replace with
24200         vn_nary_op_insert.
24201         (visit_unary_op): Call nary functions.
24202         (visit_binary_op): Likewise.
24203         (process_scc): Adjust for struct vn_tables_s changes.
24204         (allocate_vn_table): Likewise.
24205         (free_vn_table): Likewise.
24206         * tree-vn.c (vn_add): Call nary functions.
24207         (vn_lookup): Likewise.
24208
24209 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
24210
24211         PR target/35498
24212         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
24213         wdst back after sync_compare_and_swapqhi_internal.
24214
24215 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
24216
24217         PR target/22152
24218         * config/i386/i386-modes.def (V1DI): New vector mode.
24219         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
24220         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
24221         (MMXMODE248): Ditto.
24222         (MMXMODE): Add V1DI mode.
24223         (mmxvecsize): Change DI mode to V1DI mode.
24224         ("mov<mode>): Use MMXMODEI8 mode iterator.
24225         ("*mov<mode>_internal_rex64"): Ditto.
24226         ("*mov<mode>_internal"): Ditto.
24227         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
24228         ("mmx_sub<mode>3"): Ditto.
24229         ("mmx_adddi3"): Remove insn pattern.
24230         ("mmx_subdi3"): Ditto.
24231         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
24232         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
24233         ("mmx_ashl<mode>3"): Ditto.
24234         ("mmx_lshrdi3"): Remove insn pattern.
24235         ("mmx_ashldi3"): Ditto.
24236         * config/i386/i386.c (classify_argument): Handle V1DImode.
24237         (function_arg_advance_32): Ditto.
24238         (function_arg_32): Ditto.
24239         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
24240         mmx_addv1di3 insn pattern.
24241         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
24242         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
24243         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
24244         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
24245         Remove definitions of built-in functions.
24246         (V1DI_type_node): New node.
24247         (v1di_ftype_v1di_int): Ditto.
24248         (v1di_ftype_v1di_v1di): Ditto.
24249         (v2si_ftype_v2si_si): Ditto.
24250         (v4hi_ftype_v4hi_di): Remove node.
24251         (v2si_ftype_v2si_di): Ditto.
24252         (ix86_init_mmx_sse_builtins): Handle V1DImode.
24253         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
24254         Redefine builtins using def_builtin_const with *_ftype_*_int node.
24255         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
24256         Add new builtins using def_builtin_const.
24257         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
24258         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
24259         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
24260         * config/i386/mmintrin.h (__v1di): New typedef.
24261         (_mm_add_si64): Cast arguments to __v1di type.
24262         (_mm_sub_si64): Ditto.
24263         (_mm_sll_pi16): Cast __count to __v4hi type.
24264         (_mm_sll_pi32): Cast __count to __v2si type.
24265         (_mm_sll_si64): Cast arguments to __v1di type.
24266         (_mm_srl_pi16): Cast __count to __v4hi type.
24267         (_mm_srl_pi32): Cast __count to __v2si type.
24268         (_mm_srl_si64): Cast arguments to __v1di type.
24269         (_mm_sra_pi16): Cast __count to __v4hi type.
24270         (_mm_sra_pi32): Cast __count to __v2si type.
24271         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
24272         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
24273         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
24274         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
24275         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
24276         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
24277         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
24278         (_mm_srai_pi32): Use __builtin_ia32_psradi.
24279         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
24280         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
24281         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
24282         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
24283
24284 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
24285
24286         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
24287
24288 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
24289
24290         PR target/35373
24291         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
24292         reg+const addressing for Altivec modes.  Don't generate reg+reg
24293         addressing for TFmode or TDmode quantities.
24294
24295 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
24296
24297         * c-common.c (vector_types_convertible_p): Call langhook
24298         instead of comptypes.
24299
24300 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24301
24302         PR tree-opt/35402
24303         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
24304         integral and scalar float variables which have a
24305         NULL DECL_INITIAL.
24306
24307 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
24308
24309         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
24310         dwarf_register_span hook when emitting unwind information for
24311         register-to-memory saves.
24312         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
24313         (rs6000_frame_related): Remove call to spe_synthesize_frame.
24314
24315 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
24316
24317         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
24318         for the same VAR_DECL.
24319
24320 2008-03-06  Tom Tromey  <tromey@redhat.com>
24321
24322         * treelang: Delete.
24323         * doc/standards.texi (Standards): Don't mention treelang.
24324         * doc/invoke.texi (Overall Options): Don't mention treelang.
24325         * doc/install.texi (Prerequisites): Don't mention bison or
24326         treelang.
24327         (Configuration): Don't mention treelang.
24328         (Building): Likewise.
24329         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
24330
24331 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
24332
24333         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
24334         word-extractions out of a multi-word object.
24335
24336 2008-03-06  Richard Guenther  <rguenther@suse.de>
24337
24338         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
24339         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
24340         result type and precision.
24341         * expr.c (get_inner_reference): Set unsignedp based on the result
24342         type of BIT_FIELD_REF.
24343         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
24344         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
24345         (try_instantiate_multiple_fields): Likewise.  Use the correct type
24346         for BIT_FIELD_REF.
24347         (sra_build_assignment): Likewise.
24348         (sra_build_elt_assignment): Likewise.
24349         (sra_explode_bitfield_assignment): Likewise.
24350         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
24351         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
24352         set BIT_FIELD_REF_UNSIGNED.
24353         (vectorizable_load): Likewise.
24354
24355 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
24356
24357         * cse.c (cse_extended_basic_block): Invalidate artificial defs
24358         at bb start.
24359
24360 2008-03-06  Richard Guenther  <rguenther@suse.de>
24361
24362         * alias.c (struct alias_set_entry): Move has_zero_child field
24363         to pack with alias_set.
24364
24365 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
24366
24367         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24368         32bit host.
24369
24370 2008-03-05  Ian Lance Taylor  <iant@google.com>
24371
24372         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
24373
24374 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
24375
24376         * fwprop.c (update_df): Support width and offset parameters of
24377         df_ref_create.
24378         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
24379         global_conflicts): Change DF_REF_EXTRACT to either
24380         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24381         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24382         * df-scan.c (df_ref_record, df_defs_record,
24383         df_ref_create_structure, df_def_record_1, df_uses_record,
24384         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
24385         df_bb_refs_collect, df_entry_block_defs_collect,
24386         df_exit_block_uses_collect): Support new width and offset fields.
24387         (ref_extract_pool): New storage pool.
24388         (df_free_ref): New function.
24389         (df_reg_chain_unlink, df_free_collection_rec,
24390         df_sort_and_compress_refs): Call df_free_ref.
24391         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
24392         of df_ref_extract.
24393         (df_ref_create_structure): Allocate df_ref_extract if offset and
24394         width fields are used.
24395         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
24396         (df_uses_record): Get offset and width from ZERO_EXTRACT
24397         and SIGN_EXTRACT.
24398         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
24399         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24400         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24401         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
24402         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24403         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24404         (df_ref_extract): New structure.
24405         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
24406         (df_ref_create): Add width and offset parameters.
24407
24408 2008-03-05  Richard Guenther  <rguenther@suse.de>
24409
24410         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24411         Use ranges_overlap_p.
24412         (offset_overlaps_with_access): Rename
24413         to ranges_overlap_p and move ...
24414         * tree-flow-inline.h (ranges_overlap_p): ... here.
24415
24416         * tree.h (get_inner_reference, handled_component_p): Update
24417         comments.
24418
24419         * tree.h (record_component_aliases, get_alias_set,
24420         alias_sets_conflict_p, alias_sets_must_conflict_p,
24421         objects_must_conflict_p): Move declarations ...
24422         * alias.h (record_component_aliases, get_alias_set,
24423         alias_sets_conflict_p, alias_sets_must_conflict_p,
24424         objects_must_conflict_p): ... here.
24425         Include coretypes.h.
24426         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
24427
24428 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
24429
24430         * cfg.c: Include tree-flow.h.
24431         (remove_edge_raw): Call redirect_edge_var_map_clear.
24432         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
24433         * tree-flow-inline.h (redirect_edge_var_map_def): New.
24434         (redirect_edge_var_map_result): New.
24435         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
24436         PENDING_STMT use with redirect_edge_var_map_*.
24437         * tree-ssa.c (edge_var_maps): New definition.
24438         (redirect_edge_var_map_add): New.
24439         (redirect_edge_var_map_clear): New.
24440         (redirect_edge_var_map_dup): New.
24441         (redirect_edge_var_map_vector): New.
24442         (redirect_edge_var_map_destroy): New.
24443         (ssa_redirect_edge): Replace PENDING_STMT use with
24444         redirect_edge_var_map_*.
24445         (flush_pending_stmts): Same.
24446         (delete_tree_ssa): Destroy edge var map.
24447         * tree-flow.h (struct _edge_var_map): New.
24448         Define edge_var_map vector type.
24449         Declare redirect_edge_var_map_* prototypes.
24450         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
24451         * tree-cfg.c (reinstall_phi_args): Replace
24452         PENDING_STMT use with redirect_edge_var_map_*.
24453
24454 2008-03-05  Richard Guenther  <rguenther@suse.de>
24455
24456         PR tree-optimization/35472
24457         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
24458         whose single use_stmt has a overlapping set of loaded and
24459         stored symbols as that use_stmt might be a noop assignment then.
24460
24461 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
24462
24463         * gthr-rtems.h: Implement __gthread_mutex_destroy.
24464
24465 2008-03-05  Richard Guenther  <rguenther@suse.de>
24466
24467         PR c++/35336
24468         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
24469         should be constants.
24470         * tree-cfg.c (verify_expr): Verify it.
24471         * fold-const.c (fold_truthop): Remove code generating
24472         BIT_FIELD_REFs of structure bases.
24473         (fold_binary): Likewise.
24474         (fold_ternary): Position and size of BIT_FIELD_REFs are
24475         always host integers.
24476         (make_bit_field_ref): Remove.
24477         (optimize_bit_field_compare): Remove.
24478         (all_ones_mask_p): Remove.
24479
24480 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
24481
24482         PR gcc/33009
24483         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
24484         (split_block_and_df_analyze): New. Split basic block and rebuild
24485         dataflow.
24486         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
24487         SPLIT_BLOCK.
24488         (split_pattern_seq): Likewise.
24489         (erase_matching_seqs): Likewise.
24490         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
24491
24492 2008-03-04  Geoff Keating  <geoffk@apple.com>
24493
24494         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
24495         declaration and code.
24496         (tree_invalid_nonnegative_warnv_p): Likewise.
24497
24498 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
24499
24500         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
24501         examples.  Truncate option-names then causing overfull hbox.
24502
24503 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24504
24505         PR target/35222
24506         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
24507         on hpux10.
24508         * configure: Rebuilt.
24509
24510 2008-03-04  Rafael Espíndola  <espindola@google.com>
24511
24512         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
24513         (tree_unary_nonnegative_warnv_p): New.
24514         (tree_binary_nonnegative_warnv_p): New.
24515         (tree_single_nonnegative_warnv_p): New.
24516         (tree_invalid_nonnegative_warnv_p): New.
24517         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
24518
24519 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24520
24521         PR 28322
24522         * opts.c (handle_option): Postpone 'unknown option' errors only for
24523         warning options.
24524
24525 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
24526
24527         PR target/35453
24528         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
24529         (_SIDD_XXX): This.
24530
24531 2008-03-04  Rafael Espíndola  <espindola@google.com>
24532
24533         * fold-const.c (tree_unary_nonzero_warnv_p): New.
24534         (tree_binary_nonzero_warnv_p): New.
24535         (tree_single_nonzero_warnv_p): New.
24536         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
24537
24538 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
24539
24540         PR middle-end/35456
24541         * fold-const.c (fold_cond_expr_with_comparison): Prevent
24542         transformations for modes that have signed zeros.
24543         * ifcvt.c (noce_try_abs): Ditto.
24544
24545 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
24546
24547         * config/i386/i386.c (override_options): Force
24548         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
24549
24550 2008-03-04  Jan Hubicka  <jh@suse.cz>
24551
24552         PR c++/35262
24553         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
24554         in last commit.
24555
24556 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
24557
24558         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
24559         label to probe the stack.
24560
24561 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
24562
24563         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
24564         (__gthr_win32_mutex_destroy): Declare.
24565         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
24566         __gthr_win32_mutex_destroy.
24567         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
24568
24569 2008-03-03  Jan Hubicka  <jh@suse.cz>
24570
24571         PR c++/35262
24572         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
24573         aggressive on inlining cold calls.
24574
24575 2008-03-03  Richard Guenther  <rguenther@suse.de>
24576
24577         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
24578         struct copies into the expression table.
24579         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
24580         (try_to_simplify): Likewise.
24581         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
24582         integral and pointer arguments which do not change the
24583         precision to NOP_EXPRs.
24584         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
24585         VIEW_CONVERT_EXPR case.
24586
24587 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
24588
24589         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
24590         defined in a loop at depth 0 is invariant.
24591         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
24592         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
24593         be called at loop depth 0.
24594
24595 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
24596
24597         PR driver/35420
24598         * gcc.c (process_command): Update copyright notice dates.
24599         * gcov.c (print_version): Likewise.
24600         * gcov-dump.c (print_version): Likewise.
24601         * mips-tfile.c (main): Likewise.
24602         * mips-tdump.c (main): Likewise.
24603
24604 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24605
24606         PR 24924
24607         * c-common.c (flag_permissive): Delete.
24608         (constant_expression_warnings): Check flags first.
24609         (constant_expression_error): New.
24610         * c-common.h (flag_permissive): Delete.
24611         (constant_expression_error): Declare.
24612         * flags.h (flag_permissive): Declare. Update description.
24613         * diagnostic.c (pedwarn): Update.
24614         (permerror): New.
24615         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
24616         (permissive_error_kind): New.
24617         * toplev.c (flag_permissive): Define. Update description.
24618         * toplev.h (permissive_error_kind): Declare.
24619         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
24620         (pedwarn_c90): Use pedantic_warning_kind.
24621         * c-opts.c (c_common_post_options): flag_permissive does not affect
24622         flag_pedantic_errors.
24623
24624 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
24625
24626         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
24627         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
24628         __absvsi2, __absvDI2): Use unsigned arithmetic.
24629
24630 2008-03-02  Andi Kleen  <ak@suse.de>
24631             Richard Guenther  <rguenther@suse.de>
24632
24633         * struct-equiv.c: Remove file.
24634         * cfg_cleanup.c (condjump_equiv_p): Remove.
24635         * Makefile.in (OBJS-common): Remove struct-equiv.o.
24636         (struct-equiv.o): Remove rule.
24637         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
24638         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
24639         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
24640
24641 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
24642
24643         * ifcvt.c (noce_process_if_block): Try to handle only the then
24644         block if the else block exists but isn't suitable.
24645
24646 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
24647
24648         PR gcc/35063
24649         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
24650         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
24651         regression from previous patch.
24652
24653 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
24654
24655         PR gcc/35063
24656         * gthr.h: Add __gthread_mutex_destroy as a function that must be
24657         implemented.
24658         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
24659         * gthr-single.h (__gthread_mutex_destroy): Likewise.
24660         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
24661         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
24662         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
24663         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
24664         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
24665         (__gthread_mutex_destroy_function): Rename to
24666         __gthread_mutex_destroy.
24667         * gthr-dce.h (__gthread_mutex_destroy): Call
24668         pthread_mutex_destroy.
24669         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
24670         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
24671         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
24672
24673 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
24674
24675         * df-scan.c (df_ref_chain_change_bb): Simplify.
24676         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
24677         set_block_for_insn if there's any change.
24678         * df.h ((df_insn_change_bb): Fix prototype.
24679         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
24680         df_insn_change_bb, don't call set_block_for_insn.
24681         * emit-rtl.c (reorder_insns): Likewise.
24682         * haifa-sched.c (move_insn): Likewise.
24683
24684 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
24685
24686         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
24687
24688 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
24689
24690         * tree-flow-inline.h (next_readonly_imm_use): Return
24691         NULL_USE_OPERAND_P after the end.
24692
24693 2008-03-01  Richard Guenther  <rguenther@suse.de>
24694
24695         PR tree-optimization/35411
24696         * tree-sra.c (sra_build_assignment): Split conversion to
24697         final type to a separate statement if we are not assigning
24698         to a register.
24699
24700 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
24701
24702         * fold-const.c (fold_convertible_p): Correct the logic to follow
24703         that in fold_convert().
24704
24705 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
24706
24707         PR c++/35315
24708         * tree-inline.c (build_duplicate_type): When we make a
24709         duplicate type, make it unique in the canonical types system.
24710
24711 2008-02-29  Tom Tromey  <tromey@redhat.com>
24712
24713         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
24714         input_file_stack_history, input_file_stack_restored): Remove.
24715         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24716         * input.h (struct file_stack): Remove.
24717         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24718         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
24719         Likewise.
24720         * diagnostic.h (struct diagnostic_context) <last_module>: Change
24721         type.
24722         (diagnostic_last_module_changed): Add 'map' argument.
24723         (diagnostic_set_last_function): Likewise.
24724         * diagnostic.c (undiagnostic_report_current_module): Iterate using
24725         line map, not input_file_stack.
24726         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
24727
24728 2008-02-29  Paul Brook  <paul@codesourcery.com>
24729
24730         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
24731
24732 2008-02-29  Paul Brook  <paul@codesourcery.com>
24733
24734         * config/arm/ieee754-df.S (muldf3): Use RET macros.
24735
24736 2008-02-29  Richard Guenther  <rguenther@suse.de>
24737
24738         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
24739         vn_lookup_or_add.
24740         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
24741         value for comparing for a store match.
24742         (simplify_unary_expression): Do nothing for SSA_NAMEs.
24743         (try_to_simplify): Do not do a full-blown reference lookup.
24744
24745 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
24746
24747         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
24748         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
24749
24750         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
24751
24752 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
24753
24754         * tree-loop-linear.c (try_interchange_loops): Compare memory access
24755         strides against cache sizes.
24756
24757 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
24758
24759         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
24760         constant to fpul.
24761
24762 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
24763
24764         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
24765         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
24766         is smaller than the original promoted value.
24767         (simplify_subreg): If OP is a SUBREG, try to preserve its
24768         SUBREG_PROMOTED_VAR_P information.
24769
24770 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
24771
24772         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
24773         (VN_INFO_GET): Allocate new objects on the obstack.
24774         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
24775         for rpo_numbers_temp, for consistency.
24776         (free_scc_vn): Free the obstack.
24777
24778 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
24779
24780         * doc/invoke.texi: Document -ftree-loop-distribution.
24781         * tree-loop-distribution.c: New.
24782         * tree-pass.h (pass_loop_distribution): New.
24783         * graphds.h (struct graph): Add htab_t indices.
24784         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
24785         * tree-vectorizer.c (rename_variables_in_loop): Extern.
24786         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
24787         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
24788         * tree-data-ref.c (debug_data_dependence_relations): New.
24789         (dump_data_dependence_relation): Also print data references.
24790         (free_data_ref): Extern.
24791         (same_access_functions): Moved...
24792         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
24793         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24794         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
24795         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
24796         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
24797         (stmts_from_loop): Skip LABEL_EXPR.
24798         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
24799         New.
24800         (build_rdg): Initialize rdg->indices htab.
24801         (free_rdg, stores_from_loop, ref_base_address,
24802         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
24803         have_similar_memory_accesses_1, ref_base_address_1,
24804         remove_similar_memory_refs): New.
24805         * tree-data-ref.h: Depend on tree-chrec.h.
24806         (debug_data_dependence_relations, free_data_ref): Declared.
24807         (same_access_functions): ... here.
24808         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
24809         New.
24810         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
24811         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
24812         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
24813         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24814         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
24815         rdg_vertex_for_stmt): Declared.
24816         (struct rdg_edge): Add level.
24817         (RDGE_LEVEL): New.
24818         (free_rdg, stores_from_loop, remove_similar_memory_refs,
24819         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
24820         Declared.
24821         (rdg_has_similar_memory_accesses): New.
24822         * tree-vect-analyze.c: Remove unused static decls.
24823         * lambda.h (dependence_level): New.
24824         * common.opt (ftree-loop-distribution): New.
24825         * tree-flow.h (mark_virtual_ops_in_bb,
24826         slpeel_tree_duplicate_loop_to_edge_cfg,
24827         rename_variables_in_loop): Declared.
24828         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
24829         (OBJS-common): Add tree-loop-distribution.o.
24830         (tree-loop-distribution.o): New rule.
24831         * tree-cfg.c (mark_virtual_ops_in_bb): New.
24832         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
24833         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
24834
24835 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
24836
24837         PR target/33963
24838         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
24839         other than structures and unions.
24840
24841 2008-02-28  Richard Guenther  <rguenther@suse.de>
24842
24843         Revert:
24844         2008-02-26  Richard Guenther  <rguenther@suse.de>
24845
24846         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24847         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24848         (lookup_decl_from_uid): Declare.
24849         (remove_decl_from_map): Likewise.
24850         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24851         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24852         (decl_for_uid_map): New global hashtable mapping DECL_UID
24853         to the decl tree.
24854         (init_ttree): Allocate it.
24855         (insert_decl_to_uid_decl_map): New helper function.
24856         (make_node_stat): Insert new decls into the map.
24857         (copy_node_stat): Likewise.
24858         (lookup_decl_from_uid): New function.
24859         (remove_decl_from_map): Likewise.
24860         (print_decl_for_uid_map_statistics): New helper.
24861         (dump_tree_statistics): Call it.
24862
24863         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24864         (referenced_var_iterator): Adjust.
24865         (FOR_EACH_REFERENCED_VAR): Adjust.
24866         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24867         (num_referenced_vars): Adjust.
24868         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24869         (first_referenced_var): Remove.
24870         (end_referenced_vars_p): Likewise.
24871         (next_referenced_var): Likewise.
24872         (referenced_var_iterator_set): New helper function.
24873         * tree-dfa.c (referenced_var_lookup): Adjust.
24874         (referenced_var_check_and_insert): Likewise.
24875         (remove_referenced_var): Likewise.
24876         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24877         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24878         (verify_call_clobbering): Likewise.
24879         (verify_memory_partitions): Likewise.
24880         (init_tree_ssa): Allocate bitmap instead of hashtable for
24881         referenced_vars.
24882         (delete_tree_ssa): Adjust.
24883         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24884         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24885         (compute_tag_properties): Likewise.
24886         (set_initial_properties): Likewise.
24887         (find_partition_for): Likewise.
24888         (update_reference_counts): Likewise.
24889         (dump_may_aliases_for): Likewise.
24890         * tree-ssa-operands.c (add_virtual_operand): Likewise.
24891         (add_call_clobber_ops): Likewise.
24892         (add_call_read_ops): Likewise.
24893         (get_asm_expr_operands): Likewise.
24894         * tree-into-ssa.c (dump_decl_set): Likewise.
24895         (update_ssa): Likewise.
24896         * tree-sra.c (scan_function): Likewise.
24897         (decide_instantiations): Likewise.
24898         (scalarize_parms): Likewise.
24899         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
24900         (dsa_named_for): Likewise.
24901         * tree-ssa-structalias.c (update_alias_info): Likewise.
24902         (merge_smts_into): Likewise.
24903
24904 2008-02-27  David Daney  <ddaney@avtrex.com>
24905
24906         PR target/34409
24907         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
24908         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
24909         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
24910         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
24911         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
24912
24913 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
24914
24915         PR target/25477
24916         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
24917         (BUILT_IN_NEXTTOWARD): Remove.
24918         (BUILT_IN_NEXTTOWARDF): Ditto.
24919         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
24920         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
24921
24922 2008-02-27  Tom Tromey  <tromey@redhat.com>
24923
24924         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
24925         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
24926
24927 2008-02-27  Jan Beulich  <jbeulich@novell.com>
24928
24929         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
24930         update the respective field on newdecl.
24931
24932 2008-02-27  Revital Eres  <eres@il.ibm.com>
24933
24934         PR rtl-optimization/34999
24935         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
24936         crossing edges that ends with a call insn.
24937         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
24938         call insn and clear the EDGE_CROSSING flag of the crossing edge
24939         when fixing fallthru edges.
24940
24941 2008-02-27  Richard Guenther  <rguenther@suse.de>
24942
24943         PR middle-end/35390
24944         * fold-const.c (fold_unary): Return the correct argument,
24945         converted to the result type.
24946
24947 2008-02-27  Richard Guenther  <rguenther@suse.de>
24948
24949         PR middle-end/34971
24950         * expr.c (expand_expr_real_1): Assert on rotates that operate
24951         on partial modes.
24952         * fold-const.c (fold_binary): Use the types precision, not the
24953         bitsize of the mode if folding rotate expressions.  Build rotates
24954         only for full modes.
24955
24956 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
24957
24958         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
24959         and CPP_PRAGMA_EOL.
24960         * c-pragma.c (pragma_ns_name): New typedef.
24961         (registered_pp_pragmas): New variable.
24962         (c_pp_lookup_pragma): New function.
24963         (c_register_pragma_1): If flag_preprocess_only, do nothing
24964         for non-expanded pragmas, for expanded ones push pragma's
24965         namespace and name into registered_pp_pragmas vector.
24966         (c_invoke_pragma_handler): Register OpenMP pragmas even when
24967         flag_preprocess_only, don't register GCC pch_preprocess
24968         pragma if flag_preprocess_only.
24969         * c-opts.c (c_common_init): Call init_pragma even if
24970         flag_preprocess_only.
24971         * c-pragma.c (c_pp_lookup_pragma): New prototype.
24972         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
24973         cpp_register_pragma if flag_preprocess_only.
24974
24975 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24976
24977         PR c/28800
24978         * c-parser.c (c_parser_translation_unit): Warn for empty
24979         translation unit, not empty source file.
24980
24981 2008-02-26  Paul Brook  <paul@codesourcery.com>
24982
24983         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
24984         operand for Thumb-2.
24985         * config/arm/arm.h (reg_class): Add CORE_REGS.
24986         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
24987         (BASE_REG_CLASS): Use CORE_REGS.
24988         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
24989         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
24990         (REGNO_OK_FOR_INDEX_P): Exclude SP.
24991         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
24992         ARM_REGNO_OK_FOR_INDEX_P.
24993         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
24994         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
24995         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
24996         (ldm/stm peepholes): Ditto.
24997         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
24998         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
24999         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
25000         * config/arm/constraints.md: Enable "k" constraint on ARM.
25001
25002 2008-02-27  Ben Elliston  <bje@au.ibm.com>
25003
25004         * config/rs6000/rs6000.c: Annotate cache line size field in all
25005         instances of struct processor_costs.
25006
25007 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
25008
25009         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
25010         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
25011         jump_bypass): New counters.
25012         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
25013         * dce.c (gate_ud_dce): Same.
25014         (gate_fast_dce): Same.
25015         * dse.c (gate_dse1): New function.
25016         (gate_dse2): New function.
25017         (gate_dse): Merge results of new gate functions.
25018         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
25019         (gate_handle_jump_bypass): Add dbg_cnt.
25020         (gate_handle_gcse): Add dbg_cnt.
25021         * ifcvt.c (gate_handle_if_conversion): Same.
25022         (gate_handle_if_after_combine): Same.
25023         (gate_handle_if_after_reload): Same.
25024         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
25025
25026 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
25027
25028         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
25029         line sizes.
25030         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
25031
25032 2008-02-26  Jason Merrill  <jason@redhat.com>
25033
25034         PR c++/35315
25035         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
25036         alone if it's the naming decl for the type's main variant.
25037
25038 2008-02-26  Tom Tromey  <tromey@redhat.com>
25039
25040         * system.h (USE_MAPPED_LOCATION): Poison.
25041         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
25042         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
25043         (make_goto_expr_edges): Likewise.
25044         (remove_bb): Likewise.
25045         (execute_warn_function_return): Likewise.
25046         * basic-block.h (struct edge_def) <goto_locus>: Change type to
25047         location_t.
25048         * c-common.c (fname_decl): Remove old location code.
25049         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
25050         location code.
25051         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
25052         variant.
25053         (ASM_INPUT_SOURCE_LOCATION): Likewise.
25054         (gen_rtx_ASM_INPUT): Likewise.
25055         (gen_rtx_ASM_INPUT_loc): Likewise.
25056         (get_rtx_asm_OPERANDS): Remove.
25057         * cfglayout.c (insn_locators_alloc): Remove old location code.
25058         (set_curr_insn_source_location): Likewise.
25059         (curr_insn_locator): Likewise.
25060         * print-tree.c (print_node): Remove old location code.
25061         * tree-mudflap.c (mf_varname_tree): Remove old location code.
25062         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
25063         * cfgexpand.c (expand_gimple_cond_expr): Don't use
25064         location_from_locus.
25065         (construct_exit_block): Remove old location code.
25066         * emit-rtl.c (force_next_line_note): Remove old location code.
25067         * profile.c (branch_prob): Remove old location code.
25068         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
25069         LOC_LINE): Remove old-location variants.
25070         * langhooks.c (lhd_print_error_function): Remove old location
25071         code.
25072         * configure, config.in: Rebuilt.
25073         * configure.ac (--enable-mapped-location): Remove.
25074         * c-decl.c (c_init_decl_processing): Remove old location code.
25075         (finish_function): Likewise.
25076         * recog.c (decode_asm_operands): Remove old location code.
25077         * c-pch.c (c_common_read_pch): Remove old location code.
25078         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
25079         variants.
25080         * gimple-low.c (lower_function_body): Remove old location code.
25081         * toplev.c (unknown_location): Remove.
25082         (push_srcloc): Remove old-location variant.
25083         (process_options): Remove old location code.
25084         (lang_dependent_init): Likewise.
25085         * input.h (UNKNOWN_LOCATION): Move definition.
25086         (location_t): Undeprecate.
25087         (source_locus): Remove.
25088         (location_from_locus): Remove.
25089         (struct location_s): Remove.
25090         Remove all old-location code.
25091         (input_line, input_filename): Remove.
25092         * final.c (final_scan_insn): Remove old location code.
25093         * diagnostic.c (diagnostic_build_prefix): Remove
25094         USE_MAPPED_LOCATION test.
25095         * tree.h (gimple_stmt) <locus>: Now a location_t.
25096         (tree_exp) <locus>: Likewise.
25097         (DECL_IS_BUILTIN): Remove old-location variant.
25098         (annotate_with_file_line, annotate_with_locus): Likewise.
25099         (expr_locus, set_expr_locus): Update.
25100         * tree.c (build1_stat): Remove old location code.
25101         (last_annotated_node): Remove.
25102         (annotate_with_file_line): Remove old-location variant.
25103         (annotate_with_locus): Likewise.
25104         (expr_location): Remove old location code.
25105         (set_expr_location): Likewise.
25106         (expr_has_location): Likewise.
25107         (expr_locus): Likewise.
25108         (set_expr_locus): Likewise.
25109         (expr_filename): Don't use location_from_locus.
25110         (expr_lineno): Likewise.
25111         * rtl-error.c (location_for_asm): Remove old location code.
25112         * c-lex.c (cb_line_change): Remove old location code.
25113         (fe_file_change): Likewise.
25114         (cb_def_pragma): Likewise.
25115         (c_lex_with_flags): Likewise.
25116         * gengtype.c (do_typedef): Don't special-case location types.
25117         (define_location_structures): Remove.
25118         (main): Don't call define_location_structures.
25119         * tree-pretty-print.c (dump_implicit_edges): Remove old location
25120         code.
25121
25122 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25123
25124         PR 26264
25125         * builtins.def (BUILT_IN_STDARG_START): Remove.
25126         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
25127         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
25128         * tree-inline.c (inline_forbidden_p_1): Likewise.
25129
25130 2008-02-26  Richard Guenther  <rguenther@suse.de>
25131
25132         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25133         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25134         (lookup_decl_from_uid): Declare.
25135         (remove_decl_from_map): Likewise.
25136         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25137         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25138         (decl_for_uid_map): New global hashtable mapping DECL_UID
25139         to the decl tree.
25140         (init_ttree): Allocate it.
25141         (insert_decl_to_uid_decl_map): New helper function.
25142         (make_node_stat): Insert new decls into the map.
25143         (copy_node_stat): Likewise.
25144         (lookup_decl_from_uid): New function.
25145         (remove_decl_from_map): Likewise.
25146         (print_decl_for_uid_map_statistics): New helper.
25147         (dump_tree_statistics): Call it.
25148
25149         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25150         (referenced_var_iterator): Adjust.
25151         (FOR_EACH_REFERENCED_VAR): Adjust.
25152         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25153         (num_referenced_vars): Adjust.
25154         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25155         (first_referenced_var): Remove.
25156         (end_referenced_vars_p): Likewise.
25157         (next_referenced_var): Likewise.
25158         (referenced_var_iterator_set): New helper function.
25159         * tree-dfa.c (referenced_var_lookup): Adjust.
25160         (referenced_var_check_and_insert): Likewise.
25161         (remove_referenced_var): Likewise.
25162         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25163         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25164         (verify_call_clobbering): Likewise.
25165         (verify_memory_partitions): Likewise.
25166         (init_tree_ssa): Allocate bitmap instead of hashtable for
25167         referenced_vars.
25168         (delete_tree_ssa): Adjust.
25169         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25170         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25171         (compute_tag_properties): Likewise.
25172         (set_initial_properties): Likewise.
25173         (find_partition_for): Likewise.
25174         (update_reference_counts): Likewise.
25175         (dump_may_aliases_for): Likewise.
25176         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25177         (add_call_clobber_ops): Likewise.
25178         (add_call_read_ops): Likewise.
25179         (get_asm_expr_operands): Likewise.
25180         * tree-into-ssa.c (dump_decl_set): Likewise.
25181         (update_ssa): Likewise.
25182         * tree-sra.c (scan_function): Likewise.
25183         (decide_instantiations): Likewise.
25184         (scalarize_parms): Likewise.
25185         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25186         (dsa_named_for): Likewise.
25187         * tree-ssa-structalias.c (update_alias_info): Likewise.
25188         (merge_smts_into): Likewise.
25189
25190 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25191
25192         PR 34351
25193         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
25194         * c-opts.c (c_common_handle_option): Wall enables
25195         Wvolatile-register-var.
25196         * common.opt: Move Wvolatile-register-var to...
25197         * c.opt: ...here.
25198
25199 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25200
25201         * common.opt (Wlarger-than=): New.
25202         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
25203         -Wlarger-than=.
25204         * opts.c (common_handle_option): Handle -Wlarger-than=.
25205         * optc-gen.awk: Likewise.
25206         * opth-gen.awk: Likewise.
25207         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
25208         * tree-optimize.c (tree_rest_of_compilation): Likewise.
25209
25210 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25211
25212         * c-common.c (match_case_to_enum_1): Add appropriate
25213         OPT_W* parameter to warning.
25214         (c_do_switch_warnings): Likewise.
25215         * c-typeck.c (warning_init): Add one more parameter following
25216         'warning' function.
25217         (push_init_level): Update call to warning_init.
25218         (pop_init_level): Likewise.
25219         (add_pending_init): Likewise.
25220         (output_init_element: Likewise.
25221
25222 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25223
25224         PR 28322
25225         * toplev.c (toplev_main): If there are warnings or error, print
25226         errors for ignored options.
25227         * opts.c (ignored_options): New static variable.
25228         (postpone_unknown_option_error): New.
25229         (print_ignored_options): New.
25230         (handle_option): Postpone errors for unknown -Wno-* options.
25231         * opts.h (print_ignored_options): Declare.
25232
25233 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
25234
25235         * config/mips/mips.md (loadgp_blockage, blockage): Change type
25236         to "ghost".
25237
25238 2008-02-25  Richard Guenther  <rguenther@suse.de>
25239
25240         Revert:
25241         2008-02-25  Richard Guenther  <rguenther@suse.de>
25242
25243         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25244         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25245         (lookup_decl_from_uid): Declare.
25246         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25247         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25248         (decl_for_uid_map): New global hashtable mapping DECL_UID
25249         to the decl tree.
25250         (init_ttree): Allocate it.
25251         (insert_decl_to_uid_decl_map): New helper function.
25252         (make_node_stat): Insert new decls into the map.
25253         (copy_node_stat): Likewise.
25254         (lookup_decl_from_uid): New function.
25255         (print_decl_for_uid_map_statistics): New helper.
25256         (dump_tree_statistics): Call it.
25257
25258         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25259         (referenced_var_iterator): Adjust.
25260         (FOR_EACH_REFERENCED_VAR): Adjust.
25261         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25262         (num_referenced_vars): Adjust.
25263         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25264         (first_referenced_var): Remove.
25265         (end_referenced_vars_p): Likewise.
25266         (next_referenced_var): Likewise.
25267         (referenced_var_iterator_set): New helper function.
25268         * tree-dfa.c (referenced_var_lookup): Adjust.
25269         (referenced_var_check_and_insert): Likewise.
25270         (remove_referenced_var): Likewise.
25271         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25272         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25273         (verify_call_clobbering): Likewise.
25274         (verify_memory_partitions): Likewise.
25275         (init_tree_ssa): Allocate bitmap instead of hashtable for
25276         referenced_vars.
25277         (delete_tree_ssa): Adjust.
25278         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25279         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25280         (compute_tag_properties): Likewise.
25281         (set_initial_properties): Likewise.
25282         (find_partition_for): Likewise.
25283         (update_reference_counts): Likewise.
25284         (dump_may_aliases_for): Likewise.
25285         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25286         (add_call_clobber_ops): Likewise.
25287         (add_call_read_ops): Likewise.
25288         (get_asm_expr_operands): Likewise.
25289         * tree-into-ssa.c (dump_decl_set): Likewise.
25290         (update_ssa): Likewise.
25291         * tree-sra.c (scan_function): Likewise.
25292         (decide_instantiations): Likewise.
25293         (scalarize_parms): Likewise.
25294         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25295         (dsa_named_for): Likewise.
25296         * tree-ssa-structalias.c (update_alias_info): Likewise.
25297         (merge_smts_into): Likewise.
25298
25299 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
25300
25301         PR fortran/29549
25302         * doc/invoke.texi (-fcx-limited-range): Document new option.
25303         * toplev.c (process_options): Handle -fcx-fortran-rules.
25304         * common.opt: Add documentation for -fcx-fortran-rules.
25305
25306 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
25307
25308         PR c/35162
25309         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
25310         actual behaviour and C99.
25311
25312 2008-02-26  Ben Elliston  <bje@au.ibm.com>
25313
25314         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
25315         (ASM_CPU_POWER6_SPEC): Likewise.
25316         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
25317         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
25318         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
25319
25320 2008-02-25  Richard Guenther  <rguenther@suse.de>
25321
25322         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25323         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25324         (lookup_decl_from_uid): Declare.
25325         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25326         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25327         (decl_for_uid_map): New global hashtable mapping DECL_UID
25328         to the decl tree.
25329         (init_ttree): Allocate it.
25330         (insert_decl_to_uid_decl_map): New helper function.
25331         (make_node_stat): Insert new decls into the map.
25332         (copy_node_stat): Likewise.
25333         (lookup_decl_from_uid): New function.
25334         (print_decl_for_uid_map_statistics): New helper.
25335         (dump_tree_statistics): Call it.
25336
25337         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25338         (referenced_var_iterator): Adjust.
25339         (FOR_EACH_REFERENCED_VAR): Adjust.
25340         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25341         (num_referenced_vars): Adjust.
25342         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25343         (first_referenced_var): Remove.
25344         (end_referenced_vars_p): Likewise.
25345         (next_referenced_var): Likewise.
25346         (referenced_var_iterator_set): New helper function.
25347         * tree-dfa.c (referenced_var_lookup): Adjust.
25348         (referenced_var_check_and_insert): Likewise.
25349         (remove_referenced_var): Likewise.
25350         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25351         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25352         (verify_call_clobbering): Likewise.
25353         (verify_memory_partitions): Likewise.
25354         (init_tree_ssa): Allocate bitmap instead of hashtable for
25355         referenced_vars.
25356         (delete_tree_ssa): Adjust.
25357         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25358         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25359         (compute_tag_properties): Likewise.
25360         (set_initial_properties): Likewise.
25361         (find_partition_for): Likewise.
25362         (update_reference_counts): Likewise.
25363         (dump_may_aliases_for): Likewise.
25364         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25365         (add_call_clobber_ops): Likewise.
25366         (add_call_read_ops): Likewise.
25367         (get_asm_expr_operands): Likewise.
25368         * tree-into-ssa.c (dump_decl_set): Likewise.
25369         (update_ssa): Likewise.
25370         * tree-sra.c (scan_function): Likewise.
25371         (decide_instantiations): Likewise.
25372         (scalarize_parms): Likewise.
25373         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25374         (dsa_named_for): Likewise.
25375         * tree-ssa-structalias.c (update_alias_info): Likewise.
25376         (merge_smts_into): Likewise.
25377
25378 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
25379
25380         PR target/35258
25381         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
25382         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
25383         * alias.h (nonoverlapping_memrefs_p): Likewise.
25384
25385 2008-02-25  Jan Beulich  <jbeulich@novell.com>
25386
25387         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
25388         * config/i386/netware-libgcc.exp: Add __bswap?i2,
25389         __emultls_get_address, __emultls_register_common,
25390         __floatundi?f, and _Unwind_GetIPInfo.
25391         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
25392         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
25393         (gen_regparm_prefix): Likewise.
25394         (i386_nlm_encode_section_info): Sync with
25395         config/i386/winnt.c:i386_pe_encode_section_info().
25396         (i386_nlm_maybe_mangle_decl_assembler_name): New.
25397         i386_nlm_mangle_decl_assembler_name): New.
25398         (netware_override_options): New.
25399         * config/i386/netware.h (netware_override_options): Declare.
25400         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
25401         (i386_nlm_mangle_decl_assembler_name): Declare.
25402         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
25403
25404 2008-02-25  Ben Elliston  <bje@au.ibm.com>
25405
25406         PR other/32948
25407         * c-decl.c (grokdeclarator): Remove unused local variables
25408         `typedef_type' and `type_as_written'.
25409         * bb-reorder.c
25410         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
25411         unused local variable `has_hot_blocks'.
25412         (fix_crossing_conditional_branches): Remove unused local variable
25413         `prev_bb'.
25414
25415 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
25416
25417         PR middle-end/19984
25418         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
25419         using DEF_C99_BUILTIN.
25420         (BUILT_IN_NANF): Ditto.
25421         (BUILT_IN_NANL): Ditto.
25422
25423 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
25424             Revital Eres  <eres@il.ibm.com>
25425
25426         * modulo-sched.c (calculate_must_precede_follow): Address TODO
25427         regarding the order of two dependent insns in the same row.
25428
25429 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25430
25431         * stor-layout.c (layout_decl): Do not bump the alignment of a
25432         bit-field to more than byte alignment if it is packed.
25433
25434 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
25435
25436         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
25437         e300c2 and e300c3.
25438
25439 2008-02-24  Diego Novillo  <dnovillo@google.com>
25440
25441         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
25442
25443         PR 33738
25444         * tree-vrp.c (vrp_evaluate_conditional): With
25445         -Wtype-limits, emit a warning when comparing against a
25446         constant outside the natural range of OP0's type.
25447         * c.opt (Wtype-limits): Move ...
25448         * common.opt (Wtype-limits): ... here.
25449
25450 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
25451
25452         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
25453         * config/rs6000/e300c2c3.md: New file.
25454         * config/rs6000/rs6000.c (processor_costs): Add new costs for
25455         e300c2 and e300c3.
25456         (rs6000_override_options): Add e300c2 and e300c3 cases to
25457         processor_target_table. Do not allow usage of Altivec or Spe
25458         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
25459         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
25460         * config/rs6000/rs6000.h (processor_type): Add
25461         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
25462         (ASM_CPU_SPEC): Add e300c2 and e300c3.
25463         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
25464         and ppce300c3. Include e300c2c3.md.
25465
25466 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
25467
25468         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
25469         instead of TARGET_STRICT_ALIGN.
25470
25471 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
25472
25473         * explow.c (memory_address): Assert that the generated address is
25474         valid.
25475
25476 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
25477
25478         PR target/25477
25479         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
25480         * config/darwin-ppc-ldouble-patch.def: New file.
25481         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
25482         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
25483         SUBTARGET_INIT_BUILTINS if defined.
25484         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
25485         New functions.
25486
25487 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25488
25489         PR rtl-opt/33512
25490         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
25491         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
25492
25493 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25494
25495         PR pch/35027
25496         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
25497         file" warning condtional on -Winvalid-PCH.
25498
25499 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
25500
25501         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
25502
25503 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
25504
25505         PR target/22076
25506         PR target/34256
25507         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
25508         prevent reload from using MMX registers.
25509         (*mov<mode>_internal): Ditto.
25510         (*movv2sf_internal_rex64): Ditto.
25511         (*movv2sf_internal): Ditto.
25512
25513 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25514
25515         PR documentation/31569
25516         * doc/install.texi2html: Use makeinfo --no-number-sections.
25517
25518 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25519
25520         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
25521         ensure that we can address an entire entity > 8 bytes.  Don't
25522         generate reg+reg addressing for such data.
25523
25524 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25525
25526         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
25527         strings when optimizing for size, unless the target cares about
25528         alignment.
25529
25530 2008-02-22  Tom Tromey  <tromey@redhat.com>
25531
25532         * regclass.c (current_pass): Remove declaration.
25533
25534 2008-02-22  Anatoly Sokolov <aesok@post.ru>
25535
25536         * config/avr/libgcc.S (__RAMPZ__): Define.
25537         (__do_copy_data): Add for devices with 128KB code memory.
25538
25539 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25540
25541         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
25542         Use spe_abi.
25543         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
25544
25545 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
25546
25547         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
25548         GENNONACR_REGS.
25549
25550 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25551
25552         PR c/19999
25553         * c-typeck.c (build_binary_op): Warn about floating point
25554         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
25555
25556 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
25557
25558         PR target/34526
25559         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
25560         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
25561         add vrsave.
25562         (rs6000_override_options): Set altivec_abi as default, not override,
25563         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
25564         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
25565         is used; use new member spe_abi.
25566         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
25567         spe_abi and altivec_abi.
25568
25569 2008-02-22  Tomas Bily  <tbily@suse.cz>
25570
25571         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
25572
25573 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25574
25575         PR bootstrap/35273
25576         * config.build (build_file_translate): Set to `CMD //c' only if
25577         it works.
25578         * Makefile.in (build_file_translate): Improve comment.
25579
25580 2008-02-21  Jan Hubicka  <jh@suse.cz>
25581
25582         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
25583         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
25584         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
25585
25586 2008-02-21  Michael Matz  <matz@suse.de>
25587
25588         PR target/35264
25589         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
25590
25591 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
25592
25593         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
25594         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
25595         as insn constraint.
25596         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
25597         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
25598         SSE_VEC_FLOAT_MODE_P as insn constraint.
25599         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
25600         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
25601         sse4a_movntdf using MODEF mode iterator.
25602         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
25603         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
25604         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
25605         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
25606         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
25607         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
25608         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
25609
25610 2008-02-21  Richard Guenther  <rguenther@suse.de>
25611
25612         * tree.def (PAREN_EXPR): New tree code.
25613         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
25614         and PAREN_EXPR.
25615         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
25616         * expr.c (expand_expr_real_1): Likewise.
25617         * tree-inline.c (estimate_num_insns_1): Likewise.
25618         * tree-complex.c (expand_complex_move): Likewise.
25619         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
25620         as plain x.
25621
25622 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
25623
25624         PR target/35225
25625         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
25626
25627 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
25628
25629         PR target/35190
25630         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
25631
25632         * config/sh/sh.c (find_barrier): Don't go past
25633         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
25634
25635 2008-02-20  DJ Delorie  <dj@redhat.com>
25636
25637         * config/h8300/h8300.md (insv): Force source operand to be a register.
25638
25639         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
25640         as a jump, not as a plain insn.
25641
25642 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
25643
25644         * doc/invoke.texi (Warning Options): Add new option
25645         -Wframe-larger-than=.
25646         (-Wframe-larger-than): Document.
25647
25648         * flags.h (warn_frame_larger_than, frame_larger_than_size):
25649         Add declarations for new option variables.
25650
25651         * final.c (final_start_function): Check the frame size
25652         before emission and issue a Wframe-larger-than warning.
25653
25654         * opts.c (warn_frame_larger_than, frame_larger_than_size):
25655         Add definitions for new option variables.
25656         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
25657
25658         * common.opt (Wframe-larger-than=): New option.
25659
25660 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
25661
25662         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
25663         (<sse>_div<mode>3): Ditto.
25664         (<sse>_vmdiv<mode>3): Ditto.
25665         (<sse>_vmsqrt<mode>2): Ditto.
25666         (*smax<mode>3): Ditto.
25667         (sse5_frcz<mode>2): Ditto.
25668         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
25669         as insn constraint.
25670
25671 2008-02-20  Richard Guenther  <rguenther@suse.de>
25672
25673         PR middle-end/35265
25674         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
25675         be happy with INTEGRAL_TYPE_P.
25676
25677 2008-02-20  Richard Guenther  <rguenther@suse.de>
25678
25679         * fold-const.c (split_tree): Associate floatig-point expressions
25680         if flag_associative_math is set.
25681
25682 2008-02-20  Richard Guenther  <rguenther@suse.de>
25683
25684         * tree.h (fold_real_zero_addition_p): Declare.
25685         * fold-const.c (fold_real_zero_addition_p): Export.
25686         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
25687         floating-point operations with zero and one.
25688
25689 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
25690
25691         * doc/install.texi: Correct references to CFLAGS, replacing them
25692         with BOOT_CFLAGS.  Document flags used during bootstrap for
25693         target libraries.
25694
25695 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
25696
25697         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
25698         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
25699         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
25700         insn constraint.
25701         (smin<mode>3): Ditto from similar patterns.
25702         (smax<mode>3): Ditto.
25703         (*ieee_smin<mode>3): Ditto.
25704         (*ieee_smax<mode>3): Ditto.
25705         * config/i386/sse.md (sse): New mode attribute.
25706         (mov<mode>): Macroize expander from movv4sf and movv2df using
25707         SSEMODEF2P mode iterator.
25708         (<sse>_movnt<mode>): Ditto from similar patterns. Use
25709         SSE_VEC_FLOAT_MODE_P as insn constraint.
25710         (storent<mode>): Ditto.
25711         (storent<mode>): Macroize expander from storentsf and storentdf using
25712         MODEF mode iterator.
25713         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
25714         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
25715         (abs<mode>2): Ditto from similar patterns.
25716         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
25717         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
25718         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
25719         (<sse>_vmsqrt<mode>2): Ditto.
25720         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
25721         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
25722         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
25723         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
25724         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
25725         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
25726         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
25727         insn constraint.
25728         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
25729         iterator and SSE_FLOAT_MODE_P as insn constraint.
25730         (<sse>_ucomi): Ditto from similar patterns.
25731         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
25732         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
25733         SSE_VEC_FLOAT_MODE_P as insn constraint.
25734         (vcond<mode>): Ditto from similar patterns.
25735         (and<mode>3, *and<mode>3): Ditto.
25736         (<sse>_nand<mode>3): Ditto.
25737         (ior<mode>3, *ior<mode>3): Ditto.
25738         (xor<mode>3, *xor<mode>3): Ditto.
25739         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
25740         iterator and SSE_FLOAT_MODE_P as insn constraint.
25741         (*nand<mode>3): Ditto from similar patterns.
25742         (*ior<mode>3): Ditto.
25743         (*xor<mode>3): Ditto.
25744
25745 2008-02-20  Ira Rosen  <irar@il.ibm.com>
25746
25747         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
25748         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
25749         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
25750
25751 2008-02-19  Jan Hubicka  <jh@suse.cz>
25752
25753         * predict.c (tree_bb_level_predictions): Remove variable next
25754         mistakely introduced by previous commit.
25755
25756 2008-02-19  Jan Hubicka  <jh@suse.cz>
25757
25758         * predict.c (predict_paths_leading_to): Rewrite.
25759         (predict_paths_for_bb): New.
25760         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
25761
25762 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25763
25764         PR bootstrap/35218
25765         * Makefile.in (build_file_translate): New.
25766         (gcc-vers.texi): Use it for translating $(abs_srcdir).
25767         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
25768         * configure.ac (build_file_translate): Substitute it.
25769         * configure: Regenerate.
25770
25771 2008-02-19  Jan Hubicka  <jh@suse.cz>
25772
25773         PR rtl-optimization/34408
25774         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
25775         invalid sharing.
25776
25777 2008-02-19  Jan Hubicka  <jh@suse.cz>
25778
25779         PR middle-end/28779
25780         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
25781         call_expr.
25782
25783 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25784
25785         PR Ada/35186
25786         * config/i386/i386-modes.def: Revert the last DI alignment
25787         change until Ada people can look into it.
25788
25789 2008-02-19  Nick Clifton  <nickc@redhat.com>
25790
25791         * opts.c (print_specific_help): Fix typo in --help text.
25792
25793 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
25794
25795         PR target/35239
25796         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
25797         32-bit inline asm without asm alternatives for host GCC < 3.0.
25798
25799 2008-02-19  Richard Guenther  <rguenther@suse.de>
25800
25801         PR tree-optimization/34989
25802         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
25803         Allow propagation to INDIRECT_REF if we can simplify only.
25804
25805 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25806
25807         * c-common.c (warn_for_collisions_1): Use appropriate option when
25808         warning.
25809
25810 2008-02-19  Nick Clifton  <nickc@redhat.com>
25811
25812         PR other/31349
25813         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
25814         (handle_options): Fix indentation.
25815         (print_filtered_help): If no language-specific options were
25816         displayed tell the user how to list all the options supported by
25817         the language's front-end.
25818         (print_specific_help): Fix indentation and remove duplicate line.
25819         (common_handle_option): Handle the -v option.
25820         For --help enable the display of undocumented options if the -v
25821         switch has been included on the command line.
25822         For --help= check for overlaps in the arguments between the option
25823         classes and the language names and issue a warning when they
25824         cannot be disambiguated.
25825         * c.opt (v): Pass on to the common option handler.
25826
25827 2008-02-19  Revital Eres  <eres@il.ibm.com>
25828
25829         * modulo-sched.c (sms_schedule): Change dump message when
25830         create_ddg function fails.
25831         (try_scheduling_node_in_cycle): Rename row to cycle.
25832         (print_partial_schedule): Rename CYCLE to ROW.
25833
25834 2008-02-19  Christian Bruel  <christian.bruel@st.com>
25835             Zdenek Dvorak  <ook@ucw.cz>
25836
25837         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
25838
25839 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
25840
25841         PR target/33555
25842         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
25843         (*x86_movdicc_0_m1_se): Ditto.
25844
25845 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
25846
25847         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
25848         (CMPtype): Define as __gcc_CMPtype.
25849         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
25850         (CMPtype): Define as __gcc_CMPtype.
25851
25852 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
25853
25854         Support valgrind 3.3 for --enable-checking=valgrind.
25855         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
25856         here.
25857         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
25858         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
25859         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
25860         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
25861         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
25862         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
25863         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
25864         respectively.
25865         * ggc-zone.c: Similar.
25866         * ggc-page.c: Similar.
25867
25868 2008-02-19  Paul Brook  <paul@codesourcery.com>
25869
25870         PR target/35071
25871         * config/arm/ieee754-df.S: Fix do_it typo.
25872         * config/arm/ieee754-sf.S: Fix do_it typo.
25873
25874 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
25875
25876         PR target/35189
25877         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
25878         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
25879         (OPTION_MASK_ISA_SSE_SET): Likewise.
25880         (OPTION_MASK_ISA_SSE2_SET): Likewise.
25881         (OPTION_MASK_ISA_SSE3_SET): Likewise.
25882         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
25883         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
25884         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
25885         (OPTION_MASK_ISA_SSE4_SET): Likewise.
25886         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
25887         (OPTION_MASK_ISA_SSE5_SET): Likewise.
25888         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
25889         (OPTION_MASK_ISA_MMX_UNSET): Updated.
25890         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
25891         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
25892         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
25893         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
25894         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
25895         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
25896         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
25897         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
25898         (OPTION_MASK_ISA_SSE4): Removed.
25899         (ix86_handle_option): Turn on bits in ix86_isa_flags and
25900         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
25901         (override_options): Don't turn on implied SSE/MMX bits in
25902         ix86_isa_flags.
25903
25904 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
25905
25906         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
25907         32bit host.
25908
25909 2008-02-18  Joey Ye  <joey.ye@intel.com>
25910
25911         PR middle-end/34921
25912         * tree-nested.c (insert_field_into_struct): Set type alignment
25913         to field alignment if the former is less than the latter.
25914
25915 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
25916
25917         * BASE-VER: Set to 4.4.0.
25918
25919 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25920
25921         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
25922         * doc/cfg.texi: Likewise.
25923         * doc/extend.texi: Likewise.
25924         * doc/gty.texi: Likewise.
25925         * doc/invoke.texi: Likewise.
25926         * doc/loop.texi: Likewise.
25927         * doc/md.texi: Likewise.
25928         * doc/passes.texi: Likewise.
25929         * doc/rtl.texi: Likewise.
25930         * doc/sourcebuild.texi: Likewise.
25931         * doc/tm.texi: Likewise.
25932         * doc/tree-ssa.texi: Likewise.
25933
25934 2008-02-17  Richard Guenther  <rguenther@suse.de>
25935
25936         PR middle-end/35227
25937         * tree-complex.c (init_parameter_lattice_values): Handle parameters
25938         without default definition.
25939
25940 2008-02-17  Richard Guenther  <rguenther@suse.de>
25941
25942         PR tree-optimization/35231
25943         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
25944         if A | B != 1.
25945
25946 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
25947
25948         Revert:
25949         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
25950         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25951         libgcc_cmp_return mode.
25952
25953 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25954
25955         PR c/28368
25956         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
25957
25958 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
25959
25960         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
25961         multilibs.
25962
25963 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25964
25965         * doc/c-tree.texi: Use `@.' where appropriate.
25966         * doc/extend.texi: Likewise.
25967         * doc/install.texi: Likewise.
25968         * doc/invoke.texi: Likewise.
25969         * doc/loop.texi: Likewise.
25970         * doc/makefile.texi: Likewise.
25971         * doc/md.texi: Likewise.
25972         * doc/passes.texi: Likewise.
25973         * doc/standards.texi: Likewise.
25974         * doc/tm.texi: Likewise.
25975
25976 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
25977
25978         PR middle-end/35196
25979         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
25980         in entry_bb.
25981         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
25982         rather than in entry_bb.
25983
25984 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
25985
25986         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25987         libgcc_cmp_return mode.
25988
25989 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
25990
25991         PR middle-end/35130
25992         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
25993         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
25994
25995 2008-02-15  Richard Guenther  <rguenther@suse.de>
25996             Zdenek Dvorak  <ook@ucw.cz>
25997
25998         PR tree-optimization/35164
25999         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
26000         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
26001         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
26002         Only propagate addresses which do not have abnormal SSA_NAMEs
26003         in their operands.
26004
26005 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
26006
26007         PR target/35088
26008         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
26009
26010 2008-02-15  Jan Hubicka  <jh@suse.cz>
26011
26012         PR middle-end/35149
26013         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
26014
26015 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26016
26017         PR middle-end/34621
26018         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
26019         when calculating alignment_pad.
26020
26021 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26022
26023         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
26024         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
26025         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
26026         and STACK_BOUNDARY define.
26027
26028 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
26029
26030         PR preprocessor/35061
26031         * c-pragma.c (handle_pragma_pop_macro): Check that
26032         pushed_macro_table has been allocated.
26033
26034 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
26035
26036         PR middle-end/35136
26037         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
26038         (force_gimple_operand): Likewise.
26039         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
26040         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
26041         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
26042         (find_interesting_uses_address): Check addressability and alignment
26043         of the base expression only after substituting bases of IVs into it.
26044
26045 2008-02-14  Michael Matz  <matz@suse.de>
26046
26047         PR target/34930
26048         * function.c (instantiate_virtual_regs_in_insn): Reload address
26049         before falling back to reloading the whole operand.
26050
26051 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
26052
26053         * config/s390/s390.c (s390_mainpool_start): Emit the pool
26054         before the first section switch note.
26055
26056 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26057
26058         * doc/bugreport.texi: Update copyright years.
26059         * doc/c-tree.texi: Likewise.
26060         * doc/cfg.texi: Likewise.
26061         * doc/cpp.texi: Likewise.
26062         * doc/cppinternals.texi: Likewise.
26063         * doc/fragments.texi: Likewise.
26064         * doc/frontends.texi: Likewise.
26065         * doc/gcc.texi: Likewise.
26066         * doc/gty.texi: Likewise.
26067         * doc/hostconfig.texi: Likewise.
26068         * doc/implement-c.texi: Likewise.
26069         * doc/libgcc.texi: Likewise.
26070         * doc/loop.texi: Likewise.
26071         * doc/makefile.texi: Likewise.
26072         * doc/options.texi: Likewise.
26073         * doc/passes.texi: Likewise.
26074         * doc/rtl.texi: Likewise.
26075         * doc/sourcebuild.texi: Likewise.
26076         * doc/standards.texi: Likewise.
26077         * doc/tree-ssa.texi: Likewise.
26078         * doc/trouble.texi: Likewise.
26079
26080         * doc/extend.texi: Use @: or add comma where appropriate.
26081         * doc/invoke.texi: Likewise.
26082         * doc/tm.texi: Likewise.
26083
26084 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
26085
26086         PR target/34393
26087         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
26088         to a reg.
26089
26090 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
26091
26092         * doc/md.texi (clz, ctz): Add reference.
26093         * doc/rtl.texi (clz, ctz): Likewise.
26094
26095 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26096
26097         PR other/35148
26098         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
26099         srcdir.
26100
26101 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
26102
26103         * config/s390/s390.c (struct constant_pool): New field
26104         emit_pool_after added.
26105         (s390_mainpool_start): Set the emit_pool_after flag according
26106         to the section switch notes.
26107         (s390_mainpool_finish): Consider emit_pool_after when emitting
26108         the literal pool at the end of the function.
26109         (s390_chunkify_start): Force literal pool splits at section
26110         switch notes.
26111
26112 2008-02-13  Michael Matz  <matz@suse.de>
26113
26114         PR debug/35065
26115         * var-tracking.c (clobber_variable_part): Correctly traverse the
26116         list.
26117
26118 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26119
26120         PR 29673
26121         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
26122         Add -fdump-ipa-inline.
26123         * tree-dump.c (dump_files): Remove tree-inlined dump.
26124         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
26125
26126 2008-02-12  Richard Guenther  <rguenther@suse.de>
26127
26128         PR tree-optimization/35171
26129         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
26130         default defs.
26131
26132 2008-02-12  Richard Guenther  <rguenther@suse.de>
26133
26134         PR middle-end/35163
26135         * fold-const.c (fold_widened_comparison): Use get_unwidened in
26136         value-preserving mode.  Disallow final truncation.
26137
26138 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
26139
26140         PR middle-end/35136
26141         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
26142         code from here to...
26143         (force_gimple_operand): ...here.
26144
26145 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
26146
26147         PR c++/35144
26148         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
26149         non-compatible pointers.
26150         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
26151         different FIELD_DECLs, try harder by comparing field offsets, sizes
26152         and types.
26153
26154         PR inline-asm/35160
26155         * function.c (match_asm_constraints_1): Don't replace the same input
26156         multiple times.
26157
26158 2008-02-12  Anatoly Sokolov <aesok@post.ru>
26159
26160         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
26161         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
26162         (expand_epilogue): Restore RAMPZ register.
26163         * config/avr/avr.md (RAMPZ_ADDR): New constant.
26164
26165 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
26166
26167         * config/i386/cygwin.asm: (__alloca): Correct calling
26168         convention and alignment.
26169         (__chkstk): Force 8 byte stack alignment.
26170
26171 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
26172             Richard Guenther  <rguenther@suse.de>
26173
26174         PR tree-optimization/33992
26175         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
26176         the zero we compare against.
26177
26178 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
26179
26180         PR libfortran/35063
26181         * gthr-win32.h (__gthread_mutex_destroy_function): New function
26182         to CloseHandle after unlocking to prevent accumulation of handle
26183         count.
26184
26185 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26186
26187         PR middle_end/34150
26188         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
26189         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
26190         and update LABEL_NUSES during and after reload.
26191
26192 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
26193
26194         PR middle-end/34627
26195         * combine.c (simplify_if_then_else): Make sure the comparison is
26196         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
26197
26198 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
26199
26200         PR bootstrap/35051
26201         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
26202         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
26203         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
26204         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
26205         * tree.h (get_type_static_bounds): Likewise.
26206
26207 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26208
26209         * doc/invoke.texi (Option Summary, C++ Dialect Options)
26210         (Objective-C and Objective-C++ Dialect Options, Warning Options):
26211         Make -Wfoo language annotations match what the compiler outputs.
26212
26213 2008-02-08  Sa Liu  <saliu@de.ibm.com>
26214
26215         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
26216         intrinsics spu_convts, spu_convtu, spu_convtf.
26217
26218 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
26219
26220         * doc/extend.texi (Function Attributes) <noinline>: Mention
26221         asm ("") as method to keep calls.
26222
26223 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26224
26225         PR other/32754
26226         * doc/options.texi (Options): Replace references to opts.sh with
26227         optc-gen.awk.
26228         * opts-common.c: Likewise.
26229         * optc-gen.awk: Likewise.
26230
26231 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
26232
26233         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
26234
26235 2008-02-07  Richard Henderson  <rth@redhat.com>
26236
26237         PR rtl-opt/33410
26238         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
26239         EXPR_LIST for the REG_EQUAL instead of a comparison with a
26240         funny mode.
26241
26242 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
26243
26244         PR tree-optimization/35085
26245         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
26246         for operand entry oe2 in addition to operand entry oe3 in order to
26247         expose more opportunities for vectorizer sum reduction.
26248
26249 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26250
26251         PR other/35107
26252         * Makefile.in (LIBS): Remove $(GMPLIBS).
26253         (cc1-dummy, cc1): Add $(GMPLIBS).
26254
26255 2008-02-06  Jan Hubicka  <jh@suse.cz>
26256
26257         PR target/23322
26258         * i386.md (moddf_integer): Do not produce partial memory stalls for
26259         targets where it hurts.
26260
26261 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
26262
26263         PR target/35083
26264         * optabs.c (expand_float): Do not check for decimal modes when
26265         expanding unsigned integer through signed conversion.
26266
26267 2008-02-06  Nick Clifton  <nickc@redhat.com>
26268
26269         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
26270         inside the clobber with a match_operand and duplicated operand
26271         number in the constraint.
26272         (ineqbranchsi): Delete redundant comment.
26273
26274 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
26275
26276         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
26277         builtin_define ("__USE_INIT_FINI__").
26278         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
26279         -msx multilibs.
26280         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
26281
26282 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26283
26284         PR documentation/30330
26285         * doc/invoke.texi (C++ Dialect Options)
26286         (Objective-C and Objective-C++ Dialect Options, Warning Options):
26287         For each warning option -Wfoo that allows -Wno-foo, ensure both
26288         -Wfoo and -Wno-foo are listed in the option index.  Fix index
26289         entry of -Wswitch-default, index -Wnormalized= including the
26290         `=', and -Wlarger-than-@var{len} including @var{len}.
26291
26292 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
26293
26294         * config/i386/i386.md (floatunssisf2): Use
26295         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
26296         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
26297         Macroize expander using MODEF mode iterator.
26298
26299 2008-02-05  Diego Novillo  <dnovillo@google.com>
26300
26301         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
26302
26303         PR 33738
26304         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
26305
26306 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26307
26308         PR other/35070
26309         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
26310
26311 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
26312
26313         PR target/35084
26314         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
26315         to indicate if a message should be generated.
26316         (init_cumulative_args): Updated.
26317         (function_value_32): Likewise.
26318
26319 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
26320
26321         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
26322
26323 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
26324
26325         PR target/35083
26326         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
26327         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
26328
26329 2008-02-04  Diego Novillo  <dnovillo@google.com>
26330
26331         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
26332
26333         PR 33738
26334         * tree-vrp.c (vrp_evaluate_conditional): With
26335         -Wtype-limits, emit a warning when comparing against a
26336         constant outside the natural range of OP0's type.
26337
26338 2008-02-04  Richard Guenther  <rguenther@suse.de>
26339
26340         PR middle-end/33631
26341         * expr.c (count_type_elements): Give for unions instead of
26342         guessing.
26343
26344 2008-02-04  Richard Guenther  <rguenther@suse.de>
26345
26346         PR middle-end/35043
26347         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
26348         to TYPE_DOMAINs base type instead of using bitsizetype here.
26349
26350 2008-02-03  Jason Merrill  <jason@redhat.com>
26351
26352         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
26353
26354 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26355
26356         PR other/29972
26357         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
26358         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
26359         (RS/6000 and PowerPC Options): Fix typos and markup.
26360         * doc/passes.texi (Tree-SSA passes): Likewise.
26361
26362 2008-02-02  Michael Matz  <matz@suse.de>
26363
26364         PR target/35045
26365         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
26366         from record_last_reg_set_info.
26367         (record_last_reg_set_info): Take an RTX argument, iterate over all
26368         constituent hardregs.
26369         (record_last_set_info, record_opr_changes): Change calls to
26370         new signature or to record_last_reg_set_info_regno.
26371
26372 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
26373
26374         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
26375
26376 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
26377
26378         PR rtl-optimization/34773
26379         * reg-notes.def (EQUAL): Mention significance of combination of
26380         REG_EQUAL and REG_RETVAL.
26381         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
26382         insn that has a REG_RETVAL.
26383
26384 2008-02-01  Roger Sayle  <roger@eyesopen.com>
26385
26386         PR bootstrap/33781
26387         * configure.ac (--enable-fixed-point): Disable unless explicitly
26388         requested on IRIX.
26389         * configure: Regenerate.
26390
26391 2008-02-01  Richard Guenther  <rguenther@suse.de>
26392
26393         PR other/35042
26394         * invoke.texi (-finline-limit): Remove no longer true parts
26395         of the documentation.  Note that there is no default value.
26396
26397 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
26398             Mark Mitchell  <mark@codesourcery.com>
26399             Ben Elliston  <bje@au.ibm.com>
26400
26401         PR c/29326
26402         * doc/extend.texi (Other Builtins): Document.
26403
26404 2008-01-31  Tom Browder <tom.browder@gmail.com>
26405
26406         * doc/c-tree.texi (Types): Fix grammar.
26407         (Expression trees): Ditto.
26408         * doc/passes.texi (Tree-SSA passes): Ditto.
26409
26410         * doc/configterms.texi (Configure Terms): Fix typo.
26411         * doc/cpp.texi (Common Predefined Macros): Ditto.
26412         * doc/md.texi (Machine Constraints): Ditto.
26413
26414         * doc/makefile.texi (Makefile): Add comma.
26415
26416 2008-01-31  Tom Browder  <tom.browder@gmail.com>
26417             Gerald Pfeifer  <gerald@pfeifer.com>
26418
26419         * doc/sourcebuild.texi (Front End): Remove references to CVS
26420         and CVSROOT/modules.
26421         (Texinfo Manuals): Replace reference to CVS by one to SVN.
26422         (Back End): Remove reference to CVS.
26423
26424 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
26425
26426         PR target/34900
26427         * config/mips/mips.c (gen_load_const_gp): New function, taking a
26428         comment from...
26429         (mips16_gp_pseudo_reg): ...here.
26430         * config/mips/mips.md (load_const_gp): Replace with...
26431         (load_const_gp_<mode>): ...this :P-based insn.
26432
26433 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26434
26435         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
26436         options. Minor fixes.
26437         (-std): Move reference to standards closer to where language
26438         standards are first mentioned.
26439
26440 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
26441
26442         PR rtl-optimization/34995
26443         * reload.c (alternative_allows_const_pool_ref): Take an rtx
26444         parameter and return a bool.  If the rtx parameter is nonnull,
26445         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
26446         (find_reloads): Update call accordingly.  Pass the new operand
26447         if it needed no address reloads, otherwise pass null.
26448
26449 2008-01-30  Richard Henderson  <rth@redhat.com>
26450
26451         PR c/34993
26452         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
26453         for unbounded arrays.
26454
26455 2008-01-30  Silvius Rus  <rus@google.com>
26456
26457         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
26458
26459 2008-01-30  Jan Hubicka  <jh@suse.cz>
26460
26461         PR target/34982
26462         * i386.c (init_cumulative_args): Use real function declaration when
26463         calling locally.
26464
26465 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
26466
26467         PR rtl-optimization/34998
26468         * global.c (build_insn_chain): Treat non-subreg_lowpart
26469         SUBREGs of pseudos as clobbering all the words covered by the
26470         SUBREG, not just all the bytes.
26471         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
26472         original df_ref rather than an extract parameter.
26473         (global_conflicts): Update call accordingly.
26474
26475 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
26476
26477         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
26478         the overflow check to make it easier to read.
26479         (__fixtfdi): Change the type of the ll member in union
26480         long_double to UDItype_x.
26481
26482 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
26483
26484         PR middle-end/34969
26485         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
26486         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
26487         * tree-inline.c (fold_marked_statements): Call
26488         cgraph_update_edges_for_call_stmt if folding a call statement.
26489         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
26490         debug_generic_stmt calls, reset it back afterwards.
26491
26492         PR c/35017
26493         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
26494         static decls.
26495         * c-typeck.c (build_external_ref): Don't pedwarn about
26496         static vars in current function's scope.
26497
26498 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
26499
26500         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
26501
26502 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
26503
26504         PR c/35002
26505         * ipa-struct-reorg.c: Fix spelling.
26506         * params.def: Ditto.
26507
26508 2008-01-29  Richard Guenther  <rguenther@suse.de>
26509
26510         PR middle-end/35006
26511         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
26512         field.
26513         * tree-inline.c (remap_type): Increment remapping_type_depth
26514         around remapping types.
26515         (copy_body_r): Only add referenced variables if they are referenced
26516         from code, not types.
26517
26518 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
26519
26520         PR c++/34055
26521         PR c++/34103
26522         PR c++/34219
26523         PR c++/34606
26524         PR c++/34753
26525         PR c++/34754
26526         PR c++/34755
26527         PR c++/34919
26528         PR c++/34961
26529         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
26530         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
26531
26532 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
26533
26534         PR target/34412
26535         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
26536         pointer for tiny stack.
26537
26538 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
26539
26540         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
26541
26542 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
26543
26544         * config/vx-common.h: Fix typo in comment.
26545
26546 2008-01-28  Ian Lance Taylor  <iant@google.com>
26547
26548         PR c++/34862
26549         PR c++/33407
26550         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26551         coalesce pointers if they have different DECL_NO_TBAA_P values.
26552         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
26553         between variables with different DECL_NO_TBAA_P values.
26554
26555 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
26556
26557         PR 31535
26558         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
26559         are not legitimate small data references on SPE targets.
26560
26561 2008-01-28  David Daney  <ddaney@avtrex.com>
26562
26563         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
26564
26565 2008-01-28  David Daney  <ddaney@avtrex.com>
26566
26567         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
26568
26569 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
26570
26571         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
26572         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
26573         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
26574         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
26575         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
26576         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
26577         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
26578         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
26579
26580 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
26581
26582         * basic-block.h (condjump_equiv_p): Fix comment.
26583
26584 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
26585
26586         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
26587         print_generic_stmt_indented): Fix comment.
26588
26589 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
26590
26591         * configure.ac (__stack_chk_fail): Add detecion for availability
26592         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
26593         * configure: Regenerate.
26594
26595 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
26596
26597         PR middle-end/34688
26598         * final.c (output_addr_const): Handle TRUNCATE.
26599
26600 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
26601
26602         PR target/34711
26603         * tree-ssa-loop-ivopts.c (comp_cost): New type.
26604         (zero_cost, infinite_cost): New constants.
26605         (struct cost_pair): Change type of cost to comp_cost.
26606         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
26607         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
26608         New functions.
26609         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
26610         split_address_cost, ptr_difference_cost, difference_cost,
26611         get_computation_cost_at, get_computation_cost,
26612         determine_use_iv_cost_generic, determine_use_iv_cost_address,
26613         determine_use_iv_cost_condition, determine_use_iv_costs,
26614         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
26615         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
26616         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
26617         Change type of cost to comp_cost.
26618         (determine_iv_cost): Increase cost of non-original ivs, instead
26619         of decreasing the cost of original ones.
26620         (get_address_cost): Indicate the complexity of the addressing mode
26621         in comp_cost.
26622         (try_add_cand_for): Prefer using ivs not specific to some object.
26623         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
26624
26625 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
26626             Janis Johnson  <janis187@us.ibm.com>
26627
26628         PR target/34814
26629         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
26630         (TARGET_INSTANTIATE_DECLS): Likewise.
26631         * target.h (expand_to_rtl_hook): New target hook.
26632         (instantiate_decls): Likewise.
26633         * function.c (instantiate_decl): Make non-static.  Rename to...
26634         (instantiate_decl_rtl): ... this.
26635         (instantiate_expr): Use instantiate_decl_rtl.
26636         (instantiate_decls_1): Likewise.
26637         (instantiate_decls): Likewise.
26638         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
26639         * function.h (instantiate_decl_rtl): Add prototype.
26640         * cfgexpand.c (target.h): New include.
26641         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
26642         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
26643         (TARGET_INSTANTIATE_DECLS): Likewise.
26644         (TARGET_INITIALIZER): New target hooks added.
26645         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
26646         New prototype.
26647         * config/rs6000/rs6000.c (tree-flow.h): New include.
26648         (machine_function): Add sdmode_stack_slot field.
26649         (rs6000_alloc_sdmode_stack_slot): New function.
26650         (rs6000_instantiate_decls): Likewise.
26651         (rs6000_secondary_memory_needed_rtx): Likewise.
26652         (rs6000_check_sdmode): Likewise.
26653         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
26654         (TARGET_INSTANTIATE_DECLS): Likewise.
26655         (rs6000_hard_regno_mode_ok): Allow SDmode.
26656         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
26657         (rs6000_emit_move): Handle SDmode.
26658         (function_arg_advance): Likewise.
26659         (function_arg): Likewise.
26660         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
26661         SDmode var args for 32-bit compiles.
26662         (rs6000_secondary_reload_class): Handle SDmode.
26663         (rs6000_output_function_epilogue): Likewise.
26664         (rs6000_function_value): Simplify if statement.
26665         (rs6000_libcall_value): Likewise.
26666         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
26667         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
26668         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
26669         (movsd_hardfloat): New define_insn.
26670         (movsd_softfloat): Likewise.
26671         (movsd_store): Likewise.
26672         (movsd_load): Likewise.
26673         (extendsddd2): Likewise.
26674         (extendsdtd2): Likewise.
26675         (truncddsd2): Likewise.
26676         (movdd_hardfloat64): Fixup comment.
26677         (UNSPEC_MOVSD_LOAD): New constant.
26678         (UNSPEC_MOVSD_STORE): Likewise.
26679
26680 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
26681
26682         PR c++/34965
26683         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
26684         TRUTH_XOR_EXPR.
26685         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
26686         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
26687         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
26688         and TRUTH_XOR_EXPR.
26689
26690 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
26691
26692         PR target/34794
26693         * config.gcc: Separate AIX 5.3 from AIX 6.1.
26694         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26695         __LONGDOUBLE128 too.
26696         * config/rs6000/aix61.h: New file.
26697
26698 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
26699
26700         PR rtl-optimization/34959
26701         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
26702         popcount and parity rtxes the same mode as their operand.
26703         Truncate or extend the result to the return value's mode
26704         if necessary.
26705
26706 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
26707
26708         PR target/34981
26709         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
26710         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
26711         to GOT_VERSION_REGNUM.
26712         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
26713         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
26714         * config/mips/mips.c (mips_emit_call_insn): New function.
26715         (mips_call_tls_get_addr): Call mips_expand_call directly.
26716         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
26717         emit_call_insn.
26718         (mips16_build_call_stub): Likewise.  Return the call insn or null.
26719         (mips_expand_call): Update the call to mips16_build_call_stub
26720         accordingly and a remove redundant condition.  Assert that MIPS16
26721         stubs do not use lazy binding.  Use mips_emit_call_insn and return
26722         the call insn.
26723         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
26724         TARGET_USE_GOT.
26725         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
26726         (mips_avoid_hazard): Remove hazard_set handling.
26727         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
26728         (UNSPEC_RESTORE_GP): ...this.
26729         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
26730         (FAKE_CALL_REGNO): Rename to...
26731         (GOT_VERSION_REGNUM): ...this.
26732         (type): Add "ghost" value.  Add an associated insn reservation.
26733         (hazard_set): Remove.
26734         (exception_receiver): Rename to...
26735         (restore_gp): ...this and update the unspec identifier accordingly.
26736         (exception_receiver, nonlocal_got_receiver): New expanders.
26737         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
26738         FAKE_CALL_REGNO.  Remove hazard_set attribute.
26739         (set_got_version, update_got_version): New patterns.
26740
26741 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
26742
26743         PR target/34970
26744         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
26745
26746 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
26747
26748         PR other/31955
26749         * doc/install.texi2html: Generate gcc-vers.texi.
26750
26751 2008-01-25  DJ Delorie  <dj@redhat.com>
26752
26753         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
26754
26755 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
26756
26757         * config/c4x: Remove directory.
26758         * config.gcc (crx-*, mt-*): Mark obsolete.
26759         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
26760         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
26761         sh-*-rtemscoff*): Remove cases.
26762         * defaults.h (C4X_FLOAT_FORMAT): Remove.
26763         * real.c (encode_c4x_single, decode_c4x_single,
26764         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
26765         c4x_extended_format): Remove.
26766         * real.h (c4x_single_format, c4x_extended_format): Remove.
26767         * doc/extend.texi (interrupt, naked): Remove mention of attributes
26768         on C4x.
26769         (Pragmas): Remove comment about c4x pragmas.
26770         * doc/install.texi (c4x): Remove target-specific instructions.
26771         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
26772         * doc/md.texi (Machine Constraints): Remove C4x documentation.
26773         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
26774         refer to C4x source files as examples.
26775         (C4X_FLOAT_FORMAT): Remove documentation.
26776
26777 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
26778
26779         * config/bfin/bfin.c (override_options): Reorder tests so that
26780         flag_pic gets enabled for -msep-data.
26781
26782 2008-01-25  Richard Guenther  <rguenther@suse.de>
26783
26784         PR middle-end/32244
26785         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
26786         to its bitfield precision if required.
26787
26788 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
26789
26790         PR middle-end/33880
26791         * tree-nested.c (walk_omp_for): New function.
26792         (convert_nonlocal_reference, convert_local_reference): Call
26793         walk_omp_for on OMP_FOR.
26794         (convert_call_expr): Call walk_body on OMP_FOR's
26795         OMP_FOR_PRE_INIT_BODY.
26796
26797 2008-01-25  Richard Guenther  <rguenther@suse.de>
26798
26799         PR tree-optimization/34966
26800         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
26801         default defs and PHI_NODEs we have to insert after the
26802         defining statement.
26803
26804 2008-01-24  Nick Clifton  <nickc@redhat.com>
26805
26806         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
26807         Provide a default definition.
26808         (LIBGCC2_UNITS_PER_WORD): Likewise.
26809
26810         * config/stormy16/stormy16.c: Include df.h for the prototype
26811         for df_regs_ever_live_p.
26812         (xstormy16_expand_builtin_va_start): Convert the stack offset
26813         into a component_ref and then use POINTER_PLUS_EXPR to add it
26814         to the incoming_virtual_args_rtx.
26815         (xstormy16_gimplify_va_arg_expr): Rename to
26816         xstormy16_gimplify_va_arg_expr.
26817         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
26818         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
26819         xstormy16_gimplify_va_arg_expr.
26820         Fix up some formatting issues.
26821
26822         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
26823         Move to predicates.md.
26824         (xs_hi_general_operand): Likewise.
26825         (xs_hi_nonmemory_operand): Likewise.
26826         * config/stormy16/predicates.md:
26827         (xstormy16_carry_plus_operand): New predicate.
26828         (xs_hi_general_operand): New predicate.
26829         (xs_hi_nonmemory_operand): New predicate.
26830         * config/stormy16/stormy16-protos.h:
26831         (xstormy16_carry_plus_operand): Delete prototype.
26832         (xs_hi_general_operand): Likewise.
26833         (xs_hi_nonmemory_operand): Likewise.
26834
26835         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
26836         modifiers as they are no longer needed and they can trigger
26837         reload spill failures.
26838
26839         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
26840         with a match_operand in order to help reload.
26841
26842         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
26843         constraint with 'e' for the 8th alternative as this version of
26844         the mov.w instruction only accepts the lower 8 registers.
26845
26846 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
26847
26848         PR target/34856
26849         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
26850         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
26851         vector elements.
26852
26853 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
26854
26855         PR middle-end/33333
26856         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
26857
26858 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
26859
26860         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
26861         New functions.
26862         (remove_structure): Update allocations list before removing structure.
26863
26864 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
26865
26866         * ipa-struct-reorg.c (is_safe_cond_expr,
26867         create_new_stmts_for_cond_expr): Use integer_zerop function,
26868         that recognize not only zero-pointer, but zero-integer too.
26869
26870 2008-01-25  Ben Elliston  <bje@au.ibm.com>
26871
26872         PR other/22232
26873         * fixproto: Escape "." in sed expression that strips leading "./".
26874
26875 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26876
26877         PR driver/34904
26878         * gcc.c (SWITCH_OK): Removed.
26879         (SWITCH_LIVE): Changed to bit.
26880         (SWITCH_FALSE): Likewise.
26881         (SWITCH_IGNORE): Likewise.
26882         (switchstr): Change live_cond to unsigned int.
26883         (process_command): Replace SWITCH_OK with 0.
26884         (do_self_spec): Likewise.
26885         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
26886         (give_switch): Likewise.
26887         (used_arg): Likewise.
26888         (do_spec_1): Set the SWITCH_IGNORE bit.
26889         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
26890         bits.  Set the SWITCH_LIVE bit.
26891
26892 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26893
26894         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
26895
26896 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
26897
26898         PR tree-optimization/34472
26899         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
26900         parameter to a "bool *" and set *DATA to false if there is
26901         an unsafe access.  Do not delete the structure here.
26902         (check_cond_exprs): Delete it here instead.
26903         (check_cond_exprs, exclude_cold_structs): Do not increase
26904         I when removing a structure.
26905
26906 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
26907
26908         PR target/34856
26909         * config/i386/i386.c (ix86_expand_vector_init): Consider only
26910         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
26911
26912 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
26913
26914         PR middle-end/34934
26915         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
26916         a fixed vector for stack.
26917
26918 2008-01-24  Ben Elliston  <bje@au.ibm.com>
26919
26920         PR c++/25701
26921         * doc/gcc.texi (Software development): Add a direntry for g++.
26922
26923 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
26924
26925         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
26926         stale and straggling -fforce-addr comments above.
26927
26928         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
26929         define.
26930         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
26931         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
26932
26933 2008-01-23  Michael Matz  <matz@suse.de>
26934
26935         PR debug/34895
26936         * dwarf2out.c (force_type_die): Use modified_type_die instead of
26937         gen_type_die.
26938
26939 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
26940
26941         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
26942         malloc result type.
26943
26944 2008-01-23 Anatoly Sokolov <aesok@post.ru>
26945
26946         * config/avr/avr.c (avr_current_arch): New variable.
26947         (avr_arch_types): Add 'avr31' and 'avr51' entries.
26948         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
26949         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
26950         (avr_override_options): Init 'avr_current_arch'.
26951         (base_arch_s): Move from here...
26952         * config/avr/avr.h (base_arch_s): ... here. Add new members
26953         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
26954         'mega' to 'have_jmp_call'.
26955         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
26956         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
26957         macros.
26958         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
26959         architectures.
26960         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
26961         MULTILIB_MATCHES): Ditto.
26962
26963 2008-01-23  Richard Guenther  <rguenther@suse.de>
26964
26965         PR middle-end/31529
26966         * cgraphunit.c (cgraph_reset_node): Always mark the node
26967         not reachable if it is not queued already.
26968
26969 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
26970
26971         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
26972         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
26973         (cputype_selected): New static variable.
26974         (bfin_handle_option): Set it if -mcpu is used.
26975         (override_option): Select default set of workarounds if no cpu type
26976         selected on the command line.
26977         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
26978
26979         From  Michael Frysinger  <michael.frysinger@analog.com>
26980         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
26981         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
26982
26983         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
26984         for bf547, bf523, bf524, and bf526.
26985         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
26986         bf526.
26987         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
26988         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
26989         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
26990         __ADSPBF547__ and __ADSPBF54x__ for bf547.
26991         * doc/invoke.texi (Blackfin Options): Document that
26992         -mcpu now accept bf547, bf523, bf524, and bf526.
26993
26994 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
26995
26996         PR rtl-optimization/34628
26997         * combine.c (try_combine): Stop and undo after the first combination
26998         if an autoincrement side-effect on the first insn has effectively
26999         been lost.
27000
27001 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
27002
27003         PR target/34529
27004         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27005         Offset addresses are not valid for Altivec or paired float modes.
27006
27007 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
27008
27009         PR c++/34607
27010         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
27011         if DECL_INITIAL (decl) is error_mark_node.
27012
27013         PR c++/34914
27014         * c-common.c (handle_vector_size_attribute): Only allow
27015         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
27016         the same way as pointer, array etc. types.
27017         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
27018
27019         PR c++/34917
27020         * tree.c (build_type_attribute_qual_variant): Call
27021         build_qualified_type if attributes are equal, but quals are not.
27022
27023 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27024
27025         PR 32102
27026         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
27027         * flags.h (warn_strict_aliasing): Remove.
27028         (warn_strict_overflow): Remove.
27029         * opts.c (warn_strict_aliasing): Remove.
27030         (warn_strict_overflow): Remove.
27031         * c-opts.c (c_common_handle_option): -Wall only sets
27032         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
27033         (c_common_post_options): Give default values to -Wstrict-aliasing
27034         and -Wstrict-overflow if they are uninitialized.
27035         * common.opt (Wstrict-aliasing): Specify Var and Init.
27036         (Wstrict-overflow): Likewise.
27037
27038 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
27039
27040         PR rtl-optimization/26854
27041         PR rtl-optimization/34400
27042         PR rtl-optimization/34884
27043         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
27044         DF_RD->gen.
27045         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
27046         (df_rd_bb_info.expanded_lr_out): Deleted
27047         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
27048         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
27049         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
27050         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
27051         Removed code to allocate, initialize or free expanded_lr_out.
27052         (df_rd_bb_local_compute_process_def): Restructured to make more
27053         understandable.
27054         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
27055         sets if the sets are being trimmed.
27056
27057 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27058
27059         PR bootstrap/32287
27060         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
27061         (as_vers): Likewise.
27062         * configure: Regenerated.
27063
27064 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27065
27066         PR middle-end/33092
27067         * tree-pass.h (pass_build_alias): New pass.
27068         * tree-ssa-alias.c (gate_build_alias): New.
27069         (pass_build_alias): New.
27070         * passes.c (init_optimization_passes): Add pass_build_alias after
27071         pass_create_structure_vars.
27072
27073 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
27074
27075         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
27076         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
27077         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
27078         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
27079         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
27080         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
27081         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
27082         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
27083         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
27084         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
27085         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
27086         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
27087         * config/s390/s390.md (FP_ALL): New mode iterator.
27088         (_d): New mode attribute.
27089         ("*signbit<mode>2>"): Changed mode of first operand.
27090         ("isinf<mode>2"): Changed mode of first operand.
27091         ("*TDC_insn"): Adaptation for DFP modes.
27092
27093 2008-01-22  Ben Elliston  <bje@au.ibm.com>
27094
27095         * tree.c (check_qualified_type): Improve function description.
27096
27097 2008-01-21  Jason Merrill  <jason@redhat.com>
27098
27099         PR c++/34196
27100         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
27101         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
27102         if it is set.
27103
27104 2008-01-21  DJ Delorie  <dj@redhat.com>
27105
27106         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
27107         return zero.
27108
27109 2008-01-21  Richard Guenther  <rguenther@suse.de>
27110
27111         PR middle-end/34856
27112         * tree-cfg.c (verify_expr): Allow all invariant expressions
27113         instead of just constant class ones as reference argument.
27114         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
27115         like any other constant.
27116         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
27117
27118 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
27119
27120         * regmove.c (fixup_match_1): Update call crossed frequencies.
27121
27122 2008-01-21  Richard Guenther  <rguenther@suse.de>
27123
27124         PR c/34885
27125         * tree-inline.c (setup_one_parameter): Deal with mismatched
27126         types using a VIEW_CONVERT_EXPR.
27127
27128 2008-01-21  Alon Dayan  <alond@il.ibm.com>
27129             Olga Golovanevsky  <olga@il.ibm.com>
27130
27131         PR tree-optimization/34701
27132         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
27133         when the structure size is not a power of 2.
27134
27135 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
27136
27137         * doc/install.texi: Add doc for --enable-checking=df.
27138
27139 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
27140
27141         PR rtl-optimization/34808
27142         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
27143
27144 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
27145
27146         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
27147         input.
27148
27149 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
27150
27151         PR rtl-optimization/26854
27152         PR rtl-optimization/34400
27153         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
27154         DF_RD->gen.
27155         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
27156         (df_rd_bb_info.expanded_lr_out): New.
27157         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
27158         * loop_iv.c (iv_analysis_loop_init): Ditto.
27159         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
27160         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
27161         Added code to allocate, initialize or free expanded_lr_out.
27162         (df_rd_bb_local_compute_process_def): Restructured to make
27163         more understandable.
27164         (df_rd_confluence_n): Add code to do nothing with fake edges and
27165         code to no apply invalidate_by_call sets if the sets are being trimmed.
27166         (df_lr_local_finalize): Renamed to df_lr_finalize.
27167         (df_live_local_finalize): Renamed to df_live_finalize.
27168
27169 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
27170
27171         PR target/34831
27172         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
27173         deciding whether to use reciprocal instructions.
27174
27175 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
27176
27177         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
27178         dwarf2out_note_section_used if cold_text_section is NULL.
27179
27180 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
27181
27182         PR gcov-profile/34610
27183         * tree-cfg.c (make_edges): Mark both outgoing edges from
27184         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
27185         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
27186         from OMP_FOR and OMP_CONTINUE outgoing edges.
27187
27188         * tree-profile.c (tree_profiling): Return early if
27189         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
27190         at the end.
27191         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
27192         from cfun to child_cfun.
27193         * function.h (struct function): Add after_tree_profile bit.
27194
27195 2008-01-19 Anatoly Sokolov <aesok@post.ru>
27196
27197         * config/avr/avr.S (_exit): Disable interrupt.
27198
27199 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
27200             Steven Bosscher  <stevenb.gcc@gmail.com>
27201
27202         PR rtl-optimization/26854
27203         PR rtl-optimization/34400
27204         * df-problems.c (df_live_scratch): New scratch bitmap.
27205         (df_live_alloc): Allocate df_live_scratch when doing df_live.
27206         (df_live_reset): Clear the proper bitmaps.
27207         (df_live_bb_local_compute): Only process the artificial defs once
27208         since the order is not important.
27209         (df_live_init): Init the df_live sets only with the variables
27210         found live by df_lr.
27211         (df_live_transfer_function): Use the df_lr sets to prune the
27212         df_live sets as they are being computed.
27213         (df_live_free): Free df_live_scratch.
27214
27215 2008-01-18  Ian Lance Taylor  <iant@google.com>
27216
27217         * common.opt: Add fmerge-debug-strings.
27218         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
27219         flag_merge_debug_strings rather than flag_merge_constants.
27220         * doc/invoke.texi (Option Summary): Mention
27221         -fmerge-debug-strings.
27222         (Debugging Options): Document -fmerge-debug-strings.
27223
27224 2008-01-18  Ian Lance Taylor  <iant@google.com>
27225
27226         PR c++/33407
27227         * tree.h (DECL_IS_OPERATOR_NEW): Define.
27228         (struct tree_function_decl): Add new field operator_new_flag.
27229         * tree-inline.c (expand_call_inline): When inlining a call to
27230         operator new, force the return value to go into a variable, and
27231         set DECL_NO_TBAA_P on that variable.
27232         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
27233
27234 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
27235
27236         PR debug/34484
27237         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
27238         DWARF2_DEBUGGING_INFO.
27239         (dwarf2out_note_section_used): Ditto.  Add prototype.
27240         (have_multiple_function_sections, text_section_used,
27241         cold_text_section_used, *cold_text_sections): Move declarations
27242         before their uses.
27243
27244 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
27245
27246         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
27247         field and add signal_ra.
27248         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
27249         assignments to frame state pc.  Move end of stack check after
27250         MD_FALLBACK_FRAME_STATE_FOR.
27251         (uw_update_context_1): Use frame state signal_regs if set, instead
27252         of checking signal_frame flag.
27253         (uw_update_context): Use frame state signal_ra if set.
27254         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
27255         * config/xtensa/linux-unwind.h: New file.
27256
27257 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
27258
27259         * modulo-sched.c (get_sched_window): Fix comment typo.
27260
27261 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
27262
27263         PR tree-optimization/34648
27264         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
27265
27266 2008-01-17  Anatoly Sokolov <aesok@post.ru>
27267
27268         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
27269         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
27270
27271 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
27272
27273         PR rtl-optimization/34400
27274         * df-core.c (df_worklist_dataflow_overeager,
27275         df_worklist_dataflow_doublequeue): New functions.
27276         (df_worklist_dataflow): Two different worklist solvers.
27277         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
27278         New param.
27279
27280 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27281
27282         PR testsuite/34821
27283         * doc/invoke.texi: Document the dependence on pthread for fopenmp
27284         and ftree-parallelize-loops.
27285
27286 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
27287
27288         PR rtl-optimization/34826
27289         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
27290
27291 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
27292
27293         * global.c (find_reg): Mark the eh regs as used if necessary.
27294         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
27295         * ra.h (struct allocno): no_eh_reg field added.  Changed
27296         no_stack_reg type to bitfield.
27297
27298 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
27299
27300         * tree.c (substitute_in_expr): Add missing 'break'.
27301
27302 2008-01-17  Richard Guenther  <rguenther@suse.de>
27303
27304         PR tree-optimization/34825
27305         * tree-ssa-math-opts.c (is_division_by): Do not recognize
27306         x / x as division to handle.
27307
27308 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27309
27310         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
27311         "-pthread" is specified.
27312         * pa-hpux11.h (LIB_SPEC): Likewise.
27313
27314 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
27315             Peter Bergner  <bergner@vnet.ibm.com>
27316
27317         PR rtl-optimization/33796
27318         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
27319
27320 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27321
27322         PR libgfortran/34699
27323         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
27324         static links.
27325         * pa-hpux10.h (LINK_SPEC): Likewise.
27326         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
27327
27328 2008-01-16  Richard Guenther  <rguenther@suse.de>
27329
27330         PR middle-end/32628
27331         * fold-const.c (fold_convert_const_int_from_int): Do not
27332         set overflow if that occured only because of a sign extension
27333         change when converting from/to a sizetype with the same
27334         precision and signedness.
27335
27336 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
27337
27338         PR debug/34249
27339         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
27340         location address to the correct place.  Update copyright year.
27341
27342 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27343
27344         * lambda-code.c (lambda_transform_legal_p): Handle the case of
27345         no dependences in the dependence_relations vector.
27346
27347 2008-01-16  Jan Hubicka  <jh@suse.cz>
27348
27349         PR rtl-optimization/31396
27350         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
27351         * cfg.c (dump_reg_info): Print it.
27352         * regs.h (struct reg_info_t): add freq_calls_crossed.
27353         (REG_FREQ_CALLS_CROSSED): New macro.
27354         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
27355         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
27356         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
27357         regmove_optimize): Update call crossed frequencies.
27358         * local-alloc.c (struct qty): Add freq_calls_crossed.
27359         (alloc_qty): Copute freq_calls_crossed.
27360         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
27361         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
27362         * ra.h (struct allocno): Add freq_calls_crossed.
27363
27364 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27365
27366         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
27367         libgomp when compiling with ftree-parallelize-loops.
27368         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
27369
27370 2008-01-16  Richard Guenther  <rguenther@suse.de>
27371
27372         PR tree-optimization/34769
27373         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
27374         * tree.c (int_cst_value): Instead make this function more
27375         permissive in what it accepts as valid input.  Document this
27376         function always sign-extends the value.
27377
27378 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
27379             Richard Guenther  <rguenther@suse.de>
27380
27381         PR c/34668
27382         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
27383         (gimple_fold_indirect_ref_rhs): ... this.
27384         (gimple_fold_indirect_ref): New function with foldings
27385         that preserve lvalueness.
27386         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
27387         * tree-flow.h (gimple_fold_indirect_ref): Declare.
27388         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
27389         to fold an INDIRECT_REF, fall back to the old use of
27390         fold_indirect_ref_1.
27391
27392 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27393
27394         * tree-data-ref.c (subscript_dependence_tester_1): Call
27395         free_conflict_function.
27396         (compute_self_dependence): Same.
27397
27398 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
27399
27400         PR debug/34249
27401         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
27402         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
27403         function global.
27404         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
27405         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
27406         for DWARF2_UNWIND_INFO targets.
27407
27408 2008-01-16  Richard Guenther  <rguenther@suse.de>
27409
27410         PR c/34768
27411         * c-typeck.c (common_pointer_type): Do not merge inconsistent
27412         type qualifiers for function types.
27413
27414 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
27415
27416         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
27417         loop_iterator li from previous commit.
27418
27419 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27420
27421         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
27422
27423 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
27424
27425         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
27426         (parallelize_loops): Don't parallelize irreducible components.
27427
27428 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27429
27430         PR c++/24924
27431         * c-opts (c_common_post_options): Do not enable CPP
27432         flag_pedantic_errors by default.
27433
27434 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
27435
27436         PR rtl-optimization/31944
27437         * cse.c (remove_pseudo_from_table): New function.
27438         (merge_equiv_classes): Use above function to remove pseudo-registers.
27439         (invalidate): Likewise.
27440
27441 2008-01-13  Richard Guenther  <rguenther@suse.de>
27442
27443         PR middle-end/34601
27444         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
27445         instead of TYPE_MODE to deal with calls from expand_one_error_var.
27446
27447 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
27448
27449         * gcse.c (cprop_jump): Call validate_unshare_change instead of
27450         validate_change to unshare the source of the PC set.
27451
27452 2008-01-12  Jan Hubicka  <jh@suse.cz>
27453
27454         PR middle-end/32135
27455         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
27456         references above array bounds.  This might trigger bounds checks for
27457         pointers to arrays.
27458
27459 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
27460
27461         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
27462         new_replaceable_dependencies.
27463
27464 2008-01-12  Doug Kwan  <dougkwan@google.com>
27465
27466         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
27467         instead of OPT_Wreturn_type in warning due to ignored return type
27468         qualifiers.
27469         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
27470         options included in -Wextra.
27471         * c.opt: New option -Wignored_qualifiers.
27472         * doc/invoke.texi (Warning Options, -Wextra): Add new option
27473         -Wignore_qualifiers.
27474         (-Wignored-qualifiers): Document.
27475         (-Wreturn-type): Remove description of functionality now handled
27476         by -Wignored-qualifiers.
27477
27478 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
27479
27480         PR ada/33788
27481         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
27482         NOP_EXPR if it is between integral types with the same precision.
27483
27484 2008-01-12  Jan Hubicka  <jh@suse.cz>
27485
27486         PR other/28023
27487         * invoke.texi (max-inline-recursive-depth): Fix default value.
27488
27489 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
27490
27491         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
27492         correct type.
27493
27494 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
27495
27496         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
27497
27498 2008-01-11  James E. Wilson  <wilson@specifix.com>
27499
27500         PR target/26015
27501         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
27502
27503 2008-01-11  Anatoly Sokolov <aesok@post.ru>
27504
27505         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
27506         save/restore frame pointer register and don't use 'call-prologues'
27507         optimization in function with "OS_task" attribute.
27508
27509 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
27510
27511         PR middle-end/31309
27512         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
27513         when copying to memory.
27514
27515 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
27516
27517         PR rtl-optimization/30905
27518         * cfgcleanup.c: Include dce.h
27519         (crossjumps_occured): New global variable.
27520         (try_crossjump_bb): Exit loop after finding a fallthru edge.
27521         If something changed, set crossjumps_occured to true.
27522         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
27523         Don't add/remove fake edges to exit here...
27524         (cleanup_cfg): ...but do it here, when crossjumping.
27525         Run a fast DCE when successful crossjumps occured in the latest
27526         iteration of try_optimize_cfg.
27527
27528 2008-01-11  Richard Guenther  <rguenther@suse.de>
27529
27530         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
27531         (struct vn_unary_op_s): Likewise.
27532         (vn_reference_insert): Free old reference on hash collision.
27533
27534 2008-01-10  Raksit Ashok  <raksit@google.com>
27535
27536         PR rtl-optimization/27971
27537         * combine.c (find_split_point): Split PLUS expressions which are
27538         inside a MEM rtx, and whose first operand is complex.
27539
27540 2008-01-10  DJ Delorie  <dj@redhat.com>
27541
27542         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
27543         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
27544         (m32c_hard_regno_ok): Call the underlying function.
27545
27546 2008-01-10  Richard Guenther  <rguenther@suse.de>
27547
27548         PR middle-end/34683
27549         * tree-cfg.c (tree_merge_blocks): Do not go through the
27550         full-blown folding and stmt updating path if we just deal
27551         with virtual operands.
27552         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
27553         test for abnormal SSA_NAMEs.
27554
27555 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
27556
27557         PR middle-end/34641
27558         * reload.c (push_reload): Add assertions.  All constants from
27559         reg_equiv_constant should have been used for replacing the respective
27560         pseudo earlier.
27561         (find_reloads_address): Invoke find_reloads_address_part for
27562         constant taken from the reg_equiv_constant array.
27563
27564 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
27565
27566         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
27567         field (valnum) the first in the struct.  Replace bools with
27568         unit bit fields.
27569
27570 2008-01-10  Richard Guenther  <rguenther@suse.de>
27571
27572         PR tree-optimization/34651
27573         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
27574         types and ordering for masking and converting.
27575
27576 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
27577
27578         PR tree-optimization/34017
27579         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
27580         also for PHI_NODE expressions.
27581
27582 2008-01-09  Jan Hubicka  <jh@suse.cz>
27583
27584         PR tree-optimization/34708
27585         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
27586         based on number of case labels.
27587         (init_inline_once): Remove switch_cost.
27588         * tree-inline.h (eni_weights_d): Remove switch_cost.
27589
27590 2008-01-09  Richard Guenther  <rguenther@suse.de>
27591         Andrew Pinski  <andrew_pinski@playstation.sony.com>
27592
27593         PR middle-end/30132
27594         * gimplify.c (gimplify_cond_expr): Do not create an addressable
27595         temporary if an rvalue is ok or an lvalue is not required.
27596
27597 2008-01-09  Richard Guenther  <rguenther@suse.de>
27598
27599         PR middle-end/34458
27600         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
27601         adjust return type.
27602
27603 2008-01-09  Richard Guenther  <rguenther@suse.de>
27604
27605         PR middle-end/34679
27606         * tree.c (host_integerp): Check for sizetype only if the
27607         type is an integer type.
27608
27609 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
27610
27611         PR debug/26364
27612         * opts.c (decode_options): Disable inlining of functions called
27613         once if not in unit-at-a-time mode.
27614
27615 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
27616
27617         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
27618
27619 2008-01-08  Richard Guenther  <rguenther@suse.de>
27620
27621         PR middle-end/31863
27622         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
27623         out early if the result will be unused.
27624
27625 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
27626
27627         PR target/34709
27628         Revert:
27629
27630         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
27631         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27632         for TARGET_RECIP.
27633
27634 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
27635
27636         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
27637         for vectorization tuned.
27638
27639 2008-01-08  Richard Guenther  <rguenther@suse.de>
27640
27641         PR tree-optimization/34683
27642         * tree-ssa-operands.c (operand_build_cmp): Export.
27643         * tree-ssa-operands.h (operand_build_cmp): Declare.
27644         * tree-vn.c (vuses_compare): Remove.
27645         (sort_vuses): Use operand_build_cmp.
27646         (sort_vuses_heap): Likewise.
27647         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
27648         to re-use old VEC if available.  Do not sort already sorted VUSEs.
27649         (vdefs_to_vec): Do not sort already sorted VDEFs.
27650
27651 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
27652
27653         PR middle-end/34694
27654         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
27655
27656 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
27657
27658         PR target/34702
27659         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
27660         limitations of reciprocal sequences on x86 targets.
27661
27662 2008-01-08  Richard Guenther  <rguenther@suse.de>
27663
27664         PR tree-optimization/34683
27665         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
27666
27667 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
27668
27669         PR target/34622
27670         * config/darwin.c (darwin_mergeable_string_section): Don't use
27671         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
27672
27673 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
27674
27675         PR target/34682
27676         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
27677         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
27678         predicates of op0 and op1 to register_operand.
27679         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
27680         expander using X87MODEF mode iterator.  Change predicates of
27681         op0 and op1 to register_operand.
27682         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
27683         corresponding patterns and macroize using MODEF macro.  Change
27684         predicates of op0 and op1 to register_operand and remove
27685         "m" constraint. Disparage "r" alternative with "!".
27686         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
27687         macroize using X87MODEF macro.  Change predicates of op0 and op1
27688         to register_operand and remove "m" constraint.  Disparage "r"
27689         alternative with "!".
27690         (absneg splitter with memory operands): Remove.
27691         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
27692         patterns and macroize using X87MODEF mode iterator.
27693         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
27694         Change predicate of op1 to register_operand.
27695         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
27696         for memory operands.
27697
27698 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
27699
27700         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
27701
27702 2008-01-07  Richard Guenther  <rguenther@suse.de>
27703
27704         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
27705         fields.
27706
27707 2008-01-07  Richard Guenther  <rguenther@suse.de>
27708
27709         PR tree-optimization/34683
27710         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
27711         VOPs of the needed size to save memory.  Use VEC_quick_push
27712         to save compile-time.
27713         (vdefs_to_vec): Likewise.
27714
27715 2008-01-07  Sa Liu  <saliu@de.ibm.com>
27716
27717         * config/spu/spu.md (divdf3): Genetate inline code for double
27718         division.  The implementation doesn't handle INF or NAN, therefore it
27719         only applies when -ffinite-math-only is given.
27720
27721 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
27722
27723         PR libstdc++/34680
27724         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
27725         * doc/cpp.texi ([Common Predefined Macros]): Document.
27726
27727 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
27728
27729         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
27730         order to use commutative addition instead of subtraction.
27731
27732 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27733             Mircea Namolaru  <namolaru@il.ibm.com>
27734             Vladimir Yanovsky  <yanov@il.ibm.com>
27735             Revital Eres  <eres@il.ibm.com>
27736
27737         PR tree-optimization/34263
27738         * tree-outof-ssa.c (process_single_block_loop_latch,
27739         contains_tree_r): New functions.
27740         (analyze_edges_for_bb): Call process_single_block_loop_latch
27741         function to empty single-basic-block latch block if possible.
27742
27743 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
27744
27745         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27746         for TARGET_RECIP.
27747         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
27748
27749 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
27750
27751         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
27752
27753 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
27754
27755         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
27756
27757 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
27758
27759         PR tree-optimization/34618
27760         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
27761         flag from T.
27762
27763 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
27764
27765         PR target/34673
27766         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
27767         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
27768         Update copyright year.
27769
27770         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
27771         Update copyright year.
27772         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
27773         using NR fixup.
27774
27775 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
27776
27777         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
27778         edge does not point to current bb before changing need_assert.
27779
27780 2008-01-04  Richard Guenther  <rguenther@suse.de>
27781
27782         PR middle-end/34029
27783         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
27784         for verifying purposes if they are is_gimple_min_invariant.
27785
27786 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
27787
27788         PR tree-optimization/34448
27789         PR tree-optimization/34465
27790         * gimplify.c (gimplify_init_constructor): Add new parameter
27791         notify_temp_creation.  Use it.
27792         (gimplify_modify_expr_rhs): Take volatiles into account when
27793         optimizing constructors.
27794         Do not optimize constructors if gimplify_init_constructor will dump to
27795         memory.
27796         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
27797         * gcc.c-torture/compile/pr34448.c: New.
27798
27799 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
27800
27801         PR gcov-profile/34609
27802         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
27803         return_slot if result is TREE_ADDRESSABLE.
27804
27805 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
27806
27807         * config/mips/mips.md (sqrt_condition): Tweak comment.
27808         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
27809
27810 2008-01-03  Tom Tromey  <tromey@redhat.com>
27811
27812         PR c/34457
27813         * c-common.c (c_type_hash): Handle VLAs.
27814
27815 2008-01-03  Jan Hubicka  <jh@suse.cz>
27816
27817         PR tree-optimization/31081
27818         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
27819         0 when inlining and not inlining to first basic block.
27820         (remap_decl): When var is initialized to 0, don't set default_def.
27821         (expand_call_inline): Set entry_bb.
27822         * tree-inline.h (copy_body_data): Add entry_bb.
27823
27824 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
27825
27826         PR c++/34619
27827         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
27828         before returning.
27829
27830         PR tree-optimization/29484
27831         * tree-inline.c (inline_forbidden_p_2): New function.
27832         (inline_forbidden_p): Disallow inlining if some static var
27833         has an address of a local LABEL_DECL in its initializer.
27834         * doc/extend.texi (Labels as Values): Document &&foo behaviour
27835         vs. inlining.
27836
27837 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27838
27839         PR tree-optimization/34635
27840         * tree-data-ref.c (add_other_self_distances): Make sure that the
27841         evolution step is constant.
27842
27843 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
27844
27845         PR middle-end/34608
27846         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
27847
27848 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
27849
27850         * tree-sra.c (scalarize_init): Insert the generate_element_init
27851         statements after the generate_element_zero statements.
27852
27853 2008-01-02  Richard Guenther  <rguenther@suse.de>
27854
27855         PR middle-end/34093
27856         PR middle-end/31976
27857         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
27858         for very large number of operands instead of ICEing.
27859
27860 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
27861
27862         PR target/34013
27863         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
27864         while stack probing.
27865
27866 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
27867
27868         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
27869         in C++0x mode.
27870
27871 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
27872
27873         PR libmudflap/26442
27874         * tree-mudflap.c (mx_register_decls): Guard warning by
27875         !DECL_ARTIFICIAL check.
27876
27877 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
27878
27879         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
27880         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
27881         sse5_perm<mode>): Fix constraints.