OSDN Git Service

PR fortran/32860
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2
3         PR fortran/32860
4         * c-format.c (gcc_gfc_length_specs): New array.
5         (gcc_gfc_char_table): Add unsigned specifier, and references to
6         the l length modifier.
7         (format_types_orig): Use the new gcc_gfc_length_specs.
8
9 2007-08-12  Sa Liu  <saliu@de.ibm.com>
10
11         * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
12         and with REG_RETVAL note after split.
13
14 2007-08-11  David Daney  <ddaney@avtrex.com>
15
16         * config/mips/mips.c (mips_sched_reorder):  Mark cycle parameter
17         as ATTRIBUTE_UNUSED.
18
19 2007-08-11  David Edelsohn  <edelsohn@gnu.org>
20             Segher Boessenkool  <segher@kernel.crashing.org>
21
22         * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
23         HAVE_LOCAL_CPU_DETECT not defined.
24
25 2007-08-11  Jan Hubicka  <jh@suse.cz>
26
27         * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
28         (cgraph_process_new_functions): Honor previous value of
29         disregard_inline_limits.
30         * ipa-inline.c (compute_inline_parameters): Likewise.
31
32 2007-08-11  Ian Lance Taylor  <iant@google.com>
33
34         * alias.h (alias_set_type): Define new type.
35         (ALIAS_SET_MEMORY_BARRIER): Use it.
36         * rtl.h: Include alias.h.
37         (struct mem_attrs): Use alias_set_type.
38         * tree.h: Include alias.h
39         (struct tree_type): Use alias_set_type.
40         (struct tree_struct_field_tag): Likewise.
41         (struct tree_decl_common): Likewise.
42         * alias.c (struct alias_set_entry): Use alias_set_type.
43         (get_alias_set_entry, alias_set_subset_of): Likewise.
44         (alias_sets_conflict_p): Likewise.
45         (alias_sets_must_conflict_p): Likewise.
46         (objects_must_conflict_p): Likewise.
47         (get_alias_set, new_alias_set): Likewise.
48         (record_alias_subset, record_component_aliases): Likewise.
49         (varargs_set, frame_set): Change to alias_set_type.
50         (get_varargs_alias_set): Use alias_set_type.
51         (get_frame_alias_set): Likewise.
52         * builtins.c (setjmp_alias_set): Change to alias_set_type.
53         * dse.c (struct store_info): Use alias_set_type.
54         (struct read_info, struct clear_alias_mode_holder): Likewise.
55         (clear_alias_set_lookup, canon_address): Likewise.
56         (record_store, check_mem_read_rtx): Likewise.
57         (dse_record_singleton_alias_set): Likewise.
58         (dse_invalidate_singleton_alias_set): Likewise.
59         * emit-rtl.c (get_mem_attrs): Likewise.
60         (set_mem_attributes_minus_bitpos): Likewise.
61         (set_mem_alias_set): Likewise.
62         * expr.c (store_constructor_field, store_field): Likewise.
63         * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
64         * langhooks.c (lhd_get_alias_set): Likewise.
65         * langhooks-def.h (lhd_get_alias_set): Likewise.
66         * reload1.c (alter_reg): Likewise.
67         * tree-flow.h (struct fieldoff): Likewise.
68         * tree-ssa-alias.c (struct alias_map_d): Likewise.
69         (may_alias_p, get_smt_for, create_sft): Likewise.
70         * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
71         * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
72         (merge_smts_into): Likewise.
73         * varasm.c (const_alias_set): Likewise.
74         * c-common.c (strict_aliasing_warning): Likewise.
75         (c_common_get_alias_set): Likewise.
76         * dse.h (dse_record_singleton_alias_set): Update declaration.
77         (dse_invalidate_singleton_alias_set): Likewise.
78         * emit-rtl.h (set_mem_alias_set): Likewise.
79         * c-common.h (c_common_get_alias_set): Likewise.
80         * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
81         * print-tree.c (print_node): Likewise.
82         * config/alpha/alpha.c (alpha_sr_alias_set): Change to
83         alias_set_type.
84         (alpha_setup_incoming_varargs): Use alias_set_type.
85         * config/i386/i386.c (setup_incoming_varargs_64): Use
86         alias_set_type.
87         (setup_incoming_varargs_ms_64): Likewise.
88         (ix86_GOT_alias_set): Likewise.
89         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
90         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
91         (set): Change to alias_set_type.
92         (get_TOC_alias_set): Use alias_set_type.
93         * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
94         declaration.
95         * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
96         * config/sparc/sparc.c (sparc_sr_alias_set): Change to
97         alias_set_type.
98         (struct_value_alias_set): Likewise.
99         * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
100
101 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
102
103         * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
104         * config/vxworks.h (TARGET_VXWORKS): Override.
105         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
106         "mips" if TARGET_VXWORKS.
107
108 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
109
110         * calls.c (avoid_likely_spilled_reg): New function.
111         (expand_call): Use it.
112
113 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
114
115         * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
116
117 2007-08-10  Adam Nemet  <anemet@caviumnetworks.com>
118
119         * config/mips/predicates.md (const_call_insn_operand): Invoke
120         SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
121
122 2007-08-10  David Edelsohn  <edelsohn@gnu.org>
123
124         PR target/33042
125         * config/rs6000/driver-rs6000.c: Include link.h.
126         Use ElfW instead of wordsize-specif typedef.
127
128 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
129
130         * system.h (CONST_CAST): New.
131         * c-decl.c (c_make_fname_decl): Use it.
132         * c-lex.c (cb_ident, lex_string): Likewise.
133         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
134         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
135         give_switch, set_multilib_dir): Likewise.
136         * gengtype-parse.c (string_seq, typedef_name): Likewise.
137         * passes.c (execute_one_pass): Likewise.
138         * prefix.c (update_path): Likewise.
139         * pretty-print.c (pp_base_destroy_prefix): Likewise.
140         * tree.c (build_string): Likewise.
141
142 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
143
144         * tree-flow-inline.h (is_exec_stmt): Remove.
145         (is_label_stmt): Remove.
146         * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
147         is_label_stmt.
148
149 2007-08-10  Andreas Krebbel  <krebbel1@de.ibm.com>
150
151         * lower-subreg.c (resolve_shift_zext): Don't adjust
152         src_reg_num for wordmode operands.
153
154 2007-08-10  Sandra Loosemore  <sandra@codesourcery.com>
155             David Ung  <davidu@mips.com>
156
157         * config/mips/mips.c (TARGET_SCHED_INIT): Define.
158         (TARGET_SCHED_REORDER2): Define.
159         (mips_maybe_swap_ready): New.
160         (mips_last_74k_agen_insn): New.
161         (mips_74k_agen_init): New.
162         (mips_74k_agen_reorder): New function to group loads and stores
163         in the ready queue.
164         (mips_sched_init): New.  
165         (mips_sched_reorder): Don't do initialization here.  Call
166         mips_74k_agen_reorder.
167         (mips_variable_issue): Call mips_74k_agen_init.
168
169 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
170
171         * tree-flow-inline.h (get_filename): Remove.
172
173 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
174
175         * config/mips/mips-protos.h (mips_address_insns): Add a boolean
176         argument.
177         (mips_fetch_insns): Delete in favor of...
178         (mips_load_store_insns): ...this new function.
179         * config/mips/mips.c (mips_address_insns): Add a boolean argument
180         to say whether multiword moves _might_ be split.
181         (mips_fetch_insns): Delete in favor of...
182         (mips_load_store_insns): ...this new function.
183         (mips_rtx_costs): Update the call to mips_address_insns.
184         (mips_address_cost): Likewise.
185         * config/mips/mips.md (length): Use mips_load_store_insns instead
186         of mips_fetch_insns.
187         * config/mips/constraints.md (R): Use mips_address_insns rather
188         than mips_fetch_insns.  Assume that the move never needs to be split.
189
190 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
191
192         * config/mips/mips.opt (mhard-float, msoft-float):  Make these
193         control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
194         than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.  
195         * config/mips/mips.h (mips16_hard_float): Delete.
196         (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI):  Delete these
197         definitions, and replace with....
198         (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
199         * config/mips/mips.c (mips16_hard_float): Delete.  Replace
200         all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
201         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
202         (override_options):  Replace MASK_SOFT_FLOAT references with
203         MASK_SOFT_FLOAT_ABI.  Delete twiddling with MASK_SOFT_FLOAT
204         and mips16_hard_float when TARGET_MIPS16.
205         
206 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
207
208         PR c/32796
209         * c-typeck.c (build_binary_op): Check for non pointer types before
210         calling int_fits_type_p.
211
212 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
213
214         PR middle-end/32813
215         * fold-const.c (omit_one_operand): Return only the ommitted expression
216         if the result is an empty statement.
217         (pedantic_omit_one_operand): Likewise.
218
219 2007-08-09  Daniel Berlin  <dberlin@dberlin.org>
220
221         * c-typeck.c (readonly_error): Improve error for assignment.
222         
223         * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
224         expression. 
225         (pp_c_expression): Ditto.
226
227 2007-08-09  Simon Baldwin  <simonb@google.com>
228
229         * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
230         break that was preventing simplify_associative_operation() for xor.
231
232 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
233             Nigel Stephens  <nigel@mips.com>
234
235         * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
236         Document change in interpretation of value from boolean to
237         tri-state integer.
238         * optabs.c (expand_ffs, expand_ctz): New functions to compute
239         ffs and ctz using clz.
240         (expand_unop):  Call them.
241         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
242         result value.
243         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
244         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
245         enable the new ffs expansion on this target.
246
247 2007-08-09  Jan Hubicka  <jh@suse.cz>
248
249         * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
250         (expand_ternary_op): Likewise.
251         (expand_vec_shift_expr): Likewise.
252         (expand_binop_directly): Likewise.
253         (expand_binop): Likewise.
254         (sign_expand_binop): Likewise.
255         (expand_twoval_unop): Likewise.
256         (expand_twoval_binop): Likewise.
257         (expand_twoval_binop_libfunc): Likewise.
258         (widen_clz): Likewise.
259         (widen_bswap): Likewise.
260         (expand_parity): Likewise.
261         (expand_unop): Likewise.
262         (expand_abs_nojump): Likewise.
263         (expand_copysign): Likewise.
264         (emit_no_conflict_block): Likewise.
265         (emit_libcall_block): Likewise.
266         (can_compare_p): Likewise.
267         (prepare_cmp_insn): Likewise.
268         (emit_cmp_and_jump_insn_1): Likewise.
269         (prepare_float_lib_cmp): Likewise.
270         (emit_conditional_add): Likewise.
271         (gen_add2_insn): Likewise.
272         (have_add2_insn): Likewise.
273         (gen_sub2_insn): Likewise.
274         (have_sub2_insn): Likewise.
275         (can_extend_p): Likewise.
276         (can_fix_p): Likewise.
277         (can_float_p): Likewise.
278         (expand_float): Likewise.
279         (expand_fix): Likewise.
280         (expand_sfix_optab): Likewise.
281         (new_optab): Likewise.
282         (new_convert_optab): Likewise.
283         (init_libfuncs): Likewise.
284         (init_interclass_conv_libfuncs): Likewise.
285         (init_intraclass_conv_libfuncs): Likewise.
286         (set_conv_libfunc): Likewise.
287         (init_optabs): Likewise.
288         (debug_optab_libfuncs): Likewise.
289         (gen_cond_trap): Likewise.
290         * optabs.h (optab_handler, convert_optab_hanlder): New.
291         * genopinit.c: Update optabs generation table.
292         * reload.c (find_reloads_address_1): Use optabs accestors.
293         * builtins.c (expand_builtin_mathfn): Likewise.
294         (expand_builtin_mathfn_2): Likewise.
295         (expand_builtin_mathfn_3): Likewise.
296         (expand_builtin_interclass_mathfn): Likewise.
297         (expand_builtin_sincos): Likewise.
298         (expand_builtin_cexpi): Likewise.
299         (expand_builtin_powi): Likewise.
300         (expand_builtin_strlen): Likewise.
301         * dojump.c (do_jump): Likewise.
302         * expr.c (convert_move): Likewise.
303         (move_by_pieces): Likewise.
304         (move_by_pieces_ninsns): Likewise.
305         (can_store_by_pieces): Likewise.
306         (store_by_pieces_1): Likewise.
307         (emit_move_via_integer): Likewise.
308         (emit_move_complex): Likewise.
309         (emit_move_ccmode): Likewise.
310         (emit_move_insn_1): Likewise.
311         (emit_single_push_insn): Likewise.
312         (store_constructor): Likewise.
313         (expand_expr_real_1): Likewise.
314         (do_store_flag): Likewise.
315         * ada/misc.c (gnat_compute_largest_alignment): Likewise.
316         (enumerate_modes): Likewise.
317         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
318         (supportable_widening_operation): Likewise.
319         (supportable_narrowing_operation): Likewise.
320         * expmed.c (store_bit_field_1): Likewise.
321         (extract_bit_field_1): Likewise.
322         (expand_mult_highpart_optab): Likewise.
323         (expand_smod_pow2): Likewise.
324         (expand_divmod): Likewise.
325         (emit_store_flag): Likewise.
326         * tree-vect-patterns.c
327         (vect_pattern_recog_1): Likewise.
328         * tree-ssa-loop-prefetch.c
329         (nontemporal_store_p): Likewise.
330         * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
331         (vect_create_epilog_for_reduction): Likewise.
332         (vectorizable_reduction): Likewise.
333         (vectorizable_operation): Likewise.
334         (vect_strided_store_supported): Likewise.
335         (vectorizable_store): Likewise.
336         (vect_strided_load_supported): Likewise.
337         (vectorizable_load): Likewise.
338         * combine.c (simplify_comparison): Likewise.
339         * tree-vect-generic.c
340         (type_for_widest_vector_mode): Likewise.
341         (expand_vector_operations_1): Likewise.
342         * config/spu/spu.c (spu_expand_mov): Likewise.
343         (spu_emit_vector_compare): Likewise.
344         * config/rs6000/rs6000.c
345         (rs6000_emit_vector_compare): Likewise.
346         * stmt.c (add_case_node): Likewise.
347         * reload1.c (gen_reload):
348
349 2007-08-09  Michael Matz  <matz@suse.de>
350
351         * tree.h (fixed_zerop): Declare as taking a const_tree.
352         * tree.c (fixed_zerop): Take a const_tree.
353
354 2007-08-09  Ira Rosen  <irar@il.ibm.com>
355
356         * tree-vect-transform.c (vectorizable_store): Remove call to
357         copy_virtual_operands() and call mark_symbols_for_renaming() for
358         the created vector store.
359         (vect_setup_realignment): Don't call copy_virtual_operands() and
360         update_vuses_to_preheader(). 
361         (vectorizable_load): Don't call copy_virtual_operands(). 
362         (update_vuses_to_preheader): Remove.
363
364 2007-08-08  Chao-ying Fu  <fu@mips.com>
365
366         * tree.def (FIXED_POINT_TYPE): New type.
367         (FIXED_CST): New constant.
368         (FIXED_CONVERT_EXPR): New expr.
369         * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
370         (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
371         * tree.h (struct tree_base): Add saturating_flag.
372         Remove one bit of spare for saturating_flag.
373         (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
374         (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
375         FIXED_POINT_TYPE_P): Define.
376         (TYPE_SATURATING): Define.
377         (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
378         (struct tree_fixed_cst): New.
379         (TYPE_IBIT, TYPE_FBIT): Define.
380         (tree_node): Add fixed_cst.
381         (enum tree_index): Add new enumeration values of
382         TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
383         TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
384         TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
385         TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
386         TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
387         TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
388         TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
389         TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
390         TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
391         TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
392         TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
393         TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
394         TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
395         TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
396         TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
397         TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
398         TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
399         TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
400         (sat_short_fract_type_node, sat_fract_type_node,
401         sat_long_fract_type_node, sat_long_long_fract_type_node,
402         sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
403         sat_unsigned_long_fract_type_node,
404         sat_unsigned_long_long_fract_type_node, short_fract_type_node,
405         fract_type_node, long_fract_type_node, long_long_fract_type_node,
406         unsigned_short_fract_type_node, unsigned_fract_type_node,
407         unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
408         sat_short_accum_type_node, sat_accum_type_node,
409         sat_long_accum_type_node, sat_long_long_accum_type_node,
410         sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
411         sat_unsigned_long_accum_type_node,
412         sat_unsigned_long_long_accum_type_node, short_accum_type_node,
413         accum_type_node, long_accum_type_node, long_long_accum_type_node,
414         unsigned_short_accum_type_node, unsigned_accum_type_node,
415         unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
416         qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
417         uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
418         utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
419         sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
420         sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
421         sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
422         ta_type_node, uha_type_node, usa_type_node, uda_type_node,
423         uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
424         sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
425         sat_uda_type_node, sat_uta_type_node): New macro.
426         (make_fract_type, make_accum_type): Declare.
427         (make_signed_fract_type, make_unsigned_fract_type,
428         make_sat_signed_fract_type, make_sat_unsigned_fract_type,
429         make_signed_accum_type, make_unsigned_accum_type,
430         make_sat_signed_accum_type, make_sat_unsigned_accum_type,
431         make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
432         make_or_reuse_sat_signed_fract_type,
433         make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
434         make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
435         make_or_reuse_sat_unsigned_accum_type): New macro.
436         (fixed_zerop): Declare.
437         * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
438         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
439         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
440         LONG_LONG_ACCUM_TYPE_SIZE): Define.
441         * treestruct.def: Add TS_FIXED_CST.
442         * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
443         (tree.o): Likewise.
444         (tree-dump.o): Likewise.
445         (print-tree.o): Likewise.
446         (tree-pretty-print.o): Likewise.
447         (fold-const.o): Likewise.
448         * tree-complex.c (some_nonzerop): Handle FIXED_CST.
449         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
450         (is_gimple_min_invariant): Handle FIXED_CST.
451         * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
452         MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
453         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
454         (layout_type): Handle FIXED_POINT_TYPE.
455         (make_fract_type, make_accum_type): New functions.
456         * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
457         * tree-dump.c (fixed-value.h): New include.
458         (dump_fixed): New function.
459         (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
460         * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
461         (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
462         * tree-pretty-print.c (fixed-value.h): New include.
463         (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
464         FIXED_CONVERT_EXPR.
465         * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
466         * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
467         * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
468         * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
469         for non-saturating fixed-point types.
470         (reassociate_bb): Likewise.
471         * emit-rtl.c (fixed-value.h): New include.
472         (fconst0, fconst1): New array.
473         (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
474         * tree-vect-generic.c expand_vector_operation): Support
475         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
476         MODE_VECTOR_UACCUM.
477         (type_for_widest_vector_mode): Add one parameter for the 
478         saturating flag.
479         Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
480         vector mode.
481         Pass the satp parameter to type_for_mode for fixed-point types.
482         (expand_vector_operations_1): Pass the saturating flag to
483         type_for_widest_vector_mode.
484         Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
485         and MODE_VECTOR_UACCUM.
486         * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
487         (vectorizable_condition): Likewise.
488         * tree.c (fixed-value.h): New include.
489         (tree_code_size): Support FIXED_CST.
490         (build_fixed): New function.
491         (build_one_cst): Support FIXED_POINT_TYPE for accum types.
492         (fixed_zerop): New function.
493         (tree_node_structure): Support FIXED_CST.
494         (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
495         (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
496         (type_hash_eq): Handle FIXED_POINT_TYPE.
497         (simple_cst_equal): Support FIXED_CST.
498         (iterative_hash_expr): Handle FIXED_CST.
499         (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
500         (get_narrower): Likewise.
501         (variably_modified_type_p): Handle FIXED_POINT_TYPE.
502         (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
503         (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
504         MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
505         nodes.
506         (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
507         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
508         (initializer_zerop): Support FIXED_CST.
509         (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
510         * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
511         DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
512         (is_base_type): Handle FIXED_POINT_TYPE.
513         (add_type_attribute): Handle FIXED_POINT_TYPE.
514         (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
515         * print-tree.c (fixed-value.h): New include.
516         (print_node_brief): Support FIXED_CST.
517         (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
518         * c-pretty-print.c (fixed-value.h): New include.
519         (pp_c_type_specifier): Handle FIXED_POINT_TYPE.  Need to pass
520         TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
521         (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
522         Support fixed-point types for inner items in VECTOR_TYPE.
523         (pp_c_direct_declarator): Likewise.
524         (pp_c_declarator): Likewise.
525         (pp_c_fixed_constant): New function.
526         (pp_c_constant): Handle FIXED_CST.
527         (pp_c_primary_expression): Likewise.
528         (pp_c_expression): Likewise.
529         * fold-const.c (fixed-value.h): New include.
530         (negate_expr_p): Return true for FIXED_CST.
531         (fold_negate_expr): Support FIXED_CST.
532         (split_tree): Support FIXED_CST.
533         (const_binop): Support FIXED_CST.
534         (fold_convert_const_int_from_fixed): New function to convert from
535         fixed to int.
536         (fold_convert_const_real_from_fixed): New function to convert from
537         fixed to real.
538         (fold_convert_const_fixed_from_fixed): New function to convert from
539         fixed to another fixed.
540         (fold_convert_const_fixed_from_int): New function to convert from
541         int to fixed.
542         (fold_convert_const_fixed_from_real): New function to convert from
543         real to fixed.
544         (fold_convert_const): Support conversions from fixed to int, from
545         fixed to real, from fixed to fixed, from int to fixed, and from real
546         to fixed.
547         (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
548         (operand_equal_p): Support FIXED_CST.
549         (make_range): For fixed-point modes, we need to pass the
550         saturating flag as the 2nd parameter.
551         (tree_swap_operands_p): Handle FIXED_CST.
552         (fold_plusminus_mult_expr): For fract modes, we cannot generate
553         constant 1.
554         (fold_unary): Support FIXED_CONVERT_EXPR.
555         (fold_binary): Handle FIXED_CST.
556         Make sure the type is not saturating, before associating operations.
557         Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
558         (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
559         (fold_negate_const): Support FIXED_CST.
560         (fold_relational_const): Support FIXED_CST.
561         * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
562         (gimplify_expr): Handle FIXED_CST.
563         (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
564         * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
565         * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
566         * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
567         FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
568         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
569         LONG_LONG_ACCUM_TYPE_SIZE.
570         * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
571         * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
572         * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
573         * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
574         MODE_ACCUM, and MODE_UACCUM.
575         * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
576         fixed-point types to disable reduction.
577         * explow.c (promote_mode): Support FIXED_POINT_TYPE.
578
579 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
580
581         * config/rs6000/x-rs6000: New file.
582         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
583         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
584         (EXTRA_SPEC_FUNCTIONS): Define.
585         (HAVE_LOCAL_CPU_DETECT): Define.
586         (CC1_CPU_SPEC): Define.
587         * config/rs6000/driver-rs6000.c: New file.
588         * config/rs6000/aix.h (CC1_SPEC): Define.
589         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
590         * config.host: Add x-rs6000 to host_xmake_file if host and target
591         are rs6000 or powerpc.
592
593 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
594
595         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
596
597 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
598             Sandra Loosemore  <sandra@codesourcery.com>
599             Chao-ying Fu  <fu@mips.com>
600             Nigel Stephens  <nigel@mips.com>
601             David Ung  <davidu@mips.com>
602
603         * doc/invoke.texi (-mcode-readable): Document.
604         * config/mips/mips.opt (mcode-readable): New option.
605         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
606         * config/mips/mips.h (mips_code_readable_setting): New enum.
607         (mips_code_readable): Declare.
608         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
609         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
610         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
611         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
612         boiler-plate comments.
613         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
614         * config/mips/mips.c (mips_code_readable): New variable.
615         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
616         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
617         context and -mcode-readable setting to restrict the use of
618         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
619         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
620         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
621         (mips_blocks_for_constant_p): Only return false for
622         TARGET_MIPS16_PCREL_LOADS.
623         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
624         for MIPS16.  Handle SYMBOL_32_HIGH.
625         (mips_const_insns): Allow HIGHs for MIPS16 too.
626         (mips_unspec_address_offset): New function, split out from...
627         (mips_unspec_address): ...here.
628         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
629         16-bit symbolic constants.  Assert approropiate conditions for
630         using the "la" and "dla" macros.
631         (mips_handle_option): Handle -mcode-readable=.
632         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
633         Set up mips_lo_relocs[SYMBOL_32_HIGH].
634         (mips_strip_unspec_address): New function, split out from...
635         (print_operand_reloc): ...here.
636         (print_operand): Pass constants through mips_strip_unspec_address.
637         (print_operand_address): Likewise.
638         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
639         (mips_select_rtx_section): Remove MIPS16 handling.
640         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
641         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
642         (mips16_lay_out_constants): Do nothing unless
643         TARGET_MIPS16_PCREL_LOADS.
644         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
645         * config/mips/mips.md: Split HIGHs for MIPS16.
646         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
647
648 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
649
650         * config/mips/mips-protos.h (mips_emit_move): Declare.
651         * config/mips/mips.c (mips_emit_move): New function.
652         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
653         (mips_legitimize_const_move): Likewise.
654         (mips_legitimize_move): Likewise.
655         (mips_split_64bit_move): Likewise.
656         (mips_restore_gp): Likewise.
657         (mips_load_call_address): Likewise.
658         (mips_emit_fcc_reload): Likewise.
659         (mips_set_return_address): Likewise.
660         (mips_block_move_straight): Likewise.
661         (mips_block_move_loop): Likewise.
662         (mips_setup_incoming_varargs): Likewise.
663         (mips_save_reg): Likewise.
664         (mips_expand_prologue): Likewise.
665         (mips_restore_reg): Likewise.
666         (mips_expand_epilogue): Likewise.
667         (mips_output_mi_thunk): Likewise.
668         (build_mips16_call_stub): Likewise.
669         (mips_builtin_branch_and_move): Likewise.
670         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
671         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
672         (fixuns_truncdfdi2): Likewise.
673         (fixuns_truncsfsi2): Likewise.
674         (fixuns_truncsfdi2): Likewise.
675         (loadgp_absolute): Likewise.
676         (builtin_setjmp_setup): Likewise.
677         (builtin_longjmp): Likewise.
678         (untyped_call): Likewise.
679
680 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
681
682         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
683         an "rtx *" argument.  Return a bool.
684         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
685         values and return true if they can be split.  Take the same kind of
686         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
687         and store the lo_sum there if nonnull.  Use the symbol type to
688         determine whether a $gp or HIGH is needed.
689         (mips_legitimize_address): Update call to mips_split_symbol and
690         simplify accordingly.
691         (mips_legitimize_const_move): Likewise.
692         * config/mips/mips.md: In the combine define_split,
693         check mips_split_symbol instead of splittable_symbolic_operand.
694         Update use of mips_split_symbol in the generator code.
695         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
696
697 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
698
699         * config/mips/mips.c (mips_symbolic_address_p): Delete.
700         (mips_symbol_insns_1): New function, split out from...
701         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
702         and stores separately from load addresses.
703         (mips_classify_address): Replace uses of mips_symbolic_address_p
704         with uses of mips_symbol_insns.
705         (mips_address_insns): Update calls to mips_symbol_insns.
706         (mips_const_insns): Likewise.
707         (mips_legitimize_address): Likewise.
708
709 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
710
711         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
712         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
713         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
714         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
715         non-call contexts if TARGET_MIPS16.
716         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
717         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
718         code for SYMBOL_ABSOLUTE.
719         (mips_symbol_insns): Likewise.
720
721 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
722
723         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
724         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
725         (mips_symbolic_constant_p): Likewise.  Update the call to
726         mips_classify_symbol.
727         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
728         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
729         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
730         (print_operand_reloc): Add a context argument.  Update the call to
731         mips_symbolic_constant_p.
732         (print_operand): Update the calls to print_operand_reloc.
733         (print_operand_address): Use print_operand_reloc rather than
734         print_operand.
735         (mips_rewrite_small_data_p): Add a context argument.  Update the call
736         to mips_symbolic_constant_p.
737         (mips_small_data_pattern_1): Make DATA the containing mem.
738         Update the call to mips_rewrite_small_data_p.
739         (mips_rewrite_small_data_1): Likewise.
740         (mips_use_anchors_for_symbol_p): Update the call to
741         mips_symbolic_constant_p.
742         * config/mips/predicates.md (const_call_insn_operand): Likewise.
743         (splittable_symbolic_operand): Likewise.
744         (move_operand): Likewise.
745         (absolute_symbolic_operand): Likewise.
746         (got_disp_operand): Likewise.
747         (got_page_ofst_operand): Likewise.
748
749 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
750
751         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
752         (SYMBOL_ABSOLUTE): ...this.
753         (SYMBOL_SMALL_DATA): Rename to...
754         (SYMBOL_GP_RELATIVE): ...this.
755         (SYMBOL_CONSTANT_POOL): Rename to...
756         (SYMBOL_PC_RELATIVE): ...this.
757         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
758         (mips_symbolic_address_p, mips_symbol_insns, override_options)
759         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
760         after above changes.
761         * config/mips/predicates.md (const_call_insn_operand): Likewise.
762         (general_symbolic_operand): Rename to...
763         (absolute_symbolic_operand): ...this.
764         * config/mips/mips.md: Update after above changes.
765
766 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
767             Revital Eres  <eres@il.ibm.com>
768
769         * ddg.c (print_ddg): Add dump information.
770         * modulo-sched.c (print_node_sched_params): Add parameter and
771         verbosity.
772         (calculate_maxii): Remove function.
773         (undo_generate_reg_moves): Likewise.
774         (undo_permute_partial_schedule): Likewise.
775         (kernel_number_of_cycles): Likewise.
776         (MAXII_FACTOR): New definition to calculate the upper bound of II.
777         (sms_schedule): Use it.  Remove profitability checks.
778         (sms_schedule_by_order): Fix order of nodes within the cycle.
779
780 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
781
782         * gcc/config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
783         -profile option, add pie support.
784         (ENDFILE_SPEC): New spec.
785         * gcc/config/gnu.h (LIB_SPEC): Add -profile option.
786
787 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
788
789         * gcc/config/i386/gnu.h (CPP_SPEC): Add -pthread option.
790         * gcc/config/gnu.h (LIB_SPEC): Likewise.
791
792 2007-08-07  Yaz Saito  <saito@google.com>
793             Ian Lance Taylor  <iant@google.com>
794
795         * common.opt (finstrument-functions-exclude-function-list): New
796         option.
797         (finstrument-functions-exclude-file-list): New option.
798         * opts.c (char_p): Define and DEF_VEC.
799         (flag_instrument_functions_exclude_functions): New static
800         variable.
801         (flag_instrument_functions_exclude_files): New static variable.
802         (add_instrument_functions_exclude_list): New static function.
803         (flag_instrument_functions_exclude_p): New function.
804         (common_handle_option): Handle new options.
805         * flags.h (flag_instrument_functions_exclude_p): Declare.
806         * gimplify.c (gimplify_function_tree): Call
807         flag_instrument_functions_exclude_p.
808         * doc/invoke.texi (Option Summary): Mention new options.
809         (Code Gen Options): Document new options.
810
811 2007-08-07  Ian Lance Taylor  <iant@google.com>
812
813         PR rtl-optimization/32776
814         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
815         (resolve_use): Likewise.
816         (decompose_multiword_subregs): Remove "changed" local variable.
817
818 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
819
820         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
821         * configure: Regenerate.
822         * config.in: Regenerate.
823         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
824         spec string.
825
826 2007-08-07  Ian Lance Taylor  <iant@google.com>
827
828         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
829         note, just delete the insn.
830
831 2007-08-07  Andreas Schwab  <schwab@suse.de>
832
833         PR bootstrap/32973
834         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
835         struct definition.
836
837 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
838
839         * lower-subreg.c (resolve_subreg_use): Remove assertion.
840         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
841         (decompose_multiword_subregs): Use the functions above to decompose
842         multiword shifts and zero-extends.
843
844 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
845
846         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
847         "assemble" descriptions which were swapped.
848
849 2007-08-06  Chao-ying Fu  <fu@mips.com>
850
851         * fixed-value.h: New file.
852         * fixed-value.c: New file.
853         * Makefile.in (OBJS-common): Add fixed-value.o.
854         (fixed-value.o): New rule.
855         (GTFILES): Add fixed-value.h.
856         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
857         to compare a.low and b.low.
858         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
859
860 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
861             Daniel Jacobowitz  <dan@codesourcery.com>
862
863         PR target/31868
864         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
865         tmake_file.
866         (x86_64-*-netbsd*): Likewise.
867         (x86_64-*-linux*): Likewise.
868         (x86_64-*-kfreebsd*-gnu): Likewise.
869         (x86_64-*-knetbsd*-gnu): Likewise.
870         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
871
872         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
873
874         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
875         Add -fno-asynchronous-unwind-tables.
876
877         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
878         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
879         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
880         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
881         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
882
883 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
884
885         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
886         (TARGET_C_MODE_FOR_SUFFIX): New.
887
888 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
889
890         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
891
892 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
893
894         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
895
896 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
897
898         * config/i386/i386.md: Check TARGET_ macros and optimize_size
899         before checking function returns in conditional expressions.
900
901 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
902
903         PR pch/13676
904         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
905
906 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
907
908         PR middle-end/32988
909         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
910         for INTEGRAL_TYPE_P.
911
912 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
913
914         * configure.ac: Remove --enable-checking=df from default settings.
915         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
916         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
917         if the parameter is true.
918         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
919         DF_VERIFY_SCHEDULED flag is true.
920         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
921         (df_finish_pass): Adjust prototype.
922         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
923         true.
924
925         * see.c (pass_see): Add TODO_df_verify.
926         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
927         * global.c (rest_of_handle_global_alloc): Schedule verification
928         after the pass.
929         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
930         before the pass.
931         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
932         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
933         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
934
935         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
936         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
937         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
938
939 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
940             Revital Eres <eres@il.ibm.com>
941
942         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
943         flag.
944         * ddg.c (create_ddg_dependence): Rename to...
945         (create_ddg_dep_from_intra_loop_link): This.  Do not check
946         for interloop edges.  Do not create anti dependence edge when
947         a true dependence edge exists in the opposite direction and
948         -fmodulo-sched-allow-regmoves is set.
949         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
950         (add_cross_iteration_register_deps): Create anti dependence edge
951         when -fno-modulo-sched-allow-regmoves is set.
952         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
953
954 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
955
956         * config/arm/arm.md (movsi): Add braces.
957
958 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
959
960         PR middle-end/32780
961         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of operands
962         for the folding of "A - (A & B)" into "~B & A"; cast them to type.
963
964 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
965
966         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops' state
967         accessor functions.
968         * cfgloopmanip.c (remove_path, create_preheaders,
969         force_single_succ_latches, fix_loop_structure): Ditto.
970         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
971         tree_duplicate_loop_to_header_edge): Ditto.
972         * cfgloopanal.c (mark_irreducible_loops): Ditto.
973         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
974         Ditto.
975         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
976         cleanup_tree_cfg): Ditto.
977         * tree-cfg.c (tree_merge_blocks): Ditto.
978         * cfgloop.c (rescan_loop_exit, record_loop_exits,
979         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
980         loop_preheader_edge, single_exit): Ditto.
981         (flow_loops_find): Do not clear loops->state.
982         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
983         loops_state_clear): New functions.
984
985 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
986
987         PR middle-end/32399
988         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
989         when adding to the base and convert ELT to sizetype instead of type.
990
991 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
992
993         PR middle-end/32304
994         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
995         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
996
997 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
998
999         PR middle-end/32935
1000         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
1001          correct type the negate expression.
1002
1003 2007-08-03  Jan Hubicka  <jh@suse.cz>
1004
1005         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
1006         stack boundary.
1007
1008 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
1009
1010         * config/rs6000/rs6000.c (struct processor_cost): Change
1011         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
1012         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
1013         information.
1014         (rios1_costs, rios2_cost): Correct cache line size.
1015         (rs6000_override_options): Set l2-cache-size parameter.
1016
1017 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1018             Diego Novillo  <dnovillo@google.com>
1019
1020         PR 31521
1021         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
1022         if the range includes 0.
1023
1024 2007-08-03  Ben Elliston  <bje@au.ibm.com>
1025
1026         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
1027         mode to unspec expressions to silence a warning from the generator
1028         programs.
1029         
1030 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
1031
1032         * config/ia64/constraints.md ("U"): Make constraint vector only.
1033
1034 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
1035
1036         PR middle-end/25446
1037         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
1038         always_inline attribute on the function decl.
1039
1040 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
1041
1042         PR middle-end/25445
1043         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
1044         if we are compiling with -fPIC.
1045
1046 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
1047             Nigel Stephens  <nigel@mips.com>
1048
1049         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
1050         Define for MIPS32 and MIPS64.
1051
1052 2007-08-02  Nick Clifton  <nickc@redhat.com>
1053
1054         * config/host-hpux.c: Change copyright header to refer to version
1055         3 of the GNU General Public License and to point readers at the
1056         COPYING3 file and the FSF's license web page.
1057         * config/alpha/predicates.md, config/alpha/vms-ld.c,
1058         config/alpha/linux.h, config/alpha/alpha.opt,
1059         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
1060         config/alpha/vms-unwind.h, config/alpha/ev4.md,
1061         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
1062         config/alpha/alpha.h, config/alpha/sync.md,
1063         config/alpha/openbsd.h, config/alpha/alpha.md,
1064         config/alpha/alpha-modes.def, config/alpha/ev5.md,
1065         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
1066         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
1067         config/alpha/constraints.md, config/alpha/osf.h,
1068         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
1069         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
1070         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
1071         config/frv/frv-asm.h, config/frv/frv-protos.h,
1072         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
1073         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
1074         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
1075         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
1076         config/s390/s390.opt, config/s390/s390-modes.def,
1077         config/s390/fixdfdi.h, config/s390/constraints.md,
1078         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
1079         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
1080         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
1081         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
1082         config/m32c/prologue.md, config/m32c/m32c.abi,
1083         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
1084         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
1085         config/m32c/t-m32c, config/m32c/m32c-modes.def,
1086         config/m32c/jump.md, config/m32c/shift.md,
1087         config/m32c/m32c-protos.h, config/libgloss.h,
1088         config/spu/spu-protos.h, config/spu/predicates.md,
1089         config/spu/spu-builtins.h, config/spu/spu.c,
1090         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
1091         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
1092         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
1093         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
1094         config/sparc/hypersparc.md, config/sparc/predicates.md,
1095         config/sparc/linux.h, config/sparc/sp64-elf.h,
1096         config/sparc/supersparc.md, config/sparc/cypress.md,
1097         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
1098         config/sparc/niagara.md, config/sparc/sparc.md,
1099         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
1100         config/sparc/sparc.opt, config/sparc/sync.md,
1101         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
1102         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
1103         config/sparc/sparc.c, config/sparc/little-endian.opt,
1104         config/sparc/sysv4-only.h, config/sparc/sparc.h,
1105         config/sparc/linux64.h, config/sparc/freebsd.h,
1106         config/sparc/sol2.h, config/sparc/rtemself.h,
1107         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
1108         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
1109         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
1110         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
1111         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
1112         config/m32r/linux.h, config/m32r/constraints.md,
1113         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
1114         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
1115         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
1116         config/i386/i386.md, config/i386/netware-crt0.c,
1117         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
1118         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
1119         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
1120         config/i386/sol2.h, config/i386/constraints.md,
1121         config/i386/netware-libgcc.c, config/i386/sysv5.h,
1122         config/i386/predicates.md, config/i386/geode.md,
1123         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
1124         config/i386/freebsd64.h, config/i386/vxworksae.h,
1125         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
1126         config/i386/rtemself.h, config/i386/netbsd-elf.h,
1127         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
1128         config/i386/netware.h, config/i386/i386-modes.def,
1129         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
1130         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
1131         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
1132         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
1133         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
1134         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
1135         config/i386/xm-mingw32.h, config/i386/linux64.h,
1136         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
1137         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
1138         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
1139         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
1140         config/i386/cygwin2.c, config/i386/i386-protos.h,
1141         config/i386/sync.md, config/i386/openbsd.h,
1142         config/i386/host-mingw32.c, config/i386/i386-aout.h,
1143         config/i386/nto.h, config/i386/biarch64.h,
1144         config/i386/i386-coff.h, config/i386/freebsd.h,
1145         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
1146         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
1147         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
1148         config/darwin-protos.h, config/linux.opt, config/sol2.c,
1149         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
1150         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
1151         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
1152         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
1153         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
1154         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
1155         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
1156         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
1157         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
1158         config/sh/superh64.h, config/sh/rtemself.h,
1159         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
1160         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
1161         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
1162         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
1163         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
1164         config/avr/predicates.md, config/avr/constraints.md,
1165         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
1166         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
1167         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
1168         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
1169         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
1170         config/c4x/c4x-modes.def, config/c4x/rtems.h,
1171         config/c4x/predicates.md, config/c4x/c4x.h,
1172         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
1173         config/xtensa/predicates.md, config/xtensa/xtensa.c,
1174         config/xtensa/linux.h, config/xtensa/xtensa.h,
1175         config/xtensa/elf.h, config/xtensa/xtensa.md,
1176         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
1177         config/xtensa/xtensa-protos.h, config/dbx.h,
1178         config/stormy16/predicates.md, config/stormy16/stormy16.md,
1179         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
1180         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
1181         config/host-solaris.c, config/fr30/fr30.h,
1182         config/fr30/predicates.md, config/fr30/fr30-protos.h,
1183         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
1184         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
1185         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
1186         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
1187         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
1188         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
1189         config/host-linux.c, config/interix3.h, config/cris/cris.c,
1190         config/cris/predicates.md, config/cris/linux.h,
1191         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
1192         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
1193         config/cris/aout.opt, config/cris/cris-protos.h,
1194         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
1195         config/iq2000/iq2000.h, config/iq2000/predicates.md,
1196         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
1197         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
1198         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
1199         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
1200         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
1201         config/chorus.h, config/mn10300/mn10300.c,
1202         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
1203         config/mn10300/mn10300.h, config/mn10300/linux.h,
1204         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
1205         config/mn10300/mn10300.md, config/ia64/predicates.md,
1206         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
1207         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
1208         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
1209         config/ia64/freebsd.h, config/ia64/ia64.md,
1210         config/ia64/ia64-modes.def, config/ia64/constraints.md,
1211         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
1212         config/gofast.h, config/rtems.h, config/sol2-10.h,
1213         config/m68k/predicates.md, config/m68k/m68k.md,
1214         config/m68k/linux.h, config/m68k/m68k-modes.def,
1215         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
1216         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
1217         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
1218         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
1219         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
1220         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
1221         config/m68k/constraints.md, config/m68k/rtemself.h,
1222         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
1223         config/m68k/uclinux.h, config/rs6000/power4.md,
1224         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
1225         config/rs6000/linux.h, config/rs6000/eabi.h,
1226         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
1227         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
1228         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
1229         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
1230         config/rs6000/windiss.h, config/rs6000/603.md,
1231         config/rs6000/aix41.h, config/rs6000/cell.md,
1232         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
1233         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
1234         config/rs6000/darwin.md, config/rs6000/darwin64.h,
1235         config/rs6000/default64.h, config/rs6000/7xx.md,
1236         config/rs6000/darwin.opt, config/rs6000/spe.md,
1237         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
1238         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
1239         config/rs6000/7450.md, config/rs6000/linux64.h,
1240         config/rs6000/constraints.md, config/rs6000/440.md,
1241         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
1242         config/rs6000/rs6000.c, config/rs6000/aix52.h,
1243         config/rs6000/rs6000.h, config/rs6000/power6.md,
1244         config/rs6000/predicates.md, config/rs6000/altivec.md,
1245         config/rs6000/aix64.opt, config/rs6000/rios1.md,
1246         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
1247         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
1248         config/rs6000/darwin7.h, config/rs6000/dfp.md,
1249         config/rs6000/linux64.opt, config/rs6000/sync.md,
1250         config/rs6000/vxworksae.h, config/rs6000/power5.md,
1251         config/rs6000/lynx.h, config/rs6000/biarch64.h,
1252         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
1253         config/rs6000/eabispe.h, config/rs6000/e500.h,
1254         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
1255         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
1256         config/rs6000/aix.h, config/rs6000/vxworks.h,
1257         config/rs6000/40x.md, config/rs6000/aix51.h,
1258         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
1259         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
1260         config/arc/arc.h, config/mcore/mcore-elf.h,
1261         config/mcore/mcore-protos.h, config/mcore/predicates.md,
1262         config/mcore/mcore.md, config/mcore/mcore.c,
1263         config/mcore/mcore.opt, config/mcore/mcore.h,
1264         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
1265         config/score/predicates.md, config/score/score-version.h,
1266         config/score/score-protos.h, config/score/misc.md,
1267         config/score/elf.h, config/score/score.c, config/score/mac.md,
1268         config/score/score7.md, config/score/score.h,
1269         config/score/score-conv.h, config/score/score-mdaux.c,
1270         config/score/score.md, config/score/score.opt,
1271         config/score/score-modes.def, config/score/score-mdaux.h,
1272         config/score/mul-div.S, config/arm/uclinux-elf.h,
1273         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
1274         config/arm/symbian.h, config/arm/linux-elf.h,
1275         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
1276         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
1277         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
1278         config/arm/strongarm-pe.h, config/arm/arm.h,
1279         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
1280         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
1281         config/arm/arm-modes.def, config/arm/linux-eabi.h,
1282         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
1283         config/arm/arm-cores.def, config/arm/arm-protos.h,
1284         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
1285         config/arm/wince-pe.h, config/arm/neon.md,
1286         config/arm/constraints.md, config/arm/neon.ml,
1287         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
1288         config/arm/arm.opt, config/arm/arm926ejs.md,
1289         config/arm/predicates.md, config/arm/iwmmxt.md,
1290         config/arm/arm_neon.h, config/arm/unknown-elf.h,
1291         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
1292         config/arm/neon-testgen.ml, config/arm/arm.md,
1293         config/arm/xscale-coff.h, config/arm/pe.c,
1294         config/arm/arm-generic.md, config/arm/pe.h,
1295         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
1296         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
1297         config/arm/strongarm-elf.h, config/arm/cirrus.md,
1298         config/arm/netbsd-elf.h, config/arm/vxworks.h,
1299         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
1300         config/pa/predicates.md, config/pa/pa64-hpux.h,
1301         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
1302         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
1303         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
1304         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
1305         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
1306         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
1307         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
1308         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
1309         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
1310         config/pa/pa64-regs.h, config/pa/pa-modes.def,
1311         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
1312         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
1313         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
1314         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
1315         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
1316         config/mips/linux64.h, config/mips/elforion.h,
1317         config/mips/constraints.md, config/mips/generic.md,
1318         config/mips/predicates.md, config/mips/4300.md,
1319         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
1320         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
1321         config/mips/5k.md, config/mips/vr4120-div.S,
1322         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
1323         config/mips/mips-protos.h, config/mips/6000.md,
1324         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
1325         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
1326         config/mips/mips-modes.def, config/mips/vr.h,
1327         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
1328         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
1329         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
1330         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
1331         config/vax/openbsd1.h, config/vax/netbsd.h,
1332         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
1333         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
1334         config/h8300/rtems.h, config/h8300/predicates.md,
1335         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
1336         config/h8300/h8300.md, config/h8300/h8300.opt,
1337         config/h8300/coff.h, config/h8300/h8300-protos.h,
1338         config/v850/v850.md, config/v850/predicates.md,
1339         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
1340         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
1341         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
1342         config/mmix/mmix.h, config/mmix/predicates.md,
1343         config/mmix/mmix-protos.h, config/mmix/mmix.md,
1344         config/mmix/mmix.c, config/mmix/mmix.opt,
1345         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
1346         config/bfin/rtems.h, config/bfin/bfin-modes.def,
1347         config/bfin/predicates.md, config/bfin/bfin-protos.h,
1348         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
1349         Likewise.
1350
1351 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
1352
1353         * emit-rtl.c (reset_used_decls): Rename to...
1354         (set_used_decls): ...this.  Set the used flag rather than clearing it.
1355         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
1356         DECL_RTLs rather than resetting them.
1357
1358 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
1359
1360         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
1361
1362 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
1363
1364         * reload.c (find_reloads_address_part):  Pass correct MEMREFLOC
1365         argument to find_reloads_address.
1366
1367 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1368
1369         PR tree-optimization/32919
1370         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
1371         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
1372         (coalesce_ssa_name): Call it.
1373
1374 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
1375             David Ung  <davidu@mips.com>
1376
1377         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
1378         (__mips16_unorddf2, __mips16_floatunsidf): New.
1379         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
1380         above functions.
1381         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
1382
1383 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
1384
1385         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
1386         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
1387         * tree.h (OMP_SECTIONS_CONTROL): New macro.
1388         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
1389         * omp-low.c (get_ws_args_for, determine_parallel_type,
1390         expand_omp_for_generic, expand_omp_for_static_nochunk,
1391         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
1392         Work with more precise CFG.
1393         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
1394         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
1395         OMP_CONTINUE.
1396         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
1397         * gimple-low.c (lower_stmt): Ditto.
1398         * tree-inline.c (estimate_num_insns_1): Ditto.
1399         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
1400         (OMP_SECTIONS_SWITCH): New.
1401         * tree-cfgcleanup.c (cleanup_omp_return): New.
1402         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
1403         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
1404         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
1405         (tree_redirect_edge_and_branch): Handle omp constructs.
1406
1407         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
1408         with three arguments.
1409
1410 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
1411
1412         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
1413         in loop closed ssa.
1414
1415 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
1416
1417         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
1418         the loop structures may need fixing.
1419         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1420         New functions.
1421         (cleanup_tree_cfg_loop): Removed.
1422         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
1423         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
1424         instead of running cleanup_tree_cfg_loop.
1425         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
1426         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
1427         (tree_predictive_commoning): Declaration changed.
1428         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
1429
1430 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
1431
1432         * doc/invoke.texi (l1-cache-size): Update documentation.
1433         (l2-cache-size): Document.
1434         * params.h (L2_CACHE_SIZE): New macro.
1435         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
1436         that L1_CACHE_SIZE is in kB now.
1437         (L2_CACHE_SIZE_BYTES): New macro.
1438         (tree_ssa_prefetch_arrays): Show size in kB.
1439         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
1440         and l2_cache_size fields.
1441         * config/i386/driver-i386.c (describe_cache): Detect cache size
1442         in kB.
1443         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
1444         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
1445         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
1446         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
1447         (override_options): Set l1-cache-size and l2-cache-size to default
1448         values if not specified otherwise.
1449         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
1450         (PARAM_L2_CACHE_SIZE): New.
1451
1452 2007-08-01  Nigel Stephens  <nigel@mips.com>
1453             David Ung  <davidu@mips.com>
1454             Thiemo Seufer  <ths@mips.com>
1455             Chris Dearman  <chris@mips.com>
1456             Richard Sandiford  <richard@codesourcery.com>
1457
1458         * config.gcc (mips*-sde-elf*): New stanza.
1459         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
1460         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
1461         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
1462         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
1463         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
1464         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
1465         to tmake_file.
1466         * config/mips/sde.h: New file.
1467         * config/mips/t-libgcc-mips16: Likewise.
1468         * config/mips/t-sde: Likewise.
1469         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
1470         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
1471         _MIPS_FPSET and _MIPS_SZINT.
1472         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
1473         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
1474         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
1475         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
1476         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1477         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1478         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
1479         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
1480         _MIPS_SZPTR and _MIPS_FPSET.
1481         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
1482         architecture is specified.
1483         (MIPS_32BIT_OPTION_SPEC): New macro.
1484
1485 2007-07-31  Dan Hipschman  <dsh@google.com>
1486
1487         * gcc.c (end_going_arg): New function.
1488         (do_spec_2): Use it.
1489         (do_spec_1): Use it.
1490
1491 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1492
1493         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
1494         only if ENABLE_CHECKING is defined.
1495
1496 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
1497
1498         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
1499         df_ru_add_problem, df_ru_get_bb_info): Removed.
1500         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
1501         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
1502         df_ru_free_bb_info, df_ru_alloc,
1503         df_ru_bb_local_compute_process_def,
1504         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
1505         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
1506         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
1507         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
1508         df_ru_add_problem): Removed.
1509
1510 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1511
1512         PR target/32847
1513         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
1514         (casesi32p, casesi64p): Likewise.
1515         (casesi): Adjust for above.
1516
1517 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
1518
1519         * mode-switching.c (create_pre_exit): Don't search past calls.
1520
1521 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
1522
1523         * config/mips/mips.h (ISA_HAS_SYNCI):  Add !TARGET_MIPS16 test.
1524
1525 2007-07-31  Revital Eres  <eres@il.ibm.com>
1526
1527         * ddg.c (add_deps_for_def): Rename to...
1528         (add_cross_iteration_register_deps): This.  Change implementation
1529         to use only reaching def and def-use chains to construct the
1530         inter loop dependencies.
1531         (add_deps_for_use): Remove function.
1532         (build_inter_loop_deps): Call add_cross_iteration_register_deps
1533         function to build the inter loop dependencies.
1534         * modulo-sched.c (sms_schedule): Build only
1535         reaching def and def-use chains for the propose of the ddg
1536         construction.
1537
1538 2007-07-31  Julian Brown  <julian@codesourcery.com>
1539
1540         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
1541         New define_insns. Use correct RTL.
1542         (vec_set<mode>): Write as expander.
1543
1544 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
1545
1546         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
1547         to an unallocated space.
1548
1549 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
1550
1551         * tree-data-ref.c
1552         (split_constant_offset): Enable split_constant_offset to extract
1553         constants from other statements.
1554         * tree-vect-transform.c
1555         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
1556         to a temp var. Force base_offset to be simple.
1557
1558 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
1559
1560         * df-scan.c (df_scan_verify): Remove artificial limit on
1561         the number of blocks for verification.
1562         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
1563         df_simulate_defs): Avoid unnecessary insn checking for defs.
1564
1565 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
1566
1567         gcc/
1568         * config/m68k/lb1sf68.asm (FUNC): New macro.
1569         (__mulsi3): Use it.
1570         (__udivsi3): Likewise.
1571         (__divsi3): Likewise.
1572         (__umodsi3): Likewise.
1573         (__modsi3): Likewise.
1574         (__subdf3): Likewise.
1575         (__adddf3): Likewise.
1576         (__muldf3): Likewise.
1577         (__divdf3): Likewise.
1578         (__negdf2): Likewise.
1579         (__cmpdf2): Likewise.
1580         (__subsf3): Likewise.
1581         (__addsf3): Likewise.
1582         (__mulsf3): Likewise.
1583         (__divsf3): Likewise.
1584         (__negsf2): Likewise.
1585         (__cmpsf2): Likewise.
1586         (__eqdf2): Likewise.
1587         (__nedf2): Likewise.
1588         (__gtdf2): Likewise.
1589         (__gedf2): Likewise.
1590         (__ltdf2): Likewise.
1591         (__ledf2): Likewise.
1592         (__eqsf2): Likewise.
1593         (__nesf2): Likewise.
1594         (__gtsf2): Likewise.
1595         (__gesf2): Likewise.
1596         (__ltsf2): Likewise.
1597         (__lesf2): Likewise.
1598
1599 2007-07-30  Ollie Wild  <aaw@google.com>
1600
1601         * c-ppoutput.c (print_lines_directives_only): New function.
1602         (scan_translation_unit_directives_only): New function.
1603         (preprocess_file): Add call to scan_translation_unit_directives_only.
1604         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
1605         (sanitize_cpp_opts): Add default flag_dump_macros setting for
1606         -fdirectives-only.  Add errors for -fdirectives-only conflict with
1607         -Wunused-macros and -traditional.
1608         (finish_options): Add builtin macro initialization for
1609         -fdirectives-only + -fpreprocessed.
1610         * c.opt (fdirectives-only): New.
1611         * doc/cppopts.texi (fdirectives-only): New.
1612
1613 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1614
1615         * alias.c (record_set, memory_modified_1): Constify.
1616         * bt-load.c (note_btr_set): Likewise.
1617         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
1618         * combine.c (set_nonzero_bits_and_sign_copies,
1619         expand_field_assignment, record_dead_and_set_regs_1,
1620         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
1621         likely_spilled_retval_1): Likewise.
1622         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
1623         frv_io_handle_set): Likewise.
1624         * config/mips/mips.c (mips_sim_record_set,
1625         vr4130_true_reg_dependence_p_1): Likewise.
1626         * config/mt/mt.c (insn_dependent_p_1): Likewise.
1627         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
1628         * config/sh/sh.c (flow_dependent_p_1): Likewise.
1629         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
1630         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
1631         * ddg.c (mark_mem_store): Likewise.
1632         * df-problems.c (df_urec_mark_reg_change): Likewise.
1633         * function.c (update_epilogue_consts): Likewise.
1634         * gcse.c (record_set_info, record_last_set_info,
1635         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
1636         reg_clear_last_set): Likewise.
1637         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
1638         Likewise.
1639         * jump.c (reversed_comparison_code_parts): Likewise.
1640         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
1641         reg_is_set): Likewise.
1642         * loop-iv.c (mark_altered): Likewise.
1643         * mode-switching.c (reg_becomes_live): Likewise.
1644         * optabs.c (no_conflict_move_test): Likewise.
1645         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
1646         Likewise.
1647         * postreload.c (reload_combine_note_store, move2add_note_store):
1648         Likewise.
1649         * regmove.c (flags_set_1): Likewise.
1650         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
1651         Likewise.
1652         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
1653         Likewise. 
1654         * resource.c (update_live_status): Likewise.
1655         * rtl.h (set_of, note_stores): Likewise.
1656         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
1657         note_stores, parms_set): Likewise.
1658         * sched-rgn.c (sets_likely_spilled_1): Likewise.
1659         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
1660         Likewise. 
1661         * var-tracking.c (count_stores, add_stores): Likewise.
1662
1663 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1664
1665         * alias.c (mems_in_disjoint_alias_sets_p,
1666         fixed_scalar_and_varying_struct_p, aliases_everything_p,
1667         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
1668         write_dependence_p, mems_in_disjoint_alias_sets_p,
1669         read_dependence, true_dependence, canon_true_dependence,
1670         anti_dependence, output_dependence): Constify.
1671         * combine.c (extended_count): Likewise.
1672         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
1673         * cselib.c (get_value_hash, references_value_p,
1674         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
1675         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
1676         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
1677         * function.c (contains, prologue_epilogue_contains,
1678         sibcall_epilogue_contains): Likewise. 
1679         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
1680         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
1681         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
1682         reg_or_subregno): Likewise.
1683         * recog.c (asm_noperands): Likewise.
1684         * reload1.c (function_invariant_p): Likewise.
1685         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
1686         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
1687         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
1688         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
1689         true_regnum, reg_or_subregno, condjump_in_parallel_p,
1690         extended_count, prologue_epilogue_contains,
1691         sibcall_epilogue_contains, function_invariant_p, true_dependence,
1692         canon_true_dependence, read_dependence, anti_dependence,
1693         output_dependence): Likewise.
1694         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
1695
1696 2007-07-30  Julian Brown  <julian@codesourcery.com>
1697
1698         * config/arm/neon.md (V_ext): New mode attribute.
1699         (neon_vget_lane<mode>): Replace with define_expand.
1700         (neon_vget_lane<mode>_sext_internal)
1701         (neon_vget_lane<mode>_zext_internal): New define_insns for double
1702         and quad precision vectors.
1703         (neon_vget_lanedi): Add bounds check. Remove dead comment.
1704         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
1705         have typeless 32-bit result.
1706
1707 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1708
1709         PR tree-opt/32527
1710         * tree-affine.h (aff_tree): The type of rest is sizetype for types
1711         of pointers.
1712         * tree-affine.c (aff_combination_scale): If type is a pointer type,
1713         use sizetype for rest.
1714         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
1715         (aff_combination_convert): Don't convert rest for pointer types.
1716
1717 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
1718
1719         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
1720
1721         * tree-ssa-alias.c: Add alloc-pool.h.
1722         (init_alias_info): Free alias_bitmap_obstack.
1723         (delete_alias_info): Call delete_mem_ref_stats.
1724         (get_mem_sym_stats_for): Use alloc_pool.
1725         (init_mem_ref_stats): Do not delete mem_ref_stats here.
1726         (delete_mem_sym_stats): Removed.
1727         
1728 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
1729
1730         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
1731         functions cannot be represented as classical distance vectors.
1732
1733 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1734
1735         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
1736         * builtins.c (validate_arg, builtin_mathfn_code,
1737         validate_arglist): Likewise.
1738         * calls.c (call_expr_flags): Likewise.
1739         * combine.c (reg_nonzero_bits_for_combine,
1740         reg_num_sign_bit_copies_for_combine, get_last_value,
1741         reg_truncated_to_mode): Likewise.
1742         * emit-rtl.c (subreg_lowpart_p): Likewise.
1743         * expr.c (highest_pow2_factor_for_target,
1744         categorize_ctor_elements_1, categorize_ctor_elements,
1745         count_type_elements, contains_packed_reference,
1746         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
1747         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
1748         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
1749         native_encode_int, native_encode_real, native_encode_complex,
1750         native_encode_vector, native_encode_expr, native_interpret_int,
1751         native_interpret_real, native_interpret_complex,
1752         native_interpret_vector, native_interpret_expr): Likewise.
1753         * function.c (use_register_for_decl): Likewise.
1754         * gimplify.c (get_name): Likewise.
1755         * langhooks-def.h (lhd_return_null_const_tree): New.
1756         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
1757         * langhooks.c (lhd_return_null_const_tree): New.
1758         * langhooks.h (lang_get_callee_fndecl): Constify.
1759         * output.h (constructor_static_from_elts_p): Likewise.
1760         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
1761         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
1762         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
1763         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
1764         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
1765         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
1766         * rtlhooks-def.h (reg_nonzero_bits_general,
1767         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
1768         Likewise. 
1769         * rtlhooks.c (reg_num_sign_bit_copies_general,
1770         reg_nonzero_bits_general, reg_truncated_to_mode_general):
1771         Likewise. 
1772         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
1773         * stor-layout.c (mode_for_size_tree): Likewise.
1774         * tree-ssa-loop-im.c (memref_eq): Likewise.
1775         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
1776         * tree.c (contains_placeholder_p, type_list_equal,
1777         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
1778         Likewise. 
1779         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
1780         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
1781         contains_placeholder_p, contains_packed_reference,
1782         get_callee_fndecl, operand_equal_for_phi_arg_p,
1783         warn_if_unused_value, is_body_block, native_encode_expr,
1784         native_interpret_expr, fold_convertible_p, operand_equal_p,
1785         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
1786         validate_arglist, simple_cst_equal, type_list_equal,
1787         use_register_for_decl, call_expr_flags, get_name,
1788         highest_pow2_factor): Likewise.
1789         (const_call_expr_arg_iterator_d,
1790         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
1791         first_const_call_expr_arg, more_const_call_expr_args_p,
1792         FOR_EACH_CONST_CALL_EXPR_ARG): New.
1793         * varasm.c (constructor_static_from_elts_p): Constify.
1794
1795 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
1796
1797         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
1798         config/arm/neon-schedgen.ml, config/arm/neon.ml,
1799         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
1800         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
1801         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
1802         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
1803         spelling conventions.
1804         * doc/invoke.texi: Follow spelling conventions.
1805
1806 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
1807             Revital Eres  <eres@il.ibm.com>
1808
1809         * modulo-sched.c (sms_schedule): Avoid loops which includes
1810         auto-increment instructions.
1811
1812 2007-07-28  Richard Guenther  <rguenther@suse.de>
1813
1814         PR middle-end/32920
1815         * fold-const.c (fold_cond_expr_with_comparison): Convert
1816         operand zero of MIN/MAX_EXPR to correct type.
1817
1818 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1819
1820         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
1821         flags_from_decl_or_type): Constify.
1822         * gcc.c (do_spec_1): Likewise.
1823         * print-tree.c (dump_addr, print_node_brief): Likewise.
1824         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
1825         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
1826         tree_purge_all_dead_eh_edges): Likewise.
1827         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
1828         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
1829         Likewise. 
1830         * tree.c (expr_location, expr_has_location, expr_locus,
1831         expr_filename, expr_lineno, get_inner_array_type,
1832         fields_compatible_p): Likewise.
1833         * tree.h (get_inner_array_type, fields_compatible_p,
1834         expr_location, expr_has_location, expr_locus, expr_filename,
1835         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
1836         setjmp_call_p, alloca_call_p): Likewise.
1837
1838 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
1839
1840         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
1841         TV_FLOW_INSENSITIVE.
1842
1843         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
1844         TV_CALL_CLOBBER.
1845         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
1846         (compute_flow_insensitive_aliasing): Ditto for
1847         TV_FLOW_INSENSITIVE.    
1848
1849 2007-07-27  Jan Hubicka  <jh@suse.cz>
1850
1851         * config/i386/i386.c (register_move_cost): Remove accidentally comitted
1852         #if 0 block.
1853
1854         * attribs.c: Include hashtab.h
1855         (attribute_hash): New.
1856         (substring): New structure.
1857         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
1858         New function.
1859         (init_attributes): Initialize attribute hash.
1860         (decl_attributes): Use attribute hash.
1861         * Makefile.in (attribs.c): Depend on hashtab.h.
1862
1863 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
1864
1865         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
1866
1867 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
1868
1869         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
1870         __mips_dspr2 and __mips_dsp_rev macros.
1871         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
1872
1873 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
1874         
1875        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
1876
1877 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
1878
1879         PR middle-end/32749
1880         
1881         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
1882         and the updating of the live and do_not_gen sets.
1883         (df_note_bb_compute): Added updating of live and do_not_gen sets
1884         for regular defs so that the case of clobber inside conditional
1885         call is processed correctly.
1886         
1887 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1888
1889         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
1890         operands with compatible type.
1891
1892 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
1893
1894         * expr.h (store_bit_field): Don't return a value.
1895         * expmed.c (check_predicate_volatile_ok): New function.
1896         (store_bit_field_1): New function, extracted from store_bit_field.
1897         Take a fallback_p argument and return true if the operation succeeded.
1898         Only use store_fixed_bit_field if fallback_p.  Don't recompute
1899         mode_for_extraction; use op_mode instead.  Try forcing memories
1900         into registers if the insv expander fails.
1901         (store_bit_field): Use store_bit_field_1 with fallback_p true.
1902         Don't return a value.
1903         (convert_extracted_bit_field): New function, extracted from
1904         store_bit_field.
1905         (extract_bit_field_1): Likewise.  Take a fallback_p argument
1906         and return NULL if the operation succeeded.  Only use
1907         extract_fixed_bit_field if fallback_p.  Only calculate one
1908         extraction mode.  Combine code for extv and extzv.  Try forcing
1909         memories into registers if the ext(z)v expander fails.
1910         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
1911
1912 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
1913
1914         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
1915         into bitfields.
1916         (df_ref): Likewise.  Put regno with other integer fields.
1917
1918 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
1919
1920         * df.h (df_mw_hardreg): Remove "loc" field.
1921         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
1922         local variable.
1923         * df-problems.c (df_whole_mw_reg_unused_p): New function,
1924         split out from df_set_unused_notes_for_mw.  Return false for
1925         partial references.  Assert that mw_reg is a REG when returning true.
1926         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
1927         (df_whole_mw_reg_dead_p): New function, split out from
1928         df_set_dead_notes_for_mw.  Return false for partial references.
1929         Assert that mw_reg is a REG when returning true.
1930         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
1931         Remove redundant bitmap check.
1932
1933 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1934
1935         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
1936         ($(T)crtend.o): Likwise.
1937         ($(T)crtbeginS.o): Likwise.
1938         ($(T)crtendS.o): Likwise.
1939         ($(T)crtfastmath.o): Likwise.
1940
1941 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
1942
1943         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
1944         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
1945         * basic-block.h (struct control_flow_graph): Added x_dom_computed
1946         and x_n_bbs_in_dom_tree fields.
1947
1948 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
1949
1950         PR tree-optimization/32087
1951         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
1952         Do not call scale_bbs_frequencies_int with prob of zero.
1953
1954 2007-07-26  Julian Brown  <julian@codesourcery.com>
1955
1956         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
1957         (neon_element_bits): Add prototypes.
1958         * config/arm/arm.c (bounds_check, neon_lane_bounds)
1959         (neon_const_bounds, neon_element_bits): New functions.
1960         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
1961         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
1962         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
1963         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
1964         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
1965         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
1966         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
1967         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
1968         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
1969         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
1970         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
1971         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
1972         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
1973
1974 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
1975
1976         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
1977         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
1978
1979 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
1980             Julian Brown  <julian@codesourcery.com>
1981
1982         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
1983         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
1984         * config/arm/cortex-a8.md: New.
1985         * config/arm/cortex-a8-neon.md: New.
1986         * config/arm/neon-schedgen.ml: New.
1987         * config/arm/neon.md (vqh_mnem): New.
1988         (neon_type): New.
1989         (Is_float_mode): New.
1990         (Scalar_mul_8_16): New.
1991         (Is_d_reg): New.
1992         (V_mode_nunits): New.
1993         (All instruction patterns): Annotate with neon_type attribute
1994         values.
1995         * config/arm/arm.md: Include cortex-a8.md.
1996         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
1997         values.
1998         Annotate instruction patterns accordingly.
1999         (generic_sched): Do not use generic scheduling for Cortex-A8.
2000         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
2001
2002 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
2003
2004         * fold-const.c (fold_read_from_constant_string): Use
2005         build_int_cst_type.
2006         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2007
2008 2007-07-26  Nick Clifton  <nickc@redhat.com>
2009
2010         * tree-ssa-operands.h: Change copyright header to refer to version
2011         3 of the GNU General Public License and to point readers at the
2012         COPYING3 file and the FSF's license web page.
2013         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
2014         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
2015         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
2016         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
2017         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
2018         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
2019         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
2020         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
2021         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
2022         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
2023         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
2024         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
2025         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
2026         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
2027         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
2028         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
2029         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
2030         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
2031         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
2032         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
2033         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
2034         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
2035         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
2036         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
2037         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
2038         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
2039         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
2040         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
2041         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
2042         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
2043         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
2044         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
2045         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
2046         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
2047         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
2048         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
2049         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
2050         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
2051         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
2052         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
2053         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
2054         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
2055         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
2056         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
2057         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
2058         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
2059         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
2060         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
2061         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
2062         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
2063         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
2064         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
2065         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
2066         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
2067         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
2068         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
2069         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
2070         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
2071         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
2072         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
2073         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
2074         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
2075         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
2076         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
2077         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
2078         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
2079         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
2080         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
2081         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
2082         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
2083         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
2084         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
2085         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
2086         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
2087         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
2088         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
2089         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
2090         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
2091         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
2092         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
2093         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
2094         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
2095         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
2096         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
2097         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
2098         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
2099         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
2100         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
2101         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
2102         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
2103         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
2104         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
2105         vecprim.h, basic-block.h, tree-ssa-structalias.c,
2106         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
2107         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
2108         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
2109         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
2110         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
2111         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
2112         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
2113         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
2114         convert.c, convert.h, langhooks-def.h, reload1.c,
2115         tree-ssa-operands.c: Likewise.
2116
2117 2007-07-26  Jan Hubicka  <jh@suse.cz>
2118
2119         * tree-ssa-live.c: Include debug.h and flags.h.
2120         (mark_scope_block_unused): New function.
2121         (remove_unused_scope_block_p): New function.
2122         (remove_unused_locals): Remove unused blocks too.
2123
2124 2007-07-25  Ian Lance Taylor  <iant@google.com>
2125
2126         * combine.c (combine_max_regno): Remove.  Remove all uses.
2127         (struct reg_stat_struct): Rename from struct reg_stat.
2128         (reg_stat_type): Define, and declare VECs.
2129         (reg_stat): Change from pointer to VEC.  Change all uses.
2130         (combine_split_insns): New static function.
2131         (try_combine, find_split_point): Call it instead of split_insns.
2132
2133 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
2134
2135         * cfghooks.c (split_block): Fix the information about loop latch.
2136
2137 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
2138
2139         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
2140
2141 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
2142
2143         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
2144         Scan the new edge for loop exit info.
2145
2146 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
2147
2148         * config/darwin.c: Include debug.h.
2149
2150 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
2151
2152         PR target/32218
2153         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
2154
2155 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
2156
2157         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
2158         (HARD_REGNO_MODE_OK): Ditto.
2159         (MODES_TIEABLE_P): Ditto.
2160         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
2161         (CLASS_MAX_NREGS): Ditto.
2162         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
2163         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
2164         (divdf3_internal_thr): Removed.
2165         * config/ia64/div.md: New file.
2166         * config/ia64/constraints.md: Add H constraint.
2167
2168 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2169
2170         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
2171         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
2172         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
2173         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
2174         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
2175         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
2176         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
2177         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
2178         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
2179         dump_sbitmap_file, debug_sbitmap, popcount_table,
2180         sbitmap_popcount): Constify.
2181         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
2182         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
2183         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
2184         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
2185         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
2186         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
2187         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
2188         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
2189         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
2190         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
2191         sbitmap_popcount, sbitmap_verify_popcount): Constify.
2192
2193 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2194
2195         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
2196         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
2197         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
2198         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
2199         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
2200         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
2201         bitmap_intersect_p, bitmap_intersect_compl_p,
2202         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
2203         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
2204         Constify.
2205         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
2206         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
2207         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
2208         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2209         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
2210         debug_bitmap, debug_bitmap_file, bitmap_print,
2211         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
2212         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
2213
2214 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
2215
2216         * config/darwin.c (darwin_override_options): Additional fix for
2217         debug info formats that don't support var tracking.
2218
2219 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2220
2221         * cselib.c (entry_and_rtx_equal_p): Constify.
2222         * gengtype.c (output_mangled_typename, write_types, write_local):
2223         Likewise.
2224         * gengtype.h (const_type_p): New.
2225         * see.c (eq_descriptor_extension, hash_descriptor_extension):
2226         Constify.
2227         * tlink.c (scan_linker_output): De-constify.
2228         * tree-ssa-loop-im.c (memref_eq): Constify.
2229         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
2230         (shared_bitmap_hash, shared_bitmap_eq): Constify.
2231
2232 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2233
2234         * c-common.c (fname_as_string, c_type_hash): Constify.
2235         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
2236         * cgraph.c (edge_hash, edge_eq): Likewise.
2237         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
2238         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
2239         reg_attrs_htab_eq): Likewise.
2240         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
2241         Likewise.
2242         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
2243         const_decl_t, const_state_t, const_automata_list_el_t): New.
2244         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
2245         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
2246         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
2247         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
2248         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
2249         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
2250         compare_max_occ_cycle_nums, out_state_arcs_num,
2251         compare_transition_els_num, units_cmp, state_reservs_cmp):
2252         Constify.
2253         * genmodes.c (cmp_modes): Likewise.
2254         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
2255         * gimplify.c (compare_case_labels): Likewise.
2256         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
2257         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
2258         * matrix-reorg.c (mtt_info_hash): Likewise.
2259         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
2260         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
2261         (htab_hash_bucket, htab_hash_elem): Constify.
2262         * tree-browser.c (TB_parent_eq): Likewise.
2263         * tree-scalar-evolution.c (hash_scev_info): Likewise.
2264         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
2265         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
2266         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
2267         Constify.
2268         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
2269         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
2270         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
2271         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
2272         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
2273         New.
2274         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
2275         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
2276         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
2277         * tree-ssa-threadupdate.c (redirection_data_hash,
2278         redirection_data_eq): Likewise. 
2279         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
2280         * tree-ssa.c (var_ann_eq): Likewise.
2281         * tree-vrp.c (compare_case_labels): Likewise.
2282         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
2283         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
2284         tree_not_check_failed, tree_class_check_failed,
2285         tree_range_check_failed, tree_not_class_check_failed,
2286         omp_clause_check_failed, omp_clause_range_check_failed,
2287         tree_contains_struct_check_failed, tree_operand_check_failed):
2288         Likewise. 
2289         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
2290         tree_not_check_failed, tree_class_check_failed,
2291         tree_range_check_failed, tree_not_class_check_failed,
2292         tree_operand_check_failed, omp_clause_operand_check_failed,
2293         tree_operand_length): Likewise. 
2294         * var-tracking.c (const_variable): New.
2295         (variable_htab_hash, variable_htab_eq): Constify.
2296         * varasm.c (const_desc_hash): Likewise.
2297
2298 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2299
2300         * expr.c (handled_component_p): Constify.
2301         * fold-const.c (fit_double_type): Likewise.
2302         * real.h (real_value_from_int_cst): Likewise.
2303         * tree-flow-inline.h (gimple_in_ssa_p,
2304         gimple_aliases_computed_p, gimple_addressable_vars,
2305         gimple_call_clobbered_vars, gimple_referenced_vars,
2306         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
2307         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
2308         may_aliases, end_readonly_imm_use_p, has_zero_uses,
2309         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
2310         is_label_stmt, is_global_var, phi_ssa_name_p,
2311         factoring_name_p, is_call_clobbered, tree_common_ann,
2312         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
2313         unmodifiable_var_p, array_ref_contains_indirect_ref,
2314         ref_contains_array_ref, lookup_subvars_for_var,
2315         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
2316         gimple_mem_ref_stats): Likewise.
2317         * tree-flow.h (tree_common_ann, var_ann, function_ann,
2318         may_aliases, is_exec_stmt, is_label_stmt,
2319         ref_contains_array_ref, array_ref_contains_indirect_ref,
2320         var_can_have_subvars, overlap_subvar, is_call_clobbered,
2321         unmodifiable_var_p): Likewise.
2322         * tree-gimple.c (is_gimple_min_invariant): Likewise.
2323         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
2324         * tree.c (type_hash_list, attribute_hash_list, tree_size,
2325         cst_and_fits_in_hwi, real_value_from_int_cst,
2326         build_real_from_int_cst, integer_zerop, integer_onep,
2327         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
2328         tree_floor_log2, real_zerop, real_onep, real_twop,
2329         real_minus_onep, really_constant_p, purpose_member, chain_member,
2330         list_length, fields_length, int_size_in_bytes, bit_position,
2331         int_bit_position, byte_position, int_byte_position, expr_align,
2332         array_type_nelts, tree_node_structure,
2333         type_contains_placeholder_1, iterative_hash_pointer,
2334         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
2335         tree_map_base_eq, type_hash_list, type_hash_eq,
2336         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
2337         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
2338         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
2339         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
2340         int_fits_type_p, get_containing_scope, decl_function_context,
2341         decl_type_context, omp_clause_operand_check_failed,
2342         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
2343         * tree.h (omp_clause_operand_check_failed, tree_size,
2344         build_real_from_int_cst, array_type_nelts, purpose_member,
2345         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
2346         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
2347         is_attribute_p, check_qualified_type, expr_align,
2348         int_size_in_bytes, bit_position, int_bit_position, byte_position,
2349         int_byte_position, list_length, fields_length, initializer_zerop,
2350         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
2351         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
2352         tree_node_structure, handled_component_p, get_containing_scope,
2353         decl_function_context, decl_type_context, real_zerop,
2354         type_num_arguments, fit_double_type, really_constant_p,
2355         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
2356         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
2357         real_twop, real_minus_onep, int_cst_value): Likewise.
2358
2359 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2360
2361         * cfglayout.c (insn_scope, insn_line): Constify.
2362         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
2363         const_double_htab_hash, const_double_htab_eq,
2364         mem_attrs_htab_hash): Likewise.
2365         * loop-iv.c (biv_eq): Likewise.
2366         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
2367         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
2368         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
2369         Likewise. 
2370         * rtl-error.c (location_for_asm, diagnostic_for_asm,
2371         error_for_asm, warning_for_asm, _fatal_insn,
2372         _fatal_insn_not_found): Likewise. 
2373         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
2374         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
2375         rtl_check_failed_type2, rtl_check_failed_code1,
2376         rtl_check_failed_code2, rtl_check_failed_code_mode,
2377         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
2378         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
2379         rtl_check_failed_type2, rtl_check_failed_code1,
2380         rtl_check_failed_code2, rtl_check_failed_code_mode,
2381         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
2382         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
2383         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
2384         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
2385         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
2386         rtx_unstable_p, get_integer_term, get_related_value,
2387         offset_within_block_p, reg_mentioned_p, count_occurrences,
2388         reg_referenced_p, reg_used_between_p, no_labels_between_p,
2389         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
2390         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
2391         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
2392         find_constant_src, find_reg_fusage, find_regno_fusage,
2393         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
2394         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
2395         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
2396         computed_jump_p, auto_inc_p, in_expr_list_p,
2397         remove_node_from_expr_list, loc_mentioned_in_p,
2398         label_is_jump_target_p, reversed_comparison_code_parts,
2399         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
2400         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
2401         print_inline_rtx): Likewise.
2402         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
2403         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
2404         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
2405         get_integer_term, get_related_value, offset_within_block_p,
2406         count_occurrences, reg_mentioned_p, no_labels_between_p,
2407         reg_used_between_p, reg_referenced_p, single_set_2,
2408         multiple_sets, set_noop_p, refers_to_regno_p,
2409         reg_overlap_mentioned_p, dead_or_set_p,
2410         covers_regno_no_parallel_p, covers_regno_p,
2411         dead_or_set_regno_p, find_reg_note, find_regno_note,
2412         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
2413         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
2414         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
2415         side_effects_p, may_trap_p_1, may_trap_p,
2416         may_trap_after_code_motion_p, may_trap_or_fault_p,
2417         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
2418         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
2419         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
2420         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
2421         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
2422         Likewise. 
2423         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
2424         warning_for_asm): Likewise.
2425         * tree.h (print_rtl): Likewise.
2426         * varasm.c (get_pool_mode): Likewise.
2427
2428 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2429
2430         * c-lex.c (c_lex_with_flags, lex_string): Constify.
2431         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
2432         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
2433         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
2434         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
2435         * ddg.c (compare_sccs): Likewise.
2436         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
2437         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
2438         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
2439         decimal_do_fix_trunc, decimal_real_to_integer,
2440         decimal_real_to_integer2, decimal_real_maxval): Likewise.
2441         * dse.c (const_group_info_t): New.
2442         (invariant_group_base_eq, invariant_group_base_hash): Constify.
2443         * dwarf2out.c (const_dw_die_ref): New.
2444         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
2445         * tree-browser.c (TB_parent_eq): Likewise.
2446         * unwind-dw2-fde.c (__register_frame_info_bases,
2447         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
2448         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
2449         Likewise.
2450         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
2451         * unwind-dw2.c (uw_frame_state_for): Likewise.
2452         * value-prof.c (histogram_hash, histogram_eq): Likewise.
2453         * value-prof.h (const_histogram_value): New.
2454
2455 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
2456
2457         * config/mips/mips.c (machine_function): Add
2458         initialized_mips16_gp_pseudo_p.
2459         (mips16_gp_pseudo_reg): Do not emit the initialization of
2460         mips16_gp_pseudo_rtx when being called from the gimple cost-
2461         calculation routines; emit it on the first use outside those
2462         routines.
2463
2464 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2465
2466         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
2467         New.
2468         
2469         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2470         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
2471         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
2472         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
2473         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
2474         Preserve const-ness of parameters through use of __typeof(),
2475         also constify and tidy.
2476         
2477         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
2478         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
2479         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
2480         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
2481         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
2482         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
2483         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
2484         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
2485         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
2486
2487 2007-07-25  Julian Brown  <julian@codesourcery.com>
2488             Mark Shinwell  <shinwell@codesourcery.com>
2489
2490         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
2491         (alpha_mangle_type): This.
2492         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2493         (TARGET_MANGLE_TYPE): Define this instead.
2494         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
2495         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
2496         (arm_init_neon_builtins): Fix comment.
2497         (arm_mangle_map_entry): New.
2498         (arm_mangle_map): New.
2499         (arm_mangle_type): New.
2500         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
2501         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
2502         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
2503         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2504         (TARGET_MANGLE_TYPE): Define this instead.
2505         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
2506         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
2507         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
2508         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2509         (TARGET_MANGLE_TYPE): Define this instead.
2510         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
2511         to...
2512         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
2513         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2514         (TARGET_MANGLE_TYPE): Define this instead.
2515         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
2516         (s390_mangle_type): This.
2517         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2518         (TARGET_MANGLE_TYPE): Define this instead.
2519         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
2520         (sparc_mangle_type): This.
2521         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
2522         (TARGET_MANGLE_TYPE): Define this instead.
2523         * cp/mangle.c (write_type): Call mangle_type target hook on all
2524         types before mangling.  Use original type, not main variant, as
2525         argument.
2526         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
2527         (TARGET_MANGLE_TYPE): This.
2528         * target.h (gcc_target): Rename mangle_fundamental_type to
2529         mangle_type.
2530         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
2531         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
2532
2533 2007-07-25  Julian Brown  <julian@codesourcery.com>
2534             Paul Brook  <paul@codesourcery.com>
2535             Joseph Myers  <joseph@codesourcery.com>
2536             Mark Shinwell  <shinwell@codesourcery.com>
2537
2538         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
2539         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
2540         (with_fpu): Allow --with-fpu=neon.
2541         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
2542         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
2543         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
2544         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
2545         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
2546         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
2547         (neon_emit_pair_result_insn, neon_disambiguate_copy)
2548         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
2549         (output_move_neon): Add prototypes.
2550         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
2551         (all_fpus): Add FPUTYPE_NEON.
2552         (fp_model_for_fpu): Add NEON field.
2553         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
2554         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
2555         in registers.
2556         (arm_legitimate_address_p): Don't support fancy addressing for NEON
2557         structure moves.
2558         (thumb2_legitimate_address_p): Likewise.
2559         (neon_valid_immediate): Recognize and prepare constants suitable for
2560         NEON instructions.
2561         (neon_immediate_valid_for_move): New function. Recognize and prepare
2562         immediates for NEON move instructions.
2563         (neon_immediate_valid_for_logic): New function. Recognize and
2564         prepare immediates for NEON logic instructions.
2565         (neon_output_logic_immediate): New function. Create asm string
2566         suitable for outputting immediate logic instructions.
2567         (neon_pairwise_reduce): New function. Implement reduction using
2568         pairwise operations.
2569         (neon_expand_vector_init): New function. Expand a (possibly
2570         non-constant) vector initialization.
2571         (neon_vector_mem_operand): New function. Memory operands supported
2572         for quad-word loads/stores to/from ARM or NEON registers. Don't
2573         allow base+offset addressing for core regs.
2574         (neon_struct_mem_operand): New function. Valid mems for NEON
2575         structure moves.
2576         (coproc_secondary_reload_class): Enable NEON registers to be loaded
2577         from neon_vector_mem_operand addresses without a secondary register.
2578         (add_minipool_forward_ref): Handle >8-byte minipool entries.
2579         (add_minipool_backward_ref): Likewise.
2580         (dump_minipool): Likewise.
2581         (push_minipool_fix): Likewise.
2582         (output_move_quad): New function. Output quad-word moves, loads and
2583         stores using ARM registers.
2584         (output_move_vfp): Add support for vectors in VFP (NEON) D
2585         registers.
2586         (output_move_neon): Output a NEON load/store to/from a quadword
2587         register.
2588         (arm_print_operand): Implement new codes:
2589         - 'c' for unadorned integers (without a # sign).
2590         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
2591         mode.
2592         - 'e', 'f' for the low and high D parts of a NEON Q register.
2593         - 'q' outputs a NEON Q register.
2594         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
2595         - 'T' prints NEON opcode features from a coded bitmask.
2596         - 'F' is similar to T, but signed/unsigned codes both print as
2597         'i'.
2598         - 't' is similar to T, but 'u' is printed instead of 'p'.
2599         - 'O' prints 'r' if NEON instruction should perform rounding (as
2600         specified by bitmask), else prints nothing.
2601         - '#' is a punctuation character to stop operand numbers from
2602         running together with following digits in the assembler
2603         strings for instructions (when using mode attributes).
2604         (arm_assemble_integer): Handle extra NEON vector modes. Permute
2605         constant vectors in big-endian mode, where necessary.
2606         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
2607         Handle EI, OI, CI, XI modes.
2608         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
2609         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
2610         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
2611         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
2612         (neon_builtin_type_bits): Add enumeration, one bit for each vector
2613         type.
2614         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
2615         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
2616         to turn v8qi, etc. into bits defined above.
2617         (neon_itype): New enumeration. Classifications of NEON builtins.
2618         (neon_builtin_datum): Define struct. Contains information about
2619         a single builtin (with multiple modes).
2620         (CF): Define helper macro for...
2621         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
2622         modes.
2623         (neon_builtin_data): New array. Define information about builtins
2624         for use during initialization/expansion.
2625         (arm_init_neon_builtins): New function.
2626         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
2627         true.
2628         (neon_builtin_compare): New function.
2629         (locate_neon_builtin_icode): New function. Find an insn code for a
2630         builtin given a function code for that builtin. Also return type of
2631         builtin (NEON_BINOP, NEON_UNOP etc.).
2632         (builtin_arg): New enumeration. Types of arguments for builtins.
2633         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
2634         Takes a variable argument list of builtin_arg types, terminated by
2635         NEON_ARG_STOP.
2636         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
2637         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
2638         (neon_emit_pair_result_insn): New function. Support returning pairs
2639         of vectors via a pointer.
2640         (neon_disambiguate_copy): New function. Set up operands for a
2641         multi-word copy such that registers do not get clobbered.
2642         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
2643         ARM_BUILTIN_NEON_BASE.
2644         (arm_file_start): Set float-abi attribute for NEON.
2645         (arm_vector_mode_supported_p): Enable NEON vector modes.
2646         (arm_mangle_map_entry): New.
2647         (arm_mangle_map): New.
2648         (arm_mangle_vector_type): New.
2649         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
2650         when appropriate.
2651         (TARGET_NEON): New macro. Target supports NEON.
2652         (fputype): Add FPUTYPE_NEON.
2653         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
2654         for vectorization based on command-line arg.
2655         (NEON_REGNO_OK_FOR_NREGS): Define.
2656         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
2657         (VALID_NEON_STRUCT_MODE): Define.
2658         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
2659         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
2660         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
2661         (consttable_16): Add pattern for outputting 16-byte minipool
2662         entries.
2663         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
2664         vec-common.md).
2665         (vec-common.md, neon.md): Include md files.
2666         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
2667         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
2668         (memory_constraint "Ut", "Un", "Us"): Define.
2669         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
2670         (MMX_char): New mode attribute.
2671         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
2672         (*add<mode>3_iwmmxt): New insn pattern.
2673         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
2674         (*sub<mode>3_iwmmxt): New insn pattern.
2675         (mulv4hi3): Rename to...
2676         (*mulv4hi3_iwmmxt): This.
2677         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
2678         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
2679         (uminv4hi3, uminv2si3): Remove. Replace with...
2680         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
2681         (*umin<mode>3_iwmmxt): These.
2682         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
2683         (ashr<mode>3_iwmmxt): This new pattern.
2684         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
2685         (lshr<mode>3_iwmmxt): This new pattern.
2686         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
2687         (ashl<mode>3_iwmmxt): This new pattern.
2688         * config/arm/neon-docgen.ml: New file. Generate documentation for
2689         intrinsics.
2690         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
2691         * config/arm/arm_neon.h: New (autogenerated).
2692         * config/arm/neon-testgen.ml: New file. Generate NEON tests
2693         automatically.
2694         * config/arm/neon.md: New file. Define NEON instructions.
2695         * config/arm/neon.ml: New file. Abstract description of NEON
2696         instructions, used to generate arm_neon.h header, documentation and
2697         tests.
2698         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
2699         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
2700         support.
2701         * doc/extend.texi (ARM Built-in Functions): Rename and remove
2702         extraneous comma.
2703         (ARM NEON Intrinsics): New subsection.
2704         * doc/arm-neon-intrinsics.texi: New (autogenerated).
2705
2706 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
2707
2708         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
2709         prototype.
2710
2711 2007-07-24  Jan Hubicka  <jh@suse.cz>
2712
2713         * regclass.c (move_table): New type.
2714         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
2715         (init_move_cost): Break out from ...
2716         (init_reg_sets_1): ... here; simplify computation of
2717         have_regs-of_mode and contains_reg_of_mode.
2718         (record_reg_classes): Unswitch internal loops.
2719         (copy_cost): Trigger lazy initialization of move cost
2720         (record_address_regs): Likewise.
2721
2722 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
2723
2724         * config/darwin.c (darwin_override_options): Don't force on
2725         flag_var_tracking_uninit when no debug info is requested.
2726
2727 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
2728
2729         * cfgloop.c (init_loops_structure): New function.
2730         (flow_loops_find): Create root of the loop tree unconditionally.
2731
2732 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
2733
2734         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
2735
2736 2007-07-24  Jan Hubicka  <jh@suse.cz>
2737
2738         * caller-save.c: Include ggc.h, gt-caller-save.h
2739         (reg_save_code, reg_restore_code): Rename to ...
2740         (cached_reg_save_code, cached_reg_restore_code): ... those.
2741         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
2742         (reg_save_code, reg_restore_code): New functions.
2743         (init_caller_save): Do not intialize
2744         reg_save_code/reg_restore_code tables.
2745         * Makefile.in: (gt-caller-save.h): New.
2746
2747 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2748
2749         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
2750         with the mode of the original operand instead of
2751         integer_one_node.
2752
2753 2007-07-23  Jan Hubicka  <jH@suse.cz>
2754
2755         * i386.c (ix86_secondary_memory_needed): Break out to...
2756         (inline_secondary_memory_needed): ... here.
2757         (ix86_memory_move_cost): Break out to ...
2758         (inline_memory_move_cost): ... here; add support for IN value of 2 for
2759         maximum of input and output; fix handling of Q_REGS on 64bit.
2760         (ix86_secondary_memory_needed): Microoptimize.
2761
2762 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
2763
2764         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
2765         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2766         stmts_from_loop, known_dependences_p, build_rdg): New.
2767         * tree-data-ref.h: Depends on graphds.h.
2768         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
2769         (build_rdg): Declared.
2770         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
2771
2772 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
2773
2774         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
2775         ccp_min_invariant.
2776
2777 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
2778             Jakub Jelinek  <jakub@redhat.com>
2779
2780         PR middle-end/PR28690
2781         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow EQ compares.
2782         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
2783         and MEM_POINTER operands over REG and MEM operands.
2784         (swap_commutative_operands_p): Change return value to bool.
2785         * rtl.h: Update the corresponding prototype.
2786         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
2787         instead of gen_rtx_PLUS.
2788         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
2789         value to bool.  Change function arguments to rtx's and update code
2790         to match.
2791         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
2792         calls to match the new declaration.
2793         * simplify-rtx.c (simplify_associative_operation): Don't
2794         reorder simplify_binary_operation arguments.
2795
2796 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2797
2798         * config/mips/mips.c (override_options): Use mips_costs to derive
2799         the default branch cost.
2800         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
2801         than mips_costs.
2802         * config/mips/mips.opt (mbranch-cost=): New option.
2803         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
2804
2805 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2806
2807         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
2808         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
2809         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
2810         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
2811
2812 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2813
2814         * config/mips/constraints.md (ks): New constraint.
2815         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
2816         (*add<mode>3_mips16): ...here.
2817
2818 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
2819
2820         * optabs.h (enum optab_index): Add new OTI_signbit.
2821         (signbit_optab): Define corresponding macro.
2822         (enum insn_code signbit_optab[]): Remove array.
2823         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
2824         (expand_copysign_absneg): If back end provides signbit insn, use it
2825         instead of bit operations on floating point argument.
2826         * builtins.c (enum insn_code signbit_optab[]): Remove array.
2827         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code for
2828         availability of signbit insn.
2829
2830         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
2831         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
2832         SSE mode is not active.
2833         (isinf<mode>2): Disable for mfpmath=sse,387.
2834
2835 2007-07-22  Ben Elliston  <bje@au.ibm.com>
2836
2837         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
2838         `class' parameter.
2839         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
2840
2841 2007-07-20  Richard Guenther  <rguenther@suse.de>
2842
2843         * tree-cfg.c (verify_expr): COND_EXPRs can have any
2844         integral typed condition.
2845         * tree-ssa.c (useless_type_conversion_p): Do not preserve
2846         booleanness.  Only preserve conversions from a non-base
2847         type to a base type, not in general between types with
2848         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
2849         * tree.def (COND_EXPR): Document that the condition
2850         can be of any integral type.
2851
2852 2007-07-20  Nigel Stephens  <nigel@mips.com>
2853             Richard Sandiford  <richard@codesourcery.com>
2854
2855         * config/mips/mips.h (mips_dwarf_regno): Declare.
2856         (DBX_REGISTER_NUMBER): Remove redundant brackets.
2857         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
2858         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
2859         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
2860         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
2861         (REG_CLASS_NAMES): Update accordingly.
2862         * config/mips/mips.c (mips_dwarf_regno): New array.
2863         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
2864         (mips_subword): Remove special handling for accumulator registers.
2865         (override_options): Initiailize mips_dwarf_regno.  Remove use
2866         of ACC_HI_REG_P.
2867         (mips_swap_registers): New function.
2868         (mips_conditional_register_usage): Swap accumulator registers
2869         around if TARGET_LITTLE_ENDIAN.
2870         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
2871         * config/mips/constraints.md (h, l): Use the endianness to choose
2872         between MD0_REG and MD1_REG.
2873         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
2874         alternative-dependent template.
2875
2876 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
2877
2878         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
2879         no_new_pseudos.
2880
2881 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
2882
2883         * function.c (thread_prologue_and_epilogue_insns): Fix exit
2884         predecessor fallthru flags.
2885
2886 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
2887
2888         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
2889         of compare to the same type.
2890         * cfgloopmanip.c (add_loop): Update information about loop exits.
2891         (loop_version): Remove the innermost loop requirement.
2892         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
2893         to sizetype for pointers.
2894
2895 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2896
2897         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
2898         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
2899         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
2900
2901         * config/dfp-bit.c: Empty for TFmode conversions.
2902
2903 2007-07-18  Caroline Tice  <ctice@apple.com>
2904         
2905         * var-tracking.c (find_src_status):  Check for  COND_EXEC insns
2906         and handle them correctly; check that src is not NULL before
2907         trying to use it.
2908         (find_src_set_src): Likewise.
2909         
2910 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
2911         
2912         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
2913         (struct alignment_context, init_alignment_context): New.
2914         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
2915         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
2916         (XCHAL_HAVE_S32C1I): Likewise.
2917         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
2918         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
2919         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
2920         (ATOMIC, HQI): New macros.
2921         (memory_barrier, *memory_barrier): New.
2922         (sync_lock_releasesi): New.
2923         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
2924         (sync_lock_test_and_set<mode>): New.
2925         (sync_<atomic><mode>): New.
2926         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
2927         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
2928         (xtensa_expand_atomic): New.
2929         
2930 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2931
2932         PR target/30652
2933
2934         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
2935         transformation for builtin ISNORMAL.
2936         (expand_builtin): Handle BUILT_IN_ISNORMAL.
2937         * builtins.def (BUILT_IN_ISNORMAL): New.
2938         * doc/extend.texi: Document isnormal.
2939
2940 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2941
2942         PR target/30652
2943
2944         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
2945         optabs infrastructure.  Provide generic implementation for
2946         FINITE/ISFINITE.
2947         (expand_builtin): Handle FINITE/ISFINITE.
2948         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
2949         (fold_builtin_1): Likewise.
2950
2951         * builtins.def (BUILT_IN_ISFINITE): New.
2952
2953         * doc/extend.texi: Document isfinite.
2954
2955 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2956
2957         PR target/30652
2958         PR middle-end/20558
2959
2960         * builtins.c (expand_builtin_interclass_mathfn): Provide a
2961         generic fallback for isinf.
2962         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
2963         calculation code ...
2964         * real.c (get_max_float): ... to here.
2965         * real.h (get_max_float): New.
2966
2967 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2968
2969         PR middle-end/32668
2970
2971         * builtin-attrs.def (ATTR_TYPEGENERIC,
2972         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
2973
2974         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
2975         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2976         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
2977         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
2978
2979         * c-common.c (handle_type_generic_attribute): New.
2980         (c_common_attribute_table): Add "type generic".
2981
2982         * c-typeck.c (convert_arguments): Handle "type generic" functions.
2983
2984 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
2985
2986         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
2987         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
2988         properly.
2989
2990 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2991
2992         PR target/32808
2993         * config/cris/cris.c (cris_print_index): Don't use XEXP before
2994         checking that the operand is an expression.
2995
2996 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
2997             Danny Smith  <dannysmith@users.sourceforge.net>
2998
2999         PR/other 30335
3000         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
3001         file mapping object in local namespace if Windows version later
3002         than NT4
3003
3004 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
3005
3006         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
3007         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
3008         arm_cannot_force_const_mem.
3009         (arm_cannot_force_const_mem): New function.
3010         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
3011         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
3012         of arm_tls_referenced_p.
3013         * config/arm/arm.md (movsi): Split out-of-section constants when
3014         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
3015         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3016
3017 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
3018
3019         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
3020
3021 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
3022
3023         * config/mips/mips.md (*extendqihi2): Convert the destination
3024         to SImode.
3025
3026 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3027
3028         * config/pa/fptr.c: Update license header.
3029         * config/pa/milli64.S: Likewise.
3030
3031 2007-07-17  Nick Clifton  <nickc@redhat.com>
3032
3033         * COPYING_v3: New file.  Contains version 3 of the GNU General
3034         Public License.
3035         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
3036         Lesser General Public License.
3037         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
3038         the GNU General Public License.
3039
3040 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
3041
3042         PR rtl-optimization/32773
3043         * cfglayout.c (force_one_exit_fallthru): New function.
3044         (cfg_layout_finalize): Use it.
3045
3046 2007-07-16  Richard Guenther  <rguenther@suse.de>
3047             Uros Bizjak  <ubizjak@gmail.com>
3048
3049         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
3050         before forcing it to gimple operand.
3051
3052 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
3053             David Ung  <davidu@mips.com>
3054
3055         * config/mips/mips.h (TUNE_24K): Define.
3056         (TUNE_MACC_CHAINS): Add TUNE_24K.
3057         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
3058         imadd.
3059         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
3060         (r74k_int_madd): .. this new reservation.
3061         (define_bypass): Fixed bypasses for r74k_int_madd to use
3062         mips_linked_madd_p.
3063         * config/mips/24k.md (define_bypass): Define new
3064         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
3065
3066 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
3067             Nigel Stephens  <nigel@mips.com>
3068
3069         * config/mips/mips.md:  Include 20kc.md.
3070         * config/mips/20kc.md: New file.
3071         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
3072         (mips_adjust_cost): Tweak for 20Kc.
3073         (mips_issue_rate): Likewise.
3074         * config/mips/mips.h (TUNE_20KC): Define.
3075
3076 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
3077
3078         * config/rs6000/rs6000.c (struct processor_cost): Add
3079         cache_line_size, l1_cache_lines, and simultaneous_prefetches
3080         fields.
3081         (*_cost): Add cache information.
3082         (rs6000_override_options): Set cache parameters.
3083
3084 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3085
3086         PR bootstrap/3456
3087         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
3088         * doc/install.texi (mips-sgi-irix6): pthread support works now.
3089
3090 2007-07-16  Paul Brook  <paul@codesourcery.com>
3091
3092         PR target/32753
3093         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
3094         (cirrus_thumb2_movsi_insn): Ditto.
3095
3096 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
3097
3098         * config/rs6000/darwin-fallback.c (interpret_libc): Change
3099         CR2_REGNO to R_CR2.
3100
3101 2007-07-15  Andrew Haley  <aph@redhat.com>
3102
3103         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
3104         before looking in the context.
3105
3106 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3107
3108         PR middle-end/32398
3109         PR middle-end/32769
3110         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
3111         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
3112         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3113         (pa_output_function_prologue): Use rp_saved and current_function_is_leaf
3114         to generate .CALLINFO statement.
3115         (hppa_expand_prologue): Set rp_saved.
3116         (hppa_expand_epilogue): Use rp_saved.
3117         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
3118         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
3119
3120 2007-07-14  Dirk Mueller  <dmueller@suse.de>
3121
3122         * omega.c (coalesce): Fix memory leak on early exit.
3123         * matrix-reorg.c (check_allocation_function): Likewise.
3124         * tree-vect-transform.c (vect_get_new_vect_var): free result
3125         of concat().
3126         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3127         pass pointer to edge vector
3128         (partition_hot_cold_basic_blocks): Fix memory leak.
3129         * collect2.c (prefix_from_string): Free temporary storage.
3130         * reload1.c (fixup_abnormal_edges): Free sbitmap.
3131
3132 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3133
3134         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
3135         (DO_GLOBAL_DTORS_BODY): Likewise.
3136
3137 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3138             Nigel Stephens  <nigel@mips.com>
3139
3140         * config/mips/mips.c (mips_classify_symbol): Don't return
3141         SYMBOL_SMALL_DATA for constant pool addresses if
3142         TARGET_EMBEDDED_DATA is true.
3143
3144 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
3145
3146         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
3147         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
3148         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
3149         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
3150         __builtin_ia32_storehps, __builtin_ia32_storelps,
3151         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
3152         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
3153         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
3154         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
3155         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
3156         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
3157         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
3158         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
3159         using def_builtin_const.
3160
3161 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
3162
3163         PR tree-optimization/32705
3164         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
3165         (simplify_binary_expression): Use SSA_VAL consistently.
3166
3167 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
3168
3169         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
3170         (SPEFSCR_REGNO): Delete definition.
3171         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
3172         COUNT_REGISTER_REGNUM -> CTR_REGNO.
3173         * config/rs6000/rs6000.h: Do not define *_REGNO.
3174         LINK_REGISTER_REGNUM -> LR_REGNO.
3175         COUNT_REGISTER_REGNUM -> CTR_REGNO.
3176         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
3177         COUNT_REGISTER_REGNUM -> CTR_REGNO.
3178         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
3179         R_VRSAVE, R_VSCR. Use them.
3180         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
3181         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
3182         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
3183         * config/rs6000/aix.h: Define R_LR.  Use it.
3184         
3185 2007-07-13  Caroline Tice  <ctice@apple.com>
3186         
3187         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
3188         flag_var_tracking is explicitly turned off (i.e. when variable
3189         tracking is not feasible); otherwise, turn flag_var_tracking on when
3190         flag_var_tracking_uninit is on.
3191         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
3192         note definitions, to allow recording of initialization status in the
3193         notes.
3194         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3195         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
3196         determine if two note locations are equal.
3197         (output_loc_list): Don't output list entries whose start & end labels
3198         are the same.
3199         (reg_loc_descriptor): Add parameter for initialization status; pass it
3200         to other loc descriptor functions.
3201         (one_reg_loc_descriptor): Add parameter for initialization status;
3202         check its value and add DW_OP_GNU_uninit to returned loc descr if
3203         appropriate.
3204         (multiple_reg_loc_descriptor): Add parameter for initialization
3205         status;
3206         pass init status argument to other loc descriptor functions; check
3207         value of intialization parameter and add DW_OP_GNU_uninit to returned
3208         loc descr if appropriate.
3209         (based_loc_descr): Add parameter for initialization status; add new
3210         variable for return value; check value of initialization parameter and
3211         add DW_OP_GNU_uninit to returned loc descr if appropriate.
3212         (concatn_mem_loc_descriptor): Add parameter for initialization status;
3213         pass init status argument to other loc descriptor functions; check
3214         value of intialization parameter and add DW_OP_GNU_uninit to returned
3215         loc descr if appropriate.
3216         (mem_loc_descriptor): Likewise.
3217         (concat_loc_descriptor): Likewise.
3218         (concatn_loc_descriptor): Likewise.
3219         (loc_descriptor): Add parameter for initialization status; pass it as
3220         argument to other loc descriptor function calls.
3221         (loc_descriptor_from_tree_1): Add appropriate initialization status
3222         to loc descriptor function calls.
3223         (add_location_or_const_value_attribute): Get initialization status
3224         from VAR_LOCATION note; add initialization status to loc descriptor
3225         function calls.
3226         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
3227         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
3228         status is uninitialized, add "[uninint]" to output.
3229         * common.opt (fvar-tracking-uninit): New option, similar to
3230         fvar-tracking, to turn on tracking of uninitialized variables; creates
3231         a new global flag, flag_var_tracking_uninit.
3232         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
3233         (enum var_init_status): New type, for var initialization status field.
3234         * var-tracking.c (struct location_chain_def): Two new fields, init,
3235         for initialization status, and set_src for the assignment value expr.
3236         (unshare_variable): New parameter for initialization status;
3237         initialize new init and set_src fields.
3238         (var_reg_set): New parameters for initialization status and value;
3239         pass them to set_variable_part.
3240         (var_mem_set): Likewise.
3241         (get_init_value): New function.
3242         (var_reg_delete_and_set): New initialization status & value
3243         parameters; add call to get_init_value if status is unknown; pass new
3244         parameters to clobber_variable_part and var_reg_set.
3245         (var_mem_delete_and_set): Likewise.
3246         (var_reg_delete): Pass null set_src value to clobber_variable_part.
3247         (var_mem_delete): Likewise.
3248         (variable_union): Pass status to unshare_variable; initialize new init
3249         and set_src fields. If flag_var_tracking_uninit is not set, force
3250         status to initialized.
3251         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
3252         used later to get the set_src value.
3253         (find_src_status): New function.
3254         (find_src_set_src): New function.
3255         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
3256         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
3257         MO_SET, get set_src value and pass it to var_reg_delete_and_set
3258         and var_mem_delete_and_set.
3259         (dump_variable): Print out "[uninit]" if appropriate.
3260         (set_variable_part): Add new initialization and set_src parameters;
3261         pass status to unshare_variable; set node->init and node- >set_src
3262         fields and modify slot in hash table appropriately; save the init and
3263         set_src values if appropriate and assign to the new node.
3264         (clobber_variable_part): New set_src parameter; if two nodes have
3265         same variable and same location but different set_src (assignment)
3266         values, clobber old node.
3267         (delete_variable_part): Pass init status to unshare_variable.
3268         (emit_note_insn_var_location): Add initialized var; assign var's init
3269         status to new 'initialized'; pass new init status field to calls to
3270         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
3271         status to initialized.
3272         (emit_notes_in_bb): Pass initialization status to calls to
3273         var_reg_set, var_mem_set, var_reg_delete_and_set and
3274         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
3275         var_reg_delete_and_set and var_mem_delete_and_set; call
3276         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
3277         make up for change in add_stores.
3278         (vt_add_function_parameters): Add status to calls to
3279         set_variable_part.
3280         * config/darwin.c (darwin_override_options): Turn on uninitialized
3281         tracking automatically, if var_tracking is on and the system is
3282         10.5 or higher.
3283         
3284 2007-07-13  Sa Liu  <saliu@de.ibm.com>
3285
3286         * config.gcc: Add options for arch and tune on SPU.
3287         * config/spu/predicates.md: Add constant operands 0 and 1.
3288         * config/spu/spu-builtins.def: Add builtins for double precision 
3289         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
3290         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
3291         spu_testsv.
3292         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
3293         a CELLEDP target.
3294         * config/spu/spu-protos.h: Add new function prototypes. 
3295         * config/spu/spu.c (spu_override_options): Check options -march and
3296         -mtune.
3297         (spu_comp_icode): Add comparison code for DFmode and vector mode.
3298         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
3299         mode comparison.
3300         (spu_const_from_int): New.  Create a vector constant from 4 ints.
3301         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
3302         (spu_emit_vector_compare): New.  Emit vector compare.
3303         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
3304         * config/spu/spu.h: Add options -march and -mtune.  Define processor
3305         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
3306         CANONICALIZE_COMPARISON.
3307         * config/spu/spu.md: Add new insns for double precision compare
3308         and double precision vector compare.  Add vcond and smax/smin patterns
3309         to enable DFmode vector conditional expression.
3310         * config/spu/spu.opt: Add options -march and -mtune.
3311         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
3312         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
3313         both CELL and CELLEDP targets: spu_testsv.
3314         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
3315         values.
3316