OSDN Git Service

9ccde307177fa4cdb4d8fcaec6515246334e7ec5
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-10-08  Geoffrey Keating  <geoffk@apple.com>
2
3         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register
4         '#pragma mark' to be executed at preprocessing time.
5
6 2007-10-08  Ollie Wild  <aaw@google.com>
7
8         * varasm.c (compare_constant): Removed call to
9         lang_hooks.expand_constant.
10         (copy_constants): Removed call to lang_hooks.expand_constant.
11         (compute_reloc_for_constant): Removed call to
12         lang_hooks.expand_constant.
13         (output_addressed_constants): Removed call to
14         lang_hooks.expand_constant.
15         (constructor_static_from_elts_p): Removed call to
16         lang_hooks.expand_constant.
17         (output_constant): Removed calls to lang_hooks.expand_constant.
18         * langhooks.h (struct lang_hooks): Removed field expand_constant.
19         * langhooks-def.h (lhd_return_tree): Removed.
20         (LANG_HOOKS_EXPAND_CONSTANT): Removed.
21         (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
22         * langhooks.c (lhd_return_tree): Removed.
23
24 2007-10-08  Mark Shinwell  <shinwell@codesourcery.com>
25
26         * combine.c (setup_incoming_promotions): Ensure that
27         arguments that have not undergone mode promotions do not
28         incorrectly get marked as being sign- or zero-extended.
29
30 2007-10-08  Richard Guenther  <rguenther@suse.de>
31
32         PR middle-end/33693
33         PR middle-end/33695
34         PR middle-end/33697
35         * fold-const.c (fold_binary): Use correct types in folding
36         of a * (1 << b) to (a << b).  Likewise for ~A & ~B to ~(A | B)
37         and building of RROTATE_EXPR.
38
39 2007-10-08  Richard Guenther  <rguenther@suse.de>
40
41         PR middle-end/33691
42         PR middle-end/33694
43         PR middle-end/33696
44         * fold-const.c (fold_binary): Use the correct types when
45         folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
46         (fold_binary): Use the correct types when folding
47         (-A) - B to (-B) - A.
48         (fold_unary): Use the correct types when folding ~(X).
49
50 2007-10-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
51
52         * doc/invoke.texi (Wall): fix formatting issues.
53         
54 2007-10-07  Richard Sandiford  <rsandifo@nildram.co.uk>
55
56         * simplify-rtx.c (simplify_binary_operation_1): Canonicalize
57         truncated shift counts.
58
59 2007-10-07  Kazu Hirata  <kazu@codesourcery.com>
60
61         * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
62         syntax for ASSEMBLER_DIALECT.
63         * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
64
65 2007-10-06  Eric Botcazou  <ebotcazou@adacore.com>
66             Nathan Froyd  <froydnj@codesourcery.com>
67
68         * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
69         when determining whether to record INCOMING_RETURN_ADDR_RTX.
70
71 2007-10-06  Eric Botcazou  <ebotcazou@adacore.com>
72
73         Revert:
74         2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
75
76         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
77         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
78         the function, temporarily point the debug interface to the null one.
79
80 2007-10-06  Alexandre Oliva  <aoliva@redhat.com>
81
82         PR tree-optimization/33655
83         * tree-sra.c (bitfield_overlaps_p): Handle array and complex
84         elements.
85
86 2007-10-06  Alexandre Oliva  <aoliva@redhat.com>
87
88         PR tree-optimization/33572
89         * tree-cfg.c (verify_stmts): Check for missing PHI defs.
90         * tree-inline.c (update_ssa_across_eh_edges): Renamed to...
91         (update_ssa_across_abnormal_edges): ... this.  Set slots in the
92         return PHI node.
93         (copy_edges_for_bb): Handle nonlocal label edges.
94         (make_nonlocal_label_edges): Deleted.
95         (optimize_inline_calls): Don't call it.
96
97 2007-10-05  Hans-Peter Nilsson  <hp@axis.com>
98
99         * gthr-single.h: Revert last change.
100
101 2007-10-05  Michael Matz  <matz@suse.de>
102
103         PR middle-end/33667
104         * lower-subreg.c (decompose_multiword_subregs): Use
105         validate_unshare_change().
106
107 2007-10-05  Peter Bergner  <bergner@vnet.ibm.com>
108
109         * ra-conflict.c: Include "sparseset.h".
110         (conflicts): Change to HOST_WIDEST_FAST_INT.
111         (allocnos_live): Redefine variable as a sparseset.
112         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE): Delete macros.
113         (allocno_row_words): Removed global variable.
114         (partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
115         (CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
116         (conflict_p, set_conflict_p, set_conflicts_p): New functions.
117         (record_one_conflict_between_regnos): Cache allocno values and reuse.
118         Use set_conflict_p.
119         (record_one_conflict): Update uses of allocnos_live to use
120         the sparseset routines.  Use set_conflicts_p.
121         (mark_reg_store): Likewise.
122         (set_reg_in_live): Likewise.
123         (global_conflicts): Update uses of allocnos_live.
124         Use the new adjacency list to visit an allocno's neighbors
125         rather than iterating over all possible allocnos.
126         Call set_conflicts_p to setup conflicts rather than adding
127         them manually.
128         * global.c: Comments updated.  
129         (CONFLICTP): Delete define.
130         (regno_compare): New function.  Add prototype.
131         (global_alloc): Sort the allocno to regno mapping according to
132         which basic blocks the regnos are referenced in.  Modify the
133         conflict bit matrix to a compressed triangular bitmatrix.
134         Only allocate the conflict bit matrix and adjacency lists if
135         we are actually going to allocate something.
136         (expand_preferences): Use conflict_p.  Update uses of allocnos_live.
137         (prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
138         allocno's neighbors rather than iterating over all possible allocnos.
139         (mirror_conflicts): Removed function.
140         (dump_conflicts): Iterate over regnos rather than allocnos so
141         that all dump output will be sorted by regno number.
142         Use the FOR_EACH_CONFLICT macro.
143         * ra.h: Comments updated.
144         (conflicts): Update prototype to HOST_WIDEST_FAST_INT.
145         (partial_bitnum, max_bitnum, adjacency, adjacency_pool): Add prototypes.
146         (ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
147         (adjacency_list_d, adjacency_iterator_d): New types.
148         (add_neighbor, adjacency_iter_init, adjacency_iter_done,
149         adjacency_iter_next, regno_basic_block): New static inline functions.
150         (EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
151         (conflict_p): Add function prototype.
152         * sparseset.h, sparseset.c: New files.
153         * Makefile.in (OBJS-common): Add sparseset.o.
154         (sparseset.o): New rule.
155
156 2007-10-05  Richard Guenther  <rguenther@suse.de>
157
158         PR middle-end/33666
159         * fold-const.c (fold_unary): Do not fold (long long)(int)ptr
160         to (long long)ptr.
161
162 2007-10-05  Michael Matz  <matz@suse.de>
163
164         PR inline-asm/33600
165         * function.c (match_asm_constraints_1): Check for input
166         being used in the outputs.
167
168 2007-10-05  Richard Guenther  <rguenther@suse.de>
169
170         * tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
171
172 2007-10-05  Richard Sandiford  <rsandifo@nildram.co.uk>
173
174         PR target/33635
175         * config/mips/mips.c (mips_register_move_cost): Rewrite to use
176         subset checks.  Make the cost of FPR -> FPR moves depend on
177         mips_mode_ok_for_mov_fmt_p.
178
179 2007-10-04  Doug Kwan  <dougkwan@google.com>
180
181         * gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
182         __gthread_cond_wait_recursive): Add to extend interface for POSIX
183         conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
184         support of conditional variables.
185         * gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
186         __gthread_cond_wait_recursive): Add to extend interface for POSIX
187         conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
188         support of conditional variables.
189         * gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
190         __gthread_cond_wait_recursive): Add to extend interface for POSIX
191         conditional variables.
192         * gthr.h: Update comments to document new interface.
193
194 2007-10-04  Geoffrey Keating  <geoffk@apple.com>
195
196         * cgraphunit.c (cgraph_build_static_cdtor): Don't set
197         DECL_IGNORED_P.
198
199 2007-10-04  Anatoly Sokolov <aesok@post.ru>
200
201         * config/avr/avr.c (expand_epilogue): Don't set RTX_FRAME_RELATED_P.
202
203 2007-10-04  Richard Guenther  <rguenther@suse.de>
204
205         PR middle-end/33641
206         * tree-cfg.c (verify_gimple_expr): Operand one of POINTER_PLUS_EXPR
207         does not need to be of INTEGER_TYPE.
208         (verify_gimple_2): New function split out from ...
209         (verify_gimple_1): ... here.  ICE if there was an error during
210         verification.
211
212 2007-10-04  Michael Matz  <matz@suse.de>
213
214         PR rtl-optimization/33653
215         * dce.c (deletable_insn_p_1): Use volatile_refs_p().
216         * dse.c (scan_insn): Same.
217
218 2007-10-04  Kazu Hirata  <kazu@codesourcery.com>
219
220         * config.gcc: Remove USE_GAS for m68k targets.
221
222 2007-10-04  Richard Guenther  <rguenther@suse.de>
223
224         PR tree-optimization/33627
225         * tree-gimple.h (canonicalize_cond_expr_cond): Declare.
226         * tree-gimple.c (canonicalize_cond_expr_cond): New function,
227         split out from ...
228         * tree-ssa-forwprop.c (combine_cond_expr_cond): ... here.
229         * tree-ssa-ifcombine.c (ifcombine_iforif): Use it.
230
231 2007-10-04  Anatoly Sokolov <aesok@post.ru>
232
233         * config/avr/avr.c (commands_in_file, commands_in_prologues, 
234         commands_in_epilogues): Remove variables.
235         (avr_file_start): Remove unneded initializations of commands_in_file,
236         commands_in_prologues and commands_in_epilogues variables.
237         (avr_file_end): Remove dead code.
238
239 2007-10-04  Kazu Hirata  <kazu@codesourcery.com>
240
241         * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
242         MOTOROLA is to true.
243
244 2007-10-03  Richard Sandiford  <rsandifo@nildram.co.uk>
245
246         PR target/33635
247         * config/mips/mips-protos.h (mips_split_64bit_move): Rename to...
248         (mips_split_doubleword_move): ...this.
249         * config/mips/mips.c (mips_subword): Extend to handle 64-bit words;
250         use natural endianness for multi-format FPR values.
251         (mips_split_64bit_move): Rename to...
252         (mips_split_doubleword_move): ...this and extend to 64-bit words.
253         Use move_doubleword_fpr* patterns for moves involving FPRs.
254         (mips_save_reg): Update the call to mips_split_64bit_move.
255         (mips_secondary_reload_class): Return NO_REGS for any reload of a
256         nonzero constant into an FPR if the constant can be forced to memory.
257         * config/mips/mips.md: Update the splitter calls to
258         mips_split_64bit_move.
259         (UNSPEC_LOAD_DF_LOW): Rename to...
260         (UNSPEC_LOAD_LOW): ...this.
261         (UNSPEC_LOAD_DF_HIGH): Rename to...
262         (UNSPEC_LOAD_HIGH): ...this.
263         (UNSPEC_STORE_DF_HIGH): Rename to...
264         (UNSPEC_STORE_WORD): ...this.
265         (SPLITF): New mode iterator.
266         (HALFMODE): New mode attribute.
267         (movtf): New expander.
268         (*movtf_internal): New define_insn_and_split.
269         (move_doubleword_fpr<mode>): New expander.
270         (load_df_low, load_df_high, store_df_high, mthc1, mfhc1): Replace
271         with...
272         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
273         (mfhc1<mode>): ...these more general patterns.
274
275 2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
276
277         * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
278
279 2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
280
281         * gcse.c (hash_scan_set): Insert set in insn before note at
282         the end of basic block.
283
284 2007-10-03  Sebastian Pop  <sebastian.pop@amd.com>
285
286         PR tree-optimization/33576
287         * testsuite/gcc.dg/tree-ssa/pr33576.c: New.
288         * tree-loop-linear.c (linear_transform_loops): Call remove_iv.
289         * lambda.h (lambda_loopnest_to_gcc_loopnest): New parameter.
290         (remove_iv): Declared.
291         * lambda-code.c (remove_iv): Not static.
292         (lambda_loopnest_to_gcc_loopnest): New parameter remove_ivs.
293         Don't remove ivs there, save ivs in the buffer.
294
295 2007-10-03  Jason Merrill  <jason@redhat.com>
296
297         PR c++/15764
298         * tree-eh.c (same_handler_p): New fn.
299         (optimize_double_finally): New fn.
300         (refactor_eh_r): New fn.
301         (refactor_eh): New fn.
302         (pass_refactor_eh): New pass.
303         * tree-pass.h: Declare it.
304         * passes.c (init_optimization_passes): Add it.
305
306 2007-10-03  Doug Kwan  <dougkwan@google.com>
307         Richard Guenther  <rguenther@suse.de>
308
309         PR debug/31899
310         * dwarf2out.c (reference_to_unused): Disable sanity checking,
311         be conservative instead.
312
313 2007-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
314
315         PR fortran/26682
316         * doc/invoke.texi (-fwhole-program): Document that Fortran
317         doesn't support this option.
318
319 2007-10-02  Richard Sandiford  <rsandifo@nildram.co.uk>
320
321         PR middle-end/33617
322         * expr.c (expand_expr_addr_expr_1): Pass CONSTRUCTORs to
323         expand_expr.
324
325 2007-10-02  David Daney  <ddaney@avtrex.com>
326
327         * config/mips/mips.md (sync_compare_and_swap<mode>): Handle compare
328         against constant zero.
329         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP):  Handle constant zero
330         operand.
331
332 2007-09-02  Kenneth Zadeck <zadeck@naturalbridge.com>
333
334         * ra-conflict.c: New file.
335         * ra.h: New file.
336         * reload.c (push_reload, find_dummy_reload): Change DF_RA_LIVE
337         usage to DF_LIVE usage.
338         * rtlanal.c (subreg_nregs_with_regno): New function.  
339         * df-scan.c (df_def_record_1, df_uses_record): Add code to set
340         DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, and DF_REF_SUBREG flags.
341         (df_has_eh_preds): Removed.
342         (df_bb_refs_collect, df_bb_refs_collect, df_bb_refs_collect,
343         df_exit_block_uses_collect): Changed call from df_has_eh_preds to
344         bb_has_eh_pred.
345         * global.c (allocno, max_allocno, conflicts, allocno_row_words,
346         reg_allocno, EXECUTE_IF_SET_IN_ALLOCNO_SET): Moved to ra.h
347         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Moved to ra-conflicts.c.
348         (regs_set, record_one_conflict, record_conflicts, mark_reg_store,
349         mark_reg_clobber, mark_reg_conflicts, mark_reg_death): Deleted.
350         (global_alloc): Turn off rescanning insns after call to
351         global_conflicts and added call to set_preferences.
352         (global_conflicts): Moved to ra-alloc.c.
353         (set_preferences_1, set_preferences): New function.
354         (mirror_conflicts): Changed types for various variables.
355         (mark_elimination): Change DF_RA_LIVE
356         usage to DF_LIVE usage.
357         (build_insn_chain): Rewritten from scratch and made local.
358         (print_insn_chain, print_insn_chains): New functions.
359         (dump_conflicts): Do not print conflicts for fixed_regs.
360         (rest_of_handle_global_alloc): Turn off insn rescanning.
361         * hard-reg-set.h: Fixed comment.
362         * local-alloc.c (update_equiv_regs): Change DF_RA_LIVE
363         usage to DF_LIVE usage and delete refs to TOP sets.
364         (block_alloc): Mark regs as live if they are in the artificial
365         defs at top of block.
366         (find_stack_regs): New function.
367         (rest_of_handle_local_alloc): Changed urec problem to live
368         problem and do not turn off df rescanning.
369         * df.h (DF_UREC, DF_UREC_BB_INFO, DF_LIVE_TOP, DF_RA_LIVE_IN,
370         DF_RA_LIVE_TOP, DF_RA_LIVE_OUT, df_urec_bb_info, df_urec,
371         df_urec_add_problem, df_urec_get_bb_info, df_has_eh_preds): Removed.
372         (DF_CHAIN, DF_NOTE, DF_CHAIN): Renumbered.
373         (DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, DF_REF_SUBREG): New
374         fields in df_ref_flags.  The rest have been renumbered.  
375         * init-regs.c (initialize_uninitialized_regs): Enhanced debugging
376         at -O1.
377         * rtl.h (subreg_nregs_with_regno): New function.
378         * df-problems.c: (df_get_live_out, df_get_live_in,
379         df_get_live_top): Removed reference to DF_RA_LIVE.
380         (df_lr_reset, df_lr_transfer_function, df_live_free_bb_info,
381         df_live_alloc, df_live_reset, df_live_local_finalize,
382         df_live_free): Make top set only if different from in set.
383         (df_lr_top_dump, df_live_top_dump): Only print top set if
384         different from in set.
385         (df_lr_bb_local_compute): Removed unnecessary check.
386         (df_urec_problem_data, df_urec_set_bb_info, df_urec_free_bb_info, 
387         df_urec_alloc, df_urec_mark_reg_change, earlyclobber_regclass, 
388         df_urec_check_earlyclobber, df_urec_mark_reg_use_for_earlyclobber,
389         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
390         df_urec_local_compute, df_urec_init, df_urec_local_finalize, 
391         df_urec_confluence_n, df_urec_transfer_function, df_urec_free, 
392         df_urec_top_dump, df_urec_bottom_dump, problem_UREC,
393         df_urec_add_problem): Removed.
394         (df_simulate_fixup_sets): Changed call from df_has_eh_preds to
395         bb_has_eh_pred. 
396         * Makefile.in (ra-conflict.o, ra.h): New dependencies.
397         * basic_block.h (bb_has_abnormal_pred): New function.
398         * reload1.c (compute_use_by_pseudos): Change DF_RA_LIVE
399         usage to DF_LIVE usage.
400         
401 2007-10-02  Revital Eres  <eres@il.ibm.com>
402
403         * config/rs6000/predicates.md (easy_vector_constant): Return false
404         for 750CL paired vectors.
405         * config/rs6000/paired.md (movv2sf_paired): Fix move of easy
406         vector constant.
407         (vec_initv2sf): Add new description.
408         (vconcatsf): Likewise.
409         * config/rs6000/rs6000-protos.h: Declare paired_expand_vector_init.
410         * config/rs6000/rs6000.c (paired_expand_vector_init): New function.
411
412 2007-10-01  Alexandre Oliva  <aoliva@redhat.com>
413
414         * tree-ssa-sink.c (sink_code_in_bb): Don't stop sinking after
415         sinking the last stmt in a BB.
416
417 2007-10-01  Alexandre Oliva  <aoliva@redhat.com>
418
419         PR middle-end/22156
420         * tree-sra.c (struct sra_elt): Add in_bitfld_block.
421         (sra_hash_tree): Handle BIT_FIELD_REFs.
422         (sra_elt_hash): Don't hash bitfld blocks.
423         (sra_elt_eq): Skip them in parent compares as well.  Handle
424         BIT_FIELD_REFs.
425         (build_element_name_1): Handle BIT_FIELD_REFs.
426         (instantiate_element): Propagate nowarn from parents.  Create
427         BIT_FIELD_REF for variables that are widened by scalarization.
428         Gimple-zero-initialize all bit-field variables that are not
429         part of parameters that are going to be scalarized on entry.
430         (instantiate_missing_elements_1): Return the sra_elt.
431         (canon_type_for_field): New.
432         (try_instantiate_multiple_fields): New.  Infer widest possible
433         access mode from decl or member type, but clip it at word
434         size, and only widen it if a field crosses an alignment
435         boundary.
436         (instantiate_missing_elements): Use them.
437         (generate_one_element_ref): Handle BIT_FIELD_REFs.
438         (scalar_bitfield_p): New.
439         (sra_build_assignment): Optimize assignments from scalarizable
440         BIT_FIELD_REFs.  Use BITS_BIG_ENDIAN to determine shift
441         counts.
442         (REPLDUP): New.
443         (sra_build_bf_assignment): New.  Optimize assignments to
444         scalarizable BIT_FIELD_REFs.
445         (sra_build_elt_assignment): New.  Optimize BIT_FIELD_REF
446         assignments to full variables.
447         (generate_copy_inout): Use the new macros and functions.
448         (generate_element_copy): Likewise.  Handle bitfld differences.
449         (generate_element_zero): Don't recurse for blocks.  Use
450         sra_build_elt_assignment.
451         (generate_one_element_init): Take elt instead of var.  Use
452         sra_build_elt_assignment.
453         (generate_element_init_1): Adjust.
454         (bitfield_overlap_info): New struct.
455         (bitfield_overlaps_p): New.
456         (sra_explode_bitfield_assignment): New.  Adjust widened
457         variables to account for endianness.
458         (sra_sync_for_bitfield_assignment): New.
459         (scalarize_use): Re-expand assignment to/from scalarized
460         BIT_FIELD_REFs.  Explode or sync needed members for
461         BIT_FIELD_REFs accesses or assignments.  Use REPLDUP.
462         (scalarize_copy): Use REPLDUP.
463         (scalarize_ldst): Move assert before dereference.  Adjust EH
464         handling.
465         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
466
467 2007-10-01  Paolo Bonzini  <bonzini@gnu.org>
468
469         * simplify-rtx.c (comparison_result, simplify_relational_operation_1):
470         Rename CR_* constants to CMP_*.  Fix spacing.
471
472 2007-10-01  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
473
474         PR other/33585
475         * Makefile.in (build_html_dir/gccinstall): gccinstall.texi needs
476         to be processed with the special script doc/install.texi2html.
477         
478 2007-09-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
479
480         * doc/invoke.texi (Wall): List the options enabled by Wall.
481         (Wstrict-aliasing): Add missing @option.
482         
483 2007-09-30  Richard Sandiford  <rsandifo@nildram.co.uk>
484
485         * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
486         rather than gen_lowpart to change a register from DImode to DFmode.
487         (mips_cannot_change_mode_class): Only allow FPRs to change mode if
488         both FROM and TO are integer modes that are no bigger than 4 bytes.
489         (mips_mode_ok_for_mov_fmt_p): New function.
490         (mips_preferred_reload_class): Use it instead of FLOAT_MODE_P.
491         (mips_secondary_reload_class): Tweak formatting and comments.
492         Use reg_class_subset_p instead of direct comparisons with
493         classes.  Only allow direct FPR<->FPR moves for modes that
494         satisfy mips_mode_ok_for_mov_fmt_p.  Only allow loads and stores
495         for 4- and 8-byte types.  Handle reloads in which X is an FPR.
496         * config/mips/mips.md (*movdi_gp32_fp64): Remove f<-f alternative.
497         (*movdi_64bit): Likewise.
498         (*movsi_internal): Likewise.
499         (*movhi_internal): Likewise.
500         (*movqi_internal): Likewise.
501
502 2007-09-30  Diego Novillo  <dnovillo@google.com>
503
504         PR 33593
505         * tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
506         throw an exception.
507
508 2007-09-30  Uros Bizjak  <ubizjak@gmail.com>
509
510         PR tree-optimization/33597
511         * tree-vect-analyze.c (vect_build_slp_tree): Check if optab handler
512         for LSHIFT_EXPR and RSHIFT_EXPR is available for vec_mode.
513
514 2007-09-28  Uros Bizjak  <ubizjak@gmail.com>
515
516         * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
517         instead of variants of (!reload_in_progress && !reload_completed).
518         (x86_expand_vector_move): Ditto.
519
520 2007-09-28  Ollie Wild  <aaw@google.com>
521
522         Revert
523         2007-09-27  Ollie Wild  <aaw@google.com>
524
525         * varasm.c (compare_constant): Removed call to
526         lang_hooks.expand_constant.
527         (copy_constants): Removed call to lang_hooks.expand_constant.
528         (compute_reloc_for_constant): Removed call to
529         lang_hooks.expand_constant.
530         (output_addressed_constants): Removed call to
531         lang_hooks.expand_constant.
532         (constructor_static_from_elts_p): Removed call to
533         lang_hooks.expand_constant.
534         (output_constant): Removed calls to lang_hooks.expand_constant.
535         * langhooks.h (struct lang_hooks): Removed field expand_constant.
536         * langhooks-def.h (lhd_return_tree): Removed.
537         (LANG_HOOKS_EXPAND_CONSTANT): Removed.
538         (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
539         * langhooks.c (lhd_return_tree): Removed.
540
541 2007-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
542
543         PR target/33347
544         * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
545         argument to gen_selb.
546
547 2007-09-28  Chao-ying Fu  <fu@mips.com>
548
549         * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
550         * doc/libgcc.texi (Fixed-point fractional library routines):
551         Fix typos for neg and cmp functions.
552
553 2007-09-28  Michael Matz  <matz@suse.de>
554
555         PR rtl-optimization/33552
556         * function.c (match_asm_constraints_1): Check for overlap in
557         inputs and replace all occurences.
558
559 2007-09-28  Richard Sandiford  <rsandifo@nildram.co.uk>
560
561         * config/mips/mips.c (override_options): Fix comment typo.
562
563 2007-09-28  Jie Zhang  <jie.zhang@analog.com>
564
565         * config.gcc (bfin*-linux-uclibc*): Set extra_parts
566         to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
567         * config/bfin/t-bfin-linux (crti.o): Don't build.
568         (crtn.o): Likewise.
569         (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
570         * config/bfin/t-bfin-uclinux (crti.o): Don't build.
571         (crtn.o): Likewise.
572         (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
573
574 2007-09-27  Ollie Wild  <aaw@google.com>
575
576         * varasm.c (compare_constant): Removed call to
577         lang_hooks.expand_constant.
578         (copy_constants): Removed call to lang_hooks.expand_constant.
579         (compute_reloc_for_constant): Removed call to
580         lang_hooks.expand_constant.
581         (output_addressed_constants): Removed call to
582         lang_hooks.expand_constant.
583         (constructor_static_from_elts_p): Removed call to
584         lang_hooks.expand_constant.
585         (output_constant): Removed calls to lang_hooks.expand_constant.
586         * langhooks.h (struct lang_hooks): Removed field expand_constant.
587         * langhooks-def.h (lhd_return_tree): Removed.
588         (LANG_HOOKS_EXPAND_CONSTANT): Removed.
589         (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
590         * langhooks.c (lhd_return_tree): Removed.
591
592 2007-09-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
593
594         PR middle-end/33436
595         * expr.c (emit_group_load_1): Split constant double when destination
596         length is half source length.
597
598 2007-09-27  Richard Sandiford  <rsandifo@nildram.co.uk>
599
600         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
601         (mips_cpu_info): Add tune_flags.
602         (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
603         * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
604         Remove end marker.
605         (override_options): Remove deprecation code.  Use branch-likely
606         instructions for optimize_size or if the tuning flags do not
607         suggest otherwise.  Tweak warning.
608         (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
609
610 2007-09-27  Matthias Klose  <doko@ubuntu.com>
611
612         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
613         multilib osdirname if it exists.
614         * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
615
616 2007-09-27  Ian Lance Taylor  <iant@google.com>
617
618         PR tree-optimization/33565
619         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
620         assignments of comparisons.
621         * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
622         parameter.  Change caller.  Defer overflow warnings around call to
623         fold_binary.
624         * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
625         TREE_NO_WARNING is set on the statement.
626         * tree-ssa-forwprop.c
627         (tree_ssa_forward_propagate_single_use_vars): Don't test
628         TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
629         * tree-cfg.c (fold_cond_expr_cond): Likewise.
630
631 2007-09-27  Joseph Myers  <joseph@codesourcery.com>
632
633         * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
634         reduce offset by units of 0x10000 for SPE vector modes or modes
635         used with E500 double instructions.
636
637 2007-09-04  Paolo Bonzini  <bonzini@gnu.org>
638
639         * simplify-rtx.c (comparison_result): New.
640         (simplify_const_relational_operation): Use it instead of the five
641         "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
642         Improve bounds-checking optimizations; remove subsumed POPCOUNT
643         optimizations.  Extract nonzero_address_p optimizations into a
644         separate "if" together with optimizations where op1 is const0_rtx.
645         Optimize comparing an IOR with zero.  Simplify op0 RELOP op0 for
646         floating-point arguments too when appropriate.  Hoist test for ABS
647         outside the final switch statement.
648         * cse.c (fold_rtx): Don't look for an IOR equivalent of
649         folded_arg0 if we found a constant equivalent.  Remove
650         transformations done in simplify-rtx.c for "op0 RELOP op0".
651
652 2007-09-27  Jakub Jelinek  <jakub@redhat.com>
653
654         * builtins.c (expand_builtin, expand_builtin_object_size,
655         expand_builtin_memory_chk, maybe_emit_chk_warning,
656         maybe_emit_sprintf_chk_warning): Use new %K format string specifier
657         for diagnostics.
658         * expr.c (expand_expr_real_1): Likewise.
659         * langhooks-def.h (struct diagnostic_info): Add forward decl.
660         (lhd_print_error_function): Add third argument.
661         * langhooks.h (struct diagnostic_info): Add forward decl.
662         (struct lang_hooks): Add third argument to print_error_function.
663         * diagnostic.h (diagnostic_info): Add abstract_origin field.
664         (diagnostic_last_function_changed, diagnostic_set_last_function): Add
665         second argument.
666         (diagnostic_report_current_function): Likewise.
667         * toplev.c (announce_function): Pass NULL as second argument to
668         diagnostic_set_last_function.
669         * diagnostic.c (diagnostic_report_current_function): Add second
670         argument, pass it as third argument to lang_hooks.print_error_function.
671         (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
672         to diagnostic_report_current_function.
673         (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
674         and message.abstract_origin.
675         (verbatim): Initialize abstract_origin.
676         * pretty-print.h (text_info): Add abstract_origin field.
677         * pretty-print.c (pp_base_format): Handle %K.
678         * langhooks.c (lhd_print_error_function): Add third argument.  If
679         diagnostic->abstract_origin, print virtual backtrace.
680         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
681         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
682         (init_dynamic_diag_info): Likewise.
683
684 2007-09-26  David Daney  <ddaney@avtrex.com>
685
686         PR target/33479
687         * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
688         sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
689         sync_old_nand<mode>, sync_new_nand<mode>,
690         sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
691         Update length attributes.
692         (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
693         sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
694         length attributes.
695         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
696         MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
697         MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
698         post-loop sync.
699
700 2007-09-26  Richard Guenther  <rguenther@suse.de>
701
702         PR tree-optimization/33563
703         * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
704         (get_kill_of_stmt_lhs): ... this.  Re-structure.  Handle
705         aggregate stores.
706         (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
707         get_use_of_stmt_lhs.
708
709 2007-09-26  Joseph Myers  <joseph@codesourcery.com>
710
711         PR c/25309
712         * c-common.c (complete_array_type): Diagnose too-large arrays and
713         set type to error_mark_node.
714
715 2007-09-26  Richard Guenther  <rguenther@suse.de>
716
717         PR tree-optimization/30375
718         PR tree-optimization/33560
719         * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
720         with calls.
721
722         Revert
723         2006-05-22  Aldy Hernandez  <aldyh@redhat.com>
724
725         * tree-ssa-dse.c (aggregate_vardecl_d): New.
726         (dse_global_data): Add aggregate_vardecl field.
727         (dse_possible_dead_store_p): New.
728         Add prev_defvar variable.
729         Allow immediate uses and previous immediate uses to differ
730         if they are setting different parts of the whole.
731         (get_aggregate_vardecl): New.
732         (dse_record_partial_aggregate_store): New.
733         (dse_whole_aggregate_clobbered_p): New.
734         (dse_partial_kill_p): New.
735         Call dse_maybe_record_aggregate_store().
736         When checking whether a STMT and its USE_STMT refer to the
737         same memory address, check also for partial kills that clobber
738         the whole.
739         Move some variable definitions to the block where they are used.
740         (aggregate_vardecl_hash): New.
741         (aggregate_vardecl_eq): New.
742         (aggregate_vardecl_free): New.
743         (aggregate_whole_store_p): New.
744         (tree_ssa_dse): Initialize and free aggregate_vardecl.
745         Mark which aggregate stores we care about.
746
747 2007-09-25  DJ Delorie  <dj@redhat.com>
748
749         PR target/33551
750         * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
751         XINT.
752
753 2007-09-25  Michael Meissner  <michael.meissner@amd.com>
754
755         PR target/33524
756         * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
757         gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
758         for vector int32 -> int64 conversions.  Don't write beyond the end
759         of the allocated vector for int32 -> int64 conversions.
760
761 2007-09-25  Revital Eres  <eres@il.ibm.com>
762
763         * config/rs6000/paired.h (paired_sel): New.
764         * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
765         (rs6000_expand_ternop_builtin): Pass zero const_double operand
766         when expanding selv2sf.
767         * config/rs6000/rs6000.h (rs6000_builtins): Add
768         PAIRED_BUILTIN_SELV2SF4.
769
770 2007-09-25  Joseph Myers  <joseph@codesourcery.com>
771
772         PR c/32295
773         * c-typeck.c (default_conversion): Call require_complete_type
774         before perform_integral_promotions.
775         (build_unary_op): Call require_complete_type except for ADDR_EXPR.
776         (build_c_cast): Call require_complete_type except for casts to
777         void types.
778         (convert_for_assignment): Call require_complete_type.
779
780 2007-09-25  Revital Eres  <eres@il.ibm.com>
781
782         * config/spu/spu.md: Fix doloop pattern.
783
784 2007-09-25  Bernd Schmidt  <bernd.schmidt@analog.com>
785
786         * config/bfin/bfin.c (expand_prologue_reg_save,
787         expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs and
788         ASTAT moved here...
789         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
790         ... from here.  New argument ALL; callers changed.
791         (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
792         (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
793         have the "saveall" attribute.
794
795 2007-09-25  Hans-Peter Nilsson  <hp@bitrange.com>
796
797         * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
798         bogus target macro.
799         (INCOMING_REGNO, OUTGOING_REGNO): Define.
800         * config/mmix/mmix.c (mmix_opposite_regno): New function.
801         * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
802
803         * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
804         with REG_P tests before REGNO access.
805
806 2007-09-24  DJ Delorie  <dj@redhat.com>
807
808         PR target/31482
809         * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
810         constraint.
811         (movqicc_<code>_<mode>): Likewise.
812         (movhicc_<code>_<mode>): Likewise.
813
814 2007-09-24  Rask Ingemann Lambertsen  <rask@sygehus.dk>
815
816         PR target/33184
817         * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
818         register for reload.
819
820 2007-09-24  Danny Smith  <dannysmith@user.sourceforge.net>
821
822         PR c++/14688
823         * config/i386/i386.c (ix86_comp_type_attributes): Check
824         METHOD_TYPE too.
825
826 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
827
828         * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
829         "move.l %a4,%a4" to produce nops.
830         * config/m68k/m68k.c (override_options): Reset align options,
831         if neccessary align macro isn't avaible.
832
833 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
834
835         config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
836
837 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
838
839         * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
840         the basic block.
841         * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
842         reload is completed.
843         (peephole pattern): Convert most of them to RTL peephole pattern.
844
845 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
846
847         * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
848         (moved from fp compare patterns).
849         * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
850         Cleanup predicates to relieve reload.
851         (conditional_trap): Reject conditional trap with fp condition.
852         * gcc/config/m68k/predicates.md (fp_src_operand): New, reject
853         certain constants early.
854
855 2007-09-24  Roman Zippel <zippel@linux-m68k.org>
856
857         * gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
858
859 2007-09-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
860
861         * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
862         Allow --with-tune=cell and --with-cpu=cell.
863
864 2007-09-24  David Edelsohn  <edelsohn@gnu.org>
865
866         * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
867         * config/rs6000/rs6000.opt (swdiv): Change option to ...
868         (recip): this.
869         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
870         function.
871         (TARGET_BUILTIN_RECIPROCAL): Use it.
872         (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
873         (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
874         (rs6000_emit_swrsqrtsf): New.
875         * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
876         rsqrtf. 
877         * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
878         (divsf3): Remove swdiv support.
879         (recipsf3): New.
880         (rsqrtsf2): New.
881         (rsqrt_internal1): New.
882         (divdf3): Remove swdiv support.
883         (reciptdf3): New.
884
885 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
886
887         PR c++/33506
888         * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
889         field.
890         * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
891         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
892         * tree.c (type_hash_eq): For FUNCTION_TYPE use
893         lang_hooks.type.type_hash_eq in addition to generic tests.
894
895 2007-09-24  Pranav Bhandarkar  <pranav.bhandarkar@celunite.com>
896         Ramana Radhakrishnan  <ramana@hercules.pun.celunite.com>
897
898         * tree-inline.h (eni_weights): Add field target_builtin_cost to
899         reflect the cost per call to a target specific builtin.
900         * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
901         call to a target specific builtin, then use target_builtin_call_cost.
902         (init_inline_once): Initialize target_builtin_call_cost field.
903
904 2007-09-24  Kai Tietz  <kai.tietz@onevision.com>
905
906         PR middle-end/33472
907         * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
908         complex types.
909
910 2007-09-23  H.J. Lu  <hongjiu.lu@intel.com>
911
912         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
913         * configure: Regenerated.
914
915 2007-09-23  Ollie Wild  <aaw@google.com>
916
917         * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
918         operand.
919         (get_pointer_modulus_and_residue): New function.
920
921 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
922
923         * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
924         combine an SC return value into a single register.
925
926 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
927
928         * opth-gen.awk (target_flags_explicit): Declare.
929         * toplev.h (target_flags_explicit): Delete declaration.
930         * toplev.c (target_flags): Likewise.
931         * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
932         (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
933         Never return true for TARGET_MIPS16.
934         * config/mips/mips.c (mips_llsc): Delete.
935         (mips_handle_option): Remove -mllsc handling.
936         (mips_strip_unspec_address): Tweak comment.
937         * config/mips/mips.opt (mllsc): Use a target mask.
938
939 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
940
941         * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
942         word_mode as well as Pmode.
943
944 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
945
946         * function.c (assign_parm_setup_block): Explicitly convert BLKmode
947         parameters from word_mode to the subword type if such a truncation
948         is not a no-op.
949
950 2007-09-23  Jakub Jelinek  <jakub@redhat.com>
951
952         * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
953         * configure: Regenerated.
954
955 2007-09-23  Jan Hubicka  <jh@suse.cz>
956
957         * params.def (INLINE_CALL_COST): Set to 12.
958         * invoke.texi (inline-call-cost): Update default value.
959
960 2007-09-23  Eric Botcazou  <ebotcazou@adacore.com>
961
962         * config/alpha/alpha.md (movti): Use operand_subword for the split.
963
964 2007-09-23  Ayal Zaks  <zaks@il.ibm.com>
965             Revital Eres  <eres@il.ibm.com>
966
967         * modulo-sched.c (doloop_register_get): Rewrite the loop which
968         checks whether the count_reg is found outside the control part.
969
970 2007-09-23  Jakub Jelinek  <jakub@redhat.com>
971
972         * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
973         instead of checking CALL_EXPR_FN directly to test for builtins.
974         If error or warning attributes are present, print
975         error resp. warning.
976         * c-common.c (handle_error_attribute): New function.
977         (c_common_attribute_table): Add error and warning
978         attributes.
979         * doc/extend.texi: Document error and warning attributes.
980
981         * tree.h (block_nonartificial_location): New prototype.
982         * tree.c (block_nonartificial_location): New function.
983         * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
984         if artificial attribute is present on abstract inline decl.
985         * c-common.c (handle_artificial_attribute): New function.
986         (c_common_attribute_table): Add artificial attribute.
987         * final.c (override_filename, override_linenum): New variables.
988         (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
989         and override_linenum if inside of a block inlined from
990         __attribute__((__artificial__)) function.
991         (notice_source_line): Honor override_filename and override_linenum.
992         * doc/extend.texi: Document __attribute__((__artificial__)).
993         * config/i386/emmintrin.h: Add __artificial__ attribute to
994         all __always_inline__ functions.
995         * config/i386/mmintrin.h: Likewise.
996         * config/i386/tmmintrin.h: Likewise.
997         * config/i386/mm3dnow.h: Likewise.
998         * config/i386/pmmintrin.h: Likewise.
999         * config/i386/ammintrin.h: Likewise.
1000         * config/i386/xmmintrin.h: Likewise.
1001         * config/i386/smmintrin.h: Likewise.
1002         * config/i386/bmmintrin.h: Likewise.
1003         * config/i386/mmintrin-common.h: Likewise.
1004
1005         PR middle-end/28755
1006         * expr.c (expand_constructor): New function.
1007         (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
1008         (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
1009         CONSTRUCTOR.
1010
1011 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
1012
1013         * config/mips/mips.c (dump_constants_1): Generalize to include
1014         fractional and accumulator modes.
1015
1016 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
1017
1018         * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
1019         * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
1020         flags for MIPS16.
1021         (override_options): Check TARGET_HARD_FLOAT_ABI instead of
1022         TARGET_HARD_FLOAT when testing whether -mpaired-single is
1023         supported.
1024         (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
1025         TARGET_DSP.
1026         * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
1027         TARGET_DSPR2.
1028         * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
1029         (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
1030         TARGET_HARD_FLOAT.
1031         (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
1032         ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
1033         * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
1034         throughout.
1035         * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
1036         TARGET_HAS_DSPR2.
1037         * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
1038         instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
1039         * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
1040
1041 2007-09-22  Jason Merrill  <jason@redhat.com>
1042
1043         PR c++/19407
1044         * attribs.c (lookup_attribute_spec): Split out...
1045         (decl_attributes): From here.
1046         * tree.h: Declare it.
1047
1048 2007-09-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1049
1050         * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
1051
1052 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1053
1054         * tree-inline.c (remap_type_1): Correctly chain variants.
1055
1056 2007-09-22  Richard Guenther  <rguenther@suse.de>
1057
1058         PR tree-optimization/33146
1059         * fold-const.c (fold_binary): Use the original tree
1060         for negating.
1061         * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
1062         also changes "sign".
1063
1064 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1065
1066         PR target/32325
1067         * except.c (finish_eh_generation): Call commit_edge_insertions if
1068         there are insns queued on the entry edge.
1069         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
1070         the entry edge.
1071
1072 2007-09-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1073
1074         * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
1075
1076 2007-09-19  Michael Meissner  <michael.meissner@amd.com>
1077
1078         * gcc/config/i386/i386.c: Delete trailing whitespace.
1079         * gcc/config/i386/i386.h: Ditto.
1080         * gcc/config/i386/bmmintrin.h: Ditto.
1081         * gcc/config/i386/sync.md: Ditto.
1082         * gcc/config/i386/ppro.md: Ditto.
1083         * gcc/config/i386/mmx.md: Ditto.
1084         * gcc/config/i386/constraints.md: Ditto.
1085         * gcc/config/i386/sse.md: Ditto.
1086         * gcc/config/i386/athlon.md: Ditto.
1087         * gcc/config/i386/i386.md: Ditto.
1088
1089 2007-09-21  Richard Guenther  <rguenther@suse.de>
1090
1091         PR tree-optimization/33508
1092         * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
1093         quadratic loop by keeping a bitmap of variables we have
1094         to clobber all subvariables for.
1095         (set_initial_properties): Likewise.
1096
1097 2007-09-21  Richard Sandiford  <rsandifo@nildram.co.uk>
1098
1099         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
1100
1101 2007-09-20  Nigel Stephens  <nigel@mips.com>
1102             Chao-ying Fu  <fu@mips.com>
1103
1104         * c-decl.c (finish_declspecs): When _Sat is used without
1105         _Fract or _Accum, set the default type to cts_fract.
1106         This avoids a warning of "type defaults to int".
1107
1108 2007-09-20  Joseph Myers  <joseph@codesourcery.com>
1109
1110         * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
1111         bit-fields wider than one bit.
1112
1113 2007-09-20  Jakub Jelinek  <jakub@redhat.com>
1114
1115         PR debug/33316
1116         * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
1117         DECL_NAME.
1118         * dbxout.c (dbxout_type): Likewise.
1119
1120         PR c/33238
1121         PR c/27301
1122         * gimplify.c (gimplify_vla_decl): New function.
1123         (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
1124         Call it.
1125         (gimplify_target_expr): Handle variable length TARGET_EXPRs.
1126
1127 2007-09-20  Richard Sandiford  <rsandifo@nildram.co.uk>
1128
1129         * doc/invoke.texi (-minterlink-mips16): Document.
1130         * config/mips/mips.opt (minterlink-mips16): New option.
1131         * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
1132         -minterlink-mips16
1133
1134 2007-09-20  Joseph Myers  <joseph@codesourcery.com>
1135
1136         * doc/extend.texi (Attribute Syntax): Remove old speculative
1137         future direction.
1138
1139 2007-09-20  Mark Shinwell  <shinwell@codesourcery.com>
1140
1141         * combine.c: Include cgraph.h.
1142         (setup_incoming_promotions): Rework to allow more aggressive
1143         elimination of sign extensions when all call sites of the
1144         current function are known to lie within the current unit.
1145
1146 2007-09-20  Richard Sandiford  <rsandifo@nildram.co.uk>
1147
1148         * dse.c (find_shift_sequence): No-op rework of control flow.
1149
1150 2007-09-19  Richard Sandiford  <rsandifo@nildram.co.uk>
1151
1152         * config/mips/mips.c (build_mips16_call_stub): Tidy.  Fix second
1153         GPR for DCmode on 64-bit targets.  Remove redundant fallback.
1154
1155 2007-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1156
1157         * cfgexpand.c (dump_stack_var_partition): Use the correct
1158         index for the offset.
1159
1160 2007-09-19  Joseph Myers  <joseph@codesourcery.com>
1161
1162         * config/mips/sde.h: Switch to GPLv3.
1163
1164 2007-09-19  Eric Botcazou  <ebotcazou@adacore.com>
1165
1166         * tree-sra.c (decide_block_copy): Decide if there are groups.
1167
1168 2007-09-19  Roman Zippel <zippel@linux-m68k.org>
1169
1170         * config/m68k/m68k.c (output_move_himode): Remove jump table
1171         recognition.
1172         config/m68k/m68k.md (lea): Likewise.
1173         * config/m68k/m68k.c (print_operand_address): Use simple pc
1174         relative addressing.
1175
1176 2007-09-19  Bernd Schmidt  <bernd.schmidt@analog.com>
1177
1178         * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
1179         * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
1180         default definition.
1181         (asm_insn_count): Pass template as second argument to it.
1182         * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
1183         * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
1184         * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
1185         * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
1186         * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
1187         (sh_insn_length_adjustment): Pass template as second argument to it.
1188         * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
1189
1190         * config/bfin/bfin.md (define_asm_attributes): New.
1191
1192 2007-09-19  Jie Zhang  <jie.zhang@analog.com>
1193
1194         * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
1195         to tm_file.
1196         * config/bfin/print-sysroot-suffix.sh: New.
1197         * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
1198         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
1199         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1200         * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
1201         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
1202         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1203         * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
1204         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
1205         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1206         (linux-sysroot-suffix.h): New target.
1207         * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
1208         (mspecld-anomaly): Likewise.
1209         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
1210         (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
1211         BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
1212         BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
1213         (bfin_si_revision): Declare.
1214         (bfin_workarounds): Declare.
1215         (WA_SPECULATIVE_LOADS): Define.
1216         (ENABLE_WA_SPECULATIVE_LOADS): Define.
1217         (WA_SPECULATIVE_SYNCS): Define.
1218         (ENABLE_WA_SPECULATIVE_SYNCS): Define.
1219         * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
1220         (LIB_SPEC): Add %s to the linker scripts.
1221         Use proper linker script for bf522, bf525, bf527,
1222         bf538, bf539, bf542, bf544, bf548, and bf549.
1223         * config/bfin/bfin.c (bfin_si_revision): Define.
1224         (bfin_workarounds): Define.
1225         (struct bfin_cpu): New.
1226         (bfin_cpus): New.
1227         (bfin_handle_option): Handle silicon revision part of -mcpu option.
1228         (override_options): Set bfin_workarounds.
1229         (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
1230         ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
1231         ENABLE_WA_SPECULATIVE_LOADS.
1232         (bfin_reorg): Likewise.
1233         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1234         macros for bf522, bf525, bf527, bf538, bf539,
1235         bf542, bf544, bf548, and bf549.
1236         Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
1237         Don't define __ID_SHARED_LIB__ when -msep-data.
1238         (TARGET_DEFAULT): Define as 0.
1239         (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
1240         * doc/invoke.texi (Blackfin Options): Document silicon
1241         revision part of -mcpu option and it now accepts bf522, bf525,
1242         bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
1243
1244 2007-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1245
1246         * alias.c (memory_modified_1): Deconstify.
1247         (memory_modified_in_insn_p): Don't use const_note_stores.
1248         * rtl.h (const_note_stores): Delete.
1249         * rtlanal.c (const_note_stores): Likewise.
1250
1251 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
1252
1253         * dse.c (find_shift_sequence): Temporarily revert to forbidding
1254         word shifts.
1255
1256 2007-09-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1257
1258         PR target/33388
1259         PR target/33397
1260         * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
1261         (addsi_small_int): Likewise.
1262         (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
1263         (one_cmplsi2): Likewise.
1264         (negsi2): Delete.
1265         (enter_func): Expand insn using hard_frame_pointer_rtx and
1266         stack_pointer_rtx.
1267         (*enter_func): New.
1268         * config/fr30/fr30.c (fr30_expand_prologue): Check for
1269         hard_frame_pointer_rtx instead of using REGNO() check.
1270         Properly sign extend GEN_INT() argument.
1271
1272 2007-09-18  Roman Zippel <zippel@linux-m68k.org>
1273
1274         * config/m68k/m68k.c (override_options): Remove USE_GAS,
1275         use %. syntax.
1276         (output_dbcc_and_branch, output_scc_di): Replace all jbcc
1277         alternatives with just jcc.
1278         * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
1279         bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
1280         bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
1281         dbge_hi, dbge_si): Likewise.
1282
1283 2007-09-18  Roman Zippel <zippel@linux-m68k.org>
1284
1285         * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
1286         bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
1287         bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
1288         bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
1289         bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
1290
1291 2007-09-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
1292
1293         * config/m68k/m68k-devices.def (51qe): New device.
1294         * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit.  Add it
1295         to all uses of FL_FOR_isa_c for compatibility.
1296         (all_microarchs): Add cfv1 microarchitecture.
1297         (m68k_handle_option): Handle m51qe option.
1298         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
1299         (TUNE_CFV1): New macro.
1300         (enum uarch_type): Add ucfv1.
1301         * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
1302         
1303 2007-09-18  Richard Guenther  <rguenther@suse.de>
1304
1305         PR tree-optimization/31863
1306         * tree-ssa-structalias.c (create_variable_info_for): Always
1307         free the fieldstack.
1308
1309 2007-09-18  Dorit Nuzman  <dorit@il.ibm.com>
1310
1311         * opts.c (decode_options): Enable vectorization under -O3.
1312
1313 2007-09-18  Richard Guenther  <rguenther@suse.de>
1314
1315         PR tree-optimization/33340
1316         * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
1317         SSA_NAMEs that occur in abnormal PHI nodes.
1318
1319 2007-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1320
1321         * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
1322         Don't use const_get_call_expr_in.
1323         * tree-gimple.c (const_get_call_expr_in): Delete.
1324         * tree-gimple.h (const_get_call_expr_in): Likewise.
1325
1326 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
1327
1328         * df-scan.c (df_notes_rescan): Do nothing if the instruction does
1329         not yet have a basic block.
1330         * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
1331
1332 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
1333
1334         * config/mips/mips.c (mips_file_start): Add ".previous" directives
1335         to both ".section"s.
1336
1337 2007-09-17  Richard Sandiford  <rsandifo@nildram.co.uk>
1338
1339         * config/mips/mips.c (mips_output_mi_thunk): Use
1340         mips_function_ok_for_sibcall and const_call_insn_operand
1341         to determine if a direct sibcall is allowed.  Use
1342         mips_classify_symbol to determine a global pointer is needed.
1343
1344 2007-09-17  Richard Sandiford  <rsandifo@nildram.co.uk>
1345
1346         * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
1347
1348 2007-09-17  Chao-ying Fu  <fu@mips.com>
1349             Nigel Stephens  <nigel@mips.com>
1350
1351         * config/fixed-bit.h: New file.
1352         * config/fixed-bit.c: New file.
1353         * doc/libgcc.texi (Fixed-point fractional library routines): New node.
1354
1355 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
1356
1357         * c-format.h (format_kind_info): Add alloc_char field.
1358         * c-format.c (scanf_flag_specs): Add 'm'.
1359         (scanf_flag_pairs): Add 'a', 'm' pair.
1360         (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
1361         (format_types_orig): Add alloc_char fields.
1362         (check_format_info_main): Rename aflag to alloc_flag.
1363         Handle fki->alloc_char. modifier after width and before length
1364         modifiers.  Move FMT_FLAG_SCANF_A_KLUDGE handling before
1365         length modifiers as well.
1366         * config/sol2-c.c (solaris_format_types): Add alloc_char field.
1367
1368         PR middle-end/33423
1369         * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
1370         returned by build_call_expr.
1371
1372 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1373
1374         * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
1375         NULL for variable-sized records too.
1376         (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
1377
1378 2007-09-17  Tom Tromey  <tromey@redhat.com>
1379
1380         * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
1381         (c_builtin_function): Likewise.
1382         (grokdeclarator): Likewise.
1383
1384 2007-09-17  Zdenek Dvorak  <ook@ucw.cz>
1385
1386         PR rtl-optimization/26449
1387         * loop-invariant.c (move_invariant_reg): Do not use force_operand.
1388         (seq_insns_valid_p): Removed.
1389
1390 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1391
1392         * tree-nomudflap.c (gate_mudflap): New static function.
1393         (pass_mudflap_1): Use it as gate function.
1394         (pass_mudflap_2): Likewise.
1395
1396 2007-09-17  Jan Hubicka  <jh@suse.cz>
1397
1398         PR middle-end/33348
1399         PR target/33406
1400         * loop-invariant.c (move_invariant_reg): Unshare sequence.
1401
1402 2007-09-17  Victor Kaplansky  <victork@il.ibm.com>
1403
1404         PR tree-optimization/33319
1405         * tree-vect-analyze.c (vect_same_range_drs): New.
1406         (vect_vfa_range_equal): New.
1407         (vect_is_duplicate_ddr): Removed.
1408         (vect_mark_for_runtime_alias_test): Do not perform marking when
1409         optimizing for size or max_param for alias checking is zero.
1410         Move the function before vect_analyze_data_ref_dependence.
1411         (vect_analyze_data_ref_dependence): Add call to
1412         vect_mark_for_runtime_alias_test in two cases when dependence
1413         is not clear.
1414         (vect_analyze_data_ref_dependences): Do not call to
1415         vect_mark_for_runtime_alias_test.
1416         (vect_prune_runtime_alias_test_list): New.
1417         (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
1418         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
1419         Update vec_outside_cost.
1420         (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
1421         (vect_create_cond_for_alias_checks): Build the base address of data
1422         reference from DR_GROUP_FIRST_DR.
1423         (vect_loop_versioning): New.
1424         (vect_transform_loop): Add a call to vect_loop_versioning.
1425         Remove factored out code.
1426
1427 2007-09-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1428
1429         PR middle-end/33273
1430         * expr.c (store_expr): Call adjust_address to change mode of dest_mem
1431         to BLKmode.
1432
1433 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
1434
1435         * dse.c (find_shift_sequence): Allow word as well as subword shifts.
1436         Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
1437         Fix the call to insn_rtx_cost.  Skip access sizes that require a
1438         real truncation of the store register.  Use convert_move instead
1439         of gen_lowpart when narrowing the result.
1440         (replace_read): Use convert_move instead of gen_lowpart when
1441         narrowing the store rhs.
1442
1443 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
1444
1445         * config/mips/mips.md (SHORT): Fix long line.
1446         (SUBDI): New mode iterator.  Extend the shift-and-truncate insns
1447         to QImode and HImode.
1448
1449 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
1450
1451         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
1452
1453 2007-09-15  Zdenek Dvorak  <ook@ucw.cz>
1454
1455         * tree-parloops.c: New file.
1456         * tree-ssa-operands.h (free_stmt_operands): Declare.
1457         * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
1458         block.
1459         * tree-pass.h (pass_parallelize_loops): Declare.
1460         * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
1461         virtual operands.
1462         (build_omp_regions_1): Allow analysing just a single OMP region and
1463         its subregions.
1464         ( build_omp_regions_root, omp_expand_local): New functions.
1465         (build_omp_regions): Add argument to build_omp_regions_1 call.
1466         * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
1467         autoparallelization is run.
1468         * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
1469         * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
1470         pass_parallelize_loops): New.
1471         * common.opt (ftree-parallelize-loops): New.
1472         * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
1473         parallelize_loops): Declare.
1474         (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
1475         * Makefile.in (tree-parloops.o): Added.
1476         * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
1477         New functions.
1478         (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
1479         (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
1480         one extra edge as well.
1481         (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
1482         Use VEC_free to free doms vector.
1483         (move_block_to_fn): Update loop info. Remove phi nodes for virtual
1484         operands.  Recompute operand caches in the new function.
1485         (move_sese_region_to_fn): Update loop info.
1486         * passes.c (init_optimization_passes): Add pass_parallelize_loops.
1487         * tree-ssa-operands.c (free_stmt_operands): New function.
1488
1489         * doc/passes.texi: Document autoparallelization.
1490         * doc/invoke.texi (-ftree-parallelize-loops): New option.
1491
1492 2007-09-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1493
1494         PR target/33062
1495         * pa.c (function_value): Use GET_MODE_BITSIZE instead of
1496         TYPE_PRECISION.
1497
1498 2007-09-15  Dorit Nuzman  <dorit@il.ibm.com>
1499
1500         * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if 
1501         the VEC is not NULL.
1502         (vectorizable_type_demotion, vectorizable_type_promotion): Check that 
1503         get_vectype_for_scalar_type succeeded.
1504         (vectorizable_conversion): Likewise.
1505
1506 2007-09-14  Jan Hubicka  <jh@suse.cz>
1507
1508         * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
1509         TARGET_64BIT.
1510
1511 2007-09-14  Uros Bizjak  <ubizjak@gmail.com>
1512
1513         PR target/33438
1514         * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
1515         register when operands[2] equals operands[1].
1516         (remainderxf3): Ditto.
1517
1518 2007-09-14  Sandra Loosemore  <sandra@codesourcery.com>
1519             Nigel Stephens  <nigel@mips.com>
1520
1521         * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
1522         * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
1523         (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
1524         declaration.
1525         (_Unwind_ForcedUnwind): Likewise.
1526         (_Unwind_Resume): Likewise.
1527         (_Unwind_Resume_or_Rethrow): Likewise.
1528         (_Unwind_Backtrace): Likewise.
1529         (_Unwind_SjLj_RaiseException): Likewise.
1530         (_Unwind_SjLj_ForcedUnwind): Likewise.
1531         (_Unwind_SjLj_Resume): Likewise.
1532         (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
1533         * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
1534         to definition.
1535         (_Unwind_ForcedUnwind): Likewise.
1536         (_Unwind_Resume): Likewise.
1537         (_Unwind_Resume_or_Rethrow): Likewise.
1538         (_Unwind_Backtrace): Likewise.
1539         * unwind-compat.c (_Unwind_Backtrace): Likewise.
1540         (_Unwind_ForcedUnwind): Likewise.
1541         (_Unwind_RaiseException): Likewise.
1542         (_Unwind_Resume): Likewise.
1543         (_Unwind_Resume_or_Rethrow): Likewise.
1544
1545         * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
1546         nomips16 mode when IN_LIBGCC2 with hard float.
1547
1548 2007-09-14  Richard Sandiford  <rsandifo@nildram.co.uk>
1549
1550         * config/mips/sdemtk.opt: Update to GPLv3.
1551         * config/mips/sdemtk.h: Likewise.
1552
1553 2007-09-14  Nigel Stephens  <nigel@mips.com>
1554
1555         * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
1556         MIPS_ISA_DEFAULT appropriately.  Don't make soft-float the default
1557         for mipsisa32-*-linux*.
1558
1559 2007-09-14  Nigel Stephens  <nigel@mips.com>
1560             David Ung  <davidu@mips.com>
1561             Thiemo Seufer  <ths@mips.com>
1562             Richard Sandiford  <richard@codesourcery.com>
1563
1564         * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
1565         * configure.ac: Add a mipssde threading type.
1566         * configure: Regenerate.
1567         * config/mips/sdemtk.h: New file.
1568         * config/mips/t-sdemtk: Likewise.
1569         * config/mips/sdemtk.opt: Likewise.
1570         * gthr-mipssde.h: Likewise.
1571         * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
1572         * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
1573         (MIPS_ICACHE_SYNC): New macro, split from ...
1574         * config/mips/mips.md (clear_cache): ...here.
1575         * config/mips/mips.c (mips_save_reg_p): Check
1576         MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
1577         (build_mips16_function_stub): Use targetm.strip_name_encoding.
1578         (build_mips16_call_stub): Likewise.
1579
1580 2007-09-14  Richard Sandiford  <richard@codesourcery.com>
1581
1582         * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
1583
1584 2007-09-14  Jakub Jelinek  <jakub@redhat.com>
1585
1586         PR target/32337
1587         * config/ia64/ia64.c (find_gr_spill): Don't decrement
1588         current_frame_info.n_local_regs.  Don't return emitted local
1589         regs.
1590         (ia64_compute_frame_size): Improve unwind hack to put
1591         RP, PFS, FP in that order by allowing some of the registers
1592         been already emitted, as long as they are emitted to the
1593         desired register.
1594
1595 2007-09-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1596
1597         * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
1598         vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
1599         vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
1600
1601 2007-09-13  Eric Christopher  <echristo@apple.com>
1602             Kenneth Zadeck <zadeck@naturalbridge.com>
1603
1604         * dse.c (find_shift_sequence): New function.
1605         (replace_read): Add case to remove read if it requires shift.
1606         * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
1607         
1608 2007-09-13  Tom Tromey  <tromey@redhat.com>
1609
1610         * c-common.c (fname_as_string): Update.
1611         * c-parser.c (c_parser) <lex_untranslated_string>: New field.
1612         (c_lex_one_token): Update.  Add 'parser' argument.
1613         (c_parser_simple_asm_expr): Update.
1614         (c_parser_attributes): Update.
1615         (c_parser_asm_statement): Update.
1616         (c_parser_asm_operands): Update.
1617         (c_parser_peek_token): Update.
1618         (c_parser_peek_2nd_token): Update.
1619         * c-lex.c (c_lex_string_translate): Remove.
1620         (c_lex_return_raw_strings): Likewise.
1621         (c_lex_with_flags): Added 'lex_flags' argument.
1622         (lex_string): Added 'translate' argument.
1623         * c-pragma.h (c_lex_with_flags): Update.
1624         (c_lex_string_translate, c_lex_return_raw_strings): Remove.
1625         (C_LEX_STRING_NO_TRANSLATE): New define.
1626         (C_LEX_RAW_STRINGS): Likewise.
1627
1628 2007-09-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1629
1630         From Jie Zhang:
1631         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
1632         BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
1633         BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
1634         (bfin_init_builtins): Initialize __builtin_bfin_ones,
1635         __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
1636         __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
1637         __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
1638         __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
1639         __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
1640         (bdesc_1arg): Add __builtin_bfin_ones.
1641         (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
1642         __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
1643         and __builtin_bfin_csqu_fr16.
1644         * config/bfin/bfin.md (UNSPEC_ONES): New constant.
1645         (ones): New define_insn.
1646         (ssaddhi3_parts): New define_insn.
1647         (sssubhi3_parts): New define_insn.
1648         (flag_mulhi_parts): New define_insn.
1649
1650 2007-09-13  Seongbae Park <seongbae.park@gmail.com>
1651
1652         * common.opt (femit-class-debug-always): Turn off by default.
1653
1654 2007-09-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1655
1656         * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
1657         * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
1658
1659 2007-09-13  James E. Wilson  <wilson@specifix.com>
1660
1661         PR tree-optimization/33389
1662         * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
1663         then set build_loads before returning.
1664
1665 2007-09-13  Sandra Loosemore  <sandra@codesourcery.com>
1666             David Ung  <davidu@mips.com>
1667
1668         * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
1669         {d}addiu and a negative immediate such that it works with MIPS16
1670         instructions.
1671         
1672 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1673
1674         PR bootstrap/33418
1675         * configure.ac (ld_vers): Support Linux linker.
1676         * configure: Regenerated.
1677
1678 2007-09-13  Richard Sandiford  <richard@codesourcery.com>
1679             Sandra Loosemore <sandra@codesourcery.com>
1680
1681         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
1682         (SYMBOL_REF_MIPS16_FUNC_P): Delete.
1683         * config/mips/mips.c (mips_attribute_table): Turn mips16 and
1684         nomips16 into decl attributes.
1685         (TARGET_INSERT_ATTRIBUTES): Override.
1686         (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
1687         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
1688         (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
1689         (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
1690         (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
1691         (mips_use_mips16_mode_p): Reimplement as a function that takes
1692         a decl and considers only decl attributes.  If the decl is nested
1693         function, use its parent attributes.
1694         (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
1695         instead of SYMBOL_REF_MIPS16_FUNC_P.
1696         (mips_set_mips16_mode): Move call to sorry here from old
1697         mips_use_mips16_mode_p.
1698         (mflip_mips16_entry): New structure.
1699         (mflip_mips16_htab): New variable.
1700         (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
1701         (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
1702         (mips_merge_decl_attributes): New function.
1703         (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
1704         Use mips_use_mips16_mode_p.
1705         (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
1706         SYMBOL_REF_MIPS16_FUNC_P.
1707         (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
1708
1709 2007-09-13  Richard Sandiford  <richard@codesourcery.com>
1710
1711         * c-parser.c (c_parser_struct_declaration): Check for a null return.
1712
1713 2007-09-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1714
1715         PR driver/33309
1716         * gcc.c (xputenv): Make argument const, and use CONST_CAST.
1717
1718 2007-09-12  Michael Meissner  <michael.meissner@amd.com>
1719             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1720             Tony Linthicum  <tony.linthicum@amd.com>
1721
1722         * tree.h (function_args_iterator): New type to iterate over
1723         function arguments.
1724         (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
1725         function arguments providing a pointer to the argument.
1726         (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
1727         function arguments providing the argument.
1728         (function_args_iter_init): Inline function to initialize
1729         function_args_iterator.
1730         (function_args_iter_cond_ptr): Inline function to return the next
1731         pointer to hold the argument.
1732         (function_args_iter_cond): Inline function to return the next
1733         argument.
1734         (function_args_iter_cond_next): Advance the function args
1735         iterator.
1736         (stdarg_p): New function, return true if variable argument
1737         function.
1738         (prototype_p): New function, return true if function is
1739         prototyped.
1740         (function_args_count): New function, count the number of arguments
1741         of a function.
1742
1743         * tree.c (stdarg_p): New function, return true if variable
1744         argument function.
1745         (prototype_p): New function, return true if function is
1746         prototyped.
1747
1748         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
1749         (TARGET_ROUND): New macro for the round/ptest instructions which
1750         are shared between SSE4.1 and SSE5.
1751         (OPTION_MASK_ISA_ROUND): Ditto.
1752         (OPTION_ISA_ROUND): Ditto.
1753         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
1754         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
1755
1756         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
1757         (-mfused-madd): New switch to give users control over whether the
1758         compiler optimizes to use the multiply/add SSE5 instructions.
1759
1760         * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
1761         m_ATHLON_K8_AMDFAM10, and change all uses.
1762         (enum pta_flags): Add PTA_SSE5.
1763         (ix86_handle_option): Turn off 3dnow if -msse5.
1764         (override_options): Add SSE5 support.
1765         (print_operand): %Y prints comparison codes for SSE5 com/pcom
1766         instructions.
1767         (ix86_expand_sse_movcc): Add SSE5 support.
1768         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
1769         vector type to the next largest size.
1770         (ix86_expand_sse5_pack): New function to use pperm to pack a
1771         vector type to the next smallest size.
1772         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
1773         (IX86_BUILTIN_FMADDSD): Ditto.
1774         (IX86_BUILTIN_FMADDPS): Ditto.
1775         (IX86_BUILTIN_FMADDPD): Ditto.
1776         (IX86_BUILTIN_FMSUBSS): Ditto.
1777         (IX86_BUILTIN_FMSUBSD): Ditto.
1778         (IX86_BUILTIN_FMSUBPS): Ditto.
1779         (IX86_BUILTIN_FMSUBPD): Ditto.
1780         (IX86_BUILTIN_FNMADDSS): Ditto.
1781         (IX86_BUILTIN_FNMADDSD): Ditto.
1782         (IX86_BUILTIN_FNMADDPS): Ditto.
1783         (IX86_BUILTIN_FNMADDPD): Ditto.
1784         (IX86_BUILTIN_FNMSUBSS): Ditto.
1785         (IX86_BUILTIN_FNMSUBSD): Ditto.
1786         (IX86_BUILTIN_FNMSUBPS): Ditto.
1787         (IX86_BUILTIN_FNMSUBPD): Ditto.
1788         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
1789         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
1790         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
1791         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
1792         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
1793         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
1794         (IX86_BUILTIN_PPERM): Ditto.
1795         (IX86_BUILTIN_PERMPS): Ditto.
1796         (IX86_BUILTIN_PERMPD): Ditto.
1797         (IX86_BUILTIN_PMACSSWW): Ditto.
1798         (IX86_BUILTIN_PMACSWW): Ditto.
1799         (IX86_BUILTIN_PMACSSWD): Ditto.
1800         (IX86_BUILTIN_PMACSWD): Ditto.
1801         (IX86_BUILTIN_PMACSSDD): Ditto.
1802         (IX86_BUILTIN_PMACSDD): Ditto.
1803         (IX86_BUILTIN_PMACSSDQL): Ditto.
1804         (IX86_BUILTIN_PMACSSDQH): Ditto.
1805         (IX86_BUILTIN_PMACSDQL): Ditto.
1806         (IX86_BUILTIN_PMACSDQH): Ditto.
1807         (IX86_BUILTIN_PMADCSSWD): Ditto.
1808         (IX86_BUILTIN_PMADCSWD): Ditto.
1809         (IX86_BUILTIN_PHADDBW): Ditto.
1810         (IX86_BUILTIN_PHADDBD): Ditto.
1811         (IX86_BUILTIN_PHADDBQ): Ditto.
1812         (IX86_BUILTIN_PHADDWD): Ditto.
1813         (IX86_BUILTIN_PHADDWQ): Ditto.
1814         (IX86_BUILTIN_PHADDDQ): Ditto.
1815         (IX86_BUILTIN_PHADDUBW): Ditto.
1816         (IX86_BUILTIN_PHADDUBD): Ditto.
1817         (IX86_BUILTIN_PHADDUBQ): Ditto.
1818         (IX86_BUILTIN_PHADDUWD): Ditto.
1819         (IX86_BUILTIN_PHADDUWQ): Ditto.
1820         (IX86_BUILTIN_PHADDUDQ): Ditto.
1821         (IX86_BUILTIN_PHSUBBW): Ditto.
1822         (IX86_BUILTIN_PHSUBWD): Ditto.
1823         (IX86_BUILTIN_PHSUBDQ): Ditto.
1824         (IX86_BUILTIN_PROTB): Ditto.
1825         (IX86_BUILTIN_PROTW): Ditto.
1826         (IX86_BUILTIN_PROTD): Ditto.
1827         (IX86_BUILTIN_PROTQ): Ditto.
1828         (IX86_BUILTIN_PROTB_IMM): Ditto.
1829         (IX86_BUILTIN_PROTW_IMM): Ditto.
1830         (IX86_BUILTIN_PROTD_IMM): Ditto.
1831         (IX86_BUILTIN_PROTQ_IMM): Ditto.
1832         (IX86_BUILTIN_PSHLB): Ditto.
1833         (IX86_BUILTIN_PSHLW): Ditto.
1834         (IX86_BUILTIN_PSHLD): Ditto.
1835         (IX86_BUILTIN_PSHLQ): Ditto.
1836         (IX86_BUILTIN_PSHAB): Ditto.
1837         (IX86_BUILTIN_PSHAW): Ditto.
1838         (IX86_BUILTIN_PSHAD): Ditto.
1839         (IX86_BUILTIN_PSHAQ): Ditto.
1840         (IX86_BUILTIN_FRCZSS): Ditto.
1841         (IX86_BUILTIN_FRCZSD): Ditto.
1842         (IX86_BUILTIN_FRCZPS): Ditto.
1843         (IX86_BUILTIN_FRCZPD): Ditto.
1844         (IX86_BUILTIN_CVTPH2PS): Ditto.
1845         (IX86_BUILTIN_CVTPS2PH): Ditto.
1846         (IX86_BUILTIN_COMEQSS): Ditto.
1847         (IX86_BUILTIN_COMNESS): Ditto.
1848         (IX86_BUILTIN_COMLTSS): Ditto.
1849         (IX86_BUILTIN_COMLESS): Ditto.
1850         (IX86_BUILTIN_COMGTSS): Ditto.
1851         (IX86_BUILTIN_COMGESS): Ditto.
1852         (IX86_BUILTIN_COMUEQSS): Ditto.
1853         (IX86_BUILTIN_COMUNESS): Ditto.
1854         (IX86_BUILTIN_COMULTSS): Ditto.
1855         (IX86_BUILTIN_COMULESS): Ditto.
1856         (IX86_BUILTIN_COMUGTSS): Ditto.
1857         (IX86_BUILTIN_COMUGESS): Ditto.
1858         (IX86_BUILTIN_COMORDSS): Ditto.
1859         (IX86_BUILTIN_COMUNORDSS): Ditto.
1860         (IX86_BUILTIN_COMFALSESS): Ditto.
1861         (IX86_BUILTIN_COMTRUESS): Ditto.
1862         (IX86_BUILTIN_COMEQSD): Ditto.
1863         (IX86_BUILTIN_COMNESD): Ditto.
1864         (IX86_BUILTIN_COMLTSD): Ditto.
1865         (IX86_BUILTIN_COMLESD): Ditto.
1866         (IX86_BUILTIN_COMGTSD): Ditto.
1867         (IX86_BUILTIN_COMGESD): Ditto.
1868         (IX86_BUILTIN_COMUEQSD): Ditto.
1869         (IX86_BUILTIN_COMUNESD): Ditto.
1870         (IX86_BUILTIN_COMULTSD): Ditto.
1871         (IX86_BUILTIN_COMULESD): Ditto.
1872         (IX86_BUILTIN_COMUGTSD): Ditto.
1873         (IX86_BUILTIN_COMUGESD): Ditto.
1874         (IX86_BUILTIN_COMORDSD): Ditto.
1875         (IX86_BUILTIN_COMUNORDSD): Ditto.
1876         (IX86_BUILTIN_COMFALSESD): Ditto.
1877         (IX86_BUILTIN_COMTRUESD): Ditto.
1878         (IX86_BUILTIN_COMEQPS): Ditto.
1879         (IX86_BUILTIN_COMNEPS): Ditto.
1880         (IX86_BUILTIN_COMLTPS): Ditto.
1881         (IX86_BUILTIN_COMLEPS): Ditto.
1882         (IX86_BUILTIN_COMGTPS): Ditto.
1883         (IX86_BUILTIN_COMGEPS): Ditto.
1884         (IX86_BUILTIN_COMUEQPS): Ditto.
1885         (IX86_BUILTIN_COMUNEPS): Ditto.
1886         (IX86_BUILTIN_COMULTPS): Ditto.
1887         (IX86_BUILTIN_COMULEPS): Ditto.
1888         (IX86_BUILTIN_COMUGTPS): Ditto.
1889         (IX86_BUILTIN_COMUGEPS): Ditto.
1890         (IX86_BUILTIN_COMORDPS): Ditto.
1891         (IX86_BUILTIN_COMUNORDPS): Ditto.
1892         (IX86_BUILTIN_COMFALSEPS): Ditto.
1893         (IX86_BUILTIN_COMTRUEPS): Ditto.
1894         (IX86_BUILTIN_COMEQPD): Ditto.
1895         (IX86_BUILTIN_COMNEPD): Ditto.
1896         (IX86_BUILTIN_COMLTPD): Ditto.
1897         (IX86_BUILTIN_COMLEPD): Ditto.
1898         (IX86_BUILTIN_COMGTPD): Ditto.
1899         (IX86_BUILTIN_COMGEPD): Ditto.
1900         (IX86_BUILTIN_COMUEQPD): Ditto.
1901         (IX86_BUILTIN_COMUNEPD): Ditto.
1902         (IX86_BUILTIN_COMULTPD): Ditto.
1903         (IX86_BUILTIN_COMULEPD): Ditto.
1904         (IX86_BUILTIN_COMUGTPD): Ditto.
1905         (IX86_BUILTIN_COMUGEPD): Ditto.
1906         (IX86_BUILTIN_COMORDPD): Ditto.
1907         (IX86_BUILTIN_COMUNORDPD): Ditto.
1908         (IX86_BUILTIN_COMFALSEPD): Ditto.
1909         (IX86_BUILTIN_COMTRUEPD): Ditto.
1910         (IX86_BUILTIN_PCOMEQUB): Ditto.
1911         (IX86_BUILTIN_PCOMNEUB): Ditto.
1912         (IX86_BUILTIN_PCOMLTUB): Ditto.
1913         (IX86_BUILTIN_PCOMLEUB): Ditto.
1914         (IX86_BUILTIN_PCOMGTUB): Ditto.
1915         (IX86_BUILTIN_PCOMGEUB): Ditto.
1916         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
1917         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
1918         (IX86_BUILTIN_PCOMEQUW): Ditto.
1919         (IX86_BUILTIN_PCOMNEUW): Ditto.
1920         (IX86_BUILTIN_PCOMLTUW): Ditto.
1921         (IX86_BUILTIN_PCOMLEUW): Ditto.
1922         (IX86_BUILTIN_PCOMGTUW): Ditto.
1923         (IX86_BUILTIN_PCOMGEUW): Ditto.
1924         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
1925         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
1926         (IX86_BUILTIN_PCOMEQUD): Ditto.
1927         (IX86_BUILTIN_PCOMNEUD): Ditto.
1928         (IX86_BUILTIN_PCOMLTUD): Ditto.
1929         (IX86_BUILTIN_PCOMLEUD): Ditto.
1930         (IX86_BUILTIN_PCOMGTUD): Ditto.
1931         (IX86_BUILTIN_PCOMGEUD): Ditto.
1932         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
1933         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
1934         (IX86_BUILTIN_PCOMEQUQ): Ditto.
1935         (IX86_BUILTIN_PCOMNEUQ): Ditto.
1936         (IX86_BUILTIN_PCOMLTUQ): Ditto.
1937         (IX86_BUILTIN_PCOMLEUQ): Ditto.
1938         (IX86_BUILTIN_PCOMGTUQ): Ditto.
1939         (IX86_BUILTIN_PCOMGEUQ): Ditto.
1940         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
1941         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
1942         (IX86_BUILTIN_PCOMEQB): Ditto.
1943         (IX86_BUILTIN_PCOMNEB): Ditto.
1944         (IX86_BUILTIN_PCOMLTB): Ditto.
1945         (IX86_BUILTIN_PCOMLEB): Ditto.
1946         (IX86_BUILTIN_PCOMGTB): Ditto.
1947         (IX86_BUILTIN_PCOMGEB): Ditto.
1948         (IX86_BUILTIN_PCOMFALSEB): Ditto.
1949         (IX86_BUILTIN_PCOMTRUEB): Ditto.
1950         (IX86_BUILTIN_PCOMEQW): Ditto.
1951         (IX86_BUILTIN_PCOMNEW): Ditto.
1952         (IX86_BUILTIN_PCOMLTW): Ditto.
1953         (IX86_BUILTIN_PCOMLEW): Ditto.
1954         (IX86_BUILTIN_PCOMGTW): Ditto.
1955         (IX86_BUILTIN_PCOMGEW): Ditto.
1956         (IX86_BUILTIN_PCOMFALSEW): Ditto.
1957         (IX86_BUILTIN_PCOMTRUEW): Ditto.
1958         (IX86_BUILTIN_PCOMEQD): Ditto.
1959         (IX86_BUILTIN_PCOMNED): Ditto.
1960         (IX86_BUILTIN_PCOMLTD): Ditto.
1961         (IX86_BUILTIN_PCOMLED): Ditto.
1962         (IX86_BUILTIN_PCOMGTD): Ditto.
1963         (IX86_BUILTIN_PCOMGED): Ditto.
1964         (IX86_BUILTIN_PCOMFALSED): Ditto.
1965         (IX86_BUILTIN_PCOMTRUED): Ditto.
1966         (IX86_BUILTIN_PCOMEQQ): Ditto.
1967         (IX86_BUILTIN_PCOMNEQ): Ditto.
1968         (IX86_BUILTIN_PCOMLTQ): Ditto.
1969         (IX86_BUILTIN_PCOMLEQ): Ditto.
1970         (IX86_BUILTIN_PCOMGTQ): Ditto.
1971         (IX86_BUILTIN_PCOMGEQ): Ditto.
1972         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
1973         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
1974         (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
1975         OPTION_MASK_ISA_ROUND for instructions that are shared between
1976         SSE4.1 and SSE5.
1977         (bdesc_2arg): Ditto.
1978         (bdesc_sse_3arg): Ditto.
1979         (enum multi_arg_type): New enum for describing the various SSE5
1980         intrinsic argument types.
1981         (bdesc_multi_arg): New table for SSE5 intrinsics.
1982         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
1983         (ix86_expand_multi_arg_builtin): New function for creating SSE5
1984         intrinsics.
1985         (ix86_expand_builtin): Add SSE5 intrinsic support.
1986         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
1987         operand instructions.
1988         (ix86_expand_sse5_multiple_memory): New function to split the
1989         second memory reference from SSE5 instructions.
1990         (type_has_variadic_args_p): Delete in favor of stdarg_p.
1991         (ix86_return_pops_args): Use stdarg_p to determine if the function
1992         has variable arguments.
1993         (ix86_setup_incoming_varargs): Ditto.
1994         (x86_this_parameter): Ditto.
1995
1996         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
1997         declaration.
1998         (ix86_expand_sse5_pack): Ditto.
1999         (ix86_sse5_valid_op_p): Ditto.
2000         (ix86_expand_sse5_multiple_memory): Ditto.
2001
2002         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
2003         constant for SSE5 support.
2004         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
2005         (UNSPEC_SSE5_TRUEFALSE): Ditto.
2006         (UNSPEC_SSE5_PERMUTE): Ditto.
2007         (UNSPEC_SSE5_ASHIFT): Ditto.
2008         (UNSPEC_SSE5_LSHIFT): Ditto.
2009         (UNSPEC_FRCZ): Ditto.
2010         (UNSPEC_CVTPH2PS): Ditto.
2011         (UNSPEC_CVTPS2PH): Ditto.
2012         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
2013         (PCOM_TRUE): Ditto.
2014         (COM_FALSE_S): Ditto.
2015         (COM_FALSE_P): Ditto.
2016         (COM_TRUE_S): Ditto.
2017         (COM_TRUE_P): Ditto.
2018         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
2019         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
2020         types.
2021         (memory attribute): Ditto.
2022         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2023         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
2024         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2025         (floor<mode>2): Ditto.
2026         (ceil<mode>2): Ditto.
2027         (btrunc<mode>2): Ditto.
2028         (nearbyintdf2): Ditto.
2029         (nearbyintsf2): Ditto.
2030         (sse_setccsf): Disable if SSE5.
2031         (sse_setccdf): Ditto.
2032         (sse5_setcc<mode>): New support for SSE5 conditional move.
2033         (sse5_pcmov_<mode>): Ditto.
2034
2035         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
2036         (SSEMODEF4): Ditto.
2037         (SSEMODEF2P): Ditto.
2038         (ssemodesuffixf4): New mode attribute for SSE5.
2039         (ssemodesuffixf2s): Ditto.
2040         (ssemodesuffixf2c): Ditto.
2041         (sserotatemax): Ditto.
2042         (ssescalarmode): Ditto.
2043         (sse_maskcmpv4sf3): Disable if SSE5.
2044         (sse_maskcmpv2df3): Ditto.
2045         (sse_vmmaskcmpv4sf3): Ditto.
2046         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
2047         instructions.
2048         (sse5_vmfmadd<mode>4): Ditto.
2049         (sse5_fmsub<mode>4): Ditto.
2050         (sse5_vmfmsub<mode>4): Ditto.
2051         (sse5_fnmadd<mode>4): Ditto.
2052         (sse5_vmfnmadd<mode>4): Ditto.
2053         (sse5_fnmsub<mode>4): Ditto.
2054         (sse5_vmfnmsub<mode>4): Ditto.
2055         (sse5i_fmadd<mode>4): Ditto.
2056         (sse5i_fmsub<mode>4): Ditto.
2057         (sse5i_fnmadd<mode>4): Ditto.
2058         (sse5i_fnmsub<mode>4): Ditto.
2059         (sse5i_vmfmadd<mode>4): Ditto.
2060         (sse5i_vmfmsub<mode>4): Ditto.
2061         (sse5i_vmfnmadd<mode>4): Ditto.
2062         (sse5i_vmfnmsub<mode>4): Ditto.
2063         (mulv16qi3): Add SSE5 support.
2064         (mulv4si3): Ditto.
2065         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
2066         (sse2_mulv4si3): Disable if SSE5.
2067         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
2068         (sse4_1_roundps): Ditto.
2069         (sse4_1_roundsd): Ditto.
2070         (sse4_1_roundss): Ditto.
2071         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
2072         be generated.
2073         (sse_maskcmpsf3): Ditto.
2074         (sse_vmmaskcmpv4sf3): Ditto.
2075         (sse2_maskcmpv2df3): Ditto.
2076         (sse2_maskcmpdf3): Ditto.
2077         (sse2_vmmaskcmpv2df3): Ditto.
2078         (sse2_eq<mode>3): Ditto.
2079         (sse2_gt<mode>3): Ditto.
2080         (sse5_pcmov_<mode>): Add SSE5 support.
2081         (vec_unpacku_hi_v16qi): Ditto.
2082         (vec_unpacks_hi_v16qi): Ditto.
2083         (vec_unpacku_lo_v16qi): Ditto.
2084         (vec_unpacks_lo_v16qi): Ditto.
2085         (vec_unpacku_hi_v8hi): Ditto.
2086         (vec_unpacks_hi_v8hi): Ditto.
2087         (vec_unpacku_lo_v8hi): Ditto.
2088         (vec_unpacks_lo_v8hi): Ditto.
2089         (vec_unpacku_hi_v4si): Ditto.
2090         (vec_unpacks_hi_v4si): Ditto.
2091         (vec_unpacku_lo_v4si): Ditto.
2092         (vec_unpacks_lo_v4si): Ditto.
2093         (sse5_pmacsww): New SSE5 intrinsic insn.
2094         (sse5_pmacssww): Ditto.
2095         (sse5_pmacsdd): Ditto.
2096         (sse5_pmacssdd): Ditto.
2097         (sse5_pmacssdql): Ditto.
2098         (sse5_pmacssdqh): Ditto.
2099         (sse5_pmacsdqh): Ditto.
2100         (sse5_pmacsswd): Ditto.
2101         (sse5_pmacswd): Ditto.
2102         (sse5_pmadcsswd): Ditto.
2103         (sse5_pmadcswd): Ditto.
2104         (sse5_pcmov_<move>): Conditional move support on SSE5.
2105         (sse5_phaddbw): New SSE5 intrinsic insn.
2106         (sse5_phaddbd): Ditto.
2107         (sse5_phaddbq): Ditto.
2108         (sse5_phaddwd): Ditto.
2109         (sse5_phaddwq): Ditto.
2110         (sse5_phadddq): Ditto.
2111         (sse5_phaddubw): Ditto.
2112         (sse5_phaddubd): Ditto.
2113         (sse5_phaddubq): Ditto.
2114         (sse5_phadduwd): Ditto.
2115         (sse5_phadduwq): Ditto.
2116         (sse5_phaddudq): Ditto.
2117         (sse5_phsubbw): Ditto.
2118         (sse5_phsubwd): Ditto.
2119         (sse5_phsubdq): Ditto.
2120         (sse5_pperm): Ditto.
2121         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
2122         (sse5_pperm_zero_v16qi_v8hi): Ditto.
2123         (sse5_pperm_sign_v8hi_v4si): Ditto.
2124         (sse5_pperm_zero_v8hi_v4si): Ditto.
2125         (sse5_pperm_sign_v4si_v2di): Ditto.
2126         (sse5_pperm_sign_v4si_v2di): Ditto.
2127         (sse5_pperm_pack_v2di_v4si): Ditto.
2128         (sse5_pperm_pack_v4si_v8hi): Ditto.
2129         (sse5_pperm_pack_v8hi_v16qi): Ditto.
2130         (sse5_perm<mode>): New SSE5 intrinsic insn.
2131         (rotl<mode>3): Ditto.
2132         (sse5_rotl<mode>3): Ditto.
2133         (sse5_ashl<mode>3): Ditto.
2134         (sse5_lshl<mode>3): Ditto.
2135         (sse5_frcz<mode>2): Ditto.
2136         (sse5s_frcz<mode>2): Ditto.
2137         (sse5_cvtph2ps): Ditto.
2138         (sse5_cvtps2ph): Ditto.
2139         (sse5_vmmaskcmp<mode>3): Ditto.
2140         (sse5_com_tf<mode>3): Ditto.
2141         (sse5_maskcmp<mode>3): Ditto.
2142         (sse5_maskcmp_uns<mode>3): Ditto.
2143         (sse5_maskcmp_uns2<mode>3): Ditto.
2144         (sse5_pcom_tf<mode>3): Ditto.
2145         
2146         * config/i386/predicates.md (const_0_to_31_operand): New predicate
2147         to match 0..31.
2148         (sse5_comparison_float_operator): New predicate to match the
2149         comparison operators supported by the SSE5 com instruction.
2150         (ix86_comparison_int_operator): New predicate to match just the
2151         signed int comparisons.
2152         (ix86_comparison_uns_operator): New predicate to match just the
2153         unsigned int comparisons.
2154
2155         * doc/invoke.texi (-msse5): Add documentation.
2156         (-mfused-madd): Ditto.
2157
2158         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
2159
2160         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
2161         mmintrin-common.h.
2162         (x86_64-*-*): Ditto.
2163
2164         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
2165
2166         * config/i386/bmmintrin.h: New file, provide common x86 compiler
2167         intrinisics for SSE5.
2168
2169         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
2170         mmintrin-common.h.
2171
2172         * config/i386/mmintrin-common.h: New file, to contain common
2173         instructions between SSE4.1 and SSE5.
2174
2175         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
2176         FOREACH_FUNCTION_ARGS to iterate over the argument list.
2177         (gen_regparm_prefix): Ditto.
2178
2179         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
2180         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
2181         prototype_p to determine if a function is prototyped.
2182
2183 2007-09-12  Janis Johnson  <janis187@us.ibm.com>
2184
2185         * config/dfp-bit.c (dfp_conversion_exception): New function.
2186         (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
2187         (DFP_TO_INT): Ditto.
2188         (INT_TO_DFP): Ditto.
2189         * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
2190
2191 2007-09-12  Jakub Jelinek  <jakub@redhat.com>
2192
2193         PR target/32338
2194         * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
2195         before sp restoration even when total_size is 0, but
2196         frame_pointer_needed.
2197
2198 2007-09-12  Bob Wilson  <bob.wilson@acm.org>
2199
2200         * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
2201         (xtensa_copy_incoming_a7): Use start_sequence instead of
2202         push_to_sequence.  Stash insns in vararg_a7_copy for builtin_saveregs.
2203         (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
2204         of the saveregs sequence.
2205
2206 2007-09-12  Richard Sandiford  <richard@codesourcery.com>
2207
2208         * c-tree.h (grokfield): Add a "tree *" argument.
2209         * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
2210         Chain nested decl attributes to it.  Don't call decl_attributes here.
2211         (groktypename): Pass grokdeclarator a pointer to the attribute list.
2212         (start_decl, grokparm, push_parm_decl, start_function): Likewise.
2213         (grokfield): Take a pointer to the decl's attributes and pass
2214         it to grokdeclarator.
2215         * c-parser.c (c_parser_struct_declaration): Update the calls to
2216         grokfield.  Call decl_attributes for anonymous struct and union
2217         fields.
2218
2219 2007-09-12  Jan Hubicka  <jh@suse.cz>
2220
2221         * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2222
2223 2007-09-12  Ira Rosen  <irar@il.ibm.com>
2224
2225         PR tree-optimization/32377
2226         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
2227         between positive and negative dependence distance using DDR_REVERSED_P.
2228
2229 2007-09-12  Dorit Nuzman  <dorit@il.ibm.com>
2230
2231         PR tree-optimization/33373
2232         * tree-vect-analyze (vect_determine_vectorization_factor): Call 
2233         TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT. 
2234
2235 2007-09-12  Jan Hubicka  <jh@suse.cz>
2236
2237         PR target/33393
2238         * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
2239         for !SSE_MATH
2240
2241 2007-09-12  Christian Bruel  <christian.bruel@st.com>
2242
2243         * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
2244         * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed. 
2245         
2246 2007-09-12  Ira Rosen  <irar@il.ibm.com>
2247
2248         * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
2249         for oprnd1 if not required.
2250         (vectorizable_operation): Use scalar operand in SLP in case of 
2251         shift with scalar argument.
2252
2253 2007-09-12  Ira Rosen  <irar@il.ibm.com>
2254
2255         * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum 
2256         to 1.
2257
2258 2007-09-11  James E. Wilson  <wilson@specifix.com>
2259
2260         * defaults.h (DWARF2_UNWIND_INFO): Don't define if
2261         TARGET_UNWIND_INFO is defined.
2262         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
2263         after definition.
2264
2265 2007-09-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2266
2267         * config/sh/sh.c (calc_live_regs): Use
2268         current_function_saves_all_registers instead of
2269         current_function_has_nonlocal_label.
2270         (sh_allocate_initial_value): Likewise.
2271         (sh_get_pr_initial_val): Likewise.
2272         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
2273         * config/sh/sh.md (load_ra): Likewise.
2274
2275 2007-09-12  Hans-Peter Nilsson  <hp@axis.com>
2276
2277         * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
2278
2279         PR target/33360
2280         * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
2281         GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
2282
2283 2007-09-12  Sa Liu  <saliu@de.ibm.com>
2284
2285         * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
2286         operands to DFmode GE or LE compares.
2287
2288 2007-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2289
2290         * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
2291         REG_CLASS_NAMES): Add P0REGS.
2292         (REGNO_REG_CLASS): Return it where appropriate.
2293         (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
2294         (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
2295         * doc/md.texi (Blackfin family): Document 'q' constraints.
2296
2297 2007-09-11  Steve Kenton  <skenton@ou.edu>
2298
2299         * pa/linux-unwind.h: Guard with inhibit_libc.
2300         * pa/hpux-unwind.h: Likewise.
2301
2302 2007-09-11  David Daney  <ddaney@avtrex.com>
2303
2304         * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
2305         * doc/install.texi: Document new --with-llsc and --without-llsc
2306         options.
2307         * config.gcc: Handle --with-llsc and --without-llsc configure options.
2308         * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
2309         in %| and %- operand codes.  Depend on GENERATE_SYNC instead of
2310         ISA_HAS_SYNC.
2311         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
2312         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
2313         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
2314         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2315         sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
2316         GENERATE_LL_SC instead of ISA_HAS_LL_SC.
2317         * config/mips/mips.opt (mllsc): New option.
2318         * config/mips/mips.c (mips_llsc): Define variable.
2319         (mips_handle_option): Handle mllsc option.
2320         (override_options): Set mips_print_operand_punct for '|' and '-'.
2321         (print_operand): Add new %| and %- operand codes.
2322         * config/mips/mips.h (mips_llsc_setting): New enum type.
2323         (mips_llsc): Declare.
2324         (OPTION_DEFAULT_SPECS): Add llsc handling.
2325         (GENERATE_SYNC): New macro.
2326         (GENERATE_LL_SC): New macro.
2327         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
2328         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
2329         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
2330         in %| and %- operand codes.
2331
2332 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2333
2334         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
2335         TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
2336
2337 2007-09-11  Jason Merrill  <jason@redhat.com>
2338
2339         PR middle-end/27945
2340         * stor-layout.c (layout_decl): Do pack variable size fields.    
2341
2342 2007-09-11  Maxim Kuvyrkov  <maxim@codesourcery.com>
2343
2344         * config/m68k/predicates.md (movsi_const0_operand,
2345         non_symbolic_call_operand): New predicates.
2346
2347         * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
2348         New constraints.
2349         * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
2350         Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
2351         CW, CZ, CS, Ap and Ac.
2352
2353         * config/m68k/m68k.md (UNSPEC_IB): New constant.
2354         (constraints.md): New include.
2355         (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
2356         opx_mem, opy_mem, op_mem, guess, split): New attributes.
2357         (movdf_internal): Name pattern.  Fix to use alternatives.  Add split.
2358         Specify attributes.
2359         (pushdi): Add split.
2360         (tstsi_internal): Name pattern.  Fix to use alternatives.  Specify
2361         attributes.  Split tstsi_internal_68020_cf from it.
2362         (tstsi_internal_68020_cf): New pattern.
2363         (tsthi_internal, tstqi_internal): Name pattern.  Specify attributes.
2364         (tst<mode>_cf): Specify attributea.
2365         (cmpsi_cf): Name pattern.  Specify attributes.
2366         (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
2367         (pushexthisi_const): Fix to use alternatives.  Specify
2368         attributes.
2369         (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
2370         from it.  Fix to use alternatives.  Specify attributes.
2371         (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
2372         (movsi_cf, movstrictqi_cf): Fix to use alternatives.  Specify
2373         attributes.
2374         (movsf_cf_soft): Specify attributes.
2375         (movdf_cf_soft): Add split.
2376         (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
2377         cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
2378         68k_extendqisi2, truncdfsf2_cf): Specify attributes.
2379         (truncdfsf2_68881): Name pattern.  Specify attributes.
2380         (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
2381         floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
2382         fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
2383         Specify attributes.
2384         (addsi3_5200): Fix to use alternatives.  Specify attributes.
2385         Add splits.
2386         (add<mode>3_cf, subdi_dishl32): Specify attributes.
2387         (subsi3): Add alternative for subq.l.  Specify attributes.
2388         (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
2389         (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern.  Specify
2390         attributes.
2391         (umulhisi3): Specify attributes.
2392         (mulhisisi3_z): Name pattern.  Specify attributes.
2393         (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
2394         sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
2395         subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
2396         bsetmemqi): Specify attributes.
2397         (bsetmemqi_ext): Name pattern.  Specify attributes.
2398         (bclrmemqi): Specify attributes.
2399         (bclrmemqi_ext, scc, sls): Name pattern.  Specify attributes.
2400         (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
2401         attributes.
2402         (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
2403         pattern.  Specify attributes.
2404         (jump): Specify attributes.
2405         (tablejump_internal): Name pattern.  Specify attributes.
2406         (call_value): Split into non_symbolic_call_value,
2407         symbolic_call_value_jsr, symbolic_call_value_bsr.  Fix to use
2408         alternatives.  Specify attributes.
2409         (non_symbolic_call_value, symbolic_call_value_jsr,
2410         symbolic_call_value_bsr): New patterns.
2411         (nop, return, unlink, indirect_jump): Specify attributes.
2412         (trap): Fix condition.  Specify attributes.
2413         (ib): New pattern.
2414
2415         * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
2416         (override_options): Initialize it.  Initialize m68k_sched_cpu.
2417         (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
2418         (const_method): Make global, rename to m68k_const_method.
2419         (const_int_cost, output_move_const_into_data_reg): Update.
2420         (output_move_double): Parametrize to emit rtl code, rename to
2421         handle_move_double.
2422         (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
2423         emit_movsi): New static functions.
2424         (output_move_double): New function with semantics of old
2425         output_move_double.
2426         (m68k_emit_move_double): New function.
2427         (m68k_sched_cpu): New variable.
2428         (attr_op_type): New enum.
2429         (sched_guess_p): New variable.
2430         (sched_address_type, sched_operand_type, sched_attr_op_type):
2431         New static functions.
2432         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
2433         m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
2434         (sched_branch_type): New static variable.
2435         (m68k_sched_branch_type): New function.
2436         * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
2437         (m68k_symbolic_call_var): Declare.
2438         (M68K_CONST_METHOD): Rename from CONST_METHOD.  Move here from m68k.c.
2439         (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
2440         m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
2441         m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
2442         Declare.
2443
2444 2007-09-11  Jakub Jelinek  <jakub@redhat.com>
2445
2446         * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
2447         * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
2448         error if __builtin_va_arg_pack_len () wasn't optimized out during
2449         inlining.
2450         * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
2451         with the number of inline's anonymous arguments.
2452         * doc/extend.texi: Document __builtin_va_arg_pack_len ().
2453
2454 2007-09-11  Zdenek Dvorak  <ook@ucw.cz>
2455
2456         * fold-const.c (extract_muldiv_1): Do not simplify
2457         var * c * c to var.
2458
2459 2007-09-11  Jan Hubicka <jh@suse.cz>
2460
2461         * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
2462         (TARGET_INTER_UNIT_CONVERSIONS): New.
2463         * i386.md (floatsi expanders): Remove redundant check for SImode
2464         source; offload to memory when asked for.
2465         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
2466         floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
2467         Update conditions;
2468         (floatsisf2_mixed_memory, floatsisf2_sse_memory,
2469         floatsidf2_mixed_memory, floatsidf2_sse_memory
2470         floatdisf2_mixed_memory, floatsisf2_sse_memory,
2471         floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
2472
2473 2007-09-11  Jan Hubicka <jh@suse.cz>
2474
2475         * toplev.c (process_options): all frontends now do unit-at-a-time.
2476         * cgraphunit.c: update comments.
2477         (cgraph_expand_function): call passmanager dirrectly; emit thunks.
2478         * c-decl.c (finish_function): use cgraph_add_new_function.
2479         * function.c (expand_function_end): We are always unit-at-a-time.
2480
2481 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
2482
2483         * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
2484         settings for MIPS16.
2485         (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
2486
2487 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
2488
2489         * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
2490         SYMBOL_FORCE_TO_MEM constants.
2491         (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
2492         (mips16_rewrite_pool_refs_info): New structure.
2493         (mips16_rewrite_pool_constant): New function, split out from...
2494         (mips16_rewrite_pool_refs): ...here.  Take a pointer to a
2495         mips16_rewrite_pool_refs_info structure rather than a pointer
2496         to a constant pool.  Force force_to_mem_operands into memory.
2497         (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
2498         * config/mips/predicates.md (force_to_mem_operand): New predicate.
2499         * config/mips/constraints.md (kf): New constraint.
2500         * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
2501         (*movsi_mips16): Likewise.
2502
2503 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
2504             Nigel Stephens  <nigel@mips.com>
2505             David Ung  <davidu@mips.com>
2506
2507         * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
2508         * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
2509         (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
2510         (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
2511         (mips_zero_extend_cost): New functions.
2512         (mips_rtx_costs): Treat COMPARE constants as having zero cost.
2513         Use the new functions.  Tweak many cost estimates, both here
2514         and in the new subroutines.  Return false when the cost of the
2515         operands has not been calculated.  Check for *clear_upper32.
2516         Check for floating-point multiply-add, reciprocal and rsqrt
2517         patterns.  Handle comparison and rotation codes.
2518
2519 2007-09-11  Danny Smith  <dannysmith@users.sourceforge.net>
2520
2521         * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
2522         override default.
2523         * config/i386/i386.c (get_dllimport_decl): Don't strip
2524         FASTCALL_PREFIX.
2525
2526 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2527
2528         PR c/30013
2529         * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
2530         declarations to top.
2531         (DFP_TO_BFP): Use for either XFmode or TFmode.
2532         (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
2533         of BFP_VIA_TYPE.
2534         * config/dfp-bit.h: Include float.h.
2535         (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
2536         double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
2537         which doesn't mean the same thing.
2538         (BFP_KIND): Use 4 to mean TFmode.
2539         (BFP_FMT): Specify the number of decimal digits based on the
2540         number of mantissa digits.
2541         (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
2542         (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
2543         (STR_TO_BFP): Use strtold for XFmode or TFmode.
2544         (TFtype): Define if TFmode is supported.
2545         * doc/libgcc.texi (Decimal float library routines): Document
2546         TF conversion functions.
2547
2548 2007-09-10  Chao-ying Fu  <fu@mips.com>
2549
2550         * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
2551         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2552         (mips_emit_compare): Process fixed-point modes.
2553         (mips_pad_arg_upward): Support fixed-point types.
2554         (override_options): Allow fixed-point modes in accumulators.
2555         (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
2556         (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
2557         V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
2558         (mips_scalar_mode_supported_p): New function to accept fixed-point
2559         modes if the width is not greater than two BITS_PER_WORD.
2560         * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
2561         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
2562         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
2563         LONG_LONG_ACCUM_TYPE_SIZE): Define.
2564         * config/mips/mips.md ("d"): Update mode attribute for fixed-point
2565         modes.
2566         ("IMODE"): New mode attribute.
2567         (mips-fixed.md): Include.
2568         * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
2569         ACCUM, UACCUM.
2570         * config/mips/mips-fixed.md: New file.
2571
2572 2007-09-11  Ben Elliston  <bje@au.ibm.com>
2573
2574         * config/spu/spu.md: Formatting fixes.
2575
2576 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2577
2578         * config/dfp-bit.c (dfp_unary_func): Delete.
2579         (dfp_unary_op): Delete.
2580         (dfp_binary_op): Use decFloat functions instead of decNumber
2581         functions for binary operations.
2582         (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
2583         (dnn_binary_op): Call dfp_binary_op with decFloat rather than
2584         DFP_C_TYPE.
2585         (dfp_compare_op): Use decFloat functions insteadof decNumber
2586         functions for comparisons.
2587         (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
2588         (dnn_binary_op): Call dfp_compare_op with decFloat rather than
2589         DFP_C_TYPE.
2590         (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
2591         call to dxx_binary_op and decFloat function.
2592         (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
2593         calls to dxx_binary_op and decFloat function.
2594         * config/dfp-bit.h: Include decFloat header files.
2595         (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
2596         DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
2597         DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
2598         DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
2599
2600 2007-09-10  Harsha Jagasia <harsha.jagasia@amd.com>
2601             Jan Sjodin <jan.sjodin@amd.com>
2602
2603         * tree-vect-analyze.c (vect_analyze_operations): Change
2604         comparison of loop iterations with threshold to less than
2605         or equal to instead of less than. Reduce
2606         min_scalar_loop_bound by one.
2607         * tree-vect-transform.c (vect_estimate_min_profitable_iters): 
2608         Change prologue and epilogue iterations estimate to vf/2,
2609         when unknown at compile-time. Change versioning guard
2610         cost to taken_branch_cost. If peeling for alignment is
2611         unknown at compile-time, change peel guard costs to one
2612         taken branch and one not-taken branch per peeled loop.
2613         If peeling for alignment is known but number of scalar loop
2614         iterations is unknown at compile-time, change peel guard
2615         costs to one taken branch per peeled loop. Change the cost
2616         model equation to consider vector iterations as the loop
2617         iterations less the prologue and epilogue iterations.
2618         Change outside vector cost check to less than or equal to
2619         zero instead of equal to zero.
2620         (vect_do_peeling_for_loop_bound): Reduce
2621         min_scalar_loop_bound by one.
2622         * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
2623         TARG_COND_NOT_TAKEN_BRANCH_COST.        
2624         * config/i386/i386.h (processor_costs): Add
2625         scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
2626         vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
2627         vec_align_load_cost, vect_unalign_load_cost,
2628         vec_store_cost, cond_taken_branch_cost,
2629         cond_not_taken_branch_cost.
2630         Define macros for x86 costs.
2631         * config/i386/i386.c:
2632         (size_cost): Set scalar_stmt_cost, scalar_load_cost,
2633         scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
2634         scalar_to_vec_cost, vec_align_load_cost, 
2635         vect_unalign_load_cost, vec_store_cost,
2636         cond_taken_branch_cost, cond_not_taken_branch_cost to one. 
2637         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
2638         geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost, 
2639         core2_cost, generic64_cost, generic32_cost): Set to default
2640         untuned costs.
2641         (k8_cost, amdfam10_cost): Costs for vectorization tuned.
2642         (x86_builtin_vectorization_cost): New.
2643
2644 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2645             Ben Elliston  <bje@au.ibm.com>
2646
2647         * dfp.c: Include decimal128Local.h; 
2648         (dfp_byte_swap): Remove.
2649         (encode_decimal32, decode_decimal32): Don't handle endianness.
2650         (encode_decimal64, decode_decimal64): Ditto.
2651         (encode_decimal128, decode_decimal128): Ditto.
2652         * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
2653         (__swap64): Remove.
2654         (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
2655         (__swap128): Remove
2656         (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
2657         * Makefile.in (DECNUM_H): Add decimal128Local.h.
2658
2659 2007-09-10  David Daney  <ddaney@avtrex.com>
2660
2661         * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
2662         define_constants.
2663         (memory_barrier): Rewrote as an insn that clobbers memory.
2664
2665 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
2666
2667         * config/mips/mips.c (mips_global_pointer): Check
2668         call_really_used_regs instead of call_used_regs.
2669         (mips_save_reg_p): Likewise.  Save all call-saved registers
2670         if current_function_saves_all_registers.  Fix indentation.
2671         No longer treat $18 as a special case.
2672         (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
2673
2674 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
2675
2676         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
2677         * config/mips/mips.c (mips_cpu_info_table): Mention it in the
2678         the introductory comment.
2679         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
2680         (override_options): Don't test for it.
2681         * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
2682         (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
2683         * config/mips/vr.h: As for config/mips/sde.h.
2684
2685 2007-09-10  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2686             Revital Eres  <eres@il.ibm.com>
2687
2688         * target.h (struct gcc_target.sched): New field: sms_res_mii.
2689         (struct ddg): Define.
2690         * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
2691         (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
2692         * config/spu/spu.c: Include ddg.h.
2693         (TARGET_SCHED_SMS_RES_MII): Define.
2694         (spu_sms_res_mii): New function to calculate mii.
2695         * modulo-sched (res_MII): Use it.
2696         * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
2697
2698 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2699
2700         * config/s390/s390.c (s390_dump_pool): Create copy of constant
2701         pool entries since they might hold values that must not be shared.
2702
2703 2007-09-10  Uros Bizjak  <ubizjak@gmail.com>
2704
2705         PR target/33369
2706         * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
2707         Use 'N' operand constraint for op2.
2708         (lshr<mode>3): Ditto.
2709         (ashl<mode>3): Ditto.
2710         (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
2711         (vec_shr_<mode>): Ditto.
2712         * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
2713         IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
2714
2715 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2716
2717         * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
2718         Change mode macro in the last real_2expN parameter to uppercase.
2719
2720 2007-09-10  Michael Matz  <matz@suse.de>
2721
2722         * tree-pass.h (pass_cselim): Declare new pass.
2723         * passes.c (init_optimization_passes): Link in pass_cselim.
2724         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
2725         tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
2726         cond_store_replacement.
2727         (condstoretemp): New static variable.
2728         (cond_store_replacement): New function.
2729         (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
2730         tree_ssa_phiopt_worker.
2731         (struct name_to_bb): New.
2732         (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
2733         nt_init_block, nt_fini_block): New static functions.
2734         (seen_ssa_names, nontrap_set): New static variables.
2735         (gate_cselim, pass_cselim): Define new pass.
2736         * common.opt (ftree-cselim): New flag.
2737         * toplev.c (process_options): Set flag_tree_cselim if required.
2738
2739 2007-09-10  Hans-Peter Nilsson  <hp@axis.com>
2740
2741         * simplify-rtx.c (simplify_relational_operation_1): For recent
2742         canonicalization, don't recurse if op1 equals both PLUS arguments.
2743
2744 2007-09-09  David Daney  <ddaney@avtrex.com>
2745
2746         * optabs.c (expand_sync_operation):  Use plus insn if minus
2747         CONST_INT_P(val).
2748         (expand_sync_fetch_operation):  Ditto.
2749
2750 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
2751
2752         * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
2753         of cvtpq2ps.
2754         (*floatsisf2_sse_vector): Likewise.
2755
2756 2007-09-09  Krister Walfridsson  <cato@df.lth.se>
2757
2758         * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2759
2760 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
2761
2762         * config/i386/i386.h (ix86_tune_indices): Rename
2763         X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
2764         (TARGET_USE_VECTOR_CONVERTS): Updated.
2765         * config/i386/i386.c: Likewise.
2766
2767 2007-09-09  Sandra Loosemore  <sandra@codesourcery.com>
2768             Nigel Stephens <nigel@mips.com>
2769
2770         * doc/invoke.texi (Overall Options):  Add .sx file extension
2771         as a synonym for .S.
2772         * cppspec.c (known_suffixes): Likewise.
2773         * gcc.c (default_compilers): Likewise.
2774
2775 2007-09-09  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2776
2777         PR target/30315
2778         * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
2779         * simplify-rtx.c (simplify_relational_operation_1): Add the
2780         canonicalization from i386.h.
2781         * doc/md.texi (Canonicalization of Instructions): Document it.
2782
2783 2007-09-09  Jan Hubicka  <jh@suse.cz>
2784             Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2785
2786         * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
2787         (TARGET_USE_VECTOR_CONVERTS): New.
2788         * i386.md: New post-reload splitters for converting SF to DF and DF to
2789         SF.
2790         (floatsi* expander): Special case vector conversions.
2791         (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
2792         floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
2793         floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
2794         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
2795         Disable when doing vector converts.
2796         (floatsi<mode>2_i387): Disable when
2797         * sse.md (vec_dupv2df): Export.
2798         * i386.c (ix86_tune_features): Enable SSE conversions.
2799
2800 2007-09-09  Richard Guenther  <rguenther@suse.de>
2801
2802         * tree-ssa-operands.c (add_virtual_operand): Only mark
2803         stores as has_volatile_ops if alias information is not available.
2804
2805 2007-09-09  Revital Eres  <eres@il.ibm.com>
2806
2807         * doc/contrib.texi: Add myself.
2808
2809 2007-09-09  Ira Rosen  <irar@il.ibm.com>
2810
2811         * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
2812         stmt_vinfo_set_outside_of_loop_cost): New functions.
2813         * tree-vect-transform.c (vect_get_cost_fields): Remove.
2814         (vect_model_simple_cost): Call
2815         stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
2816         field instead of calling vect_get_cost_fields.
2817         (vect_model_store_cost, vect_model_load_cost): Likewise.
2818
2819 2007-09-09  Revital Eres  <eres@il.ibm.com>
2820
2821         * config/rs6000/rs6000.c (paired_init_builtins): Add const
2822         declaration to bdesc_paired_preds variable.
2823         (paired_expand_builtin): Likewise.
2824
2825 2007-09-09  Revital Eres  <eres@il.ibm.com>
2826
2827         * dbgcnt.def (sms_sched_loop): New counter.
2828         * modulo-sched.c: Use sms_sched_loop instead of
2829         MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
2830         perform swing modulo scheduling on.  Include dbgcnt.h.
2831         * Makefile.in: Add DBGCNT_H to modulo-sched.o.
2832         * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
2833
2834 2007-09-09  Uros Bizjak  <ubizjak@gmail.com>
2835
2836         * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
2837         Substitute all uses with ...
2838         (MODEF): New mode iterator.
2839
2840         (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
2841         from pre-regalloc define_insn_and_split splitter pattern.
2842         (*fix_trunc<mode>_i387_1): Ditto.
2843         (*fistdi2_1): Ditto.
2844         (*fist<mode>2_1): Ditto.
2845         (frndintxf2_floor): Ditto.
2846         (*fist<mode>2_floor_1): Ditto.
2847         (frndintxf2_ceil): Ditto.
2848         (*fist<mode>2_ceil_1): Ditto.
2849         (frndintxf2_trunc): Ditto.
2850         (frndintxf2_mask_pm): Ditto.
2851
2852         (prologue): Use (const_int 0) as never generated filler insn.
2853         (epilogue): Ditto.
2854         (sibcall_epilogue): Ditto.
2855         (eh_return_si): Ditto.
2856         (eh_return_di): Ditto.
2857
2858         (add<mode>3): Rename from adddf3 and addsf3.  Macroize expander
2859         using MODEF mode iterator.
2860         (sub<mode>3): Rename from subdf3 and subsf3.  Macroize expander
2861         using MODEF mode iterator.
2862         (mul<mode>3): Rename from muldf3 and mulsf3.  Macroize expander
2863         using MODEF mode iterator.
2864         (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
2865         Macroize expander using MODEF mode iterator.
2866
2867         (zero_extendsidi2): Remove operand constraints from expander.
2868         (smuldi3_highpart): Ditto.
2869         (indirect_jump): Ditto.
2870         (tablejump): Ditto.
2871         (rsqrtsf2): Ditto.
2872         * config/i386/sse.md (storentv4sf): Ditto.
2873         (storentv2df): Ditto.
2874         (storentv2di): Ditto.
2875         (storentsi): Ditto.
2876         (sse2_cvtpd2ps): Ditto.
2877         (vec_interleave_highv16qi): Ditto.
2878         (vec_interleave_lowv16qi): Ditto.
2879         (vec_interleave_highv8hi): Ditto.
2880         (vec_interleave_lowv8hi): Ditto.
2881         (vec_interleave_highv4si): Ditto.
2882         (vec_interleave_lowv4si): Ditto.
2883         (vec_interleave_highv2di): Ditto.
2884         (vec_interleave_lowv2di): Ditto.
2885         (sse2_maskmovdqu): Ditto.
2886         * config/i386/mmx.md (mmx_maskmovq): Ditto.
2887
2888 2007-09-09  Ira Rosen  <irar@il.ibm.com>
2889
2890         * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
2891         (struct _slp_tree, struct _slp_instance): Define new data structures
2892         along macros for their access.
2893         (struct _loop_vec_info): Define new fields: strided_stores,
2894         slp_instances, and slp_unrolling_factor along macros for their access.
2895         (enum slp_vect_type): New.
2896         (struct _stmt_vec_info): Define new field, slp_type, and macros for
2897         its access.
2898         (STMT_VINFO_STRIDED_ACCESS): New macro.
2899         (vect_free_slp_tree): Declare.
2900         (vectorizable_load): Add an argument of type slp_tree.
2901         (vectorizable_store, vectorizable_operation, vectorizable_conversion,
2902         vectorizable_assignment): Likewise.
2903         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2904         Declare (make extern).
2905         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
2906         (new_loop_vec_info): Likewise.
2907         (destroy_loop_vec_info): Free memory allocated for SLP structures.
2908         * tree-vect-analyze.c: Include recog.h.
2909         (vect_update_slp_costs_according_to_vf): New.
2910         (vect_analyze_operations): Add argument for calls to vectorizable_ ()
2911         functions. For not pure SLP stmts with strided access check that the
2912         group size is power of 2. Update the vectorization factor according to
2913         SLP. Call vect_update_slp_costs_according_to_vf.
2914         (vect_analyze_group_access): New.
2915         (vect_analyze_data_ref_access): Call vect_analyze_group_access.
2916         (vect_free_slp_tree): New functions.
2917         (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
2918         vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
2919         vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
2920         vect_detect_hybrid_slp): Likewise.
2921         (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
2922         and vect_detect_hybrid_slp.
2923         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
2924         SLP costs into account.
2925         (vect_get_cost_fields): New function.
2926         (vect_model_simple_cost): Make extern, add SLP parameter and handle
2927         SLP.
2928         (vect_model_store_cost, vect_model_load_cost): Likewise.
2929         (vect_get_constant_vectors): New function.
2930         (vect_get_slp_vect_defs, vect_get_slp_defs,
2931         vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
2932         vect_get_vec_defs): Likewise.
2933         (vectorizable_reduction): Don't handle SLP for now.
2934         (vectorizable_call): Don't handle SLP for now. Add argument to
2935         vect_model_simple_cost.
2936         (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
2937         get SLPed and vectorized defs). Fix indentation and spacing.
2938         (vectorizable_assignment): Handle SLP.
2939         (vectorizable_induction): Don't handle SLP for now.
2940         (vectorizable_operation): Likewise.
2941         (vectorizable_type_demotion): Add argument to
2942         vect_model_simple_cost.
2943         (vectorizable_type_promotion): Likewise.
2944         (vectorizable_store, vectorizable_load): Handle SLP.
2945         (vectorizable_condition): Don't handle SLP for now.
2946         (vect_transform_stmt): Add a new argument for SLP. Check that there is
2947         no SLP transformation required for unsupported cases. Add SLP
2948         argument for supported cases.
2949         (vect_remove_stores): New function.
2950         (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
2951         (vect_transform_loop): Schedule SLP instances.
2952         * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
2953
2954 2007-09-09  Andrew Haley  <aph@redhat.com>
2955
2956         * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
2957         signed optab.
2958
2959 2007-09-09  Hans-Peter Nilsson  <hp@axis.com>
2960
2961         Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
2962         * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
2963         Similar for what label_refs can go in the JUMP_TARGET field.  Split
2964         REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
2965         * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
2966         REG_LABEL when replacing an operand with a LABEL_REF for a
2967         non-jump insn.
2968         (subst_reloads): When replacing a LABEL_REG with a register,
2969         instead of generating a REG_LABEL note, assert that there already
2970         is one or that the label is a known target for the insn.
2971         * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
2972         note, check the JUMP_LABEL field.  Remove "else" after return.
2973         * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
2974         cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
2975         (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
2976         REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
2977         insns.  Iterate over all notes; don't assume there's only one.
2978         * cse.c (recorded_label_ref): Adjust comment to refer to
2979         REG_LABEL_OPERAND.
2980         (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
2981         insns, not just NONJUMP_INSN_P.
2982         (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
2983         isn't a jump target.
2984         * jump.c (rebuild_jump_labels): Adjust head comment.
2985         (init_label_info): Ditto.  Remove REG_LABEL_OPERAND notes only;
2986         don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
2987         (mark_all_labels): For JUMP_P insns without a target, check if the
2988         the target is noted on the previous nonjump insn.
2989         (mark_jump_label_1): New function, guts from mark_jump_label.
2990         <case IF_THEN_ELSE>: Handle first operand as a non-target when
2991         marking jump target labels.
2992         <case LABEL_REF>: Adjust for whether to generate a
2993         REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
2994         For 'E' format rtl, iterate in descending element order.
2995         (delete_related_insns): Handle both REG_LABEL_TARGET and
2996         REG_LABEL_OPERAND notes.  For JUMP_P insns with labels with zero
2997         reference count, delete and fallthrough.  Move finding-next-
2998         non-deleted insn last in the function.  Look at all INSN_P insns
2999         for REG_LABEL_OPERAND notes.
3000         (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
3001         JUMP.
3002         * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
3003         JUMP_LABEL, output the INSN_UID of it.
3004         * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
3005         and/or REG_LABEL_TARGET.
3006         (add_label_notes): Only add REG_LABEL_OPERAND notes.  Put in line
3007         with jump.c copy by only adding notes for labels actually
3008         referenced in the insn.
3009         * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
3010         usage count increment; handle all INSN_P trial insns.
3011         (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
3012         notes.
3013         * rtl.h (struct rtx_def) <volatil>: Adjust to mention
3014         REG_LABEL_TARGET and REG_LABEL_OPERAND.
3015         (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
3016         REG_LABEL_OPERAND.
3017         * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
3018         JUMP_P insns and REG_LABEL_OPERAND everywhere.
3019         * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
3020         on all INSN_P insns.
3021         * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
3022         * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
3023         REG_LABEL_OPERAND notes.
3024         * reload1.c (calculate_needs_all_insns): Adjust comments.
3025         (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
3026         * config/alpha/alpha.md (split for load of an address into a
3027         four-insn sequence on Unicos/Mk): Adjust to use
3028         REG_LABEL_OPERAND.
3029         * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
3030
3031 2007-09-09  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3032
3033         Revert:
3034         2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3035         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
3036         FOR_BB_INSNS_SAFE instead of for loop.
3037         * cse.c (cse_extended_basic_block): Likewise.
3038         * postreload.c (reload_cse_regs_1): New variable next. Make sure
3039         that the for loop does not invoke NEXT_INSN on a deleted insn.
3040         * function.c (instantiate_virtual_regs): Likewise.
3041         * lower-subreg.c (remove_retval_note): Likewise.
3042         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
3043         FOR_BB_INSNS.
3044         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
3045         a deleted insn.
3046         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
3047         insn, if it's a jump.
3048         (try_redirect_by_replacing_jump): New variable jump_p. Call
3049         tablejump_p before delete_insn_chain.
3050         * reload1.c (reload): New variable next. Make sure that the for
3051         loop does not invoke NEXT_INSN on a deleted insn.
3052         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
3053         (delete_output_reload): New variable prev. Make sure the the for
3054         loops do not invoke PREV_INSN on a deleted insn.
3055
3056 2007-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3057
3058         * pa/constraints.md: Remove 'X' from unused letters comment.
3059
3060 2007-09-08  Richard Guenther  <rguenther@suse.de>
3061
3062         * tree-tailcall.c (find_tail_calls): If we don't have aliases
3063         computed check stmt_ann->references_memory instead of counting
3064         virtual operands.
3065  
3066 2007-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
3067
3068         * cse.c (fold_rtx): Use validate_unshare_change() instead of
3069         validate_change() in one more case.
3070
3071 2007-09-08  Zdenek Dvorak  <ook@ucw.cz>
3072
3073         PR tree-optimization/32283
3074         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
3075         estimated_loop_iterations.
3076         (determine_use_iv_cost_condition): Decrease cost of expressions
3077         used in iv elimination.
3078
3079 2007-09-08  Richard Guenther  <rguenther@suse.de>
3080
3081         * tree-cfg.c (verify_gimple_expr): Avoid building new
3082         pointer types, use TYPE_POINTER_TO if available instead.
3083
3084 2007-09-08  Uros Bizjak  <ubizjak@gmail.com>
3085
3086         PR target/33329
3087         PR rtl-optimization/26449
3088         * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
3089         (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
3090         split1 pass.
3091         (mulv16qi3): Implement as define_insn_and_split pattern instead of
3092         define_expand.  Split insn in split1 pass.
3093         (mulv2di3): Ditto.
3094
3095 2007-09-08  Dorit Nuzman  <dorit@il.ibm.com>
3096
3097         PR tree-optimization/33301
3098         * tree-vect-analyze (analyze_operations): Look at the type of the rhs
3099         when relevant.
3100
3101 2007-09-07  Zdenek Dvorak  <ook@ucw.cz>
3102
3103         PR tree-optimization/32183
3104         * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
3105
3106         * tree-ssa-reassoc.c: Include cfgloop.h.
3107         (is_reassociable_op): Add a loop argument and return true only
3108         for inside loop.
3109         (linearize_expr): Updated.
3110         (should_break_up_subtract): Likewise.
3111         (linearize_expr_tree): Likewise.
3112         (init_reassoc): Call loop_optimizer_init with
3113         AVOID_CFG_MODIFICATIONS.  Remove calculate_dominance_info call
3114         with CDI_DOMINATORS.
3115         (fini_reassoc): Call loop_optimizer_finalize.
3116
3117 2007-09-07  Sterling Augustine  <sterling@tensilica.com>
3118
3119         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
3120         if there is no i-cache.
3121
3122 2007-09-07  Richard Guenther  <rguenther@suse.de>
3123
3124         Reapply
3125         2007-09-06  Richard Guenther  <rguenther@suse.de>
3126
3127         PR tree-optimization/32586
3128         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
3129         folding if nothing changed.
3130         (simplify_unary_expression): New function.  Do tree combining
3131         on conversion like codes.
3132         (try_to_simplify): Call it.
3133
3134 2007-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3135
3136         PR target/33286
3137         * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
3138         (__gthread_active,__gthread_start, __gthread_active_init): New.
3139         * gthr-posix95.h: Likewise.
3140
3141 2007-09-07  Roman Zippel <zippel@linux-m68k.org>
3142
3143         * function.h (struct function): Rename calls_unwind_init
3144         to saves_all_registers.
3145         (current_function_saves_all_registers): Renamed from
3146         current_function_calls_unwind_init.
3147         * reload1.c (reload): Set current_function_saves_all_registers.
3148         * except.c (expand_builtin_unwind_init): Likewise.
3149         * config/m68k/m68k.c (m68k_save_reg): Use
3150         current_function_saves_all_registers to save pic register.
3151
3152 2007-09-07  Janis Johnson  <janis187@us.ibm.com>
3153
3154         config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
3155         config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
3156
3157         Reapply reverted changes:
3158
3159         2007-09-06  Jan Hubicka  <jh@suse.cz>
3160  
3161         * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
3162         of real_2expN.
3163
3164         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3165
3166         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3167         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
3168
3169         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
3170
3171         * optabs.c (expand_float): Convert unsigned integer as signed only
3172         if it provides sufficient accuracy; add mode argument to real_2expN.
3173         (expand_fix): Fix comment typos; extend binary float into mode
3174         wider than destination for converion to unsigned integer; add mode
3175         argument to real_2expN.
3176         * real.c (real_2expN): Add mode argument to special-case decimal
3177         float values.
3178         * real.h (real_2expN): Ditto.
3179         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
3180         real_2expN.
3181         (fixed_from_string): Ditto.
3182         (fixed_to_decimal): Ditto.
3183         (fixed_convert_from_real): Ditto.
3184         (real_convert_from_fixed): Ditto.
3185         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
3186         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
3187         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
3188         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
3189
3190 2007-09-07  Diego Novillo  <dnovillo@google.com>
3191
3192         * tree-flow.h (const_block_stmt_iterator): Remove.
3193         Update all users to use block_stmt_iterator.
3194         * tree-iterator.h (const_tree_stmt_iterator): Remove.
3195         Update all users to use tree_stmt_iterator.
3196
3197 2007-09-07  Sandra Loosemore  <sandra@codesourcery.com>
3198
3199         * config/mips/mips.c (mips_set_current_function): Temporarily
3200         make this a no-op to fix bootstrap errors, pending rewrite.
3201
3202 2007-09-07  Jan Hubicka  <jh@suse.cz>
3203
3204         * reorg.c (dbr_schedule): Move code removing placeholder USEs later
3205         in the pass.
3206
3207 2007-09-07  Dorit Nuzman  <dorit@il.ibm.com>
3208
3209         PR tree-optimization/33299
3210         * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
3211         uses for all relevant loop-exit phis, not just the first.
3212
3213 2007-09-07  Richard Guenther  <rguenther@suse.de>
3214
3215         PR middle-end/33330
3216         * tree-ssa-operands.c (access_can_touch_variable): An access
3217         of the form (*p)[0] can touch a variable of same size.
3218
3219 2007-09-07  Jan Hubicka  <jh@suse.cz>
3220
3221         * passes.c (init_optimization_passes): Add simple dce and addressable
3222         passes.
3223         * tree-ssa.c (execute_update_addresses_taken): New function.
3224         (pass_update_address_taken): New.
3225         * tree-ssa-dse.c (execute_simple_dse): New function.
3226         (pass_simple_dse): New.
3227         * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
3228
3229 2007-09-07  Tobias Burnus  <burnus@net-b.de>
3230
3231         PR middle-end/33321
3232         * doc/invoke.texi: Fix -Wstrict-overflow= table.
3233
3234 2007-09-07  Richard Guenther  <rguenther@suse.de>
3235
3236         Revert
3237         2007-09-06  Richard Guenther  <rguenther@suse.de>
3238
3239         PR tree-optimization/32586
3240         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
3241         folding if nothing changed.
3242         (simplify_unary_expression): New function.  Do tree combining
3243         on conversion like codes.
3244         (try_to_simplify): Call it.
3245
3246 2007-09-07  Richard Guenther  <rguenther@suse.de>
3247             Uros Bizjak  <ubizjak@gmail.com>
3248
3249         PR tree-optimization/32821
3250         * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
3251         NULL in the call to set_bb_stmt_list.
3252
3253 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
3254
3255         * config/mips/mips.c (build_mips16_call_stub): Emit all direct
3256         float calls here, rather than leaving some to the caller.
3257         Use call_internal_direct and call_value_internal_direct.
3258         * config/mips/mips.md (call_internal_direct): New pattern.
3259         (call_value_internal_direct): Likewise.
3260
3261 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
3262
3263         * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
3264         (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
3265         to 0 for MIPS16.
3266         (override_options): Set mips_base_move_loop_invariants.
3267
3268 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
3269
3270         * config/mips/mips.opt (mcode-readable=): Move to keep list
3271         alphabetical.
3272
3273 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
3274
3275         * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
3276         and -mgpopt options.  Adjust the -G documentation to match.
3277         * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
3278         * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
3279         function, split out from mips_classify_symbol.  Return false for
3280         !TARGET_LOCAL_SDATA.
3281         (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
3282         Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
3283         (override_options): Check whether the -mgpopt setting is consistent
3284         with the other flags.
3285         (symbolic_expression_p): Delete.
3286         (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
3287         and default_elf_select_rtx_section.
3288         (mips_in_small_data_p): Honor section attributes for MIPS16 too.
3289         Return false for local data unless TARGET_LOCAL_SDATA.  Likewise
3290         external data and TARGET_EXTERN_SDATA.
3291
3292 2007-09-07  Tobias Burnus  <burnus@net-b.de>
3293
3294         PR fortran/33303
3295         * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
3296
3297 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3298
3299         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
3300         FOR_BB_INSNS_SAFE instead of for loop.
3301         * cse.c (cse_extended_basic_block): Likewise.
3302         * postreload.c (reload_cse_regs_1): New variable next. Make sure
3303         that the for loop does not invoke NEXT_INSN on a deleted insn.
3304         * function.c (instantiate_virtual_regs): Likewise.
3305         * lower-subreg.c (remove_retval_note): Likewise.
3306         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
3307         FOR_BB_INSNS.
3308         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
3309         a deleted insn.
3310         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
3311         insn, if it's a jump.
3312         (try_redirect_by_replacing_jump): New variable jump_p. Call
3313         tablejump_p before delete_insn_chain.
3314         * reload1.c (reload): New variable next. Make sure that the for
3315         loop does not invoke NEXT_INSN on a deleted insn.
3316         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
3317         (delete_output_reload): New variable prev. Make sure the the for
3318         loops do not invoke PREV_INSN on a deleted insn.
3319
3320 2007-09-06  Zdenek Dvorak  <ook@ucw.cz>
3321
3322         * cgraphbuild.c (rebuild_cgraph_edges): Export.
3323         * cgraph.h (rebuild_cgraph_edges): Declare.
3324         * tree-pass.h (pass_expand_omp_ssa): New.
3325         * omp-low.c (find_omp_clause): Export.
3326         (copy_var_decl): Split from omp_copy_decl_2.
3327         (build_omp_barrier): Return the call to emit instead of emitting
3328         it directly.
3329         (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
3330         build_omp_barrier.
3331         (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
3332         expand_omp_for_generic, expand_omp_for_static_nochunk,
3333         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
3334         Adapted to work on SSA form.
3335         (execute_expand_omp): Do not invalidate dominance information.
3336         (gate_expand_omp): Do not run with -fopenmp-ssa flag.
3337         (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
3338         * gimplify.c (gimplify_omp_for): Ensure that the control variable is
3339         a gimple_reg.
3340         (force_gimple_operand): Allow gimplifying code expressions without
3341         value.
3342         * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
3343         * common.opt (fopenmp-ssa): New.
3344         * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
3345         * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
3346         * tree-cfg.c: Include tree-inline.h.
3347         (struct move_stmt_d): Replace vars_to_remove by vars_map field.
3348         (replace_by_duplicate_decl, replace_ssa_name,
3349         mark_virtual_ops_in_region): New functions.
3350         (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
3351         to work on SSA form.
3352         * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
3353         * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
3354         constructs.
3355
3356 2007-09-06  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3357
3358         * tree-loop-linear.c: Include obstack.h.
3359         (linear_transform_loops): New obstack lambda_obstack.
3360         Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
3361         lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
3362         and free afterwards.
3363         * lambda.h (struct obstack): New forward declaration.
3364         (lambda_linear_expression_new): New parameter of type struct
3365         obstack *.
3366         (lambda_loopnest_new): Likewise.
3367         (lambda_loopnest_transform): Likewise.
3368         (lambda_body_vector_new): Likewise.
3369         (lambda_body_vector_compute_new): Likewise.
3370         (gcc_loopnest_to_lambda_loopnest): Likewise.
3371         (lambda_loopnest_to_gcc_loopnest): Likewise.
3372         * lambda-code.c: Include obstack.h.
3373         (lambda_lattice_new): New parameter lambda_obstack.  Use it for
3374         allocation of ret.
3375         (lambda_body_vector_new): Likewise.
3376         (lambda_linear_expression_new): Likewise.
3377         (lambda_lattice_new): Likewise.
3378         (lambda_loopnest_new): Likewise.  Additionally use obstack to
3379         allocate LN_LOOPS(ret).
3380         (lambda_lattice_compute_base): New parameter lambda_obstack.  Pass
3381         it to lambda_lattice_new.
3382         (lambda_body_vector_compute_new): New parameter lambda_obstack.
3383         Pass it to lambda_body_vector_new.
3384         (lambda_lattice_compute_base): New paramater lambda_obstack.  Pass
3385         it to lambda_lattice_new.
3386         (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
3387         Pass it to lambda_loopnest_new, lambda_linear_expression_new.
3388         (lambda_compute_target_space): Likewise.
3389         (lambda_compute_auxillary_space): New parameter lambda_obstack.
3390         Pass it to lambda_lattice_compute_base and
3391         compute_nest_using_fourieer_motzkin.
3392         (lambda_loopnest_transform): New parameter lambda_obstack.  Pass
3393         it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
3394         and lambda_lattice_compute_target_space.
3395         (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
3396         Pass it to lambda_linear_expression_new.
3397         (gcc_loop_to_lambda_loop): New parameter lambda_obstack.  Pass it
3398         to gcc_tree_to_linear_expression.
3399         (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
3400         Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
3401         (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
3402         Pass it to lambda_body_vector_new and
3403         lambda_body_vector_compute_new.
3404         * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
3405         (lambda-code.o): Likewise.
3406
3407 2007-09-06  Chao-ying Fu  <fu@mips.com>
3408
3409         * ginclude/stdfix.h: New file.
3410         * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
3411         (convert.o): Add dependence on fixed-value.h.
3412         * c-convert.c (convert): Support FIXED_POINT_TYPE.
3413         * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
3414         to define fixed-point constants.
3415         (c_cpp_builtins): Define fixed-point constants.
3416         * convert.c (fixed-value.h): New include.
3417         (convert_to_real): Update comment to include fixed-point.
3418         Support FIXED_POINT_TYPE.
3419         (convert_to_integer): Update comment to include fixed-point.
3420         Support FIXED_POINT_TYPE.
3421         (convert_to_complex): Support FIXED_POINT_TYPE.
3422         (convert_to_fixed): New function.
3423         * convert.h (convert_to_fixed): Declare.
3424         * genopinit.c: Add comment about $Q for only fixed-point modes.
3425         (optabs): Add fract_optab, fractuns_optab, satfract_optab,
3426         satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
3427         sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
3428         ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
3429         usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
3430         usneg_optab for fixed-point modes.
3431         (gen_insn): Add force_fixed to track the $Q format for all fixed-point
3432         modes.
3433         * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
3434         PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
3435         unsigned saturation optabs, when type is saturating.
3436         (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
3437         (expand_fixed_convert): New function.
3438         (gen_fixed_libfunc, gen_signed_fixed_libfunc,
3439         gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
3440         gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
3441         gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
3442         gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
3443         gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
3444         functions.
3445         (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
3446         ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
3447         usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
3448         ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
3449         usneg_optab, fract_optab, fractuns_optab, satfract_optab,
3450         satfractuns_optab.
3451         Initialize fixed-point libraries, including add, ssadd, usadd, sub,
3452         sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
3453         ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
3454         fractuns, satfractuns.
3455         * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
3456         OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
3457         OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
3458         OTI_ssmsub_widen,  OTI_usmsub_widen.
3459         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
3460         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
3461         ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
3462         umsub_widen_optab, usmsub_widen_optab): Define.
3463         (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
3464         COI_satfractuns.
3465         (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
3466         Define.
3467         (expand_fixed_convert): Declare.
3468         * expr.c (convert_move): Support the move of fixed-point modes.
3469         (emit_move_insn_1): Handle fixed-point mode to move via integer.
3470         (categorize_ctor_elements_1): Handle FIXED_CST.
3471         (count_type_elements): Handle FIXED_POINT_TYPE.
3472         (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
3473         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3474         Support FIXED_CST.
3475         For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
3476         multiply and add/subtract for fixed-point types.
3477         For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
3478         mode, we jump to binop directly.
3479         Support FIXED_CONVERT_EXPR.
3480         (do_store_flag): Check FIXED_CST to put a constant second.
3481         (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
3482         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3483         (const_vector_from_tree): Support FIXED_CST.
3484         * doc/extend.texi (Fixed-Point): New node.
3485         * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
3486         ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
3487         satfract, fractuns, satfractuns): Document them.
3488
3489 2007-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3490
3491         * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
3492         addresses into I registers.
3493
3494 2007-09-06  Jan Hubicka  <jh@suse.cz>
3495             Andreas Tobler  <a.tobler@schweiz.org>
3496
3497         * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
3498         sharing.
3499         (machopic_legitimize_pic_address): Likewise.
3500
3501 2007-09-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3502             Jan Hubicka  <jh@suse.cz>
3503
3504         * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
3505         instead of ufloat_optab->handlers directly.
3506         (floatdidf2): Likewise.
3507
3508 2007-09-06  Sandra Loosemore  <sandra@codesourcery.com>
3509
3510         * config/mips/mips.c:  Include diagnostic.h.
3511         (mips_set_current_function): Check errorcount and sorrycount 
3512         before generating RTL.
3513
3514 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3515
3516         PR target/33256
3517         * config/mips/mips.c (mips_classify_symbolic_expression): New function.
3518         (mips_classify_address): Use it instead of mips_symbolic_constant_p.
3519         (print_operand_reloc): Likewise.
3520
3521 2007-09-06  Janis Johnson  <janis187@us.ibm.com>
3522
3523         Revert:
3524
3525         2007-09-06  Jan Hubicka  <jh@suse.cz>
3526  
3527         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
3528         real_2expN.
3529
3530         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3531
3532         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3533         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
3534
3535         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
3536
3537         * optabs.c (expand_float): Convert unsigned integer as signed only
3538         if it provides sufficient accuracy; add mode argument to real_2expN.
3539         (expand_fix): Fix comment typos; extend binary float into mode
3540         wider than destination for converion to unsigned integer; add mode
3541         argument to real_2expN.
3542         * real.c (real_2expN): Add mode argument to special-case decimal
3543         float values.
3544         * real.h (real_2expN): Ditto.
3545         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
3546         real_2expN.
3547         (fixed_from_string): Ditto.
3548         (fixed_to_decimal): Ditto.
3549         (fixed_convert_from_real): Ditto.
3550         (real_convert_from_fixed): Ditto.
3551         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
3552         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
3553         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
3554         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
3555
3556 2007-09-06  Tom Tromey  <tromey@redhat.com>
3557
3558         * tree-cfg.c (remove_bb): Only warn if line is non-zero.
3559         * c-pch.c (c_common_read_pch): Restore current location after
3560         reading PCH file.
3561         * tree.c (expand_location): Update.
3562         (expr_filename): Changed return type.  Unified the two cases.
3563         (expr_lineno): Likewise.
3564         (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
3565         as lvalues.
3566         * toplev.c (line_table): Changed type.
3567         (general_init): Update.
3568         (realloc_for_line_map): New function.
3569         (general_init): Allocate line_table using GC.
3570         * fix-header.c (line_table): Changed type.
3571         (read_scan_file): Update.
3572         (read_scan_file): Update.
3573         * c-ppoutput.c (maybe_print_line): Update.
3574         (print_line): Update.
3575         (cb_line_change): Update.
3576         (cb_define): Update.
3577         (pp_file_change): Update.
3578         * c-opts.c (c_common_init_options): Update.
3579         (finish_options): Update.
3580         (push_command_line_include): Update.
3581         * c-lex.c (cb_line_change): Update.
3582         (cb_def_pragma): Update.
3583         (cb_define): Update.
3584         (cb_undef): Update.
3585         (c_lex_with_flags): Use cpp_get_token_with_location.
3586         * input.h (line_table): Changed type.
3587         (location_from_locus): New macro.
3588         * tree.h (EXPR_FILENAME): No longer an lvalue.
3589         (EXPR_LINENO): Likewise.
3590         (expr_locus, set_expr_locus): Declare separately for
3591         USE_MAPPED_LOCATION.
3592         (expr_filename, expr_lineno): Changed return type.
3593         * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
3594         * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
3595         (expand_gimple_basic_block): Likewise.
3596         * final.c (final_scan_insn): Use expanded_location.
3597
3598 2007-09-06  Richard Guenther  <rguenther@suse.de>
3599
3600         PR tree-optimization/32586
3601         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
3602         folding if nothing changed.
3603         (simplify_unary_expression): New function.  Do tree combining
3604         on conversion like codes.
3605         (try_to_simplify): Call it.
3606         * builtins.c (fold_builtin_cexp): Fold the built expressions.
3607         * fold-const.c (fold_unary): Test result of get_callee_fndecl().
3608
3609 2007-09-06  Jan Hubicka  <jh@suse.cz>
3610
3611         PR target/33318
3612         * cse.c (fold_rtx): Avoid invalid sharing.
3613
3614 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3615
3616         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3617         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
3618
3619 2007-09-06  Revital Eres  <eres@il.ibm.com>
3620
3621         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
3622         Fix offsettable memory reference for 750CL.
3623
3624 2007-09-06  Pat Haugen  <pthaugen@us.ibm.com>
3625
3626         * reload.c (find_reloads_address_1): Try to preserve original
3627         base/index regclass of operands.
3628         * regrename.c (scan_rtx_address): Likewise.
3629         (replace_oldest_value_addr): Likewise.
3630
3631 2007-09-06  Richard Guenther  <rguenther@suse.de>
3632
3633         PR tree-optimization/33302
3634         * domwalk.c (walk_dominator_tree): The exit block is
3635         interesting even if it is not reachable.
3636
3637 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3638
3639         PR middle-end/33306
3640         * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
3641
3642 2007-09-06  Basile Starynkevitch  <basile@starynkevitch.net>
3643
3644         * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for 
3645         robustness.
3646
3647 2007-09-05  Ian Lance Taylor  <iant@google.com>
3648
3649         * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
3650         when printing.
3651         (dump_generic_node): Likewise.
3652         * print-rtl.c (print_decl_name): Likewise.
3653         * print-tree.c (print_node_brief): Likewise.
3654         (print_node): Likewise.
3655         * Makefile.in (RTL_BASE_H): Add alias.h.
3656         (TREE_H): Likewise.
3657
3658 2007-09-06  Jesper Nilsson  <jesper.nilsson@axis.com>
3659
3660         * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
3661         Defined.
3662         * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
3663         * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
3664
3665 2007-09-06  Jie Zhang  <jie.zhang@analog.com>
3666
3667         * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
3668         (tm_defines): Define UCLIBC_DEFAULT to 1.
3669         (extra_options): Add linux.opt.
3670         * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
3671         (CRT_CALL_STATIC_FUNCTION): Likewise.
3672         (NO_IMPLICIT_EXTERN_C): Likewise.
3673         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
3674         * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
3675         * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
3676         (ENDFILE_SPEC): Don't define.
3677         (LIB_SPEC): Likewise.
3678         (CRT_CALL_STATIC_FUNCTION): Likewise.
3679         (NO_IMPLICIT_EXTERN_C): Likewise.
3680         (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
3681         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
3682
3683 2007-09-06  Jan Hubicka  <jh@suse.cz>
3684
3685         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
3686         real_2expN.
3687
3688 2007-09-06  Jan Hubicka  <jh@suse.cz>
3689
3690         * opts.c (common_handle_option): Enable inlining functions for
3691         -fprofile-generate.
3692
3693 2007-09-06  Jakub Jelinek  <jakub@redhat.com>
3694
3695         * builtin-attrs.def (ATTR_NONNULL_3): New.
3696         (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
3697         ATTR_NOTHROW_NONNULL_##FA.
3698         (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
3699         (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
3700         ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
3701         ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
3702         ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
3703         ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
3704         ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
3705         New.
3706         (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
3707         ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
3708         ATTR_FORMAT_NOTHROW_3_4): Remove.
3709         * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
3710         vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
3711         __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
3712         instead of ATTR_FORMAT_*_*.
3713
3714 2007-09-06  Hans-Peter Nilsson  <hp@axis.com>
3715
3716         * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
3717         parts re-used for REG_FRAME_RELATED_EXPR.
3718
3719 2007-09-05  Janis Johnson  <janis187@us.ibm.com>
3720
3721         * optabs.c (expand_float): Convert unsigned integer as signed only
3722         if it provides sufficient accuracy; add mode argument to real_2expN.
3723         (expand_fix): Fix comment typos; extend binary float into mode
3724         wider than destination for converion to unsigned integer; add mode
3725         argument to real_2expN.
3726         * real.c (real_2expN): Add mode argument to special-case decimal
3727         float values.
3728         * real.h (real_2expN): Ditto.
3729         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
3730         real_2expN.
3731         (fixed_from_string): Ditto.
3732         (fixed_to_decimal): Ditto.
3733         (fixed_convert_from_real): Ditto.
3734         (real_convert_from_fixed): Ditto.
3735         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
3736         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
3737         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
3738         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
3739
3740 2007-09-05  Ian Lance Taylor  <iant@google.com>
3741
3742         * init-regs.c (initialize_uninitialized_regs): Call
3743         emit_insn_before rather than add_insn_before.
3744
3745 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
3746
3747         * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
3748         * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
3749         * tree-inline.h (copy_body_data): Add call_expr field.
3750         * tree-inline.c (expand_call_inline): Initialize call_expr.
3751         (copy_bb): Append anonymous inline fn arguments to arguments
3752         when inlining a CALL_EXPR_VA_ARG_PACK call.
3753         * builtins.c (expand_builtin): Issue an error if
3754         BUILT_IN_VA_ARG_PACK is seen during expand.
3755         (fold_call_expr, fold_builtin_call_array): Don't fold
3756         CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
3757         __builtin_va_arg_pack () call as last argument.
3758         * gimplify.c (gimplify_call_expr): If last argument to a vararg
3759         function is __builtin_va_arg_pack (), decrease number of call
3760         arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
3761         * expr.c (expand_expr_real_1): Issue an error if
3762         CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
3763         * tree-pretty-print.c (dump_generic_node): Handle printing
3764         CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
3765         * doc/extend.texi (__builtin_va_arg_pack): Document.
3766
3767 2007-09-05  Adam Nemet  <anemet@caviumnetworks.com>
3768
3769         PR tree-optimization/21513
3770         * builtins.c (build_builtin_expect_predicate): New function.
3771         (fold_builtin_expect): Add argument for expected value.
3772         Distribute __builtin_expect over short-circuiting operations.
3773         Fold nested builtin_expects.
3774         (fold_builtin_2): Adjust call to fold_builtin_expect.
3775
3776 2007-09-05  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3777
3778         PR web/32965
3779         PR tree-optimization/13756
3780         * doc/invoke.texi (Options That Control Optimization): Document
3781         -ftree-dse.
3782
3783 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
3784
3785         * gcc/config/i386/cpuid.h: New file.
3786         * gcc/config/i386/driver-i386.c: Include cpuid.h.
3787         (describe_cache): Shrink size and line strings to 100 bytes.
3788         (detect_caches_amd): Return "" for unsupported max_ext_level.
3789         Use __cpuid function.
3790         (detect_caches_intel): Return "" for unsupported max_level.
3791         Use __cpuid function.
3792         (host_detect_local_cpu): Change feature flag variables to
3793         unsigned int.  Initialize only extended feature flag variables.
3794         Use __get_cpuid_max to determine max supported cpuid level.
3795         Use __cpuid function to determine supported features.  Fix
3796         calculation of family id.  Remove is_amd and check signature
3797         directly.  Check for Geode signature.  Handle family 4 id.
3798         [PROCESSOR_GENERIC32]: New default for unknown family id.  Move
3799         cpu discovery code to lower part of the function.
3800         [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
3801         for sub-architecture.
3802         [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
3803         [PROCESSOR_K8]: Add k8-sse3 architecture.
3804         [PROCESSOR_NOCONA]: Remove.
3805         [PROCESSOR_GENERIC64]: Ditto.
3806         * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
3807         * gcc/config/i386/crtfastmath.c: Include cpuid.h.  Use __get_cpuid
3808         to check for SSE and FXSAVE support.
3809         * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
3810         Add -minline-all-stringops.
3811         * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
3812         (x86_64-*-*): Ditto.
3813
3814 2007-09-05  Jie Zhang  <jie.zhang@analog.com>
3815
3816         * config/bfin/linux-unwind.h: New file.
3817         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
3818         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
3819
3820 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3821
3822         * Makefile.in (stmt.o): Add alloc-pool.h dependency.
3823         * stmt.c: Include alloc-pool.h.
3824         (struct case_node): Remove GTY marker.
3825         (add_case_node): New parameter case_node_pool.  Use it for
3826         allocation of r.
3827         (expand_case): New allocation pool case_node_pool.  Initialize it,
3828         pass to add_case_node and free it.
3829
3830 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3831             David Ung  <davidu@mips.com>
3832             Nigel Stephens <nigel@mips.com>
3833
3834         Add mips16/nomips16 function attributes and -mflip-mips16 option
3835         for testing mixed-mode compilation.
3836
3837         * config/mips/mips.opt (mflip-mips16): New.
3838
3839         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
3840         (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
3841
3842         * config/mips/mips.c (mips_base_target_flags): New.
3843         (mips_base_mips16): New.
3844         (mips_base_schedule_insns): New.
3845         (mips_base_reorder_blocks_and_partition): New.
3846         (mips_base_align_loops): New.
3847         (mips_base_align_jumps): New.
3848         (mips_base_align_functions): New.
3849         (mips16_flipper): New.
3850         (mips_attribute_table): Add "mips16" and "nomips16" entries.
3851         (TARGET_SET_CURRENT_FUNCTION): Define.
3852         (mips_mips16_type_p, mips_nomips16_type_p): New.
3853         (mips_comp_type_attributes): Check mips16/nomips16 attributes.
3854         (mips_function_ok_for_sibcall): Make it deal with functions with
3855         mips16 attributes.
3856         (mips_init_split_addresses): New, split out from override_options.
3857         (mips_init_relocs): New, split out from override_options.
3858         (was_mips16_p): New.
3859         (mips_set_mips16_mode): New, split out from override_options.
3860         (mips_set_current_function): New.
3861         (override_options): Add sorry for unsupported mips16/pic
3862         combination.  Remove error for mips16/dsp combination.  Save
3863         base option settings.  
3864         (mips_file_start): Move mips16 mode setting output from here....
3865         (mips_output_function_prologue): ....to here.
3866         (mips_output_mi_thunk): Check for mips16 function.
3867         (build_mips16_function_stub): Don't set .mips16 here.
3868         (build_mips16_call_stub): Likewise.
3869         (mips_expand_builtin): Error in mips16 mode.
3870         (mips_use_mips16_mode_p): New.
3871         (mips_encode_section_info): Check for mips16 function, and set
3872         SYMBOL_REF_FLAGS accordingly.
3873
3874         * doc/extend.texi (Function Attributes): Document new
3875         mips16/nomips16 attributes.
3876         * doc/invoke.texi (Option Summary): Add -mflip-mips16.
3877         (MIPS Options): Document -mflip-mips16.
3878
3879 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3880
3881         * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
3882         if we encounter TLS address in MIPS16 mode.
3883         (mips_legitimize_const_move): Check cannot_force_const_mem for
3884         the (const (plus symbol offset)) case; this forces invalid TLS
3885         address in MIPS16 mode to be caught by the above call to sorry.
3886         (override_options): Don't reset targetm.have_tls in MIPS16 mode,
3887         because that now enables emutls, which is not ABI compatible
3888         with native TLS in non-MIPS16 mode.
3889
3890 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3891
3892         Add target hook invoked when cfun changes.
3893
3894         * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
3895         * target.h (struct gcc_target): Add set_current_function.
3896         * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
3897         (TARGET_INITIALIZER): Add initializer for set_current_function.
3898         * tree.h (push_struct_function): New.
3899         * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
3900         * function.h: Here.
3901         (set_cfun): Declare.
3902         * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
3903         * function.c: Here.
3904         (push_function_context_to): Use allocate_struct_function
3905         to create null context, not init_dummy_function_start.  Use set_cfun.
3906         (pop_function_context_from): Use set_cfun.
3907         (in_dummy_function): New.
3908         (invoke_set_current_function_hook): New.
3909         (set_cfun): New.
3910         (push_cfun, pop_cfun): Use set_cfun.
3911         (push_struct_function): New.
3912         (allocate_struct_function): Call invoke_set_current_function_hook
3913         before returning.
3914         (prepare_function_start): Don't set cfun here.  Remove unused
3915         argument; fix all callers.
3916         (init_dummy_function_start): Fiddle with in_dummy_function.  Call
3917         push_struct_function.
3918         (init_function_start): Set cfun here.
3919         (expand_dummy_function_end): Fiddle with in_dummy_function.  Pop cfun.
3920         * omp-low.c (create_omp_child_function): Use push_struct_function
3921         and pop_cfun to save/restore state.
3922         (expand_omp_parallel): Remove unused saved_cfun variable.
3923         * cgraphunit.c (ipa_passes): Use set_cfun.
3924         * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
3925         * dwarf2out.c (dwarf2out_abstract_function): Likewise.
3926         * matrix-reorg.c (transform_allocation_sites): Likewise.
3927         (matrix_reorg): Use set_cfun.
3928         * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
3929         * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
3930         assignment to cfun; use set_cfun for the other.
3931         * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
3932         (dump_function_to_file): Use push_cfun/pop_cfun here.
3933         * c-decl.c (finish_function): Use set_cfun.
3934
3935 2007-09-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3936
3937         * regrename.c (rerename_optimize): Use deferred rescanning and
3938         insert explicit calls to rescan insns when changed.
3939         
3940 2007-09-05  Jan Hubicka  <jh@suse.cz>
3941
3942         * optabs.c (libfunc_entry): Change optab to integer.
3943         (hash_libfunc, convert_optab_libfunc, optab_libfunc,
3944         set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
3945         of pointers for hashing.
3946
3947 2007-09-05  Jan Hubicka  <jh@suse.cz>
3948
3949         * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
3950         verifier.
3951         * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
3952         * see.c (pass_see): Likewise.
3953         * tracer.c (pass_tracer): Likewise.
3954         * postreload-gcse.c (pass_gcse2): Likewise.
3955         * postreload.c (pass_postreload_cse): Likewise.
3956         * mode-switching.c (pass_mode_switching): Likewise.
3957         * modulo-sched.c (pass_sms): Likewise.
3958         * cse.c (cse_insn): Likewise.
3959         * web.c (pass_web): Likweise.
3960         * combine-stack-adj.c (pass_stack_adjustments): Likewise.
3961         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
3962         * loop-init.c (pass_rtl_loop_init): Likewise.
3963         (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
3964         pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
3965         * global.c (pass_global_alloc): Likewise.
3966         * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
3967         pass_if_after_reload): Likewise.
3968         * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
3969         * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
3970         * regmove.c (pass_regmove): Likewise.
3971         * function.c (pass_thread_prologugues_epilogues): Likewise.
3972         * gcse.c (pass_gcse): Likewise.
3973         * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
3974         * lower-subreg.c (pass_lower_subreg2): Likewise.
3975         * bt-load.c (pass_branch_target_load): Likewise.
3976         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
3977         * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
3978         * combine.c (pass_combine): Likewise.
3979         * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
3980         (pass_partition_blocks): Likewise.
3981         * var-tracking.c (pass_variable_track): Likewise.
3982         * reg-stack.c (pass_stack_regs_run): Likewise.
3983         * sched-rgn.c (pass_sched, pass_sched2): Likewise.
3984         * passes.c (pass_postreload): Likewise.
3985         (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
3986         * tree-pass.h (TODO_verify_rtl_sharing): New.
3987         (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3988         TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
3989         TODO_set_props, TODO_df_finish, TODO_df_verify,
3990         TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
3991
3992 2007-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3993
3994         * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
3995         fold_real_zero_addition_p, reorder_operands_p,
3996         div_if_zero_remainder, fold_undefer_overflow_warnings,
3997         int_binop_types_match_p, fold_convert_const_int_from_int,
3998         fold_convert_const_int_from_real,
3999         fold_convert_const_int_from_fixed,
4000         fold_convert_const_real_from_real,
4001         fold_convert_const_real_from_fixed,
4002         fold_convert_const_fixed_from_fixed,
4003         fold_convert_const_fixed_from_int,
4004         fold_convert_const_fixed_from_real, maybe_lvalue_p,
4005         fold_checksum_tree, fold_check_failed, print_fold_checksum,
4006         debug_fold_checksum, multiple_of_p): Constify.
4007         * tree-flow-inline.h (get_lineno): Likewise.
4008         * tree-flow.h (get_lineno): Likewise.
4009         * tree-object-size.c (compute_object_offset, addr_object_size,
4010         alloc_object_size, pass_through_call): Likewise.
4011         * tree-pretty-print.c (op_symbol, print_call_name,
4012         print_struct_decl, do_niy): Likewise.
4013         * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
4014         debug_fold_checksum): Likewise.
4015
4016 2007-09-04  Steven Bosscher  <steven@gcc.gnu.org>
4017
4018         PR middle-end/33029
4019         * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
4020         note, remove the associated REG_RETVAL note.
4021
4022 2007-09-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4023
4024         * config.gcc (powerpc*-*-*): Install
4025         spu2vmx.h, vec_types.h, and si2vmx.h headers.
4026         * config/rs6000/spu2vmx.h: New header.
4027         * config/rs6000/si2vmx.h: New header.
4028         * config/rs6000/vec_types.h: New header.
4029
4030 2007-09-05  Ben Elliston  <bje@au.ibm.com>
4031
4032         * varasm.c (initializer_constant_valid_p): Fix comment typo.
4033
4034 2007-09-05  Ben Elliston  <bje@au.ibm.com>
4035
4036         * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
4037         not `m' for *ptrp.
4038         (__stdcx): Make asm volatile.
4039         (__stwcx, __stdcx): Return only 0 or 1.
4040
4041 2007-09-05  Jan Hubicka  <jh@suse.cz>
4042
4043         Revert:
4044
4045         2007-09-04  Jan Hubicka  <jh@suse.cz>
4046         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
4047
4048         2007-09-04  Richard Guenther  <rguenther@suse.de>
4049         * tree-ssa-operands.c (add_virtual_operand): Only mark
4050         stores as has_volatile_ops if alias information is not available.
4051
4052 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
4053
4054         * config/rs6000/tramp.asm: Include config.h.
4055         Check __PIC__ or __pic__ macro instead of SHARED.
4056
4057         PR rtl-optimization/32300
4058         * see.c (see_copy_insn): New function.
4059         (see_def_extension_not_merged, see_merge_one_use_extension,
4060         see_merge_one_def_extension): Use it.  Avoid changing
4061         PREV_INSN/NEXT_INSN chains directly, insted emit insns
4062         into sequences.  Call df_insn_delete on temporary insns
4063         that won't be emitted into the insn stream.
4064         (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
4065         and run df_process_deferred_rescans () before run_fast_dce.
4066
4067         PR tree-optimization/33017
4068         * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
4069         recurse for pure or const function calls.
4070
4071 2007-09-04  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4072
4073         * c-format.c: Include alloc-pool.h.
4074         (check_format_info_main): New argument fwt_alloc.  Use allocation
4075         pool instead of GC.  Remove GC deallocation code.
4076         (check_format_arg): Create allocation pool, pass it to
4077         check_format_info_main and free it afterwards.
4078         * Makefile.in (c-format.o): Add alloc-pool.h dependency.
4079
4080 2007-09-05  Ben Elliston  <bje@au.ibm.com>
4081
4082         * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
4083         Rename count macro arugment for clarity.
4084         (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
4085         (__protected_stream_set): Likewise, pass 0.
4086
4087 2007-09-04  Jan Hubicka  <jh@suse.cz>
4088
4089         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
4090
4091 2007-09-04  Jan Hubicka  <jh@suse.cz>
4092
4093         * invoke.texi (-finline-small-functions): Document.
4094         * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
4095         when deciding what is inlinable.
4096         (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
4097         (cgraph_decide_inlining_of_small_function): Handle new flags.
4098         (cgraph_decide_inlining_incrementally): Likewise.
4099         * opts.c (decode_options): Enable flag_inline_small_functions at -O2
4100         * common.opt (finline-small-functions): New.
4101         * Makefile.in (build/gengtype.o-warn): Work around PR29478
4102
4103 2007-09-04  Richard Guenther  <rguenther@suse.de>
4104
4105         * tree-ssa-operands.c (add_virtual_operand): Only mark
4106         stores as has_volatile_ops if alias information is not available.
4107
4108 2007-09-04  Andrew Haley  <aph@redhat.com>
4109
4110         * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
4111
4112 2007-09-04  Andrew Haley  <aph@redhat.com>
4113
4114         * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
4115         * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
4116         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
4117
4118 2007-09-04  Emmanuel Thome  <Emmanuel.Thome@inria.fr>
4119
4120         PR c++/14178
4121         * common.opt: Mention ABI version 2 in comment.
4122
4123 2007-09-04  Jan Hubicka  <jh@suse.cz>
4124
4125         * optabs.c (debug_optab_libfunc): Update; make available to gdb.
4126         (libfunc_entry): New structure.
4127         (libfunc_hash): New hashtable.
4128         (hash_libfunc): New function.
4129         (eq_libfunc): New function.
4130         (convert_optab_libfunc): New function.
4131         (optab_libfunc): New function.
4132         (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
4133         expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
4134         expand_float, expand_fix, new_optab, new_convert_optab):
4135          Update for new libfunc API.
4136         (init_libfunc, init_integral_libfuncs,
4137         init_floating_libfuncs, init_interclass_conv_libfuncs
4138         init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
4139         (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
4140         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4141         gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
4142         gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
4143         gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
4144         gen_extend_conv_libfunc): New.
4145         (init_one_libfunc): Revamp for hashtables.
4146         (set_conv_libfunc): Likewise.
4147         (init_optabs): Initialize hashtable; use lazy initialization where
4148         possible.
4149         * optabs.h (optab_handlers): Move out of GGC.
4150         (optab, convert_optab): Move out of GGC; add lazy gen info.
4151         (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
4152         (optab_libfunc, convert_optab_libfunc): New.
4153         * builtins.c (expand_builtin_powi): Update for new API.
4154         * expr.c (convert_move): Likewise.
4155         * expmed.c (expand_divmod): Likewise.
4156
4157 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
4158
4159         * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
4160         GOT pointer only if there is a constant pool.  Use the allocated space
4161         for SPE also.
4162
4163 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
4164
4165         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
4166         typo for AltiVec.
4167
4168 2007-09-04  Revital Eres  <eres@il.ibm.com>
4169             Richard Guenther  <rguenther@suse.de>
4170             R. Clint Whaley  <whaley@cs.utsa.edu>
4171
4172         * doc/invoke.texi (-fassociative-math, -freciprocal-math):
4173         Document new flags.
4174         * tree-tailcall.c (process_assignment): Use -fassociative-math
4175         when reodering operands of floating-point type.
4176         * fold-const.c (fold_comparison, fold_binary): Use
4177         -fassociative-math and -freciprocal-math instead of
4178         -funsafe-math-optimization flag.
4179         * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
4180         * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
4181         -freciprocal-math instead of -funsafe-math-optimizations.
4182         * opts.c (set_fast_math_flags): Set -freciprocal-math and
4183         -fassociative-math when -ffast-math is set.
4184         (set_unsafe_math_optimizations_flags): New Function
4185         to set -freciprocal-math and -fassociative-math when
4186         -funsafe-math-optimizations is set.
4187         (common_handle_option): Call it.
4188         * tree-vectorizer.c (vect_is_simple_reduction): Use
4189         -fassociative-math when doing reduction on floats.
4190         * loop-unroll.c (analyze_insn_to_expand_var): Use
4191         -fassociative-math when expanding an accumulator of type float.
4192         * simplify-rtx.c (simplify_binary_operation_1): Use
4193         -fassociative-math and -freciprocal-math when reordeing operands
4194         of floating-point type.
4195         * combine.c (combine_simplify_rtx): Likewise.
4196         * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
4197         Likewise.
4198         * common.opt (-fassociative-math, -freciprocal-math): New flags.
4199
4200 2007-09-04  Paolo Carlini  <pcarlini@suse.de>
4201
4202         PR c++/18608
4203         * doc/install.texi (--enable-__cxa_atexit): Fix typo.
4204
4205 2007-09-04  Jan Hubicka  <jh@suse.cz>
4206
4207         * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
4208
4209 2007-09-04  Jan Hubicka  <jh@suse.cz>
4210
4211         * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
4212         and corresponding MATCH_DUP.
4213
4214 2007-09-04  Uros Bizjak  <ubizjak@gmail.com>
4215
4216         PR middle-end/33187
4217         * combine.c (subst): Do not try to simplify X if it represents load
4218         of FP constant from the constant pool via float extension.
4219
4220 2007-09-04  Ben Elliston  <bje@au.ibm.com>
4221
4222         * c-opts.c: Include "tm_p.h".
4223         * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
4224
4225 2007-09-04  Richard Guenther  <rguenther@suse.de>
4226
4227         PR tree-optimization/33291
4228         * tree-pretty-print.c (dump_generic_node): Dump all
4229         qualifiers for pointer types, not only first.  Dump
4230         qualifiers for aggregate types as well.
4231         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
4232         use the canonical type for building ARRAY_REFs.
4233         * gimplify.c (canonicalize_addr_expr): Clean up.  The
4234         correct validness check is compatibility of the pointer
4235         types.  Always use the canonical type for building
4236         ARRAY_REFs and ADDR_EXPRs.
4237         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
4238         change that disabled propagation of ADDR_EXPRs into statements
4239         with volatile ops.
4240
4241 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
4242
4243         * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
4244         (umulsi3_highpart): Make into expanders; existing insns are
4245         now named *[insn]_nov6.  Add stars to existing [insn]_v6
4246         counterparts' names.
4247
4248 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
4249
4250         * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
4251         (unprotoize.o): Remove SHLIB_MULTILIB.
4252
4253 2007-09-03  Eric Weddington  <eweddington@cso.atmel.com>
4254
4255         * doc/extend.texi: Document progmem attribute for AVR.
4256
4257 2007-09-03  Anatoly Sokolov <aesok@post.ru>
4258
4259         PR target/28902
4260         * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
4261
4262 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
4263
4264         * optabs.c (expand_ffs): Initialize val and defined_at_zero
4265         to avoid warnings.
4266
4267         * optabs.c: Remove unnecessary forward declarations.
4268         (expand_unop_direct): New, broken out of expand_unop.
4269         (expand_doubleword_clz): New.
4270         (expand_ctz): Move above expand_ffs.  Use
4271         start_sequence, end_sequence, add_equal_note, and
4272         expand_unop_direct.  Add more commentary.
4273         (expand_ffs): Try both ctz optab and expand_ctz.
4274         Generate a test and branch if the hardware doesn't give us
4275         a useful value for input zero.  Style improvements similar to
4276         expand_ctz.
4277
4278         * config/arm/arm.md (ffssi2, ctzsi2): Delete.
4279
4280 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
4281
4282         * config.gcc: Delete stanza for arm-semi-aof and
4283         armel-semi-aof targets.
4284         * config/arm/arm-protos.h
4285         * config/arm/arm.c
4286         * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
4287         make all #ifndef AOF_ASSEMBLER blocks unconditional.  Also
4288         delete aof_pic_label and remove mention of AOF in comments.
4289         * config/arm/arm.md: Delete patterns used only for AOF assembly.
4290         * config/arm/aof.h
4291         * config/arm/semiaof.h
4292         * config/arm/t-semi: Delete file.
4293
4294 2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4295
4296         * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
4297         CONST_CAST_BB): New macros for type-specific casts.
4298         (CONST_CAST): Add a TYPE parameter and define it in terms of
4299         CONST_CAST2.
4300
4301         * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
4302         * c-lex.c (cb_ident, lex_string): Likewise,
4303         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
4304         * config/i386/i386.c (ix86_function_regparm,
4305         ix86_function_sseregparm): Use CONST_CAST_TREE.
4306         * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
4307         CONST_CAST.
4308         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
4309         give_switch, set_multilib_dir): Likewise,
4310         * gengtype-parse.c (string_seq, typedef_name): Likewise,
4311         * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
4312         * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
4313         * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
4314         * prefix.c (update_path): Likewise,
4315         * pretty-print.c (pp_base_destroy_prefix): Likewise,
4316         * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
4317         * tree-cfg.c (tree_can_merge_blocks_p,
4318         tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
4319         * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
4320         * tree.c (build_string): Supply a TYPE for CONST_CAST.
4321         (attribute_list_contained): Use CONST_CAST_TREE.
4322
4323 2007-09-03  Krister Walfridsson  <cato@df.lth.se>
4324
4325         * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
4326
4327 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
4328
4329         PR middle-end/33290
4330         * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
4331         before forcing them into a register.
4332
4333 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
4334
4335         * config/mips/mips.md (fetchop_bit): Use define_code_iterator
4336         rather than define_code_macro.
4337
4338 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4339
4340         * gcc.c (xputenv): New function.
4341         (putenv_from_prefixes): Use xputenv instead of putenv.
4342         (process_command): Use xputenv instead of putenv.
4343         (set_collect_gcc_options): Use xputenv instead of putenv.
4344         (main): Use xputenv instead of putenv.
4345
4346 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
4347
4348         * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
4349         availability of swap instruction.
4350         * config/cris/cris.md (bswapsi2): Implement using swap instruction.
4351
4352 2007-09-03  Revital Eres  <eres@il.ibm.com>
4353
4354         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
4355         Documentation.
4356
4357 2007-09-03  Vladimir Yanovsky  <yanov@il.ibm.com>
4358             Ayal Zaks  <zaks@il.ibm.com>
4359             Revital Eres  <eres@il.ibm.com>
4360
4361         * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
4362         compute_split_row): New functions.
4363         (ps_unschedule_node): Remove.
4364         (normalize_sched_times): Iterate over the already scheduled
4365         insns instead of the number of nodes.
4366         (MAX_SPLIT_NUM): New definition.
4367         (sms_schedule_by_order): Change the scheduling heuristic to
4368         avoid useless increases of initiation interval ii.
4369         (get_sched_window): Add dump printouts.
4370
4371 2007-09-02  David Daney  <ddaney@avtrex.com>
4372
4373         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
4374         UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
4375         (optab, insn): Add more attributes.
4376         (fetchop_bit): New code macro.
4377         (immediate_insn): New code macro attribute.
4378         (sync): Change condition to ISA_HAS_SYNC.
4379         (rdhwr): Change predicate for operand 0 to register_operand.
4380         (memory_barrier): New expand.
4381         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
4382         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
4383         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
4384         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
4385         sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
4386         * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
4387         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
4388         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
4389         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
4390         
4391 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
4392             Hans-Peter Nilsson  <hp@axis.com>
4393
4394         * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
4395         Defined to describe availability and behavior of CLZ.
4396         * config/cris/cris.md (clzsi2): Implement using lz instruction.
4397         * config/cris/cris.opt: Tweak comment for "-metrax4".
4398         * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
4399         * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
4400         (count_leading_zeros): Define.
4401
4402 2007-09-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4403
4404         * ggc-page.c (ggc_pch_read): Call validate_free_objects.
4405
4406 2007-09-02  Joseph Myers  <joseph@codesourcery.com>
4407
4408         PR middle-end/33272
4409         * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
4410         decayed from array.
4411
4412 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
4413
4414         * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
4415         config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
4416         ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
4417         sched-deps.c, sched-int.h, system.h, target.h,
4418         tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
4419         tree.def: Fix comment typos.
4420
4421 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
4422
4423         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
4424         (override_options): Turn on -mstrict-align on non-ColdFire
4425         targets.
4426         * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
4427
4428 2007-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4429
4430         * c-common.c (const_strip_array_types): Delete.
4431         * c-common.h (const_strip_array_types): Likewise.
4432         * emit-rtl.c (const_next_insn, const_previous_insn,
4433         const_next_nonnote_insn, const_prev_nonnote_insn,
4434         const_next_real_insn, const_prev_real_insn,
4435         const_next_active_insn, const_prev_active_insn, const_next_label,
4436         const_prev_label): Delete.
4437         * gimple-low.c (block_may_fallthru): Use expr_last.
4438         * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
4439         * rtl.h (const_previous_insn, const_next_insn,
4440         const_prev_nonnote_insn, const_next_nonnote_insn,
4441         const_prev_real_insn, const_next_real_insn,
4442         const_prev_active_insn, const_next_active_insn, const_prev_label,
4443         const_next_label): Delete.
4444         * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
4445         * system.h (CONST_CAST): Update comment.
4446         * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
4447         (const_first_stmt, const_last_stmt): Delete.
4448         (tree_block_ends_with_condjump_p): Use last_stmt.
4449         * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
4450         * tree-iterator.c (const_expr_first, const_expr_last,
4451         const_expr_only): Delete.
4452         * tree.c (const_lookup_attribute): Likewise.
4453         (attribute_list_contained): Use lookup_attribute.
4454         * tree.h (const_lookup_attribute, const_expr_first,
4455         const_expr_last, const_expr_only): Delete.
4456
4457 2007-09-01  Richard Guenther  <rguenther@suse.de>
4458
4459         * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
4460         instead of TREE_THIS_VOLATILE.
4461         * tree-ssa-operands.c (add_virtual_operand): Do not set
4462         has_volatile_ops.  Do not check s_ann for NULL.
4463         (get_indirect_ref_operands): Likewise.
4464         (get_expr_operands): Likewise.  For all reference trees
4465         set has_volatile_ops based on TREE_THIS_VOLATILE.  Also
4466         check base of reference for TREE_THIS_VOLATILE.
4467
4468 2007-09-01  Richard Guenther  <rguenther@suse.de>
4469
4470         * tree-cfg.c (verify_gimple_expr): Fix check for conversions
4471         between integral types.  Also allow conversions between
4472         pointer types.
4473
4474 2007-08-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4475
4476         * optabs.c (prepare_float_lib_cmp): Use
4477         libgcc_cmp_return_mode instead of word_mode.
4478         * config/dfp-bit.h: Likewise.
4479         * config/fp-bit.h: Likewise.
4480         * config/spu/spu.c (spu_libgcc_cmp_return_mode):
4481         New function.
4482         (spu_libgcc_shift_count_mode): New function.
4483         (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
4484         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
4485
4486 2007-08-31  Joseph Myers  <joseph@codesourcery.com>
4487
4488         * tree-pretty-print.c: Include output.h.
4489         (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
4490         HOST_WIDE_INT_PRINT_DEC.
4491         * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
4492
4493 2007-08-31  Zdenek Dvorak  <ook@ucw.cz>
4494
4495         PR rtl-optimization/33224
4496         * loop-iv.c (latch_dominating_def): Check that the definition belongs
4497         to the analysed region.
4498
4499 2007-08-31  Richard Guenther  <rguenther@suse.de>
4500
4501         * function.c (allocate_struct_function): Do not set
4502         current_function_returns_pointer.
4503         * function.h (struct var_refs_queue): Remove.
4504         (struct simple_obstack_stack): Likewise.
4505         (struct function): Remove fixup_var_refs_queue member.
4506         Remove returns_pointer flag.
4507         (current_function_returns_pointer): Remove define.
4508
4509 2007-08-31  Nick Clifton  <nickc@redhat.com>
4510
4511         * tree-ssa-coalesce.c (compare_pairs): Use the elements as
4512         secondary keys in order to obtain a stable sort.
4513
4514 2007-08-31  Nick Clifton  <nickc@redhat.com>
4515
4516         PR target/33132
4517         * config/m32r/constraints.md: Add W constraint for integer zero.
4518         * config/m32r/m32r.md (get_pc): Use W and i constraints.
4519         Fix length calculation by using alternatives.
4520
4521 2007-08-31  Richard Sandiford  <richard@codesourcery.com>
4522
4523         * optabs.c (shift_optab_p, commutative_optab_p): New functions,
4524         split out from expand_binop.
4525         (avoid_expensive_constant): New function.
4526         (expand_binop_directly): Remove commutative_op argument and
4527         (expand_binop_directly): Remove commutative_op argument and
4528         call cummutative_optab_p instead.  Do not change op0 or op1
4529         when swapping xop0 and xop1.  Apply avoid_expensive_constant
4530         to each argument after potential swapping.  Enforce the
4531         canonical order of commutative operands.
4532         (expand_binop): Use shift_optab_p and commutative_optab_p.
4533         Update the calls to expand_binop_directly.  Only force constants
4534         into registers when widening an operation.  Only swap operands
4535         once a direct expansion has been rejected.
4536         (expand_twoval_binop): Only force constants into registers when
4537         using a direct expansion.
4538
4539 2007-08-31  Maxim Kuvyrkov  <maxim@codesourcery.com>
4540
4541         * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
4542         (sched_analyze_insn): Don't postprocess speculative dependencies when
4543         target has no scheduling.
4544         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
4545         'uninitialized' warning.
4546
4547 2007-08-31  Richard Guenther  <rguenther@suse.de>
4548
4549         * tree.c (build_complex_type): Always set TYPE_NAME for
4550         comples types.
4551
4552 2007-08-31  Olivier Hainque  <hainque@adacore.com>
4553
4554         * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
4555         internal macro. Default alignment factor for csect directives, chosen
4556         to match what BIGGEST_ALIGNMENT allows.
4557         (DATA_SECTION_ASM_OP): Use it.
4558         * config/rs6000/rs6000.c
4559         (rs6000_xcoff_output_readonly_section_asm_op):
4560         Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
4561         (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
4562         
4563 2007-08-31  Olivier Hainque  <hainque@adacore.com>
4564
4565         * dbxout.c (dbxout_block): Move declaration within the first
4566         #if defined (DBX_DEBUGGING_INFO) block.  Rearrange another such
4567         block to include the definition, together with the associated
4568         helpers.
4569
4570 2007-08-31  David Edelsohn  <edelsohn@gnu.org>
4571             Revital Eres  <eres@il.ibm.com>
4572
4573         * doc/invoke.texi (-mpaired): Document flag.
4574         * config.gcc: Include paired.h in powerpc extra_headers and
4575         750cl.h in powerpc-*-linux*paired*.
4576         * config/rs6000/rs6000.opt (-mpaired): New flag.
4577         * config/rs6000/rs6000.c (paired_init_builtins,
4578         paired_expand_builtin, paired_expand_lv_builtin,
4579         paired_expand_stv_builtin, paired_expand_predicate_builtin):
4580         New functions to support the paired single builtin functions.
4581         (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
4582         (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
4583         single builtins.
4584         (bdesc_paired_preds): New structure for paired predicate
4585         instructions.
4586         (rs6000_expand_builtin): Expand paired single builtins.
4587         (rs6000_init_builtins): Init paired single builtins.
4588         (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
4589         Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
4590         and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf.  Add new types
4591         v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
4592         (rs6000_vector_mode_supported_p): Support paired vector mode.
4593         * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
4594         PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
4595         New.
4596         (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
4597         (DATA_ALIGNMENT): Likewise.
4598         (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
4599         (rs6000_builtins): Add PAIRED builtins.
4600         * config/rs6000/rs6000.md: Include paired.md.
4601         * config/rs6000/paired.h: New.
4602         * config/rs6000/paired.md: New.
4603         * config/rs6000/750cl.h: New.
4604         * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
4605
4606 2007-08-30  Ollie Wild  <aaw@google.com>
4607
4608         * c-opts.c (c_common_handle_option): Support -fno-directives-only.
4609         * gcc.c (default_compilers): Add -fno-directives-only to
4610         @assembler-with-cpp.
4611
4612 2007-08-30  Sandra Loosemore  <sandra@codesourcery.com>
4613
4614         PR middle-end/33211
4615
4616         * regclass.c (initial_fixed_regs): Revert previous change and make
4617         it const again.
4618         (initial_call_used_regs): Likewise.
4619         (initial_call_really_used_regs): Delete, reverting previous addition.
4620         (initial_reg_names): Likewise.
4621         (init_reg_sets): Revert previous change.
4622         (saved_fixed_regs): New.
4623         (saved_call_used_regs): New.
4624         (saved_call_really_used_regs): New.
4625         (saved_reg_names): New.
4626         (save_register_info): New.
4627         (restore_register_info): New.
4628         (init_reg_sets_1): Replace reset of register info with call to
4629         restore_register_info.
4630         * rtl.h (save_register_info): Declare.
4631         * toplev.c (backend_init): Call save_register_info.
4632
4633 2007-08-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4634
4635         * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
4636         from the original statement.
4637
4638 2007-08-30  Chao-ying Fu  <fu@mips.com>
4639
4640         * c-lex.c (interpret_fixed): Declare.
4641         (interpret_float): Process _Fract and _Accum.
4642         (interpret_fixed): New function.
4643         * final.c (output_addr_const): Process CONST_FIXED.
4644         * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
4645         (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
4646         SS_DIV, US_DIV.
4647         (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
4648         US_DIV, US_ASHIFT.
4649         (simplify_immed_subreg): Support CONST_FIXED.
4650         Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
4651         (simplify_subreg): Support CONST_FIXED.
4652
4653 2007-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4654
4655         * config/rs6000/ppu_intrinsics.h: New file.
4656         * config.gcc (powerpc*-*-* <extra_headers>): Install
4657         ppu_intrinsics.h.
4658
4659 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4660
4661         * cfg.c (dump_flow_info): Change to also print entry and exit
4662         block info.
4663         * print-rtl.c (print_rtl_single): Allow to print rtl with
4664         -fdump-unnumbered.
4665         
4666 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4667
4668         * df-core.h (df_dump_region): New function.
4669         * df.h (df_dump_region): New function.
4670         * loop-invariant.c (find_defs): Add call to df_dump_region.
4671         * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
4672         df_dump_region.
4673         
4674 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
4675
4676         PR target/33168
4677         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
4678         true if any of the compare_section_name calls returned true,
4679         rather than if any returned false.
4680
4681 2007-08-30  Richard Guenther  <rguenther@suse.de>
4682
4683         PR tree-optimization/33199
4684         * tree-ssa-structalias.c (handle_lhs_call): New function.
4685         (find_func_aliases): In non-IPA mode make sure that for
4686         calls that return a pointer we add a constraint for the
4687         result to point to anything.
4688
4689 2007-08-30  Richard Guenther  <rguenther@suse.de>
4690
4691         * doc/invoke.texi (-mveclibabi): Document new target option.
4692         * config/i386/i386.opt (-mveclibabi): New target option.
4693         * config/i386/i386.c (ix86_veclib_handler): Handler for
4694         vectorization library support.
4695         (override_options): Handle the -mveclibabi option, initialize
4696         the vectorization library handler.
4697         (ix86_builtin_vectorized_function): As fallback call the
4698         vectorization library handler, if set.
4699         (ix86_veclibabi_acml): New static function for ACML ABI style
4700         vectorization support.
4701
4702 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
4703
4704         * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
4705         used_m, even if it is 32-bit aligned, adjust used_m MEM to have
4706         SImode and update m.  Don't run gen_lowpart_common on arbitrary
4707         memory address, force it to register first.
4708
4709         PR middle-end/32758
4710         * dce.c (dce_process_block): Don't delete setters of
4711         artificially used registers.
4712
4713 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4714
4715         * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
4716         "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
4717         "*add<mode>3_alc_carry2_cconly"): New insn definitions.
4718
4719 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4720
4721         * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
4722         pattern.
4723         * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
4724         "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
4725
4726 2007-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4727
4728         * system.h: Activate -Wcast-qual as warning-only.
4729
4730 2007-08-29  Paolo Bonzini  <bonzini@gnu.org>
4731
4732         PR target/33168
4733         * config/rs6000/rs6000.c (compare_section_name): New function.
4734         (rs6000_elf_in_small_data_p): Compare section prefixes instead
4735         of full name.
4736
4737 2007-08-29  Olivier Hainque  <hainque@adacore.com>
4738
4739         * xcoffout.c: #include debug.h.
4740         * Makefile.in (xcoffout.o): Add debug.h dependency.
4741
4742 2007-08-29  Uros Bizjak  <ubizjak@gmail.com>
4743
4744         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
4745         Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
4746
4747 2007-08-29  Richard Guenther  <rguenther@suse.de>
4748
4749         * tree-pretty-print.c (dump_generic_node): Print
4750         label DECL_UID as D.%u.
4751         * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
4752
4753 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4754
4755         * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
4756         * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
4757
4758 2007-08-29  Douglas Gregor  <doug.gregor@gmail.com>
4759
4760         PR c++/33194
4761         * tree.c (build_type_attribute_qual_variant): Set canonical types
4762         on the final, unqualified attribute variant before building the
4763         qualified version.
4764
4765 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4766
4767         * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
4768         order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
4769
4770 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4771
4772         Revert
4773         2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4774         * config/bfin/bfin.md (composev2hi): Put operands into vector
4775         with correct order.
4776
4777 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4778
4779         * config/bfin/bfin.md (composev2hi): Put operands into vector
4780         with correct order.
4781
4782 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4783
4784         * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
4785         attribute when appropriate.
4786         (bfin_handle_l1_text_attribute): New.
4787         (bfin_handle_l1_data_attribute): New.
4788         (bfin_attribute_table): Add attributes: l1_text, l1_data,
4789         l1_data_A and l1_data_B.
4790         * doc/extend.texi (node Function Attributes): Document l1_text
4791         function attribute.
4792         (Variable Attributes): Add Blackfin subsection. Document l1_data,
4793         l1_data_A and l1_data_B variable attributes.
4794
4795 2007-08-28  Jie Zhang  <jie.zhang@analog.com>
4796
4797         * config/bfin/bfin.opt (minline-plt): Add.
4798         * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
4799         call to global functions.
4800         * doc/invoke.texi (Option Summary): Mention -minline-plt.
4801         (Blackfin Options): Document -minline-plt.
4802
4803 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4804
4805         * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
4806         given a non-function.
4807         (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
4808
4809 2007-08-28  DJ Delorie  <dj@redhat.com>
4810
4811         * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
4812
4813 2007-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4814
4815         * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
4816
4817 2007-08-28  Richard Guenther  <rguenther@suse.de>
4818
4819         * tree.h (struct tree_function_decl): Increase size of
4820         function_code bitfield.
4821
4822 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4823             Kazu Hirata  <kazu@codesourcery.com>
4824
4825         * gcc/config/m68k/linux.h
4826         (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
4827         * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
4828         (m68k_return_in_memory): New.
4829         * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
4830         New.
4831
4832 2007-08-28  Uros Bizjak  <ubizjak@gmail.com>
4833
4834         PR target/32661
4835         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
4836         Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
4837         operand) when top VEC_SELECT extracts scalar element.
4838         * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
4839         (*vec_extract_v4sf_mem): Ditto.
4840
4841 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4842
4843         PR middle-end/32370
4844         * passes.c (init_optimization_passes): Move pass_df_finish
4845         after pass_postreload sublist.
4846
4847         PR rtl-optimization/33148
4848         * simplify-rtx.c (simplify_unary_operation_1): Only optimize
4849         (neg (lt X 0)) if X has scalar int mode.
4850
4851         PR debug/32914
4852         * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
4853         initializer, use build_vector_from_ctor if possible to create
4854         VECTOR_CST out of it.  If vector initializer is not VECTOR_CST
4855         even after this, return NULL.
4856
4857 2007-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4858
4859         * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
4860
4861 2007-08-28  Richard Guenther  <rguenther@suse.de>
4862
4863         * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
4864         (struct tree_function_decl): Make function_code a bitfield.
4865         Add disregard_inline_limits flag.
4866         * cgraphunit.c (cgraph_process_new_functions): Check
4867         DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
4868         (cgraph_preserve_function_body_p): Likewise.
4869         * ipa-inline.c (compute_inline_parameters): Likewise.
4870         * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
4871         for GNU C extern inline functions.
4872         (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
4873         * tree-inline.c (disregard_inline_limits_p): Remove.
4874         * tree-inline.h (disregard_inline_limits_p): Likewise.
4875         * c-common.c (handle_always_inline_attribute): Set
4876         DECL_DISREGARD_INLINE_LIMITS.
4877         * langhooks.c (add_builtin_function): Verify the function code
4878         fits in the bitfield.
4879
4880 2007-08-28  Mircea Namolaru  <namolaru@il.ibm.com>
4881             Vladimir Yanovsky  <yanov@il.ibm.com>
4882             Revital Eres  <eres@il.ibm.com>
4883             Andrey Belevantsev  <abel@ispras.ru>
4884
4885         * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
4886         is set.
4887         * modulo-sched.c: Add documentation regarding do-loop.
4888         (doloop_register_get): Change number of arguments to support
4889         the new do-loop pattern and check whether COUNT_REG has no other
4890         occurences in the loop besides in the control part.
4891         (duplicate_insns_of_cycles): Do not duplicate the insn which
4892         changes count_reg as it is already adjusted.
4893         (generate_prolog_epilog): New argument to support the new
4894         do-loop pattern.  Change the subtract instruction to use
4895         expand_simple_binop.  Call duplicate_insns_of_cycles with new
4896         argument.
4897         (sms_schedule): Call doloop_register_get and
4898         generate_prolog_epilog with new argument.  Do not handle loops
4899         with single sets insns with subreg in their lhs.
4900         * loop-doloop.c (doloop_optimize): Support for another do-loop
4901         pattern.
4902         (doloop_condition_get): Gets an instruction instead of a pattern
4903         and change the return condition when the do-loop pattern is
4904         not parallel.
4905         * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
4906         deps when considering to not create edges.
4907
4908 2007-08-27  Alexandre Oliva  <aoliva@redhat.com>
4909
4910         * doc/extend.texi (gnu_inline funtion attribute): Document C++
4911         behavior.
4912
4913 2007-08-27  Jason Merrill  <jason@redhat.com>
4914
4915         PR c++/31337
4916         * gimplify.c (gimplify_modify_expr): Discard the assignment of 
4917         zero-sized types after calling gimplify_modify_expr_rhs.
4918
4919 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4920
4921         * regclass.c (init_reg_autoinc): Fix typo.
4922
4923 2007-08-27  Daniel Berlin  <dberlin@dberlin.org>
4924         
4925         Fix PR tree-optimization/33173
4926         * tree-ssa-alias.c (find_used_portions): Fix reversed test.
4927
4928 2007-08-27  H.J. Lu  <hongjiu.lu@intel.com>
4929
4930         PR target/31385
4931         * config/i386/i386.h (VALID_DFP_MODE_P): New.
4932         * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
4933         GPR.
4934
4935 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4936             David Ung  <davidu@mips.com>
4937             Nigel Stephens <nigel@mips.com>
4938
4939         Separate target-specific initialization from general
4940         back-end initialization.
4941
4942         * toplev.c (init_alignments): New, split out from...
4943         (process_options): ...here.
4944         (backend_init_target): New, split out from...
4945         (backend_init): ...here.
4946         (lang_dependent_init_target): New, split out from...
4947         (lang_dependent_init): ...here.
4948         (target_reinit): New.
4949         * toplev.h (target_reinit): Declare.
4950         * expr.c (init_expr_target): Renamed from init_expr_once, since it
4951         now can be called more than once.  Update comments.
4952         * expr.h (init_expr_target): Likewise.
4953         * alias.c (init_alias_target): Renamed from init_alias_once, since it
4954         now can be called more than once.  Explicitly zero
4955         static_reg_base_value.
4956         * emit-rtl.c (init_emit_regs): New, split out from...
4957         (init_emit_once): Here.
4958         * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
4959         non-const, so that changes from command-line arguments can overwrite
4960         values provided by the static initializers.
4961         (initial_call_really_used_regs): New, used similarly to the above.
4962         (initial_reg_names): Likewise.
4963         (last_mode_for_init_move_cost): Promoted function-local static to
4964         file-scope static to make it accessible outside init_move_cost.
4965         (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
4966         Do not initialize inv_reg_alloc_order yet, either.  Do initialize
4967         reg_names since it is needed for parsing command-line options.
4968         (init_move_cost): Use last_mode_for_init_move_cost instead of
4969         function-local static.
4970         (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
4971         call_really_used_regs now.  Reinitialize reg_names.  Also
4972         initialize inv_reg_alloc_order.  Zero reg_class_subunion and
4973         reg_class_superunion.  Clear losing_caller_save_reg_set.
4974         Preserve global registers if called more than once.  Reset
4975         move cost, may_move_in_cost, may_move_out_cost, and
4976         last_mode_for_init_move_cost.
4977         (init_reg_modes_target): Renamed from init_reg_modes_once, since it
4978         can now be invoked more than once.  Update comments.
4979         (init_regs): Update comments.
4980         (fix_register): Update initial_fixed_regs, initial_call_used_regs,
4981         and initial_call_really_used_regs, instead of the non-initial 
4982         variables.  This allows us to save the command-line register settings
4983         after target reinitialization.
4984         (init_reg_autoinc): Zero forbidden_inc_dec_classes.
4985         * rtl.h (init_emit_regs): Declare.
4986         (init_reg_modes_target, init_alias_target): Renamed as described
4987         above.
4988         * reload1.c (init_reload): Update comments.
4989         * optabs.c (init_optabs): Likewise.
4990         * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
4991         
4992 2007-08-26  Chao-ying Fu  <fu@mips.com>
4993
4994         * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
4995         __typeof().
4996
4997 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4998
4999         * alias.c (memory_modified_1, memory_modified_in_insn_p):
5000         Constify.
5001         * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
5002         Likewise.
5003         * bb-reorder.c (copy_bb_p): Likewise.
5004         * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
5005         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
5006         block_ends_with_condjump_p): Likewise.
5007         * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
5008         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
5009         block_ends_with_condjump_p): Likewise.
5010         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
5011         * cfgrtl.c (can_delete_note_p, can_delete_label_p,
5012         rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
5013         rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
5014         need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
5015         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
5016         debug_true_const_tree instad of debug_true_tree.
5017         * debug.c (do_nothing_debug_hooks): Likewise.
5018         * debug.h (ignore_block, debug_true_const_tree): Constify.
5019         * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
5020         dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
5021         decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
5022         same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
5023         dbx_reg_number, is_based_loc, field_type,
5024         simple_type_align_in_bits, simple_decl_align_in_bits,
5025         simple_type_size_in_bits, field_byte_offset, insert_float,
5026         type_tag, member_declared_type, is_redundant_typedef,
5027         secname_for_decl, is_inlined_entry_point): Likewise.
5028         * emit-rtl.c (const_next_insn, const_previous_insn,
5029         const_next_nonnote_insn, const_prev_nonnote_insn,
5030         const_next_real_insn, const_prev_real_insn,
5031         const_next_active_insn, const_prev_active_insn, const_next_label,
5032         const_prev_label): Likewise.
5033         * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
5034         Likewise.
5035         * haifa-sched.c (may_trap_exp, haifa_classify_insn,
5036         find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
5037         sched_insn_is_legitimate_for_speculation_p): Likewise.
5038         * jump.c (reversed_comparison_code_parts,
5039         reversed_comparison_code, reversed_comparison, condjump_label):
5040         Likewise.
5041         * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
5042         * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
5043         Likewise.
5044         * rtl.h (const_previous_insn, const_next_insn,
5045         const_prev_nonnote_insn, const_next_nonnote_insn,
5046         const_prev_real_insn, const_next_real_insn,
5047         const_prev_active_insn, const_next_active_insn, const_prev_label,
5048         const_next_label, modified_between_p, modified_in_p,
5049         const_note_storeskeep_with_call_p, condjump_label,
5050         reversed_comparison, reversed_comparison_code,
5051         reversed_comparison_code_parts, memory_modified_in_insn_p,
5052         stack_regs_mentioned): Likewise.
5053         * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
5054         keep_with_call_p): Likewise.
5055         * sched-deps.c (deps_may_trap_p, sched_get_condition,
5056         conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
5057         sd_lists_size, sd_lists_empty_p): Likewise.
5058         * sched-int.h (sched_insns_conditions_mutex_p,
5059         haifa_classify_insn, no_real_insns_p,
5060         sched_insn_is_legitimate_for_speculation_p, sd_next_list,
5061         sd_lists_size, sd_lists_empty_p): Likewise.
5062         * sdbout.c (sdb_debug_hooks): Likewise.
5063         * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
5064         stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
5065         -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
5066         Likewise.
5067         * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
5068         tree_can_throw_internal): Likewise.
5069         * tree-flow-inline.h (phi_nodes): Likewise.
5070         * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
5071         tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
5072         * tree-gimple.c (const_get_call_expr_in): Likewise.
5073         * tree-gimple.h (const_get_call_expr_in): Likewise.
5074         * tree.c (const_lookup_attribute, attribute_list_equal,
5075         attribute_list_contained): Likewise.
5076         * tree.h (attribute_list_equal, attribute_list_contained,
5077         const_lookup_attribute): Likewise.
5078         * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
5079
5080 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
5081
5082         * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
5083         tree-ssa-pre.c: Remove unnecessary trailing whitespace.
5084
5085 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5086
5087         PR target/32991
5088         * config/alpha/constraints.md: Delete "svn:mime-type" property
5089         with svn propdel "svn:mime-type".
5090
5091 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5092
5093         PR middle-end/33181
5094         * ifcvt.c (noce_get_alt_condition): Make sure that the previous
5095         non NOTE insn doesn't cross basic block.
5096         (noce_try_abs): Likewise.
5097         (noce_process_if_block): Likewise.
5098
5099 2007-08-26  David Edelsohn  <edelsohn@gnu.org>
5100
5101         PR target/33151
5102         * config/rs6000/predicates.md (offsettable_mem_operand): Memory
5103         operand without auto-inc-dec.
5104         * config/rs6000/rs6000.md (floatsidf2_internal): Use
5105         offsettable_mem_operand.
5106         (floatunssidf2_internal): Same.
5107         (fix_truncdfsi2_internal): Same.
5108         (floatsidf_ppc64): Same.
5109         (floatunssidf_ppc64): Same.
5110         (fix_trunctfsi2_internal): Same.
5111
5112 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
5113
5114         PR bootstrap/30620
5115         * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
5116         pass defines needed for version.c.
5117
5118 2007-08-25  Joseph Myers  <joseph@codesourcery.com>
5119
5120         * configure.ac (--debug-prefix-map check): Change assembler
5121         version presumed to have feature to 2.18.
5122         * configure: Regenerate.
5123
5124 2007-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5125
5126         * c-common.c (vector_types_convertible_p,
5127         decl_with_nonnull_addr_p, c_promoting_integer_type_p,
5128         self_promoting_args_p): Constify.
5129         * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
5130         c_promoting_integer_type_p, self_promoting_args_p,
5131         anon_aggr_type_p, vector_types_convertible_p): Likewise.
5132         * c-decl.c (anon_aggr_type_p): Likewise.
5133         * * c-dump.c (dump_stmt): Likewise.
5134         * c-objc-common.c (has_c_linkage): Likewise.
5135         * c-tree.h (same_translation_unit_p): Likewise.
5136         * c-typeck.c (null_pointer_constant_p,
5137         tagged_types_tu_compatible_p, function_types_compatible_p,
5138         type_lists_compatible_p, lvalue_or_else, lvalue_p,
5139         comptypes_internal, struct tagged_tu_seen_cache,
5140         same_translation_unit_p, alloc_tagged_tu_seen_cache,
5141         c_size_in_bytes): Likewise.
5142         * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
5143         hash_ptr, eq_ptr): Likewise.
5144         * langhooks-def.h (lhd_decl_ok_for_sibcall,
5145         LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
5146         * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
5147         * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
5148         Likewise.
5149         * optabs.c (optab_for_tree_code): Likewise.
5150         * optabs.h (optab_for_tree_code): Likewise.
5151         * rtl.h (simplify_rtx): Likewise.
5152         * simplify-rtx.c (simplify_rtx): Likewise.
5153         * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
5154         dump_flag, dump_node): Likewise.
5155         * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
5156         queue_and_dump_type, dump_flag): Likewise.
5157         * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
5158         * tree-pass.h (dump_node): Likewise.
5159         * tree-vectorizer.c (vect_can_force_dr_alignment_p,
5160         supportable_narrowing_operation): Likewise.
5161         * tree-vectorizer.h (vect_can_force_dr_alignment_p,
5162         supportable_narrowing_operation): Likewise.
5163         * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
5164         is_negative_overflow_infinity, is_positive_overflow_infinity,
5165         is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
5166         nonnull_arg_p, get_value_range, vrp_operand_equal_p,
5167         update_value_range, add_equivalence, ssa_name_nonnegative_p,
5168         ssa_name_nonzero_p, fp_predicate): Likewise.
5169         * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
5170         * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
5171         ssa_name_nonnegative_p): Likewise.
5172
5173 2007-08-25  Hans Kester  <hans.kester@ellips.nl>
5174
5175         * config.gcc : Add x86_64-elf target.
5176
5177 2007-08-25  Jakub Jelinek  <jakub@redhat.com>
5178
5179         * expr.c (store_expr): Fix order of store_by_pieces arguments.
5180
5181 2007-08-24  Sandra Loosemore  <sandra@codesourcery.com>
5182             Nigel Stephens <nigel@mips.com>
5183
5184         PR target/11787
5185
5186         * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
5187         (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
5188         * expr.c (SET_BY_PIECES_P): Define.
5189         (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
5190         it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
5191         (store_expr): Pass MEMSETP argument to can_store_by_pieces and
5192         store_by_pieces.
5193         * expr.h (SET_RATIO): Define.
5194         (can_store_by_pieces, store_by_pieces): Update prototypes.
5195         * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
5196         can_store_by_pieces/store_by_pieces.
5197         (expand_builtin_memcpy_args): Likewise.
5198         (expand_builtin_strncpy): Likewise.
5199         (expand_builtin_memset_args): Likewise.  Also remove special case
5200         for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
5201         decide what to do instead.
5202         * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
5203         to can_store_by_pieces.
5204
5205         * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
5206         * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
5207
5208         * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
5209         * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
5210         * config/mips/mips.h (MIPS_CALL_RATIO): Define.
5211         (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
5212         (STORE_BY_PIECES_P): Define.
5213
5214 2007-08-24  Tom Tromey  <tromey@redhat.com>
5215
5216         * varpool.c (varpool_last_needed_node): Fix comment typo.
5217         * c-decl.c (duplicate_decls): Fix comment typo.
5218         (clone_underlying_type): Update comment.
5219
5220 2007-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5221
5222         * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
5223         alpha_in_small_data_p, alpha_split_complex_arg,
5224         alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
5225         Constify.
5226         * config/arm/arm-protos.h (arm_mangle_type): Likewise.
5227         * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
5228         Likewise.
5229         * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
5230         TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5231         * config/darwin-protos.h (darwin_binds_local_p): Likewise.
5232         * config/darwin.c (darwin_binds_local_p): Likewise.
5233         * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
5234         Likewise.
5235         * config/i386/i386-protos.h (i386_pe_binds_local_p,
5236         i386_pe_valid_dllimport_attribute_p): Likewise.
5237         * config/i386/i386.c (ix86_function_regparm,
5238         ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
5239         x86_can_output_mi_thunk, ix86_mangle_type,
5240         TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
5241         * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
5242         i386_pe_binds_local_p): Likewise.
5243         * config/ia64/ia64.c
5244         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
5245         ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
5246         ia64_invalid_conversion, ia64_invalid_unary_op,
5247         ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
5248         Likewise.
5249         * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
5250         * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
5251         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5252         * config/mips/mips.c (mips_use_blocks_for_constant_p,
5253         mips_in_small_data_p, mips_use_anchors_for_symbol_p,
5254         mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
5255         mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
5256         mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
5257         * config/pa/pa.c (pa_commutative_p): Likewise.
5258         * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
5259         Likewise.
5260         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
5261         rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
5262         rs6000_use_blocks_for_constant_p,
5263         rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
5264         invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
5265         TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
5266         * config/s390/s390.c (s390_mangle_type,
5267         TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
5268         Likewise.
5269         * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
5270         th_in_small_data_p): Likewise.
5271         * config/sh/sh.c (sh_ms_bitfield_layout_p,
5272         sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
5273         Likewise.
5274         * config/sparc/sparc.c (sparc_can_output_mi_thunk,
5275         sparc_mangle_type): Likewise.
5276         * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
5277         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
5278         * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
5279         Likewise.
5280         * hooks.c (hook_bool_mode_const_rtx_false,
5281         hook_bool_mode_const_rtx_true,
5282         hook_bool_const_tree_hwi_hwi_const_tree_false,
5283         hook_bool_const_tree_hwi_hwi_const_tree_true,
5284         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
5285         hook_constcharptr_const_tree_null,
5286         hook_constcharptr_const_rtx_null,
5287         hook_constcharptr_const_tree_const_tree_null,
5288         hook_constcharptr_int_const_tree_null,
5289         hook_constcharptr_int_const_tree_const_tree_null): New.
5290         (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
5291         hook_bool_tree_hwi_hwi_tree_false,
5292         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
5293         hook_int_tree_tree_1, hook_constcharptr_tree_null,
5294         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
5295         hook_constcharptr_int_tree_null,
5296         hook_constcharptr_int_tree_tree_null): Delete.
5297         (default_can_output_mi_thunk_no_vcall): Constify.
5298         * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
5299         hook_bool_tree_hwi_hwi_tree_false,
5300         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
5301         hook_int_tree_tree_1, hook_constcharptr_tree_null,
5302         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
5303         hook_constcharptr_int_tree_null,
5304         hook_constcharptr_int_tree_tree_null): Delete.
5305         (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
5306         hook_bool_const_tree_hwi_hwi_const_tree_false,
5307         hook_bool_const_tree_hwi_hwi_const_tree_true,
5308         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
5309         hook_constcharptr_const_tree_null,
5310         hook_constcharptr_const_rtx_null,
5311         hook_constcharptr_const_tree_const_tree_null,
5312         hook_constcharptr_int_const_tree_null,
5313         hook_constcharptr_int_const_tree_const_tree_null): New.
5314         (default_can_output_mi_thunk_no_vcall): Constify.
5315         * integrate.c (function_attribute_inlinable_p): Likewise.
5316         * integrate.h (function_attribute_inlinable_p): Likewise.
5317         * jump.c (rtx_renumbered_equal_p): Likewise.
5318         * output.h (decl_readonly_section, categorize_decl_for_section,
5319         default_use_anchors_for_symbol_p, default_binds_local_p,
5320         default_binds_local_p_1): Likewise.
5321         * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
5322         Likewise.
5323         * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
5324         TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
5325         TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
5326         TARGET_COMP_TYPE_ATTRIBUTES,
5327         TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
5328         TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
5329         TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
5330         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
5331         TARGET_DWARF_CALLING_CONVENTION): Likewise.
5332         * target.h (can_output_mi_thunk, needs_block_p,
5333         first_cycle_multipass_dfa_lookahead_guard_spec,
5334         vector_alignment_reachable, comp_type_attributes,
5335         function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
5336         commutative_p, use_blocks_for_constant_p,
5337         use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
5338         vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
5339         invalid_within_doloop, valid_dllimport_attribute_p,
5340         split_complex_arg, invalid_arg_for_unprototyped_fn,
5341         invalid_conversion, invalid_unary_op, invalid_binary_op):
5342         Likewise.
5343         * targhooks.c (default_invalid_within_doloop,
5344         hook_invalid_arg_for_unprototyped_fn,
5345         default_builtin_vector_alignment_reachable): Likewise.
5346         (hook_bool_rtx_commutative_p): Delete.
5347         (hook_bool_const_rtx_commutative_p): New.
5348         * targhooks.h (default_invalid_within_doloop,
5349         default_builtin_vector_alignment_reachable,
5350         hook_invalid_arg_for_unprototyped_fn): Constify.
5351         (hook_bool_rtx_commutative_p): Delete.
5352         (hook_bool_const_rtx_commutative_p): New.
5353         * varasm.c (bss_initializer_p, decl_default_tls_model,
5354         categorize_decl_for_section, decl_readonly_section,
5355         default_use_anchors_for_symbol_p, default_binds_local_p,
5356         default_binds_local_p_1): Constify.
5357
5358 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
5359
5360         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5361         __NO_BUILTIN if -fno-builtin.
5362
5363 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
5364
5365         * config/bfin/bfin.c (print_operand): Report error instead of
5366         ICE for wrong operand.
5367
5368 2007-08-24  Michael Matz  <matz@suse.de>
5369
5370         * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
5371
5372 2007-08-24  Richard Guenther  <rguenther@suse.de>
5373
5374         PR middle-end/33166
5375         * tree-ssa.c (useless_type_conversion_p): Split into a
5376         recursive and a non-recursive part.
5377         (useless_type_conversion_p_1): New function.
5378         * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
5379         from maybe_fold_offset_to_reference is trivially convertible
5380         to the desired type before doing the simplification.
5381
5382 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
5383
5384         * expr.c (store_expr): Optimize initialization of an array
5385         with STRING_CST.
5386         * expr.h (builtin_strncpy_read_str): New prototype.
5387         * builtins.c (builtin_strncpy_read_str): Remove prototype.
5388         No longer static.
5389
5390 2007-08-24  Uros Bizjak  <ubizjak@gmail.com>
5391
5392         PR middle-end/33157
5393         * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
5394         field when initializing if_info structure.
5395
5396 2007-08-24  Richard Guenther  <rguenther@suse.de>
5397
5398         * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
5399         dependencies.
5400         * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
5401         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
5402         * tree-inline.c (inlinable_function_p): Fold in common parts of
5403         the cannot_inline_tree_fn langhook.
5404         * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
5405         (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
5406         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
5407         cannot_inline_tree_fn langhook.
5408         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
5409         cannot_inline_tree_fn member.
5410
5411 2007-08-24  Richard Guenther  <rguenther@suse.de>
5412
5413         * expr.c (get_inner_reference): Do computation of bitoffset
5414         from offset in a way we can detect overflow reliably.
5415
5416 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
5417
5418         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
5419
5420 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
5421
5422         * config/bfin/bfin.opt (mfast-fp): Add.
5423         * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
5424         libbffastfp override libgcc if -mfast-fp.
5425         * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5426         * doc/invoke.texi (Option Summary): Mention -mfast-fp.
5427         (Blackfin Options): Document -mfast-fp.
5428
5429 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
5430
5431         PR tree-optimization/32573
5432         PR middle-end/32946
5433         * tree-data-ref.c (initialize_data_dependence_relation): Clear
5434         DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
5435         (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
5436         (build_classic_dist_vector): Return false rather than true if
5437         DDR_ARE_DEPENDENT is non-NULL at the beginning.  Return false
5438         if either subscript_dependence_tester_1 or build_classic_dist_vector_1
5439         returned false.  Don't call save_dist_v before calling
5440         build_classic_dist_vector_1.
5441         (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
5442         with NULL DDR_ARE_DEPENDENT.  Also free DDR_DIST_VECTS and/or
5443         DDR_DIR_VECTS vectors.
5444
5445 2007-08-23  Brian Sidebotham  <brian.sidebotham@gmail.com>
5446
5447         * configure.ac (leb128): Modify sed statement to work with any
5448         binutils version string.
5449         * configure: Regenerate
5450
5451 2007-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5452
5453         * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
5454         Wrap in RTX_CODE macro guard.
5455         * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
5456         arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
5457         arm_mark_dllimport, arm_pe_encode_section_info,
5458         arm_pe_unique_section): Use ISO-C function declarations.
5459         * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
5460         c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
5461         c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
5462         Likewise.
5463         * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
5464         * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
5465         defining.
5466         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
5467         warnings.
5468         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
5469         * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
5470         (register_move_cost): Use ISO-C function declarations.
5471         * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
5472         * config/score/score-protos.h (score_declare_object): Add
5473         ATTRIBUTE_PRINTF_4.
5474         * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
5475         warnings.
5476         * final.c (profile_function): Avoid empty if-bodies.
5477         
5478         
5479         * calls.c (must_pass_in_stack_var_size,
5480         must_pass_in_stack_var_size_or_pad): Constify.
5481         * config/alpha/alpha-protos.h (function_value): Likewise.
5482         * config/alpha/alpha.c (alpha_return_in_memory,
5483         alpha_pass_by_reference, function_value,
5484         unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
5485         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
5486         Likewise.
5487         * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
5488         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5489         TARGET_PROMOTE_PROTOTYPES): Likewise.
5490         * config/arm/arm-protos.h (arm_return_in_memory,
5491         arm_pad_arg_upward, arm_function_value): Likewise.
5492         * config/arm/arm.c (arm_pass_by_reference,
5493         arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
5494         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5495         arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
5496         Likewise.
5497         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5498         * config/avr/avr-protos.h (avr_function_value): Likewise.
5499         * config/avr/avr.c (avr_return_in_memory,
5500         gas_output_limited_string, gas_output_ascii, avr_function_value,
5501         avr_return_in_memory): Likewise.
5502         * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
5503         * config/bfin/bfin.c (bfin_pass_by_reference,
5504         bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
5505         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
5506         Likewise.
5507         * config/cris/cris.c (cris_pass_by_reference,
5508         TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
5509         * config/crx/crx.c (crx_return_in_memory): Likewise.
5510         * config/darwin.c (function_base, machopic_function_base_name):
5511         Likewise.
5512         * config/fr30/fr30.c (fr30_must_pass_in_stack,
5513         TARGET_PROMOTE_PROTOTYPES): Likewise.
5514         * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
5515         * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
5516         * config/i386/i386-protos.h (ix86_return_in_memory,
5517         ix86_sol10_return_in_memory): Likewise.
5518         * config/i386/i386.c (ix86_function_value,
5519         ix86_function_sseregparm, ix86_must_pass_in_stack,
5520         type_natural_mode, classify_argument, examine_argument,
5521         construct_container, ix86_pass_by_reference, function_value_32,
5522         function_value_64, ix86_function_value_1, return_in_memory_32,
5523         return_in_memory_64, return_in_memory_ms_64,
5524         ix86_return_in_memory, ix86_sol10_return_in_memory,
5525         TARGET_PROMOTE_PROTOTYPES): Likewise.
5526         * config/ia64/ia64-protos.h (ia64_function_value,
5527         ia64_hpux_function_arg_padding): Likewise.
5528         * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
5529         ia64_function_value, bundle_state_hash, bundle_state_eq_p,
5530         ia64_hpux_function_arg_padding): Likewise.
5531         * config/iq2000/iq2000-protos.h (function_arg,
5532         iq2000_function_value): Likewise.
5533         * config/iq2000/iq2000.c (iq2000_return_in_memory,
5534         iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
5535         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5536         function_arg, iq2000_function_value): Likewise.
5537         * config/m32c/m32c-protos.h (m32c_function_value,
5538         m32c_promote_function_return): Likewise.
5539         * config/m32c/m32c.c (m32c_pass_by_reference,
5540         m32c_promote_prototypes, m32c_promote_function_return,
5541         m32c_function_value): Likewise.
5542         * config/m32r/m32r.c (m32r_return_in_memory,
5543         m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
5544         m32r_in_small_data_p): Likewise.
5545         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
5546         Likewise.
5547         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
5548         m68hc11_function_arg_padding): Likewise.
5549         * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
5550         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
5551         m68k_function_value): Likewise.
5552         * config/mcore/mcore-protos.h (mcore_num_arg_regs,
5553         mcore_function_value): Likewise.
5554         * config/mcore/mcore.c (handle_structs_in_regs,
5555         mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
5556         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5557         mcore_num_arg_regs, mcore_function_value): Likewise.
5558         * config/mips/mips-protos.h (mips_pad_arg_upward,
5559         mips_function_value): Likewise.
5560         * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
5561         mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
5562         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5563         TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
5564         mips_function_value): Likewise.
5565         * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
5566         Likewise.
5567         * config/mmix/mmix.c (mmix_pass_by_reference,
5568         TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
5569         mmix_encode_section_info): Likewise.
5570         * config/mn10300/mn10300-protos.h (mn10300_function_value):
5571         Likewise.
5572         * config/mn10300/mn10300.c (mn10300_return_in_memory,
5573         mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
5574         mn10300_function_value): Likewise.
5575         * config/mt/mt-protos.h (mt_function_value): Likewise.
5576         * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
5577         mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
5578         * config/pa/pa-protos.h (function_arg_padding, function_value,
5579         pa_return_in_memory): Likewise.
5580         * config/pa/pa.c (pa_pass_by_reference,
5581         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5582         function_arg_padding, function_value, pa_return_in_memory):
5583         Likewise.
5584         * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
5585         * config/rs6000/rs6000-protos.h (rs6000_function_value,
5586         function_arg_padding): Likewise.
5587         * config/rs6000/rs6000.c (rs6000_return_in_memory,
5588         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5589         rs6000_pass_by_reference, rs6000_must_pass_in_stack,
5590         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5591         function_arg_padding, altivec_expand_dst_builtin,
5592         altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
5593         altivec_init_builtins, rs6000_common_init_builtins,
5594         rs6000_function_value): Likewise.
5595         * s390/s390-protos.h (s390_function_value): Likewise.
5596         * config/s390/s390.c (s390_function_arg_size,
5597         s390_pass_by_reference, s390_return_in_memory,
5598         s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
5599         TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5600         * config/score/score-protos.h (score_function_value): Likewise.
5601         * config/score/score.c (score_arg_partial_bytes,
5602         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5603         TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
5604         score_pass_by_reference, score_add_offset, score_function_value):
5605         Likewise.
5606         * config/sh/sh-protos.h (sh_attr_renesas_p,
5607         sh_promote_prototypes): Likewise.
5608         * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
5609         sh_callee_copies, sh_promote_prototypes, shcompact_byref,
5610         sh_attr_renesas_p): Likewise.
5611         * config/sparc/sparc-protos.h (function_value,
5612         function_arg_padding): Likewise.
5613         * config/sparc/sparc.c (sparc_promote_prototypes,
5614         sparc_return_in_memory, sparc_pass_by_reference,
5615         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5616         function_arg_record_value_2, function_arg_record_value_1,
5617         function_arg_record_value, function_arg_record_value,
5618         function_arg_padding, function_value): Likewise.
5619         * config/spu/spu-protos.h (spu_function_value): Likewise.
5620         * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
5621         spu_function_value): Likewise.
5622         * config/stormy16/stormy16-protos.h (xstormy16_function_value):
5623         Likewise.
5624         * config/stormy16/stormy16.c (xstormy16_return_in_memory,
5625         xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
5626         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
5627         Likewise.
5628         * config/v850/v850.c (v850_return_in_memory,
5629         v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
5630         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
5631         * config/xtensa/xtensa.c (xtensa_return_in_msb,
5632         xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
5633         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
5634         Likewise.
5635         * explow.c (promote_mode, hard_function_value): Likewise.
5636         * expr.h (hard_function_value, promote_mode): Likewise.
5637         * function.c (aggregate_value_p): Likewise.
5638         * hooks.c (hook_bool_const_tree_true): New.
5639         * hooks.h (hook_bool_const_tree_true): New.
5640         * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
5641         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
5642         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5643         TARGET_RETURN_IN_MSB): Likewise.
5644         * target.h (promote_function_args, promote_function_return,
5645         promote_prototypes, return_in_memory, return_in_msb,
5646         pass_by_reference, must_pass_in_stack, callee_copies,
5647         function_value): Likewise.
5648         * targhooks.c (default_return_in_memory,
5649         hook_pass_by_reference_must_pass_in_stack,
5650         hook_callee_copies_named,
5651         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
5652         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
5653         default_function_value): Likewise. 
5654         * targhooks.h (default_return_in_memory,
5655         hook_pass_by_reference_must_pass_in_stack,
5656         hook_callee_copies_named,
5657         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
5658         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
5659         default_function_value): Likewise.
5660         * tree-ssa-structalias.c (const_equiv_class_label_t): New.
5661         (equiv_class_label_hash, equiv_class_label_eq): Constify.
5662         * tree-vectorizer.c (bb_in_loop_p): Likewise.
5663         * tree.c (needs_to_live_in_memory): Likewise.
5664         * tree.h (struct tree_type, needs_to_live_in_memory,
5665         aggregate_value_p, must_pass_in_stack_var_size,
5666         must_pass_in_stack_var_size_or_pad): Likewise.
5667         * vmsdbgout.c (write_debug_addr, write_debug_delta4,
5668         write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
5669         lookup_filename): Likewise.
5670
5671 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
5672
5673         PR target/17390
5674         * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
5675         fake fcomi i387 instruction for !TARGET_CMOVE.
5676         (ix86_expand_branch): Expand natural sequence with one jump for
5677         all targets, not only TARGET_CMOVE.
5678         * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
5679         pattern to implement fake fcomi sequence.  Split instruction after
5680         reload to correct compare sequences.
5681         (*cmpfp_xf_cc): Ditto.
5682         (*cmpfp_<mode>_cc): Ditto.
5683         (*cmpfp_u_cc): Ditto.
5684         (*cmpfp_<mode>_cc): Ditto.
5685
5686 2007-08-23  Richard Guenther  <rguenther@suse.de>
5687
5688         * tree-pretty-print.c (dump_generic_node): Annotate
5689         GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
5690
5691 2007-08-23  Richard Guenther  <rguenther@suse.de>
5692
5693         * builtins.c (expand_builtin_mathfn): Wrap argument in
5694         save_expr directly instead of re-building the call.
5695         (expand_builtin_mathfn_2): Likewise.
5696         (expand_builtin_mathfn_3): Likewise.
5697         (expand_builtin_interclass_mathfn): Likewise.
5698         (expand_builtin_int_roundingfn): Set arg.
5699         (expand_builtin_int_roundingfn_2): Likewise.
5700
5701 2007-08-23  Paolo Bonzini  <bonzini@gnu.org>
5702
5703         * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
5704         *sse_nand<mode>3, *sse_xor<mode>3): New.
5705
5706 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
5707
5708         * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
5709         * config/i386/i386.c (print_operand): Handle ';' code.  Output
5710         semicolon for TARGET_MACHO.
5711         * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
5712         emit semicolon after 'lock' prefix.
5713         (sync_double_compare_and_swap<mode>): Ditto.
5714         (*sync_double_compare_and_swapdi_pic): Ditto.
5715         (*sync_compare_and_swap_cc<mode>): Ditto.
5716         (sync_double_compare_and_swap_cc<mode>): Ditto.
5717         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
5718         (sync_old_add<mode>): Ditto.
5719         (sync_add<mode>): Ditto.
5720         (sync_sub<mode>): Ditto.
5721         (sync_ior<mode>): Ditto.
5722         (sync_and<mode>): Ditto.
5723         (sync_xor<mode>): Ditto.
5724
5725 2007-08-22  Chao-ying Fu  <fu@mips.com>
5726
5727         * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
5728         in DEF_RTL_EXPR.
5729         (copy_rtx): Handle CONST_FIXED.
5730         (rtx_equal_p): Likewise.
5731         * rtl.h (fixed_value.h): New include.
5732         (rtx_def): Add a new field of fixed_value to u.
5733         (XCNMPFV): Define for accessing fixed_value.
5734         (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
5735         Define.
5736         * rtl.def (CONST_FIXED): New constant.
5737         (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
5738         UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
5739         US_ASHIFT): New codes.
5740         * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
5741         us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
5742         unsigned_fract_convert, unsigned_sat_fract): Document them.
5743         * varasm.c (assemble_integer): Extend to support fixed-point constants
5744         by using different machine classes.
5745         (decode_addr_const): Handle FIXED_CST.
5746         (const_hash_1): Likewise.
5747         (compare_constant): Likewise.
5748         (copy_constant): Likewise.
5749         (const_rtx_hash_1): Handle CONST_FIXED.
5750         (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
5751         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
5752         MODE_VECTOR_UACCUM.
5753         (initializer_constant_valid_p): Handle FIXED_CST.
5754         (output_constant): Support FIXED_POINT_TYPE.
5755         * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
5756         * cse.c (hash_rtx): Support CONST_FIXED.
5757         (exp_equiv_p): Likewise.
5758         (cannon_reg): Likewise.
5759         (fold_rtx): Likewise.
5760         (equiv_constant): Likewise.
5761         (cse_process_notes_1): Likewise.
5762         (count_reg_usage): Likewise.
5763         * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
5764         (rtx_equal_for_cselib_p): Handle CONST_FIXED.
5765         (wrap_constant): Check CONST_FIXED.
5766         (cselib_hash_rtx): Support CONST_FIXED.
5767         (cselib_subst_to_values): Likewise.
5768         * df-scan.c (df_uses_record): Likewise.
5769         * gcse.c (want_to_gcse_p): Likewise.
5770         (oprs_unchanged_p): Likewise.
5771         (oprs_not_set_p): Likewise.
5772         (compute_transp): Likewise.
5773         (extract_mentioned_regs_helper): Likewise.
5774         * genemit.c (gen_exp): Likewise.
5775         * local-alloc.c (equiv_init_varies_p): Likewise.
5776         (contains_replace_regs): Likewise.
5777         (memref_referenced_p): Likewise.
5778         * loop-invariant.c (check_maybe_invariant): Likewise.
5779         (hash_invariant_expr_1): Likewise.
5780         (invariant_expr_equal_p): Likewise.
5781         * postreload-gcse.c (oprs_unchanged_p): Likewise.
5782         * regclass.c (reg_scan_mark_refs): Likewise.
5783         * regrename.c (scan_rtx): Likewise.
5784         * resource.c (mark_referenced_resources): Likewise.
5785         (mark_set_resources): Likewise.
5786         * rtlanal.c (rtx_unstable_p): Likewise.
5787         (rtx_varies_p): Likewise.
5788         (count_occurrences): Likewise.
5789         (reg_mentioned_p): Likewise.
5790         (modified_between_p): Likewise.
5791         (modified_in_p): Likewise.
5792         (volatile_insn_p): Likewise.
5793         (volatile_refs_p): Likewise.
5794         (side_effects_p): Likewise.
5795         (may_trap_p_1): Likewise.
5796         (inequality_comparisons_p): Likewise.
5797         (computed_jump_p_1): Likewise.
5798         (commutative_operand_precedence): Likewise.
5799         * sched-deps.c (sched_analyze_2): Likewise.
5800         * sched-vis.c (print_value): Likewise.
5801         * reload.c (operands_match_p): Likewise.
5802         (subst_reg_equivs): Likewise.
5803         * reload1.c (eliminate_regs_1): Likewise.
5804         (elimination_effects): Likewise.
5805         (scan_paradoxical_subregs): Likewise.
5806         * alias.c (rtx_equal_for_memref_p): Likewise.
5807         * Makefile.in (RTL_BASE_H): Add fixed-value.h.
5808         * emit-rtl.c (const_fixed_htab): New hash table.
5809         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
5810         Declare.
5811         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
5812         const_fixed_from_fixed_value): New functions.
5813         (verify_rtx_sharing): Handle CONST_FIXED.
5814         (copy_rtx_if_shared_1): Likewise.
5815         (reset_used_flags): Likewise.
5816         (set_used_flags): Likewise.
5817         (copy_insn_1): Likewise.
5818         (init_emit_once): Create const_fixed_htab.
5819         Store fixed-point scalar and vector zero and one to const_tiny_rtx.
5820
5821 2007-08-22  Zdenek Dvorak  <ook@ucw.cz>
5822
5823         PR tree-optimization/32949
5824         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
5825         before failing for ivs with non-constant step.
5826
5827 2007-08-22  Hans-Peter Nilsson  <hp@axis.com>
5828
5829         * doc/md.texi (Iterators): Renamed from Macros.  All contents
5830         changed to reflect rename of respectively define_code_macro and
5831         define_mode_macro to define_code_iterator and define_mode_iterator.
5832         (Mode Iterators, Code Iterators): Similar.
5833         * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
5834         (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
5835         (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
5836         (initialize_iterators, find_iterator, check_code_iterator)
5837         (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
5838         (read_mapping, read_rtx_1): Similar.
5839         * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
5840         config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
5841         config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
5842         config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
5843         config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
5844         config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
5845         config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
5846         config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
5847         config/rs6000/sync.md, config/rs6000/rs6000.md,
5848         config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
5849         config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
5850         config/vax/vax.md, config/bfin/bfin.md: Similar.
5851
5852 2007-08-22  David Daney  <ddaney@avtrex.com>
5853
5854         * doc/install.texi (Testing): Mention testing on a simulator.
5855
5856 2007-08-22  Janis Johnson  <janis187@us.ibm.com>
5857
5858         * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
5859
5860         * doc/libgcc.texi (Decimal float library routines): Fix formatting
5861         and rearrange floating point conversion functions into different
5862         categories.
5863
5864 2007-08-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5865
5866         * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
5867         dfa_post_advance_cycle): New scheduler hooks.
5868         * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
5869         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
5870         new hooks.
5871         (TARGET_SCHED): Use them.
5872         * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
5873         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
5874         * haifa-sched.c (advance_one_cycle): Invoke new hooks.
5875
5876         * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
5877         function to facilitate debugging.
5878         (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
5879         (output_insn_has_dfa_reservation_p): New static function to output
5880         insn_has_dfa_reservation_p ().
5881         (write_automata): Use it.
5882         * genattr.c (main): Output declaration for
5883         insn_has_dfa_reservation_p ().
5884
5885 2007-08-22  Christian Bruel  <christian.bruel@st.com>   
5886             Richard Guenther <rguenther@suse.de>
5887         
5888         * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
5889         * simplify_rtx (simplify_binary_operation_1): Likewise.
5890                 
5891 2007-08-22  Rask Ingemann Lambertsen  <rask@sygehus.dk>
5892
5893         PR rtl-optimization/32557
5894         * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
5895         of REGNO (mws->mw_reg).
5896
5897 2007-08-22  Richard Guenther  <rguenther@suse.de>
5898
5899         PR middle-end/33007
5900         * builtins.c (expand_builtin_int_roundingfn): Replace call
5901         argument wrapped with SAVE_EXPR directly.
5902         (expand_builtin_int_roundingfn_2): Likewise.
5903
5904 2007-08-22  Richard Guenther  <rguenther@suse.de>
5905
5906         * tree-inline.c (inlinable_function_p): Restore disregarding
5907         inline limits for GNU extern inline functions.
5908
5909 2007-08-22  Richard Guenther  <rguenther@suse.de>
5910
5911         PR middle-end/32563
5912         * tree.c (host_integerp): Treat sizetype as signed as it is
5913         sign-extended.
5914
5915 2007-08-21  Ian Lance Taylor  <iant@google.com>
5916
5917         PR tree-optimization/33134
5918         * tree-vrp.c (adjust_range_with_scev): Call
5919         set_value_range_to_value.
5920
5921 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
5922
5923         * value-prof.h (gimple_remove_histogram_value): Remove duplicate
5924         prototype.
5925         
5926 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
5927
5928         * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
5929         whitespace.
5930
5931 2007-08-21  Nathan Froyd  <froydnj@codesourcery.com>
5932
5933         * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
5934         cases to set eight bytes at a time.
5935         (expand_block_move): Likewise.
5936         
5937 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5938
5939         PR debug/32610
5940         * dwarf2out.c (gen_decl_die): Don't call
5941         gen_tagged_type_instantiation_die if decl doesn't have tagged type.
5942
5943 2007-08-21  Paul Brook  <paul@codesourcery.com>
5944             Nathan Sidwell  <nathan@codesourcery.com>
5945             Mark Mitchell  <mark@codesourcery.com>
5946             Joseph Myers  <joseph@codesourcery.com>
5947
5948         * configure.ac: Add --with-pkgversion and --with-bugurl.
5949         * configure: Regenerate.
5950         * doc/install.texi: Document them.
5951         * version.c (version_string): Remove VERSUFFIX.
5952         (VERSUFFIX): Remove.
5953         (pkgversion_string): New.
5954         (bug_report_url): Do not hard-code initializer.
5955         * version.h (pkgversion_string): Declare.
5956         * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
5957         Define.
5958         (version.o): Define PKGVERSION and BUGURL.
5959         (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
5960         (%.pod): Define BUGURL.
5961         * gcc.c (process_command, main): Use pkgversion_string.
5962         * toplev.c (compile_file, print_version): Likewise.
5963         * protoize.c (main): Likewise.
5964         * gcov.c (print_version): Likewise.  Update copyright date.
5965         * gcov-dump.c (print_version): Likewise.  Update copyright date.
5966         * mips-tdump.c (main): Likewise.  Update copyright date.
5967         * mips-tfile.c (main): Likewise.  Update copyright date.
5968         * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
5969         * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
5970         shorten description.
5971         * doc/gcc.texi: Include VERSION_PACKAGE in version description.
5972         * doc/gccint.texi: Likewise.
5973         * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
5974         Update copyright date.
5975
5976 2007-08-21  Uros Bizjak  <ubizjak@gmail.com>
5977
5978         * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
5979         (ix86_expand_strlensi_unroll_1): Ditto.
5980         (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
5981         (ix86_expand_carry_flag_compare): Update comment.
5982
5983 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5984
5985         PR middle-end/32912
5986         * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
5987         (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
5988
5989 2007-08-21  Richard Guenther  <rguenther@suse.de>
5990
5991         * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
5992
5993 2007-08-21  Richard Guenther  <rguenther@suse.de>
5994
5995         PR middle-end/33122
5996         * fold-const.c (fold_binary): Remove index +p PTR folding.
5997         Fix types of POINTER_PLUS_EXPR generated by folding of
5998         (PTR +p B) +p A.
5999
6000 2007-08-20  Chao-ying Fu  <fu@mips.com>
6001
6002         * c-common.h (enum rid): Add new enumeration values of RID_SAT,
6003         RID_FRACT, and RID_ACCUM.  RID_SAT needs to be inserted before
6004         RID_ONEWAY, so that it can be checked in declspecs_add_type.
6005         (c_common_fixed_point_type_for_size): Declare.
6006         * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
6007         (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
6008         (c_token_starts_declspecs): Likewise.
6009         (c_parser_declspecs): Likewise.
6010         (c_parser_attributes): Likewise.
6011         * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
6012         (c_declspecs): Add saturating_p.
6013         * c-decl.c (build_null_declspecs): Initialize saturating_p.
6014         (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
6015         _Sat.  Handle RID_SAT.
6016         Avoid using void, bool, char, int, float, double, _Decimal32,
6017         _Decimal64, _Decimal128, and complex with _Sat.
6018         Handle RID_FRACT and RID_ACCUM.
6019         Make sure _Sat is used with _Fract or _Accum.
6020         (finish_declspecs): Handle cts_fract and cts_accum.
6021         * c-common.c (fixed-value.h): New include.
6022         (constant_expression_warning): Handle FIXED_CST.
6023         (overflow_warning): Likewise.
6024         (warnings_for_convert_and_check): Likewise.
6025         (c_common_fixed_point_type_for_size): New.
6026         (c_common_type_for_mode): Handle fixed-point modes to
6027         return various saturating/non-saturating, signed/unsigned types.
6028         (c_common_signed_or_unsigned_type): Support fixed-point types.
6029         (shorten_compare): Check fixed-point zero.
6030         Handle FIXED_POINT_TYPE.
6031         (c_common_truthvalue_conversion): Handle FIXED_CST.
6032         Handle FIXED_POINT_TYPE.
6033         (c_common_nodes_and_builtins): Record builtin types for fixed-point
6034         types.
6035         (handle_mode_attribute): Handle fixed-point modes.  Need to check
6036         if the signness of base type and fixed-point modes are consistent.
6037         (handle_vector_size_attribute): Handle fixed-point modes.
6038         (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
6039         (warn_for_div_by_zero): Check fixed-point zero.
6040         * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE.  Build
6041         a common fixed-point type based on fbit, ibit, sign, and saturation.
6042         (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
6043         NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
6044         PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
6045         (convert_for_assignment): Support FIXED_POINT_TYPE.
6046         (digest_init): Handle FIXED_POINT_TYPE.
6047         (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
6048         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6049         TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
6050         GE_EXPR, LT_EXPR, GT_EXPR.
6051         * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
6052         (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
6053         * target.h (gcc_target): Add fixed_point_supported_p.
6054         * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
6055         MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
6056         (default_fixed_point_supported_p): Define.
6057         * targhooks.h (default_fixed_point_supported_p): Declare.
6058         * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
6059         * doc/install.texi (Configuration): Add --enable-fixed-point.
6060         * configure.ac (--enable-fixed-point): New to enable fixed-point
6061         arithmetic extension to C.  For mips targets, we enable it by default.
6062         * configure, config.in: Regenerate.
6063
6064 2007-08-20  Pawel Sikora  <pluto@pld-linux.org>
6065
6066         * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
6067
6068 2007-08-20  David Edelsohn  <edelsohn@gnu.org>
6069
6070         * dwarf2out.c (text_section_used): Move declaration outside ifdef
6071         DWARF2_DEBUGGING_INFO.
6072         (cold_text_section_used): Same.
6073         (cold_text_section): Same.
6074
6075 2007-08-20  Richard Guenther  <rguenther@suse.de>
6076
6077         * c-typeck.c (convert_for_assignment): Use the type of
6078         the member for the initialization.
6079
6080 2007-08-20  Richard Guenther  <rguenther@suse.de>
6081
6082         * c-objc-common.c (c_disregard_inline_limits): Remove.
6083         * c-objc-common.h (c_disregard_inline_limits): Likewise.
6084         * cgraphunit.c (cgraph_process_new_functions): Call
6085         disregard_inline_limits_p.
6086         (cgraph_preserve_function_body_p): Likewise.
6087         * ipa-inline.c (compute_inline_parameters): Likewise.
6088         * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
6089         Remove.
6090         (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
6091         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
6092         disregard_inline_limits langhook.
6093         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6094         Remove.
6095         * langhooks.h (lang_hooks_for_tree_inlining): Remove
6096         disregard_inline_limits langhook.
6097         * tree-inline.c (disregard_inline_limits_p): New function.
6098         * tree-inline.h (disregard_inline_limits_p): Declare.
6099
6100 2007-08-20  Richard Guenther  <rguenther@suse.de>
6101
6102         * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
6103         (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
6104         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
6105         auto_var_in_fn_p langhook.
6106         * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
6107         move ...
6108         * tree.c (auto_var_in_fn_p): ... here.
6109         (find_var_from_fn): Call auto_var_in_fn_p directly.
6110         * langhooks.h (lang_hooks_for_tree_inlining): Remove
6111         auto_var_in_fn_p langhook.
6112         * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
6113         (copy_body_r): Likewise.
6114         (self_inlining_addr_expr): Likewise.
6115         * tree.h (auto_var_in_fn_p): Declare.
6116
6117 2007-08-20  Richard Guenther  <rguenther@suse.de>
6118
6119         * tree.c (WALK_SUBTREE): Call walk_tree_1.
6120         (walk_type_fields): Take lh parameter.
6121         (walk_tree): Rename to ...
6122         (walk_tree_1): ... this.  Do not call the walk_subtrees
6123         langhook but the now passed callback.  Pass lh on recursion.
6124         (walk_tree_without_duplicates): Rename to ...
6125         (walk_tree_without_duplicates_1): ... this.  Take lh parameter
6126         and call walk_tree_1.
6127         * tree.h (walk_tree_lh): New typedef.
6128         (walk_tree_1): Declare.
6129         (walk_tree_without_duplicates_1): Likewise.
6130         (walk_tree): New define to walk_tree_1 with NULL lh parameter.
6131         (walk_tree_without_duplicates): New define to
6132         walk_tree_without_duplicates_1 with NULL lh parameter.
6133         * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
6134         * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
6135         langhook.
6136         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
6137         (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
6138         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
6139         initializer.
6140
6141 2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6142
6143         PR middle-end/30564
6144         * tree-inline.c (optimize_inline_calls): Move the cgraph checking
6145         code in front of the compacting of basic blocks.
6146         Move the folding of statements inbetween the cgraph checking
6147         and compacting of basic blocks.
6148
6149 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6150            Serge Belyshev  <belyshev@depni.sinp.msu.ru>
6151
6152         PR target/32522
6153         * config/alpha/alpha.c (va_list_skip_additions): Check for
6154         POINTER_PLUS_EXPR in addition to PLUS_EXPR.
6155         (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
6156         PLUS_EXPR when checking ap.__base.
6157         (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
6158         when doing addition on pointer types.  Use size_int instead of
6159         build_int_cst.
6160         (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
6161         ptr_type in the second operand.
6162
6163 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
6164
6165         PR target/33115
6166         * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
6167
6168 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6169
6170         PR middle-end/32940
6171         * cfgexpand.c  (expand_one_register_var): Mark pointer
6172         DECL_ARTIFICIAL as REG_POINTER also.
6173         * stmt.c (expand_decl): Likewise.
6174
6175 2007-08-19  Daniel Berlin  <dberlin@dberlin.org>
6176
6177         Fix PR 32772
6178         Fix PR 32716
6179         Fix PR 32328
6180         Fix PR 32303
6181
6182         * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
6183         * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
6184         on_worklist argument and avoid adding things to worklist multiple
6185         times.
6186         (add_to_worklist): Ditto.
6187         (mark_aliases_call_clobbered): Mark entire structure clobbered if
6188         single SFT is clobbered.
6189         (set_initial_properties): Ditto.
6190         (compute_call_clobbered): Update for changes to function
6191         arguments.
6192         (create_overlap_variables_for): Always create SFT for offset 0.
6193         (create_structure_vars): Handle PHI's, since we are in SSA form at
6194         this point.
6195         * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
6196         * tree-ssa-operands.c (access_can_touch_variable): Don't handle
6197         TARGET_MEM_REF.
6198         (add_vars_for_offset): Figure out aliases from access + points-to.
6199         (add_virtual_operand): Use add_vars-for_offset.
6200         (get_tmr_operands): Update for NMT changes, rewrite to be correct.
6201         (add_call_clobber_ops): Remove makes_clobbering_call set.
6202         (get_expr_operands): Always pass through the INDIRECT_REF
6203         reference.
6204         * tree-ssa-structalias.c (struct constraint_graph): Remove
6205         variables member.
6206         Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
6207         address_taken, pt_used, number_incoming.
6208         (FIRST_ADDR_NODE): Removed.
6209         (merge_graph_nodes): Remove broken code for the moment.
6210         (init_graph): New function.
6211         (build_pred_graph): Remove code to init_graph.
6212         Add location equivalence support.
6213         (struct scc_info): Rename roots to deleted.
6214         (scc_visit): Ditto.
6215         (init_scc_info): Ditto
6216         (init_topo_info): Use graph->size.
6217         (compute_topo_order): Ditto.
6218         (do_da_constraint): Removed.
6219         (do_sd_constraint): Remove calls to find().
6220         set_union_with_increment should always get 0 as last arg here.
6221         (do_complex_constraint): Replace do_da_constraint with assert.
6222         Stop calling find.
6223         (struct equiv_class_label): New.
6224         (pointer_equiv_class_table): Ditto.
6225         (location_equiv_class_table): Ditto.
6226         (equiv_class_label_hash): Ditto.
6227         (equiv_class_label_eq): Ditto
6228         (equiv_class_lookup): Ditto.
6229         (equiv_class_ladd): Ditto.
6230         (pointer_equiv_class): Ditto.
6231         (location_equiv_class): Ditto.
6232         (condense_visit): Rename and rewrite from label_visit to do only
6233         SCC related stuff for HU.
6234         (label_visit): Do HU work for HU.
6235         (perform_var_substitution): Update to do HU and location
6236         equivalence.
6237         (free_var_substitution_info): Update to free HU and location
6238         equivalence structures.  */
6239         (find_equivalent_node): Update for pointer but not location
6240         equivalence.
6241         (unite_pointer_equivalences): New function.
6242         (move_complex_constraints): Rewrite to only do moving.
6243         (rewrite_constraints): Split out of move_complex_constraints.
6244         (solve_graph): Use graph->size.
6245         (process_constraint_1): Add from_call argument, use it.
6246         Split *a = &b into two constraints.
6247         (process_constraint): Use new process_constraint_1.
6248         (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
6249         (get_constraint_for): Handle non-pointer integers properly.
6250         Remove code that used to handle structures.
6251         (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
6252         with unknown addends.
6253         (handle_rhs_call): New function.
6254         (find_func_aliases): Use handle_rhs_call.
6255         (set_uids_in_ptset): Add an assert.
6256         (set_used_smts): Fix bug in not considering unified vars.
6257         (compute_tbaa_pruning): Stop initing useless iteration_obstack.
6258         (compute_points_to_sets): Update for other function changes.
6259         (delete_points_to_sets): Ditto.
6260         (ipa_pta_execute): Ditto.
6261         (pass_ipa_pta): We need to update SSA after ipa_pta.
6262         
6263 2007-08-19  Jan Hubicka  <jh@suse.cz>
6264
6265         * i386.md: Replace "rim" and "mri" constraints by "g".
6266
6267 2007-08-19  Joseph Myers  <joseph@codesourcery.com>
6268
6269         * dwarf2out.c (text_section_used, cold_text_section_used,
6270         cold_text_section, dwarf2out_note_section_used): New.
6271         (dwarf2out_init): Initialize cold_text_section.
6272         (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
6273         dwarf2out_note_section_used.
6274         (size_of_aranges): Only count entry for text section if it was
6275         used.  Count entry for cold text section if it was used.
6276         (output_aranges): Only output entries for text section and cold
6277         text section if they were used.
6278
6279 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
6280
6281         * tree-pretty-print.c (debug_generic_expr): Add a comment about
6282         the function.
6283         (debug_generic_stmt): Likewise.
6284         (debug_tree_chain): Likewise.
6285
6286 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
6287
6288         * tree-data-refs.c (split_constant_offset): Expose.
6289         * tree-data-refs.h (split_constant_offset): Add declaration.
6290
6291         * tree-vectorizer.h (dr_alignment_support): Renamed
6292         dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
6293         Added a new value dr_explicit_realign.
6294         (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
6295         dr_offset, dr_step, and dr_aligned_to, along with new access
6296         functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
6297         STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
6298         STMT_VINFO_DR_ALIGNED_TO.
6299
6300         * tree-vectorizer.c (vect_supportable_dr_alignment): Add
6301         documentation.
6302         In case of outer-loop vectorization with non-fixed misalignment - use
6303         the dr_explicit_realign scheme instead of the optimized realignment
6304         scheme.
6305         (new_stmt_vec_info): Initialize new fields.
6306
6307         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
6308         'nested_in_vect_loop' case. Change verbosity level.
6309         (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
6310         Don't fail on zero step in the outer-loop for loads.
6311         (vect_analyze_data_refs): Call split_constant_offset to calculate
6312         base, offset and init relative to the outer-loop.
6313
6314         * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
6315         BSI function argument with a new function argument - at_loop.
6316         Simplify the condition that determines STEP. Takes additional argument
6317         INV_P. Support outer-loop vectorization (handle the
6318         nested_in_vect_loop case), including zero step in the outer-loop. Call
6319         vect_create_addr_base_for_vector_ref with additional argument.
6320         (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
6321         Updated function documentation. Handle the 'nested_in_vect_loop' case.
6322         Fixed and simplified calculation of step.
6323         (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
6324         of bsi, and with additional argument. Call bump_vector_ptr with
6325         additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
6326         (vect_setup_realignment): Takes additional arguments INIT_ADDR and
6327         DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
6328         when the realignment setup needs to take place inside the loop.
6329         Support the dr_explicit_realign scheme. Allow generating the optimized
6330         realignment scheme for outer-loop vectorization. Added documentation.
6331         (vectorizable_load): Support the dr_explicit_realign scheme. Handle
6332         the 'nested_in_vect_loop' case, including loads that are invariant in
6333         the outer-loop and the realignment schemes. Handle the case when the
6334         realignment setup needs to take place inside the loop. Call
6335         vect_setup_realignment with additional arguments.  Call
6336         vect_create_data_ref_ptr with additional argument and with loop instead
6337         of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
6338         (vect_gen_niters_for_prolog_loop): Call
6339         vect_create_addr_base_for_vector_ref with additional arguments.
6340         (vect_create_cond_for_align_checks): Likewise.
6341         (bump_vector_ptr): Updated to support the new dr_explicit_realign
6342         scheme: takes additional argument bump; argument ptr_incr is now
6343         optional; updated documentation.
6344         (vect_init_vector): Takes additional argument (bsi). Use it, if
6345         available, to insert the vector initialization.
6346         (get_initial_def_for_induction): Pass additional argument in call to
6347         vect_init_vector.
6348         (vect_get_vec_def_for_operand): Likewise.
6349         (vect_setup_realignment): Likewise.
6350         (vectorizable_load): Likewise.
6351
6352 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
6353
6354         * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
6355         as argument instead of struct loop.
6356         (nested_in_vect_loop_p): New function.
6357         (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
6358         vect_used_in_outer.
6359         (is_loop_header_bb_p): New. Used to differentiate loop-header phis
6360         from other phis in the loop.
6361         (destroy_loop_vec_info): Add additional argument to declaration.
6362
6363         * tree-vectorizer.c (supportable_widening_operation): Also check if
6364         nested_in_vect_loop_p (don't allow changing the order in this case).
6365         (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
6366         of struct loop. Call nested_in_vect_loop_p and don't require
6367         flag_unsafe_math_optimizations if it returns true.
6368         (new_stmt_vec_info): When setting def_type for phis differentiate 
6369         loop-header phis from other phis.
6370         (bb_in_loop_p): New function.
6371         (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
6372         just update their loop_vinfo.  Order of BB traversal now matters -
6373         call dfs_enumerate_from with bb_in_loop_p.
6374         (destroy_loop_vec_info): Takes additional argument to control whether
6375         stmt_vinfo of the loop stmts should be destroyed as well.
6376         (vect_is_simple_reduction): Allow the "non-reduction" use of a
6377         reduction stmt to be defines by a non loop-header phi.
6378         (vectorize_loops): Call destroy_loop_vec_info with additional argument.
6379
6380         * tree-vect-transform.c (vectorizable_reduction): Call
6381         nested_in_vect_loop_p. Check for multitypes in the inner-loop.
6382         (vectorizable_call): Likewise.
6383         (vectorizable_conversion): Likewise.
6384         (vectorizable_operation): Likewise.
6385         (vectorizable_type_promotion): Likewise.
6386         (vectorizable_type_demotion): Likewise.
6387         (vectorizable_store): Likewise.
6388         (vectorizable_live_operation): Likewise.
6389         (vectorizable_reduction): Likewise. Also pass loop_info to
6390         vect_is_simple_reduction instead of loop.
6391         (vect_init_vector): Call nested_in_vect_loop_p.
6392         (get_initial_def_for_reduction): Likewise.
6393         (vect_create_epilog_for_reduction): Likewise.
6394         (vect_init_vector): Check which loop to work with, in case there's an
6395         inner-loop.
6396         (get_initial_def_for_inducion): Extend to handle outer-loop
6397         vectorization. Fix indentation.
6398         (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
6399         In the case vect_induction_def get the vector def from the induction
6400         phi node, instead of calling get_initial_def_for_inducion.
6401         (get_initial_def_for_reduction): Extend to handle outer-loop 
6402         vectorization.
6403         (vect_create_epilog_for_reduction): Extend to handle outer-loop
6404         vectorization.
6405         (vect_transform_loop): Change assert to just skip this case.  Add a
6406         dump printout.
6407         (vect_finish_stmt_generation): Add a couple asserts.
6408
6409         (vect_estimate_min_profitable_iters): Multiply
6410         cost of inner-loop stmts (in outer-loop vectorization) by estimated
6411         inner-loop bound.
6412         (vect_model_reduction_cost): Don't add reduction epilogue cost in case
6413         this is an inner-loop reduction in outer-loop vectorization.
6414
6415         * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
6416         Same code as what used to be vect_analyze_scalar_cycles, only with
6417         additional argument loop, and loop_info passed to
6418         vect_is_simple_reduction instead of loop.
6419         (vect_analyze_scalar_cycles): Code factored out into
6420         vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
6421         Updated documentation.
6422         (analyze_operations): Check for inner-loop loop-closed exit-phis during
6423         outer-loop vectorization that are live or not used in the outerloop,
6424         cause this requires special handling.
6425         (vect_enhance_data_refs_alignment): Don't consider versioning for
6426         nested-loops.
6427         (vect_analyze_data_refs): Check that there are no datarefs in the
6428         inner-loop.
6429         (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
6430         and vect_used_in_outer_by_reduction cases.
6431         (process_use): Also consider the case of outer-loop stmt defining an
6432         inner-loop stmt and vice versa.
6433         (vect_analyze_loop_1): New function.
6434         (vect_analyze_loop_form): Extend, to allow a restricted form of nested
6435         loops.  Call vect_analyze_loop_1.
6436         (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
6437         been vectorized.  Call destroy_loop_vec_info with additional argument.
6438
6439         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
6440         in the inner-loop when doing outer-loop vectorization. Add
6441         documentation and printout.
6442         (vect_recog_dot_prod_pattern): Likewise. Also add check for
6443         GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
6444
6445 2007-08-18  Andrew Pinski  <pinskia@gmail.com>
6446
6447         * tree-affine.h (print_aff): New prototype.
6448         (debug_aff): Likewise.
6449         * tree-affine.c (print_aff): New function.
6450         (debug_aff): Likewise.
6451
6452 2007-08-18  Paul Brook  <paul@codesourcery.com>
6453             Joseph Myers  <joseph@codesourcery.com>
6454
6455         * common.opt (-fdebug-prefix-map=): New option.
6456         * opts.c: Include debug.h.
6457         (common_handle_option): Handle -fdebug-prefix-map.
6458         * final.c: Include ggc.h.
6459         (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
6460         remap_debug_filename): New.
6461         * Makefile.in (final.o, opts.o): Update dependencies.
6462         * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
6463         * configure.ac: Check for assembler --debug-prefix-map support.
6464         * configure, config.in: Regenerate.
6465         * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
6466         (ASM_DEBUG_SPEC): Include ASM_MAP.
6467         * doc/install.texi (--with-debug-prefix-map): Document.
6468         * doc/invoke.texi (-fdebug-prefix-map): Document.
6469         * dbxout.c (dbxout_init, dbxout_start_source_file,
6470         dbxout_source_file): Call remap_debug_filename.
6471         * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
6472         dwarf2out_start_source_file, dwarf2out_finish): Call
6473         remap_debug_filename.
6474         (file_table_relative_p): Do not check d->emitted_number.
6475         * toplev.c (output_file_directive): Call remap_debug_filename.
6476         * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
6477         * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
6478
6479 2007-08-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6480
6481         * loop-invariant.c (find_invariants_to_move): Add missing macro
6482         argument.
6483
6484 2007-08-17  Tom Tromey  <tromey@redhat.com>
6485
6486         * tree.h (struct tree_label_decl): Removed old "java" fields.
6487
6488 2007-08-17  Richard Sandiford  <richard@codesourcery.com>
6489             Nigel Stephens  <nigel@mips.com>
6490
6491         * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
6492         Treat -mno-data-in-code and -mcode-xonly as aliases for
6493         -mcode-readable=no and -mcode-readable=pcrel respectively.
6494         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
6495         (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
6496         (MULTILIB_DIRNAMES): Update accordingly.
6497
6498 2007-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6499
6500         * Makefile.in (version.o): Depend on $(REVISION) only if
6501         REVISION_s is defined.
6502
6503 2007-08-17  Sa Liu  <saliu@de.ibm.com>
6504             Ulrich Weigand  <uweigand@de.ibm.com>
6505
6506         PR middle-end/32970
6507         * tree.c (reconstruct_complex_type): For a pointer to a vector,
6508         use build_qualified_type to retain qualifiers of the base type.
6509
6510 2007-08-17  Chen Liqin  <liqin@sunnorth.com.cn>
6511
6512         * config/score/score.md : Update pattern tablejump.
6513         * config/score/score.c : Update score_initialize_trampoline 
6514         function.
6515         * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
6516         (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
6517         * doc/contrib.texi: Add my entry.
6518
6519 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6520
6521         * Makefile.in (REVISION): New.
6522         (REVISION_c): New.
6523         (REVISION_s): New.
6524         (version.o): Also depend on $(REVISION). Add
6525         -DREVISION=$(REVISION_s).
6526
6527         * version.c (version_string): Add REVISION.
6528
6529 2007-08-16  Seongbae Park <seongbae.park@gmail.com>
6530
6531         * tree-eh.c (lower_try_finally_onedest): Reset the locus
6532         of GOTO that's relocated to a different block.
6533
6534 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6535
6536         * c-common.c (const_strip_array_types): New.
6537         * c-common.h (lang_missing_noreturn_ok_p): Delete.
6538         (const_strip_array_types): New.
6539         * c-objc-common.c (c_disregard_inline_limits,
6540         c_warn_unused_global_decl): Constify.
6541         * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
6542         c_vla_type_p, c_incomplete_type_error): Likewise.
6543         * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
6544         * hooks.c (hook_bool_const_tree_false): New.
6545         * hooks.h (hook_bool_const_tree_false): Likewise.
6546         * langhooks-def.h (lhd_warn_unused_global_decl,
6547         lhd_incomplete_type_error, lhd_expr_size,
6548         lhd_tree_inlining_disregard_inline_limits,
6549         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
6550         LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
6551         * langhooks.c (lhd_warn_unused_global_decl,
6552         lhd_incomplete_type_error,
6553         lhd_tree_inlining_disregard_inline_limits,
6554         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
6555         lhd_expr_size): Likewise.
6556         * langhooks.h (lang_hooks_for_tree_inlining,
6557         lang_hooks_for_tree_dump, lang_hooks_for_types,
6558         lang_hooks_for_decls, lang_hooks): Likewise.
6559         * pointer-set.c (pointer_set_t, pointer_set_create,
6560         pointer_set_contains, insert_aux, pointer_set_insert,
6561         pointer_set_traverse, pointer_map_t, pointer_map_create,
6562         pointer_map_contains, pointer_map_insert, pointer_map_traverse):
6563         Likewise.
6564         * pointer-set.h (pointer_set_contains, pointer_set_insert,
6565         pointer_set_traverse, pointer_map_contains, pointer_map_insert,
6566         pointer_map_traverse): Likewise.
6567         * predict.c (assert_is_empty): Likewise.
6568         * tree-affine.c (free_name_expansion): Likewise.
6569         * tree-cfg.c (edge_to_cases_cleanup): Likewise.
6570         * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
6571         * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
6572
6573 2007-08-16  Victor Kaplansky <victork@il.ibm.com>
6574
6575         * tree-vectorizer.c (new_loop_vec_info): Initialize new 
6576         field.
6577         (destroy_loop_vec_info): Add call to VEC_free.
6578         * tree-vectorizer.h (may_alias_ddrs): Define.
6579         (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
6580         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
6581         Change reporting to dump.
6582         (vect_is_duplicate_ddr): New.
6583         (vect_mark_for_runtime_alias_test): New.
6584         (vect_analyze_data_ref_dependences) Add call to
6585         vect_mark_for_runtime_alias_test.
6586         (vect_enhance_data_refs_alignment): Define local variable
6587         vect_versioning_for_alias_required, don't perform
6588         peeling for alignment if versioning for alias is
6589         required.
6590         (vect_enhance_data_refs_alignment): Use
6591         PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
6592         PARAM_VECT_MAX_VERSION_CHECKS.
6593         * tree-vect-transform.c
6594         (vect_create_cond_for_alias_checks): New.
6595         (vect_transform_loop): Add call to
6596         vect_create_cond_for_alias_checks.
6597         (vect_vfa_segment_size): New.
6598         * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
6599         Rename.
6600         (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
6601         * gcc/doc/invoke.texi
6602         (vect-max-version-for-alignment-checks): Document.
6603         (vect-max-version-for-alias-checks): Document.
6604         (vect-max-version-checks): Remove.
6605      
6606 2007-08-16  Uros Bizjak  <ubizjak@gmail.com>
6607
6608         * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
6609         the same line as the instruction for all asm dialects.
6610         (*rep_movsi): Ditto.
6611         (*rep_movsi_rex64): Ditto.
6612         (*rep_movqi): Ditto.
6613         (*rep_movqi_rex64): Ditto.
6614         (*rep_stosdi_rex64): Ditto.
6615         (*rep_stossi): Ditto.
6616         (*rep_stossi_rex64): Ditto.
6617         (*rep_stosqi): Ditto.
6618         (*rep_stosqi_rex64): Ditto.
6619         (*cmpstrnqi_nz_1): Ditto.
6620         (*cmpstrnqi_nz_rex_1): Ditto.
6621         (*cmpstrnqi_1): Ditto.
6622         (*cmpstrnqi_rex_1): Ditto.
6623         (*strlenqi_1): Ditto.
6624         (*strlenqi_rex_1): Ditto.
6625         * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
6626         prefix on the same line as the instruction for all asm dialects.
6627         (sync_double_compare_and_swap<mode>): Ditto.
6628         (*sync_double_compare_and_swapdi_pic): Ditto.
6629         (*sync_compare_and_swap_cc<mode>): Ditto.
6630         (sync_double_compare_and_swap_cc<mode>): Ditto.
6631         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
6632         (sync_old_add<mode>): Ditto.
6633         (sync_add<mode>): Ditto.
6634         (sync_sub<mode>): Ditto.
6635         (sync_ior<mode>): Ditto.
6636         (sync_and<mode>): Ditto.
6637         (sync_xor<mode>): Ditto.
6638
6639 2007-08-16  Richard Sandiford  <richard@codesourcery.com>
6640
6641         PR middle-end/32897
6642         * reload.c (find_reloads): Check that the memory returned by
6643         find_reloads_toplev was not the result of forcing a constant
6644         to memory.
6645         (find_reloads_toplev): Always use simplify_gen_subreg to get
6646         the subreg of a constant.  If the result is also a constant,
6647         but not a legitimate one, force it into the constant pool
6648         and reload its address.
6649
6650 2007-08-15  David Edelsohn  <edelsohn@gnu.org>
6651
6652         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
6653         POPCOUNT.
6654
6655 2007-08-15  Daniel Jacobowitz  <dan@codesourcery.com>
6656
6657         * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
6658         directive for the current vector ABI.
6659
6660 2007-08-15  Steve Ellcey  <sje@cup.hp.com>
6661
6662         PR target/32963
6663         * caller-save.c (reg_save_code): Set invalide status on restore code.
6664         
6665 2007-08-15  Diego Novillo  <dnovillo@google.com>
6666
6667         * tree-ssa-alias.c (compute_memory_partitions): Use
6668         alias_bitmap_obstack to allocate bitmaps.
6669         (reset_alias_info): Factor out of init_alias_info.
6670         Mark all name tags not associated to an SSA name for renaming.
6671         (init_alias_info): Call it.
6672         (create_name_tags): Tidy.  Add comments.
6673         (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
6674
6675 2007-08-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6676
6677         * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
6678         scheduler dependencies.
6679
6680 2007-08-15  Rask Ingemann Lambertsen  <rask@sygehus.dk>
6681
6682         * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
6683         "register_operand".
6684         (*iorsi_1_zext): Likewise.
6685         (*iorsi_1_zext_imm): Likewise.
6686         * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
6687         with "rm"/"xm" constraint.
6688         (sse2_vmsqrtv2df2): Likewise.
6689
6690 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6691
6692         PR middle-end/33074
6693         * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
6694         REG_LIBCALL note.
6695
6696 2007-08-14  Daniel Berlin  <dberlin@dberlin.org>
6697
6698         * tree-pass.h (PROP_pta): Removed.
6699         (TODO_rebuild_alias): New.
6700         (pass_may_alias): Removed.
6701         * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
6702         aliasing if we changed something.
6703         * tree-ssa-alias.c (compute_may_aliases): Make non-static.  Update
6704         SSA internally.
6705         (pass_may_alias): Removed.
6706         (create_structure_vars): Return TODO_rebuild_alias.
6707         * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
6708         * tree-sra.c (tree_sra): Only rebuild aliasing if something
6709         changed.
6710         (tree_sra_early): We never affect aliasing right now.
6711         * tree-flow.h (compute_may_aliases): New prototype.
6712         * passes.c: Remove pass_may_alias from the passes.
6713         (execute_function_todo): Support TODO_rebuild_alias.    
6714
6715 2007-08-14  Kai Tietz  <kai.tietz@onevision.com>
6716
6717         * i386.c: (legitimize_address): Move dllimported variable check
6718         infront of legitimizing pic address of CONST symbols.
6719
6720 2007-08-14  Steve Ellcey  <sje@cup.hp.com>
6721
6722         PR tree-optimization/32941
6723         * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
6724         (goto_queue_cmp): Remove.
6725         (find_goto_replacement): Change search method.
6726         (maybe_record_in_goto_queue): Add assert.
6727         (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
6728         * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
6729
6730 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6731
6732         * alias.c (component_uses_parent_alias_set): Constify.
6733         * alias.h (component_uses_parent_alias_set): Likewise.
6734         * cfgrtl.c (print_rtl_with_bb): Likewise.
6735         * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
6736         mpz_get_double_int): Likewise.
6737         * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
6738         mpz_get_double_int): Likewise.
6739         * expr.c (is_aligning_offset, undefined_operand_subword_p,
6740         mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
6741         Likewise.
6742         * expr.h (safe_from_p): Likewise.
6743         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
6744         Likewise.
6745         * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
6746         zero_sized_type, goa_lhs_expr_p): Likewise.
6747         * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
6748         * rtl.h (print_rtl_with_bb): Likewise.
6749         * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
6750         * tree-cfg.c (const_first_stmt, const_last_stmt): New.
6751         * tree-flow-inline.h (bb_stmt_list): Constify.
6752         (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
6753         cbsi_stmt): New.
6754         * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
6755         const_first_stmt, const_last_stmt): New.
6756         (block_may_fallthru, empty_block_p): Constify.
6757         * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
6758         EXPR_ONLY_BODY): New.
6759         (expr_first, expr_last, expr_only): Use macro for body.
6760         (const_expr_first, const_expr_last, const_expr_only): New.
6761         * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
6762         ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
6763         ctsi_prev, ctsi_stmt): New.
6764         * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
6765         * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
6766         * tree-ssa-loop-niter.c (loop_only_exit_p,
6767         derive_constant_upper_bound): Likewise.
6768         * tree-ssa-phiopt.c (empty_block_p): Likewise.
6769         * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
6770         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
6771         * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
6772         * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
6773         * tree.c (get_type_static_bounds): Likewise.
6774         * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
6775         (get_type_static_bounds): Constify.
6776
6777 2007-08-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
6778
6779         PR target/30315
6780         * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
6781         * config/i386/i386.md (plusminus)(addsub)(SWI): New.
6782         (*<addsub><mode>3_cc_overflow): New.
6783         (*add<mode>3_cconly_overflow): New.
6784         (*sub<mode>3_cconly_overflow): New.
6785         (*<addsub>si3_zext_cc_overflow): New.
6786         * config/i386/predicates.md (fcmov_comparison_operator): Accept
6787         CCCmode for LTU, GTU, LEU and GEU.
6788         (ix86_comparison_operator): Likewise.
6789         (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
6790         * config/i386/i386.c (put_condition_code): Support CCCmode.
6791         (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
6792         or MINUS expressions.
6793
6794 2007-08-14  Andrew Pinski  <pinskia@gmail.com>
6795
6796         PR c/30428
6797         * c-typeck.c (build_binary_op): Disallow vector float types with
6798         BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
6799
6800 2007-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
6801
6802         * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
6803         (DEP_KIND): Rename to DEP_TYPE.  Update all uses.
6804         (dep_def): New typedef.
6805         (init_dep_1, sd_debug_dep): Declare functions.
6806         (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
6807         (debug_dep_links): Remove.
6808         (struct _deps_list): New field 'n_links'.
6809         (DEPS_LIST_N_LINKS): New macro.
6810         (FOR_EACH_DEP_LINK): Remove.
6811         (create_deps_list, free_deps_list, delete_deps_list): Remove
6812         declaration.
6813         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
6814         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
6815         (copy_deps_list_change_con, move_dep_link): Ditto.
6816         (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
6817         and 'spec_back_deps'.  New field 'resolved_forw_deps'.  Remove field
6818         'dep_count'.
6819         (INSN_BACK_DEPS): Remove.
6820         (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
6821         New macros.
6822         (INSN_DEP_COUNT): Remove.
6823         (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP.  Fix comments.
6824         (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
6825         Declare global variables.
6826         (deps_pools_are_empty_p, sched_free_deps): Declare functions.
6827         (add_forw_dep, compute_forward_dependences): Remove declarations.
6828         (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
6829         (add_back_forw_dep, delete_back_forw_dep): Ditto.
6830         (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
6831         functions.
6832         (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
6833         New constants.
6834         (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
6835         (sd_list_types_def): New typedef.
6836         (sd_next_list): Declare function.
6837         (struct _sd_iterator): New type.
6838         (sd_iterator_def): New typedef.
6839         (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
6840         functions.
6841         (FOR_EACH_DEP): New cycle wrapper.
6842         (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
6843         Declare functions.
6844         (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
6845         (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
6846         Ditto.
6847
6848         * sched-deps.c (init_dep_1): Make global.
6849         (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
6850         constants.
6851         (dump_dep): New static function.
6852         (dump_dep_flags): New static variable.
6853         (sd_debug_dep): New function.
6854         (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
6855         the list.
6856         (move_dep_link): Use remove_from_deps_list (), instead of
6857         detach_dep_link ().
6858         (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
6859         (dep_link_is_detached_p): New static function.
6860         (deps_obstack, dl_obstack, dn_obstack): Remove.  Use dn_pool, dl_pool
6861         instead.
6862         (dn_pool, dl_pool): New alloc_pools.
6863         (dn_pool_diff, dl_pool_diff): New static variables.
6864         (create_dep_node, delete_dep_node): New static function.
6865         (create_deps_list): Make it static.  Use alloc_pool 'dl_pool'.
6866         (deps_list_empty_p): Make it static.  Use 'n_links' field.
6867         (deps_pools_are_empty_p): New static function.
6868         (alloc_deps_list, delete_deps_list): Remove.
6869         (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
6870         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
6871         (copy_deps_list_change_con): Remove.  Use sd_copy_back_deps () instead.
6872         (forward_dependency_cache): Remove.
6873         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
6874         'back' from the names.  Change signature to use dep_t instead of
6875         equivalent quad.
6876         (add_back_dep): Ditto.  Make global.
6877         (check_dep_status): Rename to check_dep ().
6878         (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
6879         New functions.
6880         (sd_finish_insn): Ditto.
6881         (sd_find_dep_between_no_cache): New static function.
6882         (sd_find_dep_between): New function.
6883         (ask_dependency_caches, set_dependency_caches): New static functions.
6884         (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
6885         (add_or_update_dep_1): Separate pieces of functionality into
6886         ask_dependency_caches (), update_dependency_caches (),
6887         change_spec_dep_to_hard (), update_dep ().
6888         (get_back_and_forw_lists): New static function.
6889         (sd_add_dep): Separate setting of dependency caches into
6890         set_dependency_caches ().
6891         (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
6892         New functions.
6893         (sd_delete_dep): Ditto.
6894         (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
6895         (dump_lists): New static function.
6896         (sd_debug_lists): New debug function.
6897         (delete_all_dependences, fixup_sched_groups): Update to use
6898         sd_* infrastructure.
6899         (sched_analyze_2): Create data-speculative dependency only if
6900         data-speculation is enabled.
6901         (sched_analyze_insn): If insn cannot be speculative, make all its
6902         dependencies non-speculative.
6903         (sched_analyze): Use sd_init_insn ().
6904         (add_forw_dep, compute_forward_dependencies): Remove.
6905         (delete_dep_nodes_in_back_deps): New static function.
6906         (sched_free_deps): New function.
6907         (init_dependency_caches): Init alloc_pools.
6908         (extend_depedency_caches): Update after removing of
6909         forward_dependency_cache.
6910         (free_dependency_caches): Ditto.  Free alloc_pools.
6911         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
6912         (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
6913         Ditto.
6914         (add_back_forw_dep, delete_back_forw_dep): Ditto.
6915         (add_dependence): Use init_dep ().
6916         (get_dep_weak_1): New static function.
6917         (get_dep_weak): Move logic to get_dep_weak_1 ().
6918         (dump_ds): New static function moved from haifa-sched.c:
6919         debug_spec_status ().
6920         (debug_ds): New debug function.
6921         (check_dep_status): Rename to check_dep ().  Update to check whole
6922         dependencies.
6923
6924         * haifa-sched.c (spec_info): Make global.
6925         (added_recovery_block_p): Rename to
6926         'haifa_recovery_block_was_added_during_current_schedule_block_p'.
6927         (haifa_recovery_block_was_added_during_scheduling_p): New variable.
6928         (dep_cost, priority, rank_for_schedule, schedule_insn): Update
6929         to use new interfaces.
6930         (ok_for_early_queue_removal): Ditto.
6931         (schedule_block): Initialize logical uids of insns emitted by the
6932         target.
6933         (sched_init): Initialize new variable.
6934         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
6935         interfaces.
6936         (extend_global): Initialize insn data.
6937         (init_h_i_d): Remove code that is now handled in sd_init_insn ().
6938         (process_insn_forw_deps_be_in_spec): Change signature.  Update to use
6939         new interfaces.
6940         (add_to_speculative_block): Update to use new interfaces.
6941         (create_recovery_block): Set new variables.
6942         (create_check_block_twin, fix_recovery_deps): Update to use new
6943         interfaces.
6944         (sched_insn_is_legitimate_for_speculation_p): New function.
6945         (speculate_insn): Move checking logic to
6946         sched_insn_is_legitimate_for_speculation_p ().
6947         (sched_remove_insn): Finalize sched-deps information of instruction.
6948         (clear_priorities, add_jump_dependencies): Update to use new
6949         interfaces.
6950         (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
6951         
6952         * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
6953         to use new interfaces.
6954         (is_conditionally_protected, is_pfree, is_prisky) Ditto.
6955         (new_ready): Try to use control speculation only if it is available.
6956         (add_branch_dependences): Update to use new interfaces.
6957         (compute_block_backward_dependences): Rename to
6958         compute_block_dependences ().  Call
6959         targetm.sched.dependencies_evaluation_hook ().
6960         (free_block_dependencies): New static function.
6961         (debug_dependencies): Update to use new interfaces.
6962         (schedule_region): Remove separate computation of forward dependencies.
6963         Move call of targetm.sched.dependencies_evaluation_hook () to
6964         compute_block_dependences ().  Free dependencies at the end of
6965         scheduling the region.
6966
6967         * sched-ebb.c (earliest_block_with_similiar_load): Update to use
6968         new interfaces.
6969         (add_deps_for_risky_insns): Ditto.
6970         (schedule_ebb): Remove separate computation of forward dependencies.
6971         Free dependencies at the end of scheduling the ebb.
6972
6973         * ddg.c (create_ddg_dependence): Update to use new interfaces.
6974         (build_intra_loop_deps): Ditto.  Remove separate computation of
6975         forward dependencies.  Free sched-deps dependencies.
6976
6977         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
6978         to use new interfaces.
6979         (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
6980
6981         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
6982         new interfaces.
6983         (is_costly_group): Ditto.
6984
6985 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6986
6987         * alias.c (rtx_equal_for_memref_p): Constify.
6988         * basic-block.h (const_edge, const_basic_block): New.
6989         (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
6990         single_pred_p, single_succ_edge, single_pred_edge, single_succ,
6991         single_pred, maybe_hot_bb_p, probably_cold_bb_p,
6992         probably_never_executed_bb_p, edge_probability_reliable_p,
6993         br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
6994         inside_basic_block_p, control_flow_insn_p, dominated_by_p):
6995         Likewise.
6996         * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
6997         * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
6998         Likewise.
6999         * cfganal.c (flow_active_insn_p, forwarder_block_p,
7000         flow_nodes_print, dfs_enumerate_from): Likewise.
7001         * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
7002         control_flow_insn_p, count_basic_blocks): Likewise.
7003         * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
7004         get_loop_body_with_size, loop_exit_edge_p): Likewise.
7005         * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
7006         average_num_loop_insns, loop_exit_edge_p,
7007         just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
7008         * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
7009         average_num_loop_insns, seq_cost): Likewise.
7010         * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
7011         * dominance.c (dominated_by_p): Likewise.
7012         * emit-rtl.c (validate_subreg): Likewise.
7013         * except.c (can_throw_internal, can_throw_external): Likewise.
7014         * except.h (can_throw_internal, can_throw_external): Likewise.
7015         * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
7016         oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
7017         compute_transp, load_killed_in_block_p, reg_killed_on_edge,
7018         simple_mem, store_ops_ok, load_kills_store, find_loads,
7019         store_killed_in_insn, store_killed_after, store_killed_before,
7020         gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
7021         Likewise.
7022         * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
7023         noce_mem_write_may_trap_or_fault_p): Likewise.
7024         * pointer-set.c (pointer_set_contains, pointer_map_contains):
7025         Likewise.
7026         * pointer-set.h (pointer_set_contains, pointer_map_contains):
7027         Likewise.
7028         * predict.c (can_predict_insn_p, maybe_hot_bb_p,
7029         probably_cold_bb_p, probably_never_executed_bb_p,
7030         edge_probability_reliable_p, br_prob_note_reliable_p,
7031         can_predict_insn_p): Likewise.
7032         * regclass.c (reg_set_to_hard_reg_set): Likewise.
7033         * resource.c (return_insn_p): Likewise.
7034         * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
7035         Likewise.
7036         * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
7037         * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
7038         * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
7039         verify_gimple_modify_stmt): Likewise.
7040         * tree-chrec.c (is_not_constant_evolution,
7041         is_multivariate_chrec_rec, is_multivariate_chrec,
7042         chrec_contains_symbols, chrec_contains_undetermined,
7043         tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
7044         evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
7045         eq_evolutions_p, scev_direction): Likewise.
7046         * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
7047         eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
7048         chrec_contains_symbols_defined_in_loop,
7049         chrec_contains_undetermined, tree_contains_chrecs,
7050         evolution_function_is_affine_multivariate_p,
7051         evolution_function_is_univariate_p, chrec_zerop,
7052         evolution_function_is_constant_p, evolution_function_is_affine_p,
7053         evolution_function_is_affine_or_constant_p,
7054         tree_does_not_contain_chrecs, chrec_type): Likewise.
7055         * tree-data-ref.c (tree_fold_divides_p,
7056         object_address_invariant_in_loop_p, dr_may_alias_p,
7057         ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
7058         same_access_functions, constant_access_functions,
7059         access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
7060         Likewise.
7061         * tree-flow.h (scev_direction): Likewise.
7062         * tree-gimple.c (is_gimple_stmt): Likewise.
7063         * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
7064         Likewise.
7065         * tree-pretty-print.c (op_prio): Likewise.
7066         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
7067         analyzable_condition, backedge_phi_arg_p): Likewise.
7068         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
7069         * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
7070         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
7071         Likewise.
7072
7073 2007-08-13  Dan Hipschman  <dsh@google.com>
7074
7075         PR c/32953
7076         * c-format.c (check_format_arg): Move check for zero-length
7077         format strings below the check for unterminated strings.
7078
7079 2007-08-13  Andrew Pinski  <pinskia@gmail.com>
7080
7081         PR C/30427
7082         * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
7083         types.
7084
7085 2007-08-13  Nick Clifton  <nickc@redhat.com>
7086
7087         * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
7088
7089 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7090
7091         PR fortran/32860
7092         * c-format.c (gcc_gfc_length_specs): New array.
7093         (gcc_gfc_char_table): Add unsigned specifier, and references to
7094         the l length modifier.
7095         (format_types_orig): Use the new gcc_gfc_length_specs.
7096
7097 2007-08-12  Sa Liu  <saliu@de.ibm.com>
7098
7099         * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
7100         and with REG_RETVAL note after split.
7101
7102 2007-08-11  David Daney  <ddaney@avtrex.com>
7103
7104         * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
7105         as ATTRIBUTE_UNUSED.
7106
7107 2007-08-11  David Edelsohn  <edelsohn@gnu.org>
7108             Segher Boessenkool  <segher@kernel.crashing.org>
7109
7110         * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
7111         HAVE_LOCAL_CPU_DETECT not defined.
7112
7113 2007-08-11  Jan Hubicka  <jh@suse.cz>
7114
7115         * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
7116         (cgraph_process_new_functions): Honor previous value of
7117         disregard_inline_limits.
7118         * ipa-inline.c (compute_inline_parameters): Likewise.
7119
7120 2007-08-11  Ian Lance Taylor  <iant@google.com>
7121
7122         * alias.h (alias_set_type): Define new type.
7123         (ALIAS_SET_MEMORY_BARRIER): Use it.
7124         * rtl.h: Include alias.h.
7125         (struct mem_attrs): Use alias_set_type.
7126         * tree.h: Include alias.h
7127         (struct tree_type): Use alias_set_type.
7128         (struct tree_struct_field_tag): Likewise.
7129         (struct tree_decl_common): Likewise.
7130         * alias.c (struct alias_set_entry): Use alias_set_type.
7131         (get_alias_set_entry, alias_set_subset_of): Likewise.
7132         (alias_sets_conflict_p): Likewise.
7133         (alias_sets_must_conflict_p): Likewise.
7134         (objects_must_conflict_p): Likewise.
7135         (get_alias_set, new_alias_set): Likewise.
7136         (record_alias_subset, record_component_aliases): Likewise.
7137         (varargs_set, frame_set): Change to alias_set_type.
7138         (get_varargs_alias_set): Use alias_set_type.
7139         (get_frame_alias_set): Likewise.
7140         * builtins.c (setjmp_alias_set): Change to alias_set_type.
7141         * dse.c (struct store_info): Use alias_set_type.
7142         (struct read_info, struct clear_alias_mode_holder): Likewise.
7143         (clear_alias_set_lookup, canon_address): Likewise.
7144         (record_store, check_mem_read_rtx): Likewise.
7145         (dse_record_singleton_alias_set): Likewise.
7146         (dse_invalidate_singleton_alias_set): Likewise.
7147         * emit-rtl.c (get_mem_attrs): Likewise.
7148         (set_mem_attributes_minus_bitpos): Likewise.
7149         (set_mem_alias_set): Likewise.
7150         * expr.c (store_constructor_field, store_field): Likewise.
7151         * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
7152         * langhooks.c (lhd_get_alias_set): Likewise.
7153         * langhooks-def.h (lhd_get_alias_set): Likewise.
7154         * reload1.c (alter_reg): Likewise.
7155         * tree-flow.h (struct fieldoff): Likewise.
7156         * tree-ssa-alias.c (struct alias_map_d): Likewise.
7157         (may_alias_p, get_smt_for, create_sft): Likewise.
7158         * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
7159         * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
7160         (merge_smts_into): Likewise.
7161         * varasm.c (const_alias_set): Likewise.
7162         * c-common.c (strict_aliasing_warning): Likewise.
7163         (c_common_get_alias_set): Likewise.
7164         * dse.h (dse_record_singleton_alias_set): Update declaration.
7165         (dse_invalidate_singleton_alias_set): Likewise.
7166         * emit-rtl.h (set_mem_alias_set): Likewise.
7167         * c-common.h (c_common_get_alias_set): Likewise.
7168         * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
7169         * print-tree.c (print_node): Likewise.
7170         * config/alpha/alpha.c (alpha_sr_alias_set): Change to
7171         alias_set_type.
7172         (alpha_setup_incoming_varargs): Use alias_set_type.
7173         * config/i386/i386.c (setup_incoming_varargs_64): Use
7174         alias_set_type.
7175         (setup_incoming_varargs_ms_64): Likewise.
7176         (ix86_GOT_alias_set): Likewise.
7177         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7178         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7179         (set): Change to alias_set_type.
7180         (get_TOC_alias_set): Use alias_set_type.
7181         * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
7182         declaration.
7183         * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
7184         * config/sparc/sparc.c (sparc_sr_alias_set): Change to
7185         alias_set_type.
7186         (struct_value_alias_set): Likewise.
7187         * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
7188
7189 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
7190
7191         * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
7192         * config/vxworks.h (TARGET_VXWORKS): Override.
7193         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
7194         "mips" if TARGET_VXWORKS.
7195
7196 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
7197
7198         * calls.c (avoid_likely_spilled_reg): New function.
7199         (expand_call): Use it.
7200
7201 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7202
7203         * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
7204
7205 2007-08-10  Adam Nemet  <anemet@caviumnetworks.com>
7206
7207         * config/mips/predicates.md (const_call_insn_operand): Invoke
7208         SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
7209
7210 2007-08-10  David Edelsohn  <edelsohn@gnu.org>
7211
7212         PR target/33042
7213         * config/rs6000/driver-rs6000.c: Include link.h.
7214         Use ElfW instead of wordsize-specif typedef.
7215
7216 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7217
7218         * system.h (CONST_CAST): New.
7219         * c-decl.c (c_make_fname_decl): Use it.
7220         * c-lex.c (cb_ident, lex_string): Likewise.
7221         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
7222         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
7223         give_switch, set_multilib_dir): Likewise.
7224         * gengtype-parse.c (string_seq, typedef_name): Likewise.
7225         * passes.c (execute_one_pass): Likewise.
7226         * prefix.c (update_path): Likewise.
7227         * pretty-print.c (pp_base_destroy_prefix): Likewise.
7228         * tree.c (build_string): Likewise.
7229
7230 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
7231
7232         * tree-flow-inline.h (is_exec_stmt): Remove.
7233         (is_label_stmt): Remove.
7234         * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
7235         is_label_stmt.
7236
7237 2007-08-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7238
7239         * lower-subreg.c (resolve_shift_zext): Don't adjust
7240         src_reg_num for wordmode operands.
7241
7242 2007-08-10  Sandra Loosemore  <sandra@codesourcery.com>
7243             David Ung  <davidu@mips.com>
7244
7245         * config/mips/mips.c (TARGET_SCHED_INIT): Define.
7246         (TARGET_SCHED_REORDER2): Define.
7247         (mips_maybe_swap_ready): New.
7248         (mips_last_74k_agen_insn): New.
7249         (mips_74k_agen_init): New.
7250         (mips_74k_agen_reorder): New function to group loads and stores
7251         in the ready queue.
7252         (mips_sched_init): New.  
7253         (mips_sched_reorder): Don't do initialization here.  Call
7254         mips_74k_agen_reorder.
7255         (mips_variable_issue): Call mips_74k_agen_init.
7256
7257 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
7258
7259         * tree-flow-inline.h (get_filename): Remove.
7260
7261 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
7262
7263         * config/mips/mips-protos.h (mips_address_insns): Add a boolean
7264         argument.
7265         (mips_fetch_insns): Delete in favor of...
7266         (mips_load_store_insns): ...this new function.
7267         * config/mips/mips.c (mips_address_insns): Add a boolean argument
7268         to say whether multiword moves _might_ be split.
7269         (mips_fetch_insns): Delete in favor of...
7270         (mips_load_store_insns): ...this new function.
7271         (mips_rtx_costs): Update the call to mips_address_insns.
7272         (mips_address_cost): Likewise.
7273         * config/mips/mips.md (length): Use mips_load_store_insns instead
7274         of mips_fetch_insns.
7275         * config/mips/constraints.md (R): Use mips_address_insns rather
7276         than mips_fetch_insns.  Assume that the move never needs to be split.
7277
7278 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
7279
7280         * config/mips/mips.opt (mhard-float, msoft-float): Make these
7281         control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
7282         than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.  
7283         * config/mips/mips.h (mips16_hard_float): Delete.
7284         (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
7285         definitions, and replace with....
7286         (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
7287         * config/mips/mips.c (mips16_hard_float): Delete.  Replace
7288         all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
7289         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
7290         (override_options): Replace MASK_SOFT_FLOAT references with
7291         MASK_SOFT_FLOAT_ABI.  Delete twiddling with MASK_SOFT_FLOAT
7292         and mips16_hard_float when TARGET_MIPS16.
7293         
7294 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7295
7296         PR c/32796
7297         * c-typeck.c (build_binary_op): Check for non pointer types before
7298         calling int_fits_type_p.
7299
7300 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7301
7302         PR middle-end/32813
7303         * fold-const.c (omit_one_operand): Return only the ommitted expression
7304         if the result is an empty statement.
7305         (pedantic_omit_one_operand): Likewise.
7306
7307 2007-08-09  Daniel Berlin  <dberlin@dberlin.org>
7308
7309         * c-typeck.c (readonly_error): Improve error for assignment.
7310         
7311         * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
7312         expression. 
7313         (pp_c_expression): Ditto.
7314
7315 2007-08-09  Simon Baldwin  <simonb@google.com>
7316
7317         * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
7318         break that was preventing simplify_associative_operation() for xor.
7319
7320 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
7321             Nigel Stephens  <nigel@mips.com>
7322
7323         * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
7324         Document change in interpretation of value from boolean to
7325         tri-state integer.
7326         * optabs.c (expand_ffs, expand_ctz): New functions to compute
7327         ffs and ctz using clz.
7328         (expand_unop): Call them.
7329         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
7330         result value.
7331         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
7332         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
7333         enable the new ffs expansion on this target.
7334
7335 2007-08-09  Jan Hubicka  <jh@suse.cz>
7336
7337         * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
7338         (expand_ternary_op): Likewise.
7339         (expand_vec_shift_expr): Likewise.
7340         (expand_binop_directly): Likewise.
7341         (expand_binop): Likewise.
7342         (sign_expand_binop): Likewise.
7343         (expand_twoval_unop): Likewise.
7344         (expand_twoval_binop): Likewise.
7345         (expand_twoval_binop_libfunc): Likewise.
7346         (widen_clz): Likewise.
7347         (widen_bswap): Likewise.
7348         (expand_parity): Likewise.
7349         (expand_unop): Likewise.
7350         (expand_abs_nojump): Likewise.
7351         (expand_copysign): Likewise.
7352         (emit_no_conflict_block): Likewise.
7353         (emit_libcall_block): Likewise.
7354         (can_compare_p): Likewise.
7355         (prepare_cmp_insn): Likewise.
7356         (emit_cmp_and_jump_insn_1): Likewise.
7357         (prepare_float_lib_cmp): Likewise.
7358         (emit_conditional_add): Likewise.
7359         (gen_add2_insn): Likewise.
7360         (have_add2_insn): Likewise.
7361         (gen_sub2_insn): Likewise.
7362         (have_sub2_insn): Likewise.
7363         (can_extend_p): Likewise.
7364         (can_fix_p): Likewise.
7365         (can_float_p): Likewise.
7366         (expand_float): Likewise.
7367         (expand_fix): Likewise.
7368         (expand_sfix_optab): Likewise.
7369         (new_optab): Likewise.
7370         (new_convert_optab): Likewise.
7371         (init_libfuncs): Likewise.
7372         (init_interclass_conv_libfuncs): Likewise.
7373         (init_intraclass_conv_libfuncs): Likewise.
7374         (set_conv_libfunc): Likewise.
7375         (init_optabs): Likewise.
7376         (debug_optab_libfuncs): Likewise.
7377         (gen_cond_trap): Likewise.
7378         * optabs.h (optab_handler, convert_optab_hanlder): New.
7379         * genopinit.c: Update optabs generation table.
7380         * reload.c (find_reloads_address_1): Use optabs accestors.
7381         * builtins.c (expand_builtin_mathfn): Likewise.
7382         (expand_builtin_mathfn_2): Likewise.
7383         (expand_builtin_mathfn_3): Likewise.
7384         (expand_builtin_interclass_mathfn): Likewise.
7385         (expand_builtin_sincos): Likewise.
7386         (expand_builtin_cexpi): Likewise.
7387         (expand_builtin_powi): Likewise.
7388         (expand_builtin_strlen): Likewise.
7389         * dojump.c (do_jump): Likewise.
7390         * expr.c (convert_move): Likewise.
7391         (move_by_pieces): Likewise.
7392         (move_by_pieces_ninsns): Likewise.
7393         (can_store_by_pieces): Likewise.
7394         (store_by_pieces_1): Likewise.
7395         (emit_move_via_integer): Likewise.
7396         (emit_move_complex): Likewise.
7397         (emit_move_ccmode): Likewise.
7398         (emit_move_insn_1): Likewise.
7399         (emit_single_push_insn): Likewise.
7400         (store_constructor): Likewise.
7401         (expand_expr_real_1): Likewise.
7402         (do_store_flag): Likewise.
7403         * ada/misc.c (gnat_compute_largest_alignment): Likewise.
7404         (enumerate_modes): Likewise.
7405         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7406         (supportable_widening_operation): Likewise.
7407         (supportable_narrowing_operation): Likewise.
7408         * expmed.c (store_bit_field_1): Likewise.
7409         (extract_bit_field_1): Likewise.
7410         (expand_mult_highpart_optab): Likewise.
7411         (expand_smod_pow2): Likewise.
7412         (expand_divmod): Likewise.
7413         (emit_store_flag): Likewise.
7414         * tree-vect-patterns.c
7415         (vect_pattern_recog_1): Likewise.
7416         * tree-ssa-loop-prefetch.c
7417         (nontemporal_store_p): Likewise.
7418         * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
7419         (vect_create_epilog_for_reduction): Likewise.
7420         (vectorizable_reduction): Likewise.
7421         (vectorizable_operation): Likewise.
7422         (vect_strided_store_supported): Likewise.
7423         (vectorizable_store): Likewise.
7424         (vect_strided_load_supported): Likewise.
7425         (vectorizable_load): Likewise.
7426         * combine.c (simplify_comparison): Likewise.
7427         * tree-vect-generic.c
7428         (type_for_widest_vector_mode): Likewise.
7429         (expand_vector_operations_1): Likewise.
7430         * config/spu/spu.c (spu_expand_mov): Likewise.
7431         (spu_emit_vector_compare): Likewise.
7432         * config/rs6000/rs6000.c
7433         (rs6000_emit_vector_compare): Likewise.
7434         * stmt.c (add_case_node): Likewise.
7435         * reload1.c (gen_reload):
7436
7437 2007-08-09  Michael Matz  <matz@suse.de>
7438
7439         * tree.h (fixed_zerop): Declare as taking a const_tree.
7440         * tree.c (fixed_zerop): Take a const_tree.
7441
7442 2007-08-09  Ira Rosen  <irar@il.ibm.com>
7443
7444         * tree-vect-transform.c (vectorizable_store): Remove call to
7445         copy_virtual_operands() and call mark_symbols_for_renaming() for
7446         the created vector store.
7447         (vect_setup_realignment): Don't call copy_virtual_operands() and
7448         update_vuses_to_preheader(). 
7449         (vectorizable_load): Don't call copy_virtual_operands(). 
7450         (update_vuses_to_preheader): Remove.
7451
7452 2007-08-08  Chao-ying Fu  <fu@mips.com>
7453
7454         * tree.def (FIXED_POINT_TYPE): New type.
7455         (FIXED_CST): New constant.
7456         (FIXED_CONVERT_EXPR): New expr.
7457         * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
7458         (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
7459         * tree.h (struct tree_base): Add saturating_flag.
7460         Remove one bit of spare for saturating_flag.
7461         (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
7462         (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
7463         FIXED_POINT_TYPE_P): Define.
7464         (TYPE_SATURATING): Define.
7465         (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
7466         (struct tree_fixed_cst): New.
7467         (TYPE_IBIT, TYPE_FBIT): Define.
7468         (tree_node): Add fixed_cst.
7469         (enum tree_index): Add new enumeration values of
7470         TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
7471         TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
7472         TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
7473         TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
7474         TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
7475         TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
7476         TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
7477         TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
7478         TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
7479         TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
7480         TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
7481         TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
7482         TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
7483         TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
7484         TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
7485         TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
7486         TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
7487         TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
7488         (sat_short_fract_type_node, sat_fract_type_node,
7489         sat_long_fract_type_node, sat_long_long_fract_type_node,
7490         sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
7491         sat_unsigned_long_fract_type_node,
7492         sat_unsigned_long_long_fract_type_node, short_fract_type_node,
7493         fract_type_node, long_fract_type_node, long_long_fract_type_node,
7494         unsigned_short_fract_type_node, unsigned_fract_type_node,
7495         unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
7496         sat_short_accum_type_node, sat_accum_type_node,
7497         sat_long_accum_type_node, sat_long_long_accum_type_node,
7498         sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
7499         sat_unsigned_long_accum_type_node,
7500         sat_unsigned_long_long_accum_type_node, short_accum_type_node,
7501         accum_type_node, long_accum_type_node, long_long_accum_type_node,
7502         unsigned_short_accum_type_node, unsigned_accum_type_node,
7503         unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
7504         qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
7505         uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
7506         utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
7507         sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
7508         sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
7509         sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
7510         ta_type_node, uha_type_node, usa_type_node, uda_type_node,
7511         uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
7512         sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
7513         sat_uda_type_node, sat_uta_type_node): New macro.
7514         (make_fract_type, make_accum_type): Declare.
7515         (make_signed_fract_type, make_unsigned_fract_type,
7516         make_sat_signed_fract_type, make_sat_unsigned_fract_type,
7517         make_signed_accum_type, make_unsigned_accum_type,
7518         make_sat_signed_accum_type, make_sat_unsigned_accum_type,
7519         make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
7520         make_or_reuse_sat_signed_fract_type,
7521         make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
7522         make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
7523         make_or_reuse_sat_unsigned_accum_type): New macro.
7524         (fixed_zerop): Declare.
7525         * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
7526         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
7527         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
7528         LONG_LONG_ACCUM_TYPE_SIZE): Define.
7529         * treestruct.def: Add TS_FIXED_CST.
7530         * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
7531         (tree.o): Likewise.
7532         (tree-dump.o): Likewise.
7533         (print-tree.o): Likewise.
7534         (tree-pretty-print.o): Likewise.
7535         (fold-const.o): Likewise.
7536         * tree-complex.c (some_nonzerop): Handle FIXED_CST.
7537         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
7538         (is_gimple_min_invariant): Handle FIXED_CST.
7539         * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
7540         MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
7541         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
7542         (layout_type): Handle FIXED_POINT_TYPE.
7543         (make_fract_type, make_accum_type): New functions.
7544         * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
7545         * tree-dump.c (fixed-value.h): New include.
7546         (dump_fixed): New function.
7547         (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
7548         * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
7549         (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
7550         * tree-pretty-print.c (fixed-value.h): New include.
7551         (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
7552         FIXED_CONVERT_EXPR.
7553         * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
7554         * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
7555         * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
7556         * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
7557         for non-saturating fixed-point types.
7558         (reassociate_bb): Likewise.
7559         * emit-rtl.c (fixed-value.h): New include.
7560         (fconst0, fconst1): New array.
7561         (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
7562         * tree-vect-generic.c expand_vector_operation): Support
7563         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
7564         MODE_VECTOR_UACCUM.
7565         (type_for_widest_vector_mode): Add one parameter for the 
7566         saturating flag.
7567         Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
7568         vector mode.
7569         Pass the satp parameter to type_for_mode for fixed-point types.
7570         (expand_vector_operations_1): Pass the saturating flag to
7571         type_for_widest_vector_mode.
7572         Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
7573         and MODE_VECTOR_UACCUM.
7574         * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
7575         (vectorizable_condition): Likewise.
7576         * tree.c (fixed-value.h): New include.
7577         (tree_code_size): Support FIXED_CST.
7578         (build_fixed): New function.
7579         (build_one_cst): Support FIXED_POINT_TYPE for accum types.
7580         (fixed_zerop): New function.
7581         (tree_node_structure): Support FIXED_CST.
7582         (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
7583         (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
7584         (type_hash_eq): Handle FIXED_POINT_TYPE.
7585         (simple_cst_equal): Support FIXED_CST.
7586         (iterative_hash_expr): Handle FIXED_CST.
7587         (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
7588         (get_narrower): Likewise.
7589         (variably_modified_type_p): Handle FIXED_POINT_TYPE.
7590         (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
7591         (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
7592         MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
7593         nodes.
7594         (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
7595         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
7596         (initializer_zerop): Support FIXED_CST.
7597         (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
7598         * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
7599         DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
7600         (is_base_type): Handle FIXED_POINT_TYPE.
7601         (add_type_attribute): Handle FIXED_POINT_TYPE.
7602         (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
7603         * print-tree.c (fixed-value.h): New include.
7604         (print_node_brief): Support FIXED_CST.
7605         (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
7606         * c-pretty-print.c (fixed-value.h): New include.
7607         (pp_c_type_specifier): Handle FIXED_POINT_TYPE.  Need to pass
7608         TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
7609         (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
7610         Support fixed-point types for inner items in VECTOR_TYPE.
7611         (pp_c_direct_declarator): Likewise.
7612         (pp_c_declarator): Likewise.
7613         (pp_c_fixed_constant): New function.
7614         (pp_c_constant): Handle FIXED_CST.
7615         (pp_c_primary_expression): Likewise.
7616         (pp_c_expression): Likewise.
7617         * fold-const.c (fixed-value.h): New include.
7618         (negate_expr_p): Return true for FIXED_CST.
7619         (fold_negate_expr): Support FIXED_CST.
7620         (split_tree): Support FIXED_CST.
7621         (const_binop): Support FIXED_CST.
7622         (fold_convert_const_int_from_fixed): New function to convert from
7623         fixed to int.
7624         (fold_convert_const_real_from_fixed): New function to convert from
7625         fixed to real.
7626         (fold_convert_const_fixed_from_fixed): New function to convert from
7627         fixed to another fixed.
7628         (fold_convert_const_fixed_from_int): New function to convert from
7629         int to fixed.
7630         (fold_convert_const_fixed_from_real): New function to convert from
7631         real to fixed.
7632         (fold_convert_const): Support conversions from fixed to int, from
7633         fixed to real, from fixed to fixed, from int to fixed, and from real
7634         to fixed.
7635         (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
7636         (operand_equal_p): Support FIXED_CST.
7637         (make_range): For fixed-point modes, we need to pass the
7638         saturating flag as the 2nd parameter.
7639         (tree_swap_operands_p): Handle FIXED_CST.
7640         (fold_plusminus_mult_expr): For fract modes, we cannot generate
7641         constant 1.
7642         (fold_unary): Support FIXED_CONVERT_EXPR.
7643         (fold_binary): Handle FIXED_CST.
7644         Make sure the type is not saturating, before associating operations.
7645         Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
7646         (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
7647         (fold_negate_const): Support FIXED_CST.
7648         (fold_relational_const): Support FIXED_CST.
7649         * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
7650         (gimplify_expr): Handle FIXED_CST.
7651         (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
7652         * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
7653         * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
7654         * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
7655         FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
7656         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
7657         LONG_LONG_ACCUM_TYPE_SIZE.
7658         * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
7659         * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
7660         * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
7661         * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
7662         MODE_ACCUM, and MODE_UACCUM.
7663         * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
7664         fixed-point types to disable reduction.
7665         * explow.c (promote_mode): Support FIXED_POINT_TYPE.
7666
7667 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
7668
7669         * config/rs6000/x-rs6000: New file.
7670         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
7671         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
7672         (EXTRA_SPEC_FUNCTIONS): Define.
7673         (HAVE_LOCAL_CPU_DETECT): Define.
7674         (CC1_CPU_SPEC): Define.
7675         * config/rs6000/driver-rs6000.c: New file.
7676         * config/rs6000/aix.h (CC1_SPEC): Define.
7677         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
7678         * config.host: Add x-rs6000 to host_xmake_file if host and target
7679         are rs6000 or powerpc.
7680
7681 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
7682
7683         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
7684
7685 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7686             Sandra Loosemore  <sandra@codesourcery.com>
7687             Chao-ying Fu  <fu@mips.com>
7688             Nigel Stephens  <nigel@mips.com>
7689             David Ung  <davidu@mips.com>
7690
7691         * doc/invoke.texi (-mcode-readable): Document.
7692         * config/mips/mips.opt (mcode-readable): New option.
7693         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
7694         * config/mips/mips.h (mips_code_readable_setting): New enum.
7695         (mips_code_readable): Declare.
7696         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
7697         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
7698         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
7699         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
7700         boiler-plate comments.
7701         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
7702         * config/mips/mips.c (mips_code_readable): New variable.
7703         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
7704         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
7705         context and -mcode-readable setting to restrict the use of
7706         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
7707         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
7708         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
7709         (mips_blocks_for_constant_p): Only return false for
7710         TARGET_MIPS16_PCREL_LOADS.
7711         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
7712         for MIPS16.  Handle SYMBOL_32_HIGH.
7713         (mips_const_insns): Allow HIGHs for MIPS16 too.
7714         (mips_unspec_address_offset): New function, split out from...
7715         (mips_unspec_address): ...here.
7716         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
7717         16-bit symbolic constants.  Assert approropiate conditions for
7718         using the "la" and "dla" macros.
7719         (mips_handle_option): Handle -mcode-readable=.
7720         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
7721         Set up mips_lo_relocs[SYMBOL_32_HIGH].
7722         (mips_strip_unspec_address): New function, split out from...
7723         (print_operand_reloc): ...here.
7724         (print_operand): Pass constants through mips_strip_unspec_address.
7725         (print_operand_address): Likewise.
7726         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
7727         (mips_select_rtx_section): Remove MIPS16 handling.
7728         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
7729         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
7730         (mips16_lay_out_constants): Do nothing unless
7731         TARGET_MIPS16_PCREL_LOADS.
7732         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
7733         * config/mips/mips.md: Split HIGHs for MIPS16.
7734         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
7735
7736 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7737
7738         * config/mips/mips-protos.h (mips_emit_move): Declare.
7739         * config/mips/mips.c (mips_emit_move): New function.
7740         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
7741         (mips_legitimize_const_move): Likewise.
7742         (mips_legitimize_move): Likewise.
7743         (mips_split_64bit_move): Likewise.
7744         (mips_restore_gp): Likewise.
7745         (mips_load_call_address): Likewise.
7746         (mips_emit_fcc_reload): Likewise.
7747         (mips_set_return_address): Likewise.
7748         (mips_block_move_straight): Likewise.
7749         (mips_block_move_loop): Likewise.
7750         (mips_setup_incoming_varargs): Likewise.
7751         (mips_save_reg): Likewise.
7752         (mips_expand_prologue): Likewise.
7753         (mips_restore_reg): Likewise.
7754         (mips_expand_epilogue): Likewise.
7755         (mips_output_mi_thunk): Likewise.
7756         (build_mips16_call_stub): Likewise.
7757         (mips_builtin_branch_and_move): Likewise.
7758         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
7759         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
7760         (fixuns_truncdfdi2): Likewise.
7761         (fixuns_truncsfsi2): Likewise.
7762         (fixuns_truncsfdi2): Likewise.
7763         (loadgp_absolute): Likewise.
7764         (builtin_setjmp_setup): Likewise.
7765         (builtin_longjmp): Likewise.
7766         (untyped_call): Likewise.
7767
7768 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7769
7770         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
7771         an "rtx *" argument.  Return a bool.
7772         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
7773         values and return true if they can be split.  Take the same kind of
7774         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
7775         and store the lo_sum there if nonnull.  Use the symbol type to
7776         determine whether a $gp or HIGH is needed.
7777         (mips_legitimize_address): Update call to mips_split_symbol and
7778         simplify accordingly.
7779         (mips_legitimize_const_move): Likewise.
7780         * config/mips/mips.md: In the combine define_split,
7781         check mips_split_symbol instead of splittable_symbolic_operand.
7782         Update use of mips_split_symbol in the generator code.
7783         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
7784
7785 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7786
7787         * config/mips/mips.c (mips_symbolic_address_p): Delete.
7788         (mips_symbol_insns_1): New function, split out from...
7789         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
7790         and stores separately from load addresses.
7791         (mips_classify_address): Replace uses of mips_symbolic_address_p
7792         with uses of mips_symbol_insns.
7793         (mips_address_insns): Update calls to mips_symbol_insns.
7794         (mips_const_insns): Likewise.
7795         (mips_legitimize_address): Likewise.
7796
7797 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7798
7799         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
7800         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
7801         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
7802         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
7803         non-call contexts if TARGET_MIPS16.
7804         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
7805         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
7806         code for SYMBOL_ABSOLUTE.
7807         (mips_symbol_insns): Likewise.
7808
7809 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7810
7811         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
7812         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
7813         (mips_symbolic_constant_p): Likewise.  Update the call to
7814         mips_classify_symbol.
7815         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
7816         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
7817         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
7818         (print_operand_reloc): Add a context argument.  Update the call to
7819         mips_symbolic_constant_p.
7820         (print_operand): Update the calls to print_operand_reloc.
7821         (print_operand_address): Use print_operand_reloc rather than
7822         print_operand.
7823         (mips_rewrite_small_data_p): Add a context argument.  Update the call
7824         to mips_symbolic_constant_p.
7825         (mips_small_data_pattern_1): Make DATA the containing mem.
7826         Update the call to mips_rewrite_small_data_p.
7827         (mips_rewrite_small_data_1): Likewise.
7828         (mips_use_anchors_for_symbol_p): Update the call to
7829         mips_symbolic_constant_p.
7830         * config/mips/predicates.md (const_call_insn_operand): Likewise.
7831         (splittable_symbolic_operand): Likewise.
7832         (move_operand): Likewise.
7833         (absolute_symbolic_operand): Likewise.
7834         (got_disp_operand): Likewise.
7835         (got_page_ofst_operand): Likewise.
7836
7837 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7838
7839         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
7840         (SYMBOL_ABSOLUTE): ...this.
7841         (SYMBOL_SMALL_DATA): Rename to...
7842         (SYMBOL_GP_RELATIVE): ...this.
7843         (SYMBOL_CONSTANT_POOL): Rename to...
7844         (SYMBOL_PC_RELATIVE): ...this.
7845         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
7846         (mips_symbolic_address_p, mips_symbol_insns, override_options)
7847         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
7848         after above changes.
7849         * config/mips/predicates.md (const_call_insn_operand): Likewise.
7850         (general_symbolic_operand): Rename to...
7851         (absolute_symbolic_operand): ...this.
7852         * config/mips/mips.md: Update after above changes.
7853
7854 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
7855             Revital Eres  <eres@il.ibm.com>
7856
7857         * ddg.c (print_ddg): Add dump information.
7858         * modulo-sched.c (print_node_sched_params): Add parameter and
7859         verbosity.
7860         (calculate_maxii): Remove function.
7861         (undo_generate_reg_moves): Likewise.
7862         (undo_permute_partial_schedule): Likewise.
7863         (kernel_number_of_cycles): Likewise.
7864         (MAXII_FACTOR): New definition to calculate the upper bound of II.
7865         (sms_schedule): Use it.  Remove profitability checks.
7866         (sms_schedule_by_order): Fix order of nodes within the cycle.
7867
7868 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7869
7870         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
7871         -profile option, add pie support.
7872         (ENDFILE_SPEC): New spec.
7873         * config/gnu.h (LIB_SPEC): Add -profile option.
7874
7875 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7876
7877         * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
7878         * config/gnu.h (LIB_SPEC): Likewise.
7879
7880 2007-08-07  Yaz Saito  <saito@google.com>
7881             Ian Lance Taylor  <iant@google.com>
7882
7883         * common.opt (finstrument-functions-exclude-function-list): New
7884         option.
7885         (finstrument-functions-exclude-file-list): New option.
7886         * opts.c (char_p): Define and DEF_VEC.
7887         (flag_instrument_functions_exclude_functions): New static
7888         variable.
7889         (flag_instrument_functions_exclude_files): New static variable.
7890         (add_instrument_functions_exclude_list): New static function.
7891         (flag_instrument_functions_exclude_p): New function.
7892         (common_handle_option): Handle new options.
7893         * flags.h (flag_instrument_functions_exclude_p): Declare.
7894         * gimplify.c (gimplify_function_tree): Call
7895         flag_instrument_functions_exclude_p.
7896         * doc/invoke.texi (Option Summary): Mention new options.
7897         (Code Gen Options): Document new options.
7898
7899 2007-08-07  Ian Lance Taylor  <iant@google.com>
7900
7901         PR rtl-optimization/32776
7902         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
7903         (resolve_use): Likewise.
7904         (decompose_multiword_subregs): Remove "changed" local variable.
7905
7906 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
7907
7908         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
7909         * configure: Regenerate.
7910         * config.in: Regenerate.
7911         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
7912         spec string.
7913
7914 2007-08-07  Ian Lance Taylor  <iant@google.com>
7915
7916         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
7917         note, just delete the insn.
7918
7919 2007-08-07  Andreas Schwab  <schwab@suse.de>
7920
7921         PR bootstrap/32973
7922         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
7923         struct definition.
7924
7925 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7926
7927         * lower-subreg.c (resolve_subreg_use): Remove assertion.
7928         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
7929         (decompose_multiword_subregs): Use the functions above to decompose
7930         multiword shifts and zero-extends.
7931
7932 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
7933
7934         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
7935         "assemble" descriptions which were swapped.
7936
7937 2007-08-06  Chao-ying Fu  <fu@mips.com>
7938
7939         * fixed-value.h: New file.
7940         * fixed-value.c: New file.
7941         * Makefile.in (OBJS-common): Add fixed-value.o.
7942         (fixed-value.o): New rule.
7943         (GTFILES): Add fixed-value.h.
7944         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
7945         to compare a.low and b.low.
7946         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
7947
7948 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7949             Daniel Jacobowitz  <dan@codesourcery.com>
7950
7951         PR target/31868
7952         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
7953         tmake_file.
7954         (x86_64-*-netbsd*): Likewise.
7955         (x86_64-*-linux*): Likewise.
7956         (x86_64-*-kfreebsd*-gnu): Likewise.
7957         (x86_64-*-knetbsd*-gnu): Likewise.
7958         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
7959
7960         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
7961
7962         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
7963         Add -fno-asynchronous-unwind-tables.
7964
7965         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
7966         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
7967         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
7968         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
7969         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
7970
7971 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7972
7973         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
7974         (TARGET_C_MODE_FOR_SUFFIX): New.
7975
7976 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7977
7978         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
7979
7980 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7981
7982         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
7983
7984 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7985
7986         * config/i386/i386.md: Check TARGET_ macros and optimize_size
7987         before checking function returns in conditional expressions.
7988
7989 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
7990
7991         PR pch/13676
7992         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
7993
7994 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7995
7996         PR middle-end/32988
7997         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
7998         for INTEGRAL_TYPE_P.
7999
8000 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
8001
8002         * configure.ac: Remove --enable-checking=df from default settings.
8003         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
8004         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
8005         if the parameter is true.
8006         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
8007         DF_VERIFY_SCHEDULED flag is true.
8008         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
8009         (df_finish_pass): Adjust prototype.
8010         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
8011         true.
8012
8013         * see.c (pass_see): Add TODO_df_verify.
8014         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
8015         * global.c (rest_of_handle_global_alloc): Schedule verification
8016         after the pass.
8017         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
8018         before the pass.
8019         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
8020         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
8021         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
8022
8023         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
8024         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
8025         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
8026
8027 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
8028             Revital Eres <eres@il.ibm.com>
8029
8030         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
8031         flag.
8032         * ddg.c (create_ddg_dependence): Rename to...
8033         (create_ddg_dep_from_intra_loop_link): This.  Do not check
8034         for interloop edges.  Do not create anti dependence edge when
8035         a true dependence edge exists in the opposite direction and
8036         -fmodulo-sched-allow-regmoves is set.
8037         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
8038         (add_cross_iteration_register_deps): Create anti dependence edge
8039         when -fno-modulo-sched-allow-regmoves is set.
8040         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
8041
8042 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
8043
8044         * config/arm/arm.md (movsi): Add braces.
8045
8046 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8047
8048         PR middle-end/32780
8049         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
8050         operands for the folding of "A - (A & B)" into "~B & A"; cast them
8051         to type.
8052
8053 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
8054
8055         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
8056         state accessor functions.
8057         * cfgloopmanip.c (remove_path, create_preheaders,
8058         force_single_succ_latches, fix_loop_structure): Ditto.
8059         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
8060         tree_duplicate_loop_to_header_edge): Ditto.
8061         * cfgloopanal.c (mark_irreducible_loops): Ditto.
8062         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
8063         Ditto.
8064         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
8065         cleanup_tree_cfg): Ditto.
8066         * tree-cfg.c (tree_merge_blocks): Ditto.
8067         * cfgloop.c (rescan_loop_exit, record_loop_exits,
8068         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
8069         loop_preheader_edge, single_exit): Ditto.
8070         (flow_loops_find): Do not clear loops->state.
8071         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
8072         loops_state_clear): New functions.
8073
8074 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8075
8076         PR middle-end/32399
8077         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8078         when adding to the base and convert ELT to sizetype instead of type.
8079
8080 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8081
8082         PR middle-end/32304
8083         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
8084         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
8085
8086 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8087
8088         PR middle-end/32935
8089         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
8090          correct type the negate expression.
8091
8092 2007-08-03  Jan Hubicka  <jh@suse.cz>
8093
8094         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
8095         stack boundary.
8096
8097 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
8098
8099         * config/rs6000/rs6000.c (struct processor_cost): Change
8100         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
8101         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
8102         information.
8103         (rios1_costs, rios2_cost): Correct cache line size.
8104         (rs6000_override_options): Set l2-cache-size parameter.
8105
8106 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8107             Diego Novillo  <dnovillo@google.com>
8108
8109         PR 31521
8110         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
8111         if the range includes 0.
8112
8113 2007-08-03  Ben Elliston  <bje@au.ibm.com>
8114
8115         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
8116         mode to unspec expressions to silence a warning from the generator
8117         programs.
8118         
8119 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
8120
8121         * config/ia64/constraints.md ("U"): Make constraint vector only.
8122
8123 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
8124
8125         PR middle-end/25446
8126         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
8127         always_inline attribute on the function decl.
8128
8129 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
8130
8131         PR middle-end/25445
8132         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
8133         if we are compiling with -fPIC.
8134
8135 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
8136             Nigel Stephens  <nigel@mips.com>
8137
8138         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
8139         Define for MIPS32 and MIPS64.
8140
8141 2007-08-02  Nick Clifton  <nickc@redhat.com>
8142
8143         * config/host-hpux.c: Change copyright header to refer to version
8144         3 of the GNU General Public License and to point readers at the
8145         COPYING3 file and the FSF's license web page.
8146         * config/alpha/predicates.md, config/alpha/vms-ld.c,
8147         config/alpha/linux.h, config/alpha/alpha.opt,
8148         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
8149         config/alpha/vms-unwind.h, config/alpha/ev4.md,
8150         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
8151         config/alpha/alpha.h, config/alpha/sync.md,
8152         config/alpha/openbsd.h, config/alpha/alpha.md,
8153         config/alpha/alpha-modes.def, config/alpha/ev5.md,
8154         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
8155         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
8156         config/alpha/constraints.md, config/alpha/osf.h,
8157         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
8158         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
8159         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
8160         config/frv/frv-asm.h, config/frv/frv-protos.h,
8161         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
8162         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
8163         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
8164         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
8165         config/s390/s390.opt, config/s390/s390-modes.def,
8166         config/s390/fixdfdi.h, config/s390/constraints.md,
8167         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
8168         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
8169         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
8170         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
8171         config/m32c/prologue.md, config/m32c/m32c.abi,
8172         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
8173         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
8174         config/m32c/t-m32c, config/m32c/m32c-modes.def,
8175         config/m32c/jump.md, config/m32c/shift.md,
8176         config/m32c/m32c-protos.h, config/libgloss.h,
8177         config/spu/spu-protos.h, config/spu/predicates.md,
8178         config/spu/spu-builtins.h, config/spu/spu.c,
8179         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
8180         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
8181         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
8182         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
8183         config/sparc/hypersparc.md, config/sparc/predicates.md,
8184         config/sparc/linux.h, config/sparc/sp64-elf.h,
8185         config/sparc/supersparc.md, config/sparc/cypress.md,
8186         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
8187         config/sparc/niagara.md, config/sparc/sparc.md,
8188         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
8189         config/sparc/sparc.opt, config/sparc/sync.md,
8190         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
8191         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
8192         config/sparc/sparc.c, config/sparc/little-endian.opt,
8193         config/sparc/sysv4-only.h, config/sparc/sparc.h,
8194         config/sparc/linux64.h, config/sparc/freebsd.h,
8195         config/sparc/sol2.h, config/sparc/rtemself.h,
8196         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
8197         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
8198         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
8199         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
8200         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
8201         config/m32r/linux.h, config/m32r/constraints.md,
8202         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
8203         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
8204         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
8205         config/i386/i386.md, config/i386/netware-crt0.c,
8206         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
8207         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
8208         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
8209         config/i386/sol2.h, config/i386/constraints.md,
8210         config/i386/netware-libgcc.c, config/i386/sysv5.h,
8211         config/i386/predicates.md, config/i386/geode.md,
8212         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
8213         config/i386/freebsd64.h, config/i386/vxworksae.h,
8214         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
8215         config/i386/rtemself.h, config/i386/netbsd-elf.h,
8216         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
8217         config/i386/netware.h, config/i386/i386-modes.def,
8218         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
8219         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
8220         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
8221         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
8222         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
8223         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
8224         config/i386/xm-mingw32.h, config/i386/linux64.h,
8225         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
8226         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
8227         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
8228         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
8229         config/i386/cygwin2.c, config/i386/i386-protos.h,
8230         config/i386/sync.md, config/i386/openbsd.h,
8231         config/i386/host-mingw32.c, config/i386/i386-aout.h,
8232         config/i386/nto.h, config/i386/biarch64.h,
8233         config/i386/i386-coff.h, config/i386/freebsd.h,
8234         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
8235         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
8236         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
8237         config/darwin-protos.h, config/linux.opt, config/sol2.c,
8238         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
8239         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
8240         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
8241         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
8242         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
8243         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
8244         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
8245         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
8246         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
8247         config/sh/superh64.h, config/sh/rtemself.h,
8248         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
8249         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
8250         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
8251         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
8252         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
8253         config/avr/predicates.md, config/avr/constraints.md,
8254         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
8255         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
8256         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
8257         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
8258         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
8259         config/c4x/c4x-modes.def, config/c4x/rtems.h,
8260         config/c4x/predicates.md, config/c4x/c4x.h,
8261         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
8262         config/xtensa/predicates.md, config/xtensa/xtensa.c,
8263         config/xtensa/linux.h, config/xtensa/xtensa.h,
8264         config/xtensa/elf.h, config/xtensa/xtensa.md,
8265         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
8266         config/xtensa/xtensa-protos.h, config/dbx.h,
8267         config/stormy16/predicates.md, config/stormy16/stormy16.md,
8268         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
8269         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
8270         config/host-solaris.c, config/fr30/fr30.h,
8271         config/fr30/predicates.md, config/fr30/fr30-protos.h,
8272         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
8273         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
8274         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
8275         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
8276         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
8277         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
8278         config/host-linux.c, config/interix3.h, config/cris/cris.c,
8279         config/cris/predicates.md, config/cris/linux.h,
8280         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
8281         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
8282         config/cris/aout.opt, config/cris/cris-protos.h,
8283         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
8284         config/iq2000/iq2000.h, config/iq2000/predicates.md,
8285         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
8286         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
8287         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
8288         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
8289         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
8290         config/chorus.h, config/mn10300/mn10300.c,
8291         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
8292         config/mn10300/mn10300.h, config/mn10300/linux.h,
8293         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
8294         config/mn10300/mn10300.md, config/ia64/predicates.md,
8295         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
8296         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
8297         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
8298         config/ia64/freebsd.h, config/ia64/ia64.md,
8299         config/ia64/ia64-modes.def, config/ia64/constraints.md,
8300         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
8301         config/gofast.h, config/rtems.h, config/sol2-10.h,
8302         config/m68k/predicates.md, config/m68k/m68k.md,
8303         config/m68k/linux.h, config/m68k/m68k-modes.def,
8304         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
8305         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
8306         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
8307         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
8308         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
8309         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
8310         config/m68k/constraints.md, config/m68k/rtemself.h,
8311         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
8312         config/m68k/uclinux.h, config/rs6000/power4.md,
8313         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
8314         config/rs6000/linux.h, config/rs6000/eabi.h,
8315         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
8316         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
8317         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
8318         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
8319         config/rs6000/windiss.h, config/rs6000/603.md,
8320         config/rs6000/aix41.h, config/rs6000/cell.md,
8321         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
8322         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
8323         config/rs6000/darwin.md, config/rs6000/darwin64.h,
8324         config/rs6000/default64.h, config/rs6000/7xx.md,
8325         config/rs6000/darwin.opt, config/rs6000/spe.md,
8326         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
8327         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
8328         config/rs6000/7450.md, config/rs6000/linux64.h,
8329         config/rs6000/constraints.md, config/rs6000/440.md,
8330         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
8331         config/rs6000/rs6000.c, config/rs6000/aix52.h,
8332         config/rs6000/rs6000.h, config/rs6000/power6.md,
8333         config/rs6000/predicates.md, config/rs6000/altivec.md,
8334         config/rs6000/aix64.opt, config/rs6000/rios1.md,
8335         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
8336         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
8337         config/rs6000/darwin7.h, config/rs6000/dfp.md,
8338         config/rs6000/linux64.opt, config/rs6000/sync.md,
8339         config/rs6000/vxworksae.h, config/rs6000/power5.md,
8340         config/rs6000/lynx.h, config/rs6000/biarch64.h,
8341         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
8342         config/rs6000/eabispe.h, config/rs6000/e500.h,
8343         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
8344         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
8345         config/rs6000/aix.h, config/rs6000/vxworks.h,
8346         config/rs6000/40x.md, config/rs6000/aix51.h,
8347         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
8348         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
8349         config/arc/arc.h, config/mcore/mcore-elf.h,
8350         config/mcore/mcore-protos.h, config/mcore/predicates.md,
8351         config/mcore/mcore.md, config/mcore/mcore.c,
8352         config/mcore/mcore.opt, config/mcore/mcore.h,
8353         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
8354         config/score/predicates.md, config/score/score-version.h,
8355         config/score/score-protos.h, config/score/misc.md,
8356         config/score/elf.h, config/score/score.c, config/score/mac.md,
8357         config/score/score7.md, config/score/score.h,
8358         config/score/score-conv.h, config/score/score-mdaux.c,
8359         config/score/score.md, config/score/score.opt,
8360         config/score/score-modes.def, config/score/score-mdaux.h,
8361         config/score/mul-div.S, config/arm/uclinux-elf.h,
8362         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
8363         config/arm/symbian.h, config/arm/linux-elf.h,
8364         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
8365         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
8366         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
8367         config/arm/strongarm-pe.h, config/arm/arm.h,
8368         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
8369         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
8370         config/arm/arm-modes.def, config/arm/linux-eabi.h,
8371         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
8372         config/arm/arm-cores.def, config/arm/arm-protos.h,
8373         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
8374         config/arm/wince-pe.h, config/arm/neon.md,
8375         config/arm/constraints.md, config/arm/neon.ml,
8376         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
8377         config/arm/arm.opt, config/arm/arm926ejs.md,
8378         config/arm/predicates.md, config/arm/iwmmxt.md,
8379         config/arm/arm_neon.h, config/arm/unknown-elf.h,
8380         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
8381         config/arm/neon-testgen.ml, config/arm/arm.md,
8382         config/arm/xscale-coff.h, config/arm/pe.c,
8383         config/arm/arm-generic.md, config/arm/pe.h,
8384         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
8385         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
8386         config/arm/strongarm-elf.h, config/arm/cirrus.md,
8387         config/arm/netbsd-elf.h, config/arm/vxworks.h,
8388         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
8389         config/pa/predicates.md, config/pa/pa64-hpux.h,
8390         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
8391         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
8392         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
8393         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
8394         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
8395         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
8396         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
8397         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
8398         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
8399         config/pa/pa64-regs.h, config/pa/pa-modes.def,
8400         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
8401         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
8402         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
8403         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
8404         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
8405         config/mips/linux64.h, config/mips/elforion.h,
8406         config/mips/constraints.md, config/mips/generic.md,
8407         config/mips/predicates.md, config/mips/4300.md,
8408         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
8409         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
8410         config/mips/5k.md, config/mips/vr4120-div.S,
8411         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
8412         config/mips/mips-protos.h, config/mips/6000.md,
8413         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
8414         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
8415         config/mips/mips-modes.def, config/mips/vr.h,
8416         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
8417         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
8418         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
8419         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
8420         config/vax/openbsd1.h, config/vax/netbsd.h,
8421         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
8422         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
8423         config/h8300/rtems.h, config/h8300/predicates.md,
8424         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
8425         config/h8300/h8300.md, config/h8300/h8300.opt,
8426         config/h8300/coff.h, config/h8300/h8300-protos.h,
8427         config/v850/v850.md, config/v850/predicates.md,
8428         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
8429         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
8430         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
8431         config/mmix/mmix.h, config/mmix/predicates.md,
8432         config/mmix/mmix-protos.h, config/mmix/mmix.md,
8433         config/mmix/mmix.c, config/mmix/mmix.opt,
8434         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
8435         config/bfin/rtems.h, config/bfin/bfin-modes.def,
8436         config/bfin/predicates.md, config/bfin/bfin-protos.h,
8437         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
8438         Likewise.
8439
8440 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
8441
8442         * emit-rtl.c (reset_used_decls): Rename to...
8443         (set_used_decls): ...this.  Set the used flag rather than clearing it.
8444         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
8445         DECL_RTLs rather than resetting them.
8446
8447 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
8448
8449         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
8450
8451 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
8452
8453         * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
8454         argument to find_reloads_address.
8455
8456 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
8457
8458         PR tree-optimization/32919
8459         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
8460         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
8461         (coalesce_ssa_name): Call it.
8462
8463 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
8464             David Ung  <davidu@mips.com>
8465
8466         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
8467         (__mips16_unorddf2, __mips16_floatunsidf): New.
8468         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
8469         above functions.
8470         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
8471
8472 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
8473
8474         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
8475         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
8476         * tree.h (OMP_SECTIONS_CONTROL): New macro.
8477         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
8478         * omp-low.c (get_ws_args_for, determine_parallel_type,
8479         expand_omp_for_generic, expand_omp_for_static_nochunk,
8480         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
8481         Work with more precise CFG.
8482         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
8483         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
8484         OMP_CONTINUE.
8485         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
8486         * gimple-low.c (lower_stmt): Ditto.
8487         * tree-inline.c (estimate_num_insns_1): Ditto.
8488         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
8489         (OMP_SECTIONS_SWITCH): New.
8490         * tree-cfgcleanup.c (cleanup_omp_return): New.
8491         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
8492         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
8493         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
8494         (tree_redirect_edge_and_branch): Handle omp constructs.
8495
8496         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
8497         with three arguments.
8498
8499 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
8500
8501         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
8502         in loop closed ssa.
8503
8504 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
8505
8506         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
8507         the loop structures may need fixing.
8508         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8509         New functions.
8510         (cleanup_tree_cfg_loop): Removed.
8511         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
8512         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
8513         instead of running cleanup_tree_cfg_loop.
8514         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
8515         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
8516         (tree_predictive_commoning): Declaration changed.
8517         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
8518
8519 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
8520
8521         * doc/invoke.texi (l1-cache-size): Update documentation.
8522         (l2-cache-size): Document.
8523         * params.h (L2_CACHE_SIZE): New macro.
8524         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
8525         that L1_CACHE_SIZE is in kB now.
8526         (L2_CACHE_SIZE_BYTES): New macro.
8527         (tree_ssa_prefetch_arrays): Show size in kB.
8528         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
8529         and l2_cache_size fields.
8530         * config/i386/driver-i386.c (describe_cache): Detect cache size
8531         in kB.
8532         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
8533         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
8534         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
8535         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
8536         (override_options): Set l1-cache-size and l2-cache-size to default
8537         values if not specified otherwise.
8538         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
8539         (PARAM_L2_CACHE_SIZE): New.
8540
8541 2007-08-01  Nigel Stephens  <nigel@mips.com>
8542             David Ung  <davidu@mips.com>
8543             Thiemo Seufer  <ths@mips.com>
8544             Chris Dearman  <chris@mips.com>
8545             Richard Sandiford  <richard@codesourcery.com>
8546
8547         * config.gcc (mips*-sde-elf*): New stanza.
8548         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
8549         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
8550         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
8551         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
8552         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
8553         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
8554         to tmake_file.
8555         * config/mips/sde.h: New file.
8556         * config/mips/t-libgcc-mips16: Likewise.
8557         * config/mips/t-sde: Likewise.
8558         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
8559         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
8560         _MIPS_FPSET and _MIPS_SZINT.
8561         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
8562         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
8563         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
8564         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
8565         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
8566         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
8567         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
8568         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
8569         _MIPS_SZPTR and _MIPS_FPSET.
8570         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
8571         architecture is specified.
8572         (MIPS_32BIT_OPTION_SPEC): New macro.
8573
8574 2007-07-31  Dan Hipschman  <dsh@google.com>
8575
8576         * gcc.c (end_going_arg): New function.
8577         (do_spec_2): Use it.
8578         (do_spec_1): Use it.
8579
8580 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8581
8582         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
8583         only if ENABLE_CHECKING is defined.
8584
8585 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
8586
8587         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
8588         df_ru_add_problem, df_ru_get_bb_info): Removed.
8589         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
8590         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
8591         df_ru_free_bb_info, df_ru_alloc,
8592         df_ru_bb_local_compute_process_def,
8593         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
8594         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
8595         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
8596         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
8597         df_ru_add_problem): Removed.
8598
8599 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8600
8601         PR target/32847
8602         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
8603         (casesi32p, casesi64p): Likewise.
8604         (casesi): Adjust for above.
8605
8606 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
8607
8608         * mode-switching.c (create_pre_exit): Don't search past calls.
8609
8610 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
8611
8612         * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
8613
8614 2007-07-31  Revital Eres  <eres@il.ibm.com>
8615
8616         * ddg.c (add_deps_for_def): Rename to...
8617         (add_cross_iteration_register_deps): This.  Change implementation
8618         to use only reaching def and def-use chains to construct the
8619         inter loop dependencies.
8620         (add_deps_for_use): Remove function.
8621         (build_inter_loop_deps): Call add_cross_iteration_register_deps
8622         function to build the inter loop dependencies.
8623         * modulo-sched.c (sms_schedule): Build only
8624         reaching def and def-use chains for the propose of the ddg
8625         construction.
8626
8627 2007-07-31  Julian Brown  <julian@codesourcery.com>
8628
8629         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
8630         New define_insns. Use correct RTL.
8631         (vec_set<mode>): Write as expander.
8632
8633 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
8634
8635         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
8636         to an unallocated space.
8637
8638 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
8639
8640         * tree-data-ref.c
8641         (split_constant_offset): Enable split_constant_offset to extract
8642         constants from other statements.
8643         * tree-vect-transform.c
8644         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
8645         to a temp var. Force base_offset to be simple.
8646
8647 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
8648
8649         * df-scan.c (df_scan_verify): Remove artificial limit on
8650         the number of blocks for verification.
8651         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
8652         df_simulate_defs): Avoid unnecessary insn checking for defs.
8653
8654 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
8655
8656         * config/m68k/lb1sf68.asm (FUNC): New macro.
8657         (__mulsi3): Use it.
8658         (__udivsi3): Likewise.
8659         (__divsi3): Likewise.
8660         (__umodsi3): Likewise.
8661         (__modsi3): Likewise.
8662         (__subdf3): Likewise.
8663         (__adddf3): Likewise.
8664         (__muldf3): Likewise.
8665         (__divdf3): Likewise.
8666         (__negdf2): Likewise.
8667         (__cmpdf2): Likewise.
8668         (__subsf3): Likewise.
8669         (__addsf3): Likewise.
8670         (__mulsf3): Likewise.
8671         (__divsf3): Likewise.
8672         (__negsf2): Likewise.
8673         (__cmpsf2): Likewise.
8674         (__eqdf2): Likewise.
8675         (__nedf2): Likewise.
8676         (__gtdf2): Likewise.
8677         (__gedf2): Likewise.
8678         (__ltdf2): Likewise.
8679         (__ledf2): Likewise.
8680         (__eqsf2): Likewise.
8681         (__nesf2): Likewise.
8682         (__gtsf2): Likewise.
8683         (__gesf2): Likewise.
8684         (__ltsf2): Likewise.
8685         (__lesf2): Likewise.
8686
8687 2007-07-30  Ollie Wild  <aaw@google.com>
8688
8689         * c-ppoutput.c (print_lines_directives_only): New function.
8690         (scan_translation_unit_directives_only): New function.
8691         (preprocess_file): Add call to scan_translation_unit_directives_only.
8692         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
8693         (sanitize_cpp_opts): Add default flag_dump_macros setting for
8694         -fdirectives-only.  Add errors for -fdirectives-only conflict with
8695         -Wunused-macros and -traditional.
8696         (finish_options): Add builtin macro initialization for
8697         -fdirectives-only + -fpreprocessed.
8698         * c.opt (fdirectives-only): New.
8699         * doc/cppopts.texi (fdirectives-only): New.
8700
8701 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8702
8703         * alias.c (record_set, memory_modified_1): Constify.
8704         * bt-load.c (note_btr_set): Likewise.
8705         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
8706         * combine.c (set_nonzero_bits_and_sign_copies,
8707         expand_field_assignment, record_dead_and_set_regs_1,
8708         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
8709         likely_spilled_retval_1): Likewise.
8710         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
8711         frv_io_handle_set): Likewise.
8712         * config/mips/mips.c (mips_sim_record_set,
8713         vr4130_true_reg_dependence_p_1): Likewise.
8714         * config/mt/mt.c (insn_dependent_p_1): Likewise.
8715         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
8716         * config/sh/sh.c (flow_dependent_p_1): Likewise.
8717         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
8718         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
8719         * ddg.c (mark_mem_store): Likewise.
8720         * df-problems.c (df_urec_mark_reg_change): Likewise.
8721         * function.c (update_epilogue_consts): Likewise.
8722         * gcse.c (record_set_info, record_last_set_info,
8723         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
8724         reg_clear_last_set): Likewise.
8725         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
8726         Likewise.
8727         * jump.c (reversed_comparison_code_parts): Likewise.
8728         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
8729         reg_is_set): Likewise.
8730         * loop-iv.c (mark_altered): Likewise.
8731         * mode-switching.c (reg_becomes_live): Likewise.
8732         * optabs.c (no_conflict_move_test): Likewise.
8733         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
8734         Likewise.
8735         * postreload.c (reload_combine_note_store, move2add_note_store):
8736         Likewise.
8737         * regmove.c (flags_set_1): Likewise.
8738         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
8739         Likewise.
8740         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
8741         Likewise. 
8742         * resource.c (update_live_status): Likewise.
8743         * rtl.h (set_of, note_stores): Likewise.
8744         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
8745         note_stores, parms_set): Likewise.
8746         * sched-rgn.c (sets_likely_spilled_1): Likewise.
8747         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
8748         Likewise. 
8749         * var-tracking.c (count_stores, add_stores): Likewise.
8750
8751 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8752
8753         * alias.c (mems_in_disjoint_alias_sets_p,
8754         fixed_scalar_and_varying_struct_p, aliases_everything_p,
8755         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
8756         write_dependence_p, mems_in_disjoint_alias_sets_p,
8757         read_dependence, true_dependence, canon_true_dependence,
8758         anti_dependence, output_dependence): Constify.
8759         * combine.c (extended_count): Likewise.
8760         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
8761         * cselib.c (get_value_hash, references_value_p,
8762         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
8763         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
8764         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
8765         * function.c (contains, prologue_epilogue_contains,
8766         sibcall_epilogue_contains): Likewise. 
8767         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
8768         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
8769         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
8770         reg_or_subregno): Likewise.
8771         * recog.c (asm_noperands): Likewise.
8772         * reload1.c (function_invariant_p): Likewise.
8773         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
8774         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
8775         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
8776         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
8777         true_regnum, reg_or_subregno, condjump_in_parallel_p,
8778         extended_count, prologue_epilogue_contains,
8779         sibcall_epilogue_contains, function_invariant_p, true_dependence,
8780         canon_true_dependence, read_dependence, anti_dependence,
8781         output_dependence): Likewise.
8782         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
8783
8784 2007-07-30  Julian Brown  <julian@codesourcery.com>
8785
8786         * config/arm/neon.md (V_ext): New mode attribute.
8787         (neon_vget_lane<mode>): Replace with define_expand.
8788         (neon_vget_lane<mode>_sext_internal)
8789         (neon_vget_lane<mode>_zext_internal): New define_insns for double
8790         and quad precision vectors.
8791         (neon_vget_lanedi): Add bounds check. Remove dead comment.
8792         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
8793         have typeless 32-bit result.
8794
8795 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8796
8797         PR tree-opt/32527
8798         * tree-affine.h (aff_tree): The type of rest is sizetype for types
8799         of pointers.
8800         * tree-affine.c (aff_combination_scale): If type is a pointer type,
8801         use sizetype for rest.
8802         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
8803         (aff_combination_convert): Don't convert rest for pointer types.
8804
8805 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
8806
8807         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
8808
8809         * tree-ssa-alias.c: Add alloc-pool.h.
8810         (init_alias_info): Free alias_bitmap_obstack.
8811         (delete_alias_info): Call delete_mem_ref_stats.
8812         (get_mem_sym_stats_for): Use alloc_pool.
8813         (init_mem_ref_stats): Do not delete mem_ref_stats here.
8814         (delete_mem_sym_stats): Removed.
8815         
8816 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
8817
8818         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
8819         functions cannot be represented as classical distance vectors.
8820
8821 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8822
8823         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
8824         * builtins.c (validate_arg, builtin_mathfn_code,
8825         validate_arglist): Likewise.
8826         * calls.c (call_expr_flags): Likewise.
8827         * combine.c (reg_nonzero_bits_for_combine,
8828         reg_num_sign_bit_copies_for_combine, get_last_value,
8829         reg_truncated_to_mode): Likewise.
8830         * emit-rtl.c (subreg_lowpart_p): Likewise.
8831         * expr.c (highest_pow2_factor_for_target,
8832         categorize_ctor_elements_1, categorize_ctor_elements,
8833         count_type_elements, contains_packed_reference,
8834         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
8835         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
8836         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
8837         native_encode_int, native_encode_real, native_encode_complex,
8838         native_encode_vector, native_encode_expr, native_interpret_int,
8839         native_interpret_real, native_interpret_complex,
8840         native_interpret_vector, native_interpret_expr): Likewise.
8841         * function.c (use_register_for_decl): Likewise.
8842         * gimplify.c (get_name): Likewise.
8843         * langhooks-def.h (lhd_return_null_const_tree): New.
8844         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
8845         * langhooks.c (lhd_return_null_const_tree): New.
8846         * langhooks.h (lang_get_callee_fndecl): Constify.
8847         * output.h (constructor_static_from_elts_p): Likewise.
8848         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
8849         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
8850         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
8851         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
8852         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
8853         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
8854         * rtlhooks-def.h (reg_nonzero_bits_general,
8855         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
8856         Likewise. 
8857         * rtlhooks.c (reg_num_sign_bit_copies_general,
8858         reg_nonzero_bits_general, reg_truncated_to_mode_general):
8859         Likewise. 
8860         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
8861         * stor-layout.c (mode_for_size_tree): Likewise.
8862         * tree-ssa-loop-im.c (memref_eq): Likewise.
8863         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
8864         * tree.c (contains_placeholder_p, type_list_equal,
8865         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
8866         Likewise. 
8867         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
8868         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
8869         contains_placeholder_p, contains_packed_reference,
8870         get_callee_fndecl, operand_equal_for_phi_arg_p,
8871         warn_if_unused_value, is_body_block, native_encode_expr,
8872         native_interpret_expr, fold_convertible_p, operand_equal_p,
8873         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
8874         validate_arglist, simple_cst_equal, type_list_equal,
8875         use_register_for_decl, call_expr_flags, get_name,
8876         highest_pow2_factor): Likewise.
8877         (const_call_expr_arg_iterator_d,
8878         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
8879         first_const_call_expr_arg, more_const_call_expr_args_p,
8880         FOR_EACH_CONST_CALL_EXPR_ARG): New.
8881         * varasm.c (constructor_static_from_elts_p): Constify.
8882
8883 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
8884
8885         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
8886         config/arm/neon-schedgen.ml, config/arm/neon.ml,
8887         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
8888         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
8889         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
8890         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
8891         spelling conventions.
8892         * doc/invoke.texi: Follow spelling conventions.
8893
8894 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
8895             Revital Eres  <eres@il.ibm.com>
8896
8897         * modulo-sched.c (sms_schedule): Avoid loops which includes
8898         auto-increment instructions.
8899
8900 2007-07-28  Richard Guenther  <rguenther@suse.de>
8901
8902         PR middle-end/32920
8903         * fold-const.c (fold_cond_expr_with_comparison): Convert
8904         operand zero of MIN/MAX_EXPR to correct type.
8905
8906 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8907
8908         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
8909         flags_from_decl_or_type): Constify.
8910         * gcc.c (do_spec_1): Likewise.
8911         * print-tree.c (dump_addr, print_node_brief): Likewise.
8912         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
8913         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
8914         tree_purge_all_dead_eh_edges): Likewise.
8915         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
8916         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
8917         Likewise. 
8918         * tree.c (expr_location, expr_has_location, expr_locus,
8919         expr_filename, expr_lineno, get_inner_array_type,
8920         fields_compatible_p): Likewise.
8921         * tree.h (get_inner_array_type, fields_compatible_p,
8922         expr_location, expr_has_location, expr_locus, expr_filename,
8923         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
8924         setjmp_call_p, alloca_call_p): Likewise.
8925
8926 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
8927
8928         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
8929         TV_FLOW_INSENSITIVE.
8930
8931         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
8932         TV_CALL_CLOBBER.
8933         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
8934         (compute_flow_insensitive_aliasing): Ditto for
8935         TV_FLOW_INSENSITIVE.    
8936
8937 2007-07-27  Jan Hubicka  <jh@suse.cz>
8938
8939         * config/i386/i386.c (register_move_cost): Remove accidentally
8940         comitted #if 0 block.
8941
8942         * attribs.c: Include hashtab.h
8943         (attribute_hash): New.
8944         (substring): New structure.
8945         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
8946         New function.
8947         (init_attributes): Initialize attribute hash.
8948         (decl_attributes): Use attribute hash.
8949         * Makefile.in (attribs.c): Depend on hashtab.h.
8950
8951 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
8952
8953         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
8954
8955 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
8956
8957         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
8958         __mips_dspr2 and __mips_dsp_rev macros.
8959         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
8960
8961 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
8962         
8963        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
8964
8965 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
8966
8967         PR middle-end/32749
8968         
8969         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
8970         and the updating of the live and do_not_gen sets.
8971         (df_note_bb_compute): Added updating of live and do_not_gen sets
8972         for regular defs so that the case of clobber inside conditional
8973         call is processed correctly.
8974         
8975 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8976
8977         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
8978         operands with compatible type.
8979
8980 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
8981
8982         * expr.h (store_bit_field): Don't return a value.
8983         * expmed.c (check_predicate_volatile_ok): New function.
8984         (store_bit_field_1): New function, extracted from store_bit_field.
8985         Take a fallback_p argument and return true if the operation succeeded.
8986         Only use store_fixed_bit_field if fallback_p.  Don't recompute
8987         mode_for_extraction; use op_mode instead.  Try forcing memories
8988         into registers if the insv expander fails.
8989         (store_bit_field): Use store_bit_field_1 with fallback_p true.
8990         Don't return a value.
8991         (convert_extracted_bit_field): New function, extracted from
8992         store_bit_field.
8993         (extract_bit_field_1): Likewise.  Take a fallback_p argument
8994         and return NULL if the operation succeeded.  Only use
8995         extract_fixed_bit_field if fallback_p.  Only calculate one
8996         extraction mode.  Combine code for extv and extzv.  Try forcing
8997         memories into registers if the ext(z)v expander fails.
8998         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
8999
9000 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
9001
9002         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
9003         into bitfields.
9004         (df_ref): Likewise.  Put regno with other integer fields.
9005
9006 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
9007
9008         * df.h (df_mw_hardreg): Remove "loc" field.
9009         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
9010         local variable.
9011         * df-problems.c (df_whole_mw_reg_unused_p): New function,
9012         split out from df_set_unused_notes_for_mw.  Return false for
9013         partial references.  Assert that mw_reg is a REG when returning true.
9014         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
9015         (df_whole_mw_reg_dead_p): New function, split out from
9016         df_set_dead_notes_for_mw.  Return false for partial references.
9017         Assert that mw_reg is a REG when returning true.
9018         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
9019         Remove redundant bitmap check.
9020
9021 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9022
9023         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
9024         ($(T)crtend.o): Likwise.
9025         ($(T)crtbeginS.o): Likwise.
9026         ($(T)crtendS.o): Likwise.
9027         ($(T)crtfastmath.o): Likwise.
9028
9029 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
9030
9031         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
9032         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
9033         * basic-block.h (struct control_flow_graph): Added x_dom_computed
9034         and x_n_bbs_in_dom_tree fields.
9035
9036 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
9037
9038         PR tree-optimization/32087
9039         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
9040         Do not call scale_bbs_frequencies_int with prob of zero.
9041
9042 2007-07-26  Julian Brown  <julian@codesourcery.com>
9043
9044         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
9045         (neon_element_bits): Add prototypes.
9046         * config/arm/arm.c (bounds_check, neon_lane_bounds)
9047         (neon_const_bounds, neon_element_bits): New functions.
9048         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
9049         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
9050         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
9051         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
9052         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
9053         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
9054         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
9055         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
9056         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
9057         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
9058         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
9059         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
9060         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
9061
9062 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
9063
9064         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
9065         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
9066
9067 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
9068             Julian Brown  <julian@codesourcery.com>
9069
9070         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
9071         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
9072         * config/arm/cortex-a8.md: New.
9073         * config/arm/cortex-a8-neon.md: New.
9074         * config/arm/neon-schedgen.ml: New.
9075         * config/arm/neon.md (vqh_mnem): New.
9076         (neon_type): New.
9077         (Is_float_mode): New.
9078         (Scalar_mul_8_16): New.
9079         (Is_d_reg): New.
9080         (V_mode_nunits): New.
9081         (All instruction patterns): Annotate with neon_type attribute
9082         values.
9083         * config/arm/arm.md: Include cortex-a8.md.
9084         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
9085         values.
9086         Annotate instruction patterns accordingly.
9087         (generic_sched): Do not use generic scheduling for Cortex-A8.
9088         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
9089
9090 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
9091
9092         * fold-const.c (fold_read_from_constant_string): Use
9093         build_int_cst_type.
9094         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9095
9096 2007-07-26  Nick Clifton  <nickc@redhat.com>
9097
9098         * tree-ssa-operands.h: Change copyright header to refer to version
9099         3 of the GNU General Public License and to point readers at the
9100         COPYING3 file and the FSF's license web page.
9101         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
9102         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
9103         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
9104         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
9105         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
9106         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
9107         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
9108         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
9109         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
9110         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
9111         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
9112         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
9113         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
9114         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
9115         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
9116         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
9117         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
9118         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
9119         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
9120         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
9121         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
9122         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
9123         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
9124         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
9125         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
9126         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
9127         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
9128         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
9129         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
9130         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
9131         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
9132         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
9133         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
9134         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
9135         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
9136         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
9137         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
9138         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
9139         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
9140         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
9141         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
9142         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
9143         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
9144         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
9145         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
9146         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
9147         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
9148         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
9149         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
9150         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
9151         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
9152         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
9153         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
9154         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
9155         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
9156         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
9157         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
9158         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
9159         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
9160         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
9161         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
9162         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
9163         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
9164         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
9165         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
9166         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
9167         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
9168         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
9169         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
9170         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
9171         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
9172         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
9173         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
9174         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
9175         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
9176         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
9177         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
9178         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
9179         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
9180         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
9181         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
9182         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
9183         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
9184         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
9185         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
9186         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
9187         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
9188         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
9189         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
9190         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
9191         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
9192         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
9193         vecprim.h, basic-block.h, tree-ssa-structalias.c,
9194         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
9195         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
9196         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
9197         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
9198         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
9199         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
9200         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
9201         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
9202         convert.c, convert.h, langhooks-def.h, reload1.c,
9203         tree-ssa-operands.c: Likewise.
9204
9205 2007-07-26  Jan Hubicka  <jh@suse.cz>
9206
9207         * tree-ssa-live.c: Include debug.h and flags.h.
9208         (mark_scope_block_unused): New function.
9209         (remove_unused_scope_block_p): New function.
9210         (remove_unused_locals): Remove unused blocks too.
9211
9212 2007-07-25  Ian Lance Taylor  <iant@google.com>
9213
9214         * combine.c (combine_max_regno): Remove.  Remove all uses.
9215         (struct reg_stat_struct): Rename from struct reg_stat.
9216         (reg_stat_type): Define, and declare VECs.
9217         (reg_stat): Change from pointer to VEC.  Change all uses.
9218         (combine_split_insns): New static function.
9219         (try_combine, find_split_point): Call it instead of split_insns.
9220
9221 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
9222
9223         * cfghooks.c (split_block): Fix the information about loop latch.
9224
9225 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
9226
9227         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
9228
9229 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
9230
9231         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9232         Scan the new edge for loop exit info.
9233
9234 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
9235
9236         * config/darwin.c: Include debug.h.
9237
9238 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
9239
9240         PR target/32218
9241         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
9242
9243 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
9244
9245         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
9246         (HARD_REGNO_MODE_OK): Ditto.
9247         (MODES_TIEABLE_P): Ditto.
9248         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
9249         (CLASS_MAX_NREGS): Ditto.
9250         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
9251         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
9252         (divdf3_internal_thr): Removed.
9253         * config/ia64/div.md: New file.
9254         * config/ia64/constraints.md: Add H constraint.
9255
9256 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9257
9258         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
9259         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
9260         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
9261         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
9262         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
9263         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
9264         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
9265         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
9266         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
9267         dump_sbitmap_file, debug_sbitmap, popcount_table,
9268         sbitmap_popcount): Constify.
9269         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
9270         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
9271         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
9272         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
9273         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
9274         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
9275         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
9276         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
9277         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
9278         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
9279         sbitmap_popcount, sbitmap_verify_popcount): Constify.
9280
9281 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9282
9283         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
9284         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
9285         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
9286         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
9287         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
9288         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
9289         bitmap_intersect_p, bitmap_intersect_compl_p,
9290         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
9291         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
9292         Constify.
9293         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
9294         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
9295         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
9296         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
9297         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
9298         debug_bitmap, debug_bitmap_file, bitmap_print,
9299         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
9300         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
9301
9302 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
9303
9304         * config/darwin.c (darwin_override_options): Additional fix for
9305         debug info formats that don't support var tracking.
9306
9307 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9308
9309         * cselib.c (entry_and_rtx_equal_p): Constify.
9310         * gengtype.c (output_mangled_typename, write_types, write_local):
9311         Likewise.
9312         * gengtype.h (const_type_p): New.
9313         * see.c (eq_descriptor_extension, hash_descriptor_extension):
9314         Constify.
9315         * tlink.c (scan_linker_output): De-constify.
9316         * tree-ssa-loop-im.c (memref_eq): Constify.
9317         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
9318         (shared_bitmap_hash, shared_bitmap_eq): Constify.
9319
9320 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9321
9322         * c-common.c (fname_as_string, c_type_hash): Constify.
9323         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
9324         * cgraph.c (edge_hash, edge_eq): Likewise.
9325         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
9326         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
9327         reg_attrs_htab_eq): Likewise.
9328         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
9329         Likewise.
9330         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
9331         const_decl_t, const_state_t, const_automata_list_el_t): New.
9332         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
9333         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
9334         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
9335         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
9336         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
9337         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
9338         compare_max_occ_cycle_nums, out_state_arcs_num,
9339         compare_transition_els_num, units_cmp, state_reservs_cmp):
9340         Constify.
9341         * genmodes.c (cmp_modes): Likewise.
9342         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
9343         * gimplify.c (compare_case_labels): Likewise.
9344         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
9345         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
9346         * matrix-reorg.c (mtt_info_hash): Likewise.
9347         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
9348         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
9349         (htab_hash_bucket, htab_hash_elem): Constify.
9350         * tree-browser.c (TB_parent_eq): Likewise.
9351         * tree-scalar-evolution.c (hash_scev_info): Likewise.
9352         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
9353         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
9354         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
9355         Constify.
9356         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
9357         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
9358         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
9359         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
9360         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
9361         New.
9362         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
9363         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
9364         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
9365         * tree-ssa-threadupdate.c (redirection_data_hash,
9366         redirection_data_eq): Likewise. 
9367         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
9368         * tree-ssa.c (var_ann_eq): Likewise.
9369         * tree-vrp.c (compare_case_labels): Likewise.
9370         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
9371         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
9372         tree_not_check_failed, tree_class_check_failed,
9373         tree_range_check_failed, tree_not_class_check_failed,
9374         omp_clause_check_failed, omp_clause_range_check_failed,
9375         tree_contains_struct_check_failed, tree_operand_check_failed):
9376         Likewise. 
9377         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
9378         tree_not_check_failed, tree_class_check_failed,
9379         tree_range_check_failed, tree_not_class_check_failed,
9380         tree_operand_check_failed, omp_clause_operand_check_failed,
9381         tree_operand_length): Likewise. 
9382         * var-tracking.c (const_variable): New.
9383         (variable_htab_hash, variable_htab_eq): Constify.
9384         * varasm.c (const_desc_hash): Likewise.
9385
9386 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9387
9388         * expr.c (handled_component_p): Constify.
9389         * fold-const.c (fit_double_type): Likewise.
9390         * real.h (real_value_from_int_cst): Likewise.
9391         * tree-flow-inline.h (gimple_in_ssa_p,
9392         gimple_aliases_computed_p, gimple_addressable_vars,
9393         gimple_call_clobbered_vars, gimple_referenced_vars,
9394         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
9395         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
9396         may_aliases, end_readonly_imm_use_p, has_zero_uses,
9397         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
9398         is_label_stmt, is_global_var, phi_ssa_name_p,
9399         factoring_name_p, is_call_clobbered, tree_common_ann,
9400         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
9401         unmodifiable_var_p, array_ref_contains_indirect_ref,
9402         ref_contains_array_ref, lookup_subvars_for_var,
9403         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
9404         gimple_mem_ref_stats): Likewise.
9405         * tree-flow.h (tree_common_ann, var_ann, function_ann,
9406         may_aliases, is_exec_stmt, is_label_stmt,
9407         ref_contains_array_ref, array_ref_contains_indirect_ref,
9408         var_can_have_subvars, overlap_subvar, is_call_clobbered,
9409         unmodifiable_var_p): Likewise.
9410         * tree-gimple.c (is_gimple_min_invariant): Likewise.
9411         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
9412         * tree.c (type_hash_list, attribute_hash_list, tree_size,
9413         cst_and_fits_in_hwi, real_value_from_int_cst,
9414         build_real_from_int_cst, integer_zerop, integer_onep,
9415         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
9416         tree_floor_log2, real_zerop, real_onep, real_twop,
9417         real_minus_onep, really_constant_p, purpose_member, chain_member,
9418         list_length, fields_length, int_size_in_bytes, bit_position,
9419         int_bit_position, byte_position, int_byte_position, expr_align,
9420         array_type_nelts, tree_node_structure,
9421         type_contains_placeholder_1, iterative_hash_pointer,
9422         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
9423         tree_map_base_eq, type_hash_list, type_hash_eq,
9424         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
9425         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
9426         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
9427         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
9428         int_fits_type_p, get_containing_scope, decl_function_context,
9429         decl_type_context, omp_clause_operand_check_failed,
9430         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
9431         * tree.h (omp_clause_operand_check_failed, tree_size,
9432         build_real_from_int_cst, array_type_nelts, purpose_member,
9433         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
9434         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
9435         is_attribute_p, check_qualified_type, expr_align,
9436         int_size_in_bytes, bit_position, int_bit_position, byte_position,
9437         int_byte_position, list_length, fields_length, initializer_zerop,
9438         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
9439         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
9440         tree_node_structure, handled_component_p, get_containing_scope,
9441         decl_function_context, decl_type_context, real_zerop,
9442         type_num_arguments, fit_double_type, really_constant_p,
9443         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
9444         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
9445         real_twop, real_minus_onep, int_cst_value): Likewise.
9446
9447 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9448
9449         * cfglayout.c (insn_scope, insn_line): Constify.
9450         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
9451         const_double_htab_hash, const_double_htab_eq,
9452         mem_attrs_htab_hash): Likewise.
9453         * loop-iv.c (biv_eq): Likewise.
9454         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
9455         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
9456         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
9457         Likewise. 
9458         * rtl-error.c (location_for_asm, diagnostic_for_asm,
9459         error_for_asm, warning_for_asm, _fatal_insn,
9460         _fatal_insn_not_found): Likewise. 
9461         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
9462         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
9463         rtl_check_failed_type2, rtl_check_failed_code1,
9464         rtl_check_failed_code2, rtl_check_failed_code_mode,
9465         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
9466         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
9467         rtl_check_failed_type2, rtl_check_failed_code1,
9468         rtl_check_failed_code2, rtl_check_failed_code_mode,
9469         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
9470         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
9471         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
9472         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
9473         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
9474         rtx_unstable_p, get_integer_term, get_related_value,
9475         offset_within_block_p, reg_mentioned_p, count_occurrences,
9476         reg_referenced_p, reg_used_between_p, no_labels_between_p,
9477         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
9478         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
9479         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
9480         find_constant_src, find_reg_fusage, find_regno_fusage,
9481         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
9482         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
9483         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
9484         computed_jump_p, auto_inc_p, in_expr_list_p,
9485         remove_node_from_expr_list, loc_mentioned_in_p,
9486         label_is_jump_target_p, reversed_comparison_code_parts,
9487         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
9488         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
9489         print_inline_rtx): Likewise.
9490         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
9491         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
9492         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
9493         get_integer_term, get_related_value, offset_within_block_p,
9494         count_occurrences, reg_mentioned_p, no_labels_between_p,
9495         reg_used_between_p, reg_referenced_p, single_set_2,
9496         multiple_sets, set_noop_p, refers_to_regno_p,
9497         reg_overlap_mentioned_p, dead_or_set_p,
9498         covers_regno_no_parallel_p, covers_regno_p,
9499         dead_or_set_regno_p, find_reg_note, find_regno_note,
9500         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
9501         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
9502         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
9503         side_effects_p, may_trap_p_1, may_trap_p,
9504         may_trap_after_code_motion_p, may_trap_or_fault_p,
9505         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
9506         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
9507         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
9508         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
9509         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
9510         Likewise. 
9511         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
9512         warning_for_asm): Likewise.
9513         * tree.h (print_rtl): Likewise.
9514         * varasm.c (get_pool_mode): Likewise.
9515
9516 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9517
9518         * c-lex.c (c_lex_with_flags, lex_string): Constify.
9519         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
9520         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
9521         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
9522         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
9523         * ddg.c (compare_sccs): Likewise.
9524         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
9525         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
9526         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
9527         decimal_do_fix_trunc, decimal_real_to_integer,
9528         decimal_real_to_integer2, decimal_real_maxval): Likewise.
9529         * dse.c (const_group_info_t): New.
9530         (invariant_group_base_eq, invariant_group_base_hash): Constify.
9531         * dwarf2out.c (const_dw_die_ref): New.
9532         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
9533         * tree-browser.c (TB_parent_eq): Likewise.
9534         * unwind-dw2-fde.c (__register_frame_info_bases,
9535         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
9536         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
9537         Likewise.
9538         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
9539         * unwind-dw2.c (uw_frame_state_for): Likewise.
9540         * value-prof.c (histogram_hash, histogram_eq): Likewise.
9541         * value-prof.h (const_histogram_value): New.
9542
9543 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
9544
9545         * config/mips/mips.c (machine_function): Add
9546         initialized_mips16_gp_pseudo_p.
9547         (mips16_gp_pseudo_reg): Do not emit the initialization of
9548         mips16_gp_pseudo_rtx when being called from the gimple cost-
9549         calculation routines; emit it on the first use outside those
9550         routines.
9551
9552 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9553
9554         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
9555         New.
9556         
9557         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9558         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
9559         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
9560         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
9561         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
9562         Preserve const-ness of parameters through use of __typeof(),
9563         also constify and tidy.
9564         
9565         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
9566         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
9567         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
9568         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
9569         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
9570         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
9571         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
9572         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
9573         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
9574
9575 2007-07-25  Julian Brown  <julian@codesourcery.com>
9576             Mark Shinwell  <shinwell@codesourcery.com>
9577
9578         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
9579         (alpha_mangle_type): This.
9580         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9581         (TARGET_MANGLE_TYPE): Define this instead.
9582         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
9583         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
9584         (arm_init_neon_builtins): Fix comment.
9585         (arm_mangle_map_entry): New.
9586         (arm_mangle_map): New.
9587         (arm_mangle_type): New.
9588         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
9589         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
9590         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
9591         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9592         (TARGET_MANGLE_TYPE): Define this instead.
9593         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
9594         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
9595         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
9596         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9597         (TARGET_MANGLE_TYPE): Define this instead.
9598         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
9599         to...
9600         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
9601         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9602         (TARGET_MANGLE_TYPE): Define this instead.
9603         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
9604         (s390_mangle_type): This.
9605         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9606         (TARGET_MANGLE_TYPE): Define this instead.
9607         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
9608         (sparc_mangle_type): This.
9609         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9610         (TARGET_MANGLE_TYPE): Define this instead.
9611         * cp/mangle.c (write_type): Call mangle_type target hook on all
9612         types before mangling.  Use original type, not main variant, as
9613         argument.
9614         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
9615         (TARGET_MANGLE_TYPE): This.
9616         * target.h (gcc_target): Rename mangle_fundamental_type to
9617         mangle_type.
9618         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
9619         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
9620
9621 2007-07-25  Julian Brown  <julian@codesourcery.com>
9622             Paul Brook  <paul@codesourcery.com>
9623             Joseph Myers  <joseph@codesourcery.com>
9624             Mark Shinwell  <shinwell@codesourcery.com>
9625
9626         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
9627         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
9628         (with_fpu): Allow --with-fpu=neon.
9629         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
9630         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
9631         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
9632         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
9633         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
9634         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
9635         (neon_emit_pair_result_insn, neon_disambiguate_copy)
9636         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
9637         (output_move_neon): Add prototypes.
9638         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
9639         (all_fpus): Add FPUTYPE_NEON.
9640         (fp_model_for_fpu): Add NEON field.
9641         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
9642         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
9643         in registers.
9644         (arm_legitimate_address_p): Don't support fancy addressing for NEON
9645         structure moves.
9646         (thumb2_legitimate_address_p): Likewise.
9647         (neon_valid_immediate): Recognize and prepare constants suitable for
9648         NEON instructions.
9649         (neon_immediate_valid_for_move): New function. Recognize and prepare
9650         immediates for NEON move instructions.
9651         (neon_immediate_valid_for_logic): New function. Recognize and
9652         prepare immediates for NEON logic instructions.
9653         (neon_output_logic_immediate): New function. Create asm string
9654         suitable for outputting immediate logic instructions.
9655         (neon_pairwise_reduce): New function. Implement reduction using
9656         pairwise operations.
9657         (neon_expand_vector_init): New function. Expand a (possibly
9658         non-constant) vector initialization.
9659         (neon_vector_mem_operand): New function. Memory operands supported
9660         for quad-word loads/stores to/from ARM or NEON registers. Don't
9661         allow base+offset addressing for core regs.
9662         (neon_struct_mem_operand): New function. Valid mems for NEON
9663         structure moves.
9664         (coproc_secondary_reload_class): Enable NEON registers to be loaded
9665         from neon_vector_mem_operand addresses without a secondary register.
9666         (add_minipool_forward_ref): Handle >8-byte minipool entries.
9667         (add_minipool_backward_ref): Likewise.
9668         (dump_minipool): Likewise.
9669         (push_minipool_fix): Likewise.
9670         (output_move_quad): New function. Output quad-word moves, loads and
9671         stores using ARM registers.
9672         (output_move_vfp): Add support for vectors in VFP (NEON) D
9673         registers.
9674         (output_move_neon): Output a NEON load/store to/from a quadword
9675         register.
9676         (arm_print_operand): Implement new codes:
9677         - 'c' for unadorned integers (without a # sign).
9678         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
9679         mode.
9680         - 'e', 'f' for the low and high D parts of a NEON Q register.
9681         - 'q' outputs a NEON Q register.
9682         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
9683         - 'T' prints NEON opcode features from a coded bitmask.
9684         - 'F' is similar to T, but signed/unsigned codes both print as
9685         'i'.
9686         - 't' is similar to T, but 'u' is printed instead of 'p'.
9687         - 'O' prints 'r' if NEON instruction should perform rounding (as
9688         specified by bitmask), else prints nothing.
9689         - '#' is a punctuation character to stop operand numbers from
9690         running together with following digits in the assembler
9691         strings for instructions (when using mode attributes).
9692         (arm_assemble_integer): Handle extra NEON vector modes. Permute
9693         constant vectors in big-endian mode, where necessary.
9694         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
9695         Handle EI, OI, CI, XI modes.
9696         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
9697         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
9698         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
9699         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
9700         (neon_builtin_type_bits): Add enumeration, one bit for each vector
9701         type.
9702         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
9703         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
9704         to turn v8qi, etc. into bits defined above.
9705         (neon_itype): New enumeration. Classifications of NEON builtins.
9706         (neon_builtin_datum): Define struct. Contains information about
9707         a single builtin (with multiple modes).
9708         (CF): Define helper macro for...
9709         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
9710         modes.
9711         (neon_builtin_data): New array. Define information about builtins
9712         for use during initialization/expansion.
9713         (arm_init_neon_builtins): New function.
9714         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
9715         true.
9716         (neon_builtin_compare): New function.
9717         (locate_neon_builtin_icode): New function. Find an insn code for a
9718         builtin given a function code for that builtin. Also return type of
9719         builtin (NEON_BINOP, NEON_UNOP etc.).
9720         (builtin_arg): New enumeration. Types of arguments for builtins.
9721         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
9722         Takes a variable argument list of builtin_arg types, terminated by
9723         NEON_ARG_STOP.
9724         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
9725         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
9726         (neon_emit_pair_result_insn): New function. Support returning pairs
9727         of vectors via a pointer.
9728         (neon_disambiguate_copy): New function. Set up operands for a
9729         multi-word copy such that registers do not get clobbered.
9730         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
9731         ARM_BUILTIN_NEON_BASE.
9732         (arm_file_start): Set float-abi attribute for NEON.
9733         (arm_vector_mode_supported_p): Enable NEON vector modes.
9734         (arm_mangle_map_entry): New.
9735         (arm_mangle_map): New.
9736         (arm_mangle_vector_type): New.
9737         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
9738         when appropriate.
9739         (TARGET_NEON): New macro. Target supports NEON.
9740         (fputype): Add FPUTYPE_NEON.
9741         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
9742         for vectorization based on command-line arg.
9743         (NEON_REGNO_OK_FOR_NREGS): Define.
9744         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
9745         (VALID_NEON_STRUCT_MODE): Define.
9746         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
9747         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
9748         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
9749         (consttable_16): Add pattern for outputting 16-byte minipool
9750         entries.
9751         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
9752         vec-common.md).
9753         (vec-common.md, neon.md): Include md files.
9754         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
9755         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
9756         (memory_constraint "Ut", "Un", "Us"): Define.
9757         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
9758         (MMX_char): New mode attribute.
9759         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
9760         (*add<mode>3_iwmmxt): New insn pattern.
9761         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
9762         (*sub<mode>3_iwmmxt): New insn pattern.
9763         (mulv4hi3): Rename to...
9764         (*mulv4hi3_iwmmxt): This.
9765         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
9766         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
9767         (uminv4hi3, uminv2si3): Remove. Replace with...
9768         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
9769         (*umin<mode>3_iwmmxt): These.
9770         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
9771         (ashr<mode>3_iwmmxt): This new pattern.
9772         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
9773         (lshr<mode>3_iwmmxt): This new pattern.
9774         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
9775         (ashl<mode>3_iwmmxt): This new pattern.
9776         * config/arm/neon-docgen.ml: New file. Generate documentation for
9777         intrinsics.
9778         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
9779         * config/arm/arm_neon.h: New (autogenerated).
9780         * config/arm/neon-testgen.ml: New file. Generate NEON tests
9781         automatically.
9782         * config/arm/neon.md: New file. Define NEON instructions.
9783         * config/arm/neon.ml: New file. Abstract description of NEON
9784         instructions, used to generate arm_neon.h header, documentation and
9785         tests.
9786         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
9787         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
9788         support.
9789         * doc/extend.texi (ARM Built-in Functions): Rename and remove
9790         extraneous comma.
9791         (ARM NEON Intrinsics): New subsection.
9792         * doc/arm-neon-intrinsics.texi: New (autogenerated).
9793
9794 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
9795
9796         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
9797         prototype.
9798
9799 2007-07-24  Jan Hubicka  <jh@suse.cz>
9800
9801         * regclass.c (move_table): New type.
9802         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
9803         (init_move_cost): Break out from ...
9804         (init_reg_sets_1): ... here; simplify computation of
9805         have_regs-of_mode and contains_reg_of_mode.
9806         (record_reg_classes): Unswitch internal loops.
9807         (copy_cost): Trigger lazy initialization of move cost
9808         (record_address_regs): Likewise.
9809
9810 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
9811
9812         * config/darwin.c (darwin_override_options): Don't force on
9813         flag_var_tracking_uninit when no debug info is requested.
9814
9815 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
9816
9817         * cfgloop.c (init_loops_structure): New function.
9818         (flow_loops_find): Create root of the loop tree unconditionally.
9819
9820 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
9821
9822         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
9823
9824 2007-07-24  Jan Hubicka  <jh@suse.cz>
9825
9826         * caller-save.c: Include ggc.h, gt-caller-save.h
9827         (reg_save_code, reg_restore_code): Rename to ...
9828         (cached_reg_save_code, cached_reg_restore_code): ... those.
9829         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
9830         (reg_save_code, reg_restore_code): New functions.
9831         (init_caller_save): Do not intialize
9832         reg_save_code/reg_restore_code tables.
9833         * Makefile.in: (gt-caller-save.h): New.
9834
9835 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9836
9837         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
9838         with the mode of the original operand instead of
9839         integer_one_node.
9840
9841 2007-07-23  Jan Hubicka  <jH@suse.cz>
9842
9843         * i386.c (ix86_secondary_memory_needed): Break out to...
9844         (inline_secondary_memory_needed): ... here.
9845         (ix86_memory_move_cost): Break out to ...
9846         (inline_memory_move_cost): ... here; add support for IN value of 2 for
9847         maximum of input and output; fix handling of Q_REGS on 64bit.
9848         (ix86_secondary_memory_needed): Microoptimize.
9849
9850 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
9851
9852         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
9853         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
9854         stmts_from_loop, known_dependences_p, build_rdg): New.
9855         * tree-data-ref.h: Depends on graphds.h.
9856         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
9857         (build_rdg): Declared.
9858         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
9859
9860 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
9861
9862         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
9863         ccp_min_invariant.
9864
9865 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
9866             Jakub Jelinek  <jakub@redhat.com>
9867
9868         PR middle-end/PR28690
9869         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
9870         EQ compares.
9871         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
9872         and MEM_POINTER operands over REG and MEM operands.
9873         (swap_commutative_operands_p): Change return value to bool.
9874         * rtl.h: Update the corresponding prototype.
9875         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
9876         instead of gen_rtx_PLUS.
9877         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
9878         value to bool.  Change function arguments to rtx's and update code
9879         to match.
9880         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
9881         calls to match the new declaration.
9882         * simplify-rtx.c (simplify_associative_operation): Don't
9883         reorder simplify_binary_operation arguments.
9884
9885 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9886
9887         * config/mips/mips.c (override_options): Use mips_costs to derive
9888         the default branch cost.
9889         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
9890         than mips_costs.
9891         * config/mips/mips.opt (mbranch-cost=): New option.
9892         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
9893
9894 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9895
9896         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
9897         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
9898         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
9899         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
9900
9901 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9902
9903         * config/mips/constraints.md (ks): New constraint.
9904         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
9905         (*add<mode>3_mips16): ...here.
9906
9907 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
9908
9909         * optabs.h (enum optab_index): Add new OTI_signbit.
9910         (signbit_optab): Define corresponding macro.
9911         (enum insn_code signbit_optab[]): Remove array.
9912         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
9913         (expand_copysign_absneg): If back end provides signbit insn, use it
9914         instead of bit operations on floating point argument.
9915         * builtins.c (enum insn_code signbit_optab[]): Remove array.
9916         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
9917         for availability of signbit insn.
9918
9919         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
9920         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
9921         SSE mode is not active.
9922         (isinf<mode>2): Disable for mfpmath=sse,387.
9923
9924 2007-07-22  Ben Elliston  <bje@au.ibm.com>
9925
9926         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
9927         `class' parameter.
9928         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
9929
9930 2007-07-20  Richard Guenther  <rguenther@suse.de>
9931
9932         * tree-cfg.c (verify_expr): COND_EXPRs can have any
9933         integral typed condition.
9934         * tree-ssa.c (useless_type_conversion_p): Do not preserve
9935         booleanness.  Only preserve conversions from a non-base
9936         type to a base type, not in general between types with
9937         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
9938         * tree.def (COND_EXPR): Document that the condition
9939         can be of any integral type.
9940
9941 2007-07-20  Nigel Stephens  <nigel@mips.com>
9942             Richard Sandiford  <richard@codesourcery.com>
9943
9944         * config/mips/mips.h (mips_dwarf_regno): Declare.
9945         (DBX_REGISTER_NUMBER): Remove redundant brackets.
9946         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
9947         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
9948         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
9949         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
9950         (REG_CLASS_NAMES): Update accordingly.
9951         * config/mips/mips.c (mips_dwarf_regno): New array.
9952         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
9953         (mips_subword): Remove special handling for accumulator registers.
9954         (override_options): Initiailize mips_dwarf_regno.  Remove use
9955         of ACC_HI_REG_P.
9956         (mips_swap_registers): New function.
9957         (mips_conditional_register_usage): Swap accumulator registers
9958         around if TARGET_LITTLE_ENDIAN.
9959         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
9960         * config/mips/constraints.md (h, l): Use the endianness to choose
9961         between MD0_REG and MD1_REG.
9962         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
9963         alternative-dependent template.
9964
9965 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
9966
9967         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
9968         no_new_pseudos.
9969
9970 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9971
9972         * function.c (thread_prologue_and_epilogue_insns): Fix exit
9973         predecessor fallthru flags.
9974
9975 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9976
9977         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
9978         of compare to the same type.
9979         * cfgloopmanip.c (add_loop): Update information about loop exits.
9980         (loop_version): Remove the innermost loop requirement.
9981         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
9982         to sizetype for pointers.
9983
9984 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9985
9986         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
9987         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
9988         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
9989
9990         * config/dfp-bit.c: Empty for TFmode conversions.
9991
9992 2007-07-18  Caroline Tice  <ctice@apple.com>
9993         
9994         * var-tracking.c (find_src_status): Check for  COND_EXEC insns
9995         and handle them correctly; check that src is not NULL before
9996         trying to use it.
9997         (find_src_set_src): Likewise.
9998         
9999 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
10000         
10001         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
10002         (struct alignment_context, init_alignment_context): New.
10003         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
10004         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
10005         (XCHAL_HAVE_S32C1I): Likewise.
10006         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
10007         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
10008         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
10009         (ATOMIC, HQI): New macros.
10010         (memory_barrier, *memory_barrier): New.
10011         (sync_lock_releasesi): New.
10012         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
10013         (sync_lock_test_and_set<mode>): New.
10014         (sync_<atomic><mode>): New.
10015         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
10016         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
10017         (xtensa_expand_atomic): New.
10018         
10019 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10020
10021         PR target/30652
10022
10023         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
10024         transformation for builtin ISNORMAL.
10025         (expand_builtin): Handle BUILT_IN_ISNORMAL.
10026         * builtins.def (BUILT_IN_ISNORMAL): New.
10027         * doc/extend.texi: Document isnormal.
10028
10029 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10030
10031         PR target/30652
10032
10033         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
10034         optabs infrastructure.  Provide generic implementation for
10035         FINITE/ISFINITE.
10036         (expand_builtin): Handle FINITE/ISFINITE.
10037         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
10038         (fold_builtin_1): Likewise.
10039
10040         * builtins.def (BUILT_IN_ISFINITE): New.
10041
10042         * doc/extend.texi: Document isfinite.
10043
10044 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10045
10046         PR target/30652
10047         PR middle-end/20558
10048
10049         * builtins.c (expand_builtin_interclass_mathfn): Provide a
10050         generic fallback for isinf.
10051         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
10052         calculation code ...
10053         * real.c (get_max_float): ... to here.
10054         * real.h (get_max_float): New.
10055
10056 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10057
10058         PR middle-end/32668
10059
10060         * builtin-attrs.def (ATTR_TYPEGENERIC,
10061         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
10062
10063         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
10064         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
10065         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
10066         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
10067
10068         * c-common.c (handle_type_generic_attribute): New.
10069         (c_common_attribute_table): Add "type generic".
10070
10071         * c-typeck.c (convert_arguments): Handle "type generic" functions.
10072
10073 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
10074
10075         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
10076         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
10077         properly.
10078
10079 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10080
10081         PR target/32808
10082         * config/cris/cris.c (cris_print_index): Don't use XEXP before
10083         checking that the operand is an expression.
10084
10085 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
10086             Danny Smith  <dannysmith@users.sourceforge.net>
10087
10088         PR/other 30335
10089         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
10090         file mapping object in local namespace if Windows version later
10091         than NT4
10092
10093 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
10094
10095         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
10096         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
10097         arm_cannot_force_const_mem.
10098         (arm_cannot_force_const_mem): New function.
10099         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
10100         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
10101         of arm_tls_referenced_p.
10102         * config/arm/arm.md (movsi): Split out-of-section constants when
10103         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
10104         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
10105
10106 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
10107
10108         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
10109
10110 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
10111
10112         * config/mips/mips.md (*extendqihi2): Convert the destination
10113         to SImode.
10114
10115 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10116
10117         * config/pa/fptr.c: Update license header.
10118         * config/pa/milli64.S: Likewise.
10119
10120 2007-07-17  Nick Clifton  <nickc@redhat.com>
10121
10122         * COPYING_v3: New file.  Contains version 3 of the GNU General
10123         Public License.
10124         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
10125         Lesser General Public License.
10126         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
10127         the GNU General Public License.
10128
10129 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
10130
10131         PR rtl-optimization/32773
10132         * cfglayout.c (force_one_exit_fallthru): New function.
10133         (cfg_layout_finalize): Use it.
10134
10135 2007-07-16  Richard Guenther  <rguenther@suse.de>
10136             Uros Bizjak  <ubizjak@gmail.com>
10137
10138         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
10139         before forcing it to gimple operand.
10140
10141 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10142             David Ung  <davidu@mips.com>
10143
10144         * config/mips/mips.h (TUNE_24K): Define.
10145         (TUNE_MACC_CHAINS): Add TUNE_24K.
10146         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
10147         imadd.
10148         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
10149         (r74k_int_madd): .. this new reservation.
10150         (define_bypass): Fixed bypasses for r74k_int_madd to use
10151         mips_linked_madd_p.
10152         * config/mips/24k.md (define_bypass): Define new
10153         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
10154
10155 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10156             Nigel Stephens  <nigel@mips.com>
10157
10158         * config/mips/mips.md: Include 20kc.md.
10159         * config/mips/20kc.md: New file.
10160         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
10161         (mips_adjust_cost): Tweak for 20Kc.
10162         (mips_issue_rate): Likewise.
10163         * config/mips/mips.h (TUNE_20KC): Define.
10164
10165 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
10166
10167         * config/rs6000/rs6000.c (struct processor_cost): Add
10168         cache_line_size, l1_cache_lines, and simultaneous_prefetches
10169         fields.
10170         (*_cost): Add cache information.
10171         (rs6000_override_options): Set cache parameters.
10172
10173 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10174
10175         PR bootstrap/3456
10176         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
10177         * doc/install.texi (mips-sgi-irix6): pthread support works now.
10178
10179 2007-07-16  Paul Brook  <paul@codesourcery.com>
10180
10181         PR target/32753
10182         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
10183         (cirrus_thumb2_movsi_insn): Ditto.
10184
10185 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
10186
10187         * config/rs6000/darwin-fallback.c (interpret_libc): Change
10188         CR2_REGNO to R_CR2.
10189
10190 2007-07-15  Andrew Haley  <aph@redhat.com>
10191
10192         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
10193         before looking in the context.
10194
10195 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10196
10197         PR middle-end/32398
10198         PR middle-end/32769
10199         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
10200         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
10201         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10202         (pa_output_function_prologue): Use rp_saved and
10203         current_function_is_leaf to generate .CALLINFO statement.
10204         (hppa_expand_prologue): Set rp_saved.
10205         (hppa_expand_epilogue): Use rp_saved.
10206         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
10207         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
10208
10209 2007-07-14  Dirk Mueller  <dmueller@suse.de>
10210
10211         * omega.c (coalesce): Fix memory leak on early exit.
10212         * matrix-reorg.c (check_allocation_function): Likewise.
10213         * tree-vect-transform.c (vect_get_new_vect_var): free result
10214         of concat().
10215         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10216         pass pointer to edge vector
10217         (partition_hot_cold_basic_blocks): Fix memory leak.
10218         * collect2.c (prefix_from_string): Free temporary storage.
10219         * reload1.c (fixup_abnormal_edges): Free sbitmap.
10220
10221 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
10222
10223         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
10224         (DO_GLOBAL_DTORS_BODY): Likewise.
10225
10226 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10227             Nigel Stephens  <nigel@mips.com>
10228
10229         * config/mips/mips.c (mips_classify_symbol): Don't return
10230         SYMBOL_SMALL_DATA for constant pool addresses if
10231         TARGET_EMBEDDED_DATA is true.
10232
10233 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
10234
10235         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
10236         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
10237         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
10238         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
10239         __builtin_ia32_storehps, __builtin_ia32_storelps,
10240         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
10241         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
10242         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
10243         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
10244         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
10245         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
10246         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
10247         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
10248         using def_builtin_const.
10249
10250 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
10251
10252         PR tree-optimization/32705
10253         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
10254         (simplify_binary_expression): Use SSA_VAL consistently.
10255
10256 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
10257
10258         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
10259         (SPEFSCR_REGNO): Delete definition.
10260         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
10261         COUNT_REGISTER_REGNUM -> CTR_REGNO.
10262         * config/rs6000/rs6000.h: Do not define *_REGNO.
10263         LINK_REGISTER_REGNUM -> LR_REGNO.
10264         COUNT_REGISTER_REGNUM -> CTR_REGNO.
10265         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
10266         COUNT_REGISTER_REGNUM -> CTR_REGNO.
10267         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
10268         R_VRSAVE, R_VSCR. Use them.
10269         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
10270         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
10271         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
10272         * config/rs6000/aix.h: Define R_LR.  Use it.
10273         
10274 2007-07-13  Caroline Tice  <ctice@apple.com>
10275         
10276         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
10277         flag_var_tracking is explicitly turned off (i.e. when variable
10278         tracking is not feasible); otherwise, turn flag_var_tracking on when
10279         flag_var_tracking_uninit is on.
10280         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
10281         note definitions, to allow recording of initialization status in the
10282         notes.
10283         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
10284         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
10285         determine if two note locations are equal.
10286         (output_loc_list): Don't output list entries whose start & end labels
10287         are the same.
10288         (reg_loc_descriptor): Add parameter for initialization status; pass it
10289         to other loc descriptor functions.
10290         (one_reg_loc_descriptor): Add parameter for initialization status;
10291         check its value and add DW_OP_GNU_uninit to returned loc descr if
10292         appropriate.
10293         (multiple_reg_loc_descriptor): Add parameter for initialization
10294         status;
10295         pass init status argument to other loc descriptor functions; check
10296         value of intialization parameter and add DW_OP_GNU_uninit to returned
10297         loc descr if appropriate.
10298         (based_loc_descr): Add parameter for initialization status; add new
10299         variable for return value; check value of initialization parameter and
10300         add DW_OP_GNU_uninit to returned loc descr if appropriate.
10301         (concatn_mem_loc_descriptor): Add parameter for initialization status;
10302         pass init status argument to other loc descriptor functions; check
10303         value of intialization parameter and add DW_OP_GNU_uninit to returned
10304         loc descr if appropriate.
10305         (mem_loc_descriptor): Likewise.
10306         (concat_loc_descriptor): Likewise.
10307         (concatn_loc_descriptor): Likewise.
10308         (loc_descriptor): Add parameter for initialization status; pass it as
10309         argument to other loc descriptor function calls.
10310         (loc_descriptor_from_tree_1): Add appropriate initialization status
10311         to loc descriptor function calls.
10312         (add_location_or_const_value_attribute): Get initialization status
10313         from VAR_LOCATION note; add initialization status to loc descriptor
10314         function calls.
10315         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
10316         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
10317         status is uninitialized, add "[uninint]" to output.
10318         * common.opt (fvar-tracking-uninit): New option, similar to
10319         fvar-tracking, to turn on tracking of uninitialized variables; creates
10320         a new global flag, flag_var_tracking_uninit.
10321         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
10322         (enum var_init_status): New type, for var initialization status field.
10323         * var-tracking.c (struct location_chain_def): Two new fields, init,
10324         for initialization status, and set_src for the assignment value expr.
10325         (unshare_variable): New parameter for initialization status;
10326         initialize new init and set_src fields.
10327         (var_reg_set): New parameters for initialization status and value;
10328         pass them to set_variable_part.
10329         (var_mem_set): Likewise.
10330         (get_init_value): New function.
10331         (var_reg_delete_and_set): New initialization status & value
10332         parameters; add call to get_init_value if status is unknown; pass new
10333         parameters to clobber_variable_part and var_reg_set.
10334         (var_mem_delete_and_set): Likewise.
10335         (var_reg_delete): Pass null set_src value to clobber_variable_part.
10336         (var_mem_delete): Likewise.
10337         (variable_union): Pass status to unshare_variable; initialize new init
10338         and set_src fields. If flag_var_tracking_uninit is not set, force
10339         status to initialized.
10340         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
10341         used later to get the set_src value.
10342         (find_src_status): New function.
10343         (find_src_set_src): New function.
10344         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
10345         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
10346         MO_SET, get set_src value and pass it to var_reg_delete_and_set
10347         and var_mem_delete_and_set.
10348         (dump_variable): Print out "[uninit]" if appropriate.
10349         (set_variable_part): Add new initialization and set_src parameters;
10350         pass status to unshare_variable; set node->init and node- >set_src
10351         fields and modify slot in hash table appropriately; save the init and
10352         set_src values if appropriate and assign to the new node.
10353         (clobber_variable_part): New set_src parameter; if two nodes have
10354         same variable and same location but different set_src (assignment)
10355         values, clobber old node.
10356         (delete_variable_part): Pass init status to unshare_variable.
10357         (emit_note_insn_var_location): Add initialized var; assign var's init
10358         status to new 'initialized'; pass new init status field to calls to
10359         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
10360         status to initialized.
10361         (emit_notes_in_bb): Pass initialization status to calls to
10362         var_reg_set, var_mem_set, var_reg_delete_and_set and
10363         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
10364         var_reg_delete_and_set and var_mem_delete_and_set; call
10365         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
10366         make up for change in add_stores.
10367         (vt_add_function_parameters): Add status to calls to
10368         set_variable_part.
10369         * config/darwin.c (darwin_override_options): Turn on uninitialized
10370         tracking automatically, if var_tracking is on and the system is
10371         10.5 or higher.
10372         
10373 2007-07-13  Sa Liu  <saliu@de.ibm.com>
10374
10375         * config.gcc: Add options for arch and tune on SPU.
10376         * config/spu/predicates.md: Add constant operands 0 and 1.
10377         * config/spu/spu-builtins.def: Add builtins for double precision 
10378         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
10379         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
10380         spu_testsv.
10381         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
10382         a CELLEDP target.
10383         * config/spu/spu-protos.h: Add new function prototypes. 
10384         * config/spu/spu.c (spu_override_options): Check options -march and
10385         -mtune.
10386         (spu_comp_icode): Add comparison code for DFmode and vector mode.
10387         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
10388         mode comparison.
10389         (spu_const_from_int): New.  Create a vector constant from 4 ints.
10390         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
10391         (spu_emit_vector_compare): New.  Emit vector compare.
10392         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
10393         * config/spu/spu.h: Add options -march and -mtune.  Define processor
10394         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
10395         CANONICALIZE_COMPARISON.
10396         * config/spu/spu.md: Add new insns for double precision compare
10397         and double precision vector compare.  Add vcond and smax/smin patterns
10398         to enable DFmode vector conditional expression.
10399         * config/spu/spu.opt: Add options -march and -mtune.
10400         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
10401         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
10402         both CELL and CELLEDP targets: spu_testsv.
10403         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
10404         values.
10405
10406 2007-07-13  Richard Guenther  <rguenther@suse.de>
10407
10408         PR tree-optimization/32721
10409         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
10410         TREE_THIS_VOLATILE on the folded reference.
10411         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
10412         if the array reference has TREE_THIS_VOLATILE set.
10413
10414 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10415
10416         PR other/32188
10417         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
10418
10419 2007-07-13  Andreas Schwab  <schwab@suse.de>
10420
10421         * gengtype-lex.l: Allow declarations to be indented.
10422
10423 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
10424
10425         * ginclude/tgmath.h: New.
10426         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
10427         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
10428         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
10429         * configure: Regenerate.
10430
10431 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10432
10433         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
10434         correct index when setting register save state for xd
10435         registers.
10436
10437 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10438
10439         * config/sh/sh.c (mark_use): Remove.
10440
10441 2007-07-12  Paul Brook  <paul@codesourcery.com>
10442
10443         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
10444         reg does not overlap return value.
10445
10446 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
10447
10448         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
10449         (set_expression_vuses): Ditto.
10450         (init_pre): Initialize expression_vuses.
10451
10452 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10453
10454         * config/i386/sse.md (storentdf, storentsf): New.
10455
10456 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
10457
10458         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
10459         FUNCTION_DECL.
10460         * tree.c (build_decl_stat): Move code from here...
10461         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
10462         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
10463         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
10464         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
10465         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
10466         FUNCTION_BOUNDARY.
10467
10468 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
10469             Devang Patel  <dpatel@apple.com>
10470
10471         PR tree-optimization/25413
10472         * targhooks.c (default_builtin_vector_alignment_reachable): New.
10473         * targhooks.h (default_builtin_vector_alignment_reachable): New.
10474         * tree.h (contains_packed_reference): New.
10475         * expr.c (contains_packed_reference): New.
10476         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
10477         (vect_enhance_data_refs_alignment): Call
10478         vector_alignment_reachable_p.
10479         * target.h (vector_alignment_reachable): New builtin.
10480         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
10481         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
10482         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
10483
10484 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
10485
10486         * target.h (builtin_vectorization_cost): Add new target builtin.
10487         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
10488         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
10489         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
10490         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
10491         uninitialized variables.
10492         * tree-vect-transform.c (cost_for_stmt): New function.
10493         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
10494         using cost 1 for all scalar stmts. Be less conservative when
10495         estimating the number of prologue/epulogue iterations. Call
10496         targetm.vectorize.builtin_vectorization_cost. Return
10497         min_profitable_iters-1.
10498         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
10499         initialization cost instead of TARG_VEC_STMT_COST. Use
10500         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
10501         epilogue code. Fix epilogue cost computation.
10502         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
10503         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
10504         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
10505         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
10506         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
10507         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
10508
10509 2007-07-12  Richard Guenther  <rguenther@suse.de>
10510
10511         * gimplify.c (gimplify_conversion): Make sure that the result
10512         from maybe_fold_offset_to_reference is trivially convertible
10513         to the desired type before doing the simplification.
10514         (gimplify_expr): Likewise.
10515         * fold-const.c (fold_binary): Use the correct types for
10516         building the simplified expression.
10517
10518 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10519
10520         PR rtl-optimization/32729
10521         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
10522         that fallthru to exit.
10523
10524 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10525
10526         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
10527         (symDTPOFF2reg): Likewise.
10528
10529 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
10530
10531         PR tree-optimization/32663
10532         
10533         * tree.h (VALUE_HANDLE_VUSES): Remove.
10534         (struct tree_value_handle): Remove vuses.
10535
10536         * tree-vn.c (create_value_handle_for_expr): Don't set
10537         VALUE_HANDLE_VUSES. 
10538
10539         * tree-ssa-pre.c (expression_vuses): New.
10540         (alloc_expression_id): Set up expression_vuses.
10541         (get_expression_vuses): New.
10542         (set_expression_vuses): Ditto.
10543         (clear_expression_ids): Modify for expression_vuses.
10544         (phi_translate_1): Ditto.
10545         (phi_translate_set): Ditto.
10546         (value_dies_in_block_x): Ditto
10547         (valid_in_sets): Ditto.
10548         (add_to_sets): Ditto.
10549         (find_existing_value_expr): Ditto.
10550         (create_value_handle_for_expr): Ditto.
10551         (make_values_for_stmt): Ditto.
10552         (vuse_equiv): Remove.
10553
10554 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
10555
10556         * Makefile.in (mostlyclean): Remove object files.
10557
10558 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
10559
10560         * toplev.c (no_new_pseudos): Deleted.
10561         * rtl.h (no_new_pseudos): Deleted.
10562         * tree-pass.h (pass_no_new_pseudos): Deleted. 
10563         * passes.c (pass_no_new_pseudos): Deleted.
10564         * final.c (rest_of_clean_state): Removed no_new_pseudos.
10565         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
10566         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
10567         reload_completed.
10568         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
10569         * rtlhooks.c (gen_lowpart_general): Ditto.
10570         * optabs.c (prepare_operand): Ditto.
10571         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
10572         no_new_pseudos.
10573         * modulo-sched.c (rest_of_handle_sms): Ditto.
10574         * see.c (rest_of_handle_see): Ditto.
10575         * ifcvt.c (if_convert): Ditto.
10576         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
10577         reload_completed.
10578         * init-regs.c (gate_initialize_regs): Deleted set of
10579         no_new_pseudos.
10580         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
10581         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
10582         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
10583         
10584 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
10585
10586         PR target/32661
10587         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
10588         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
10589         (*vec_extractv2di_1_rex64): New insn pattern.
10590
10591 2007-07-11  David Daney  <ddaney@avtrex.com>
10592
10593         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
10594         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
10595         for SIGNAL_UNWIND_RETURN_COLUMN.
10596         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
10597         (DWARF_FRAME_REGNUM): Rewrite.
10598         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
10599
10600 2007-07-11  Nick Clifton  <nickc@redhat.com>
10601
10602         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
10603         delta and use gen_int_mode in place of GET_INT instead.
10604
10605 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
10606
10607         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
10608         and letter field.
10609
10610 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
10611
10612         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
10613         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
10614         types or not.
10615         * params.h (VERIFY_CANONICAL_TYPES): Remove.
10616         (USE_CANONICAL_TYPES): New.
10617         * doc/invoke.texi (verify-canonical-types): Remove.
10618         (use-canonical-types): Add.
10619
10620 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
10621
10622         * config/spu/spu.c (spu_optimization_options): Remove setting of
10623         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
10624         (spu_override_options): Move it here.
10625
10626 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
10627
10628         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
10629         * config/mips/mips.c (mips_cpu_info_table): Mention
10630         MIPS_ISA_LEVEL_SPEC in the comment.
10631
10632 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10633
10634         PR tree-optimization/32713
10635         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
10636
10637 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
10638
10639         PR middle-end/30482
10640         * c-opts.c (c_common_post_options): Do not change flag_complex_method
10641         conditional to flag_isoc99.
10642         (c_common_init_options): Do it here, unconditionally.
10643
10644 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10645
10646         PR tree-optimization/32589
10647         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
10648         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
10649         * tree-ssa-propagate.c (valid_gimple_expression_p): New
10650         predicate, extracted from...
10651         (set_rhs): ...here.  Call it for the expression on entry.
10652         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
10653         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
10654         (simplify_binary_expression): Use valid_gimple_expression_p
10655         to validate the simplification.
10656         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
10657
10658 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
10659
10660         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
10661         DWARF2_DEBUG on 32 bit target too.
10662         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
10663
10664 2007-07-11  Nick Clifton  <nickc@redhat.com>
10665
10666         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
10667         version for 64-bit hosts.
10668
10669 2007-07-10  David Daney  <ddaney@avtrex.com>
10670
10671         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
10672         predicate.
10673         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
10674         call.
10675         * config/mips/mips.c (mips_expand_synci_loop): New function.
10676         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
10677         (UNSPEC_RDHWR): Same.
10678         (UNSPEC_SYNCI): Same.
10679         (UNSPEC_SYNC): Same.
10680         (clear_cache): New expand.
10681         (sync): New insn.
10682         (synci): Same.
10683         (rdhwr): Same.
10684         (clear_hazard): Same.
10685         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
10686         function.
10687         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
10688         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
10689
10690 2007-07-10  Ian Lance Taylor  <iant@google.com>
10691
10692         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
10693         no_new_pseudos.
10694
10695 2007-07-10  David Daney  <ddaney@avtrex.com>
10696
10697         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
10698         * builtins.c (expand_builtin___clear_cache): New function.
10699         (expand_builtin): Call expand_builtin___clear_cache for
10700         BUILT_IN_CLEAR_CACHE case.
10701         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
10702         * doc/md.texi (clear_cache): Document new instruction pattern.
10703         * testsuite/gcc.dg/builtins-64.c: New test.
10704
10705 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
10706
10707         * config/cris/cris.md ("movsi"): Fix typo in last change.
10708
10709 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
10710
10711         PR 32617
10712         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
10713         FUNCTION_DECLs.
10714         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
10715         * varasm.c (assemble_start_function): Honor DECL_ALIGN
10716         for FUNCTION_DECLs.  Don't use align_functions_log if
10717         DECL_USER_ALIGN.
10718         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
10719         even for FUNCTION_DECLs.
10720         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
10721         FUNCTION_DECLs.
10722         * tree.h (DECL_ALIGN): Update for new location of 'align'.
10723         (DECL_FUNCTION_CODE): Update for new location and name of
10724         'function_code'.
10725         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
10726         (struct tree_decl_common): Move 'align' and 'off_align' out
10727         of union, ensure they're still on a 32-bit boundary.  Remove
10728         other fields in union 'u1'.
10729         (struct tree_function_decl): Add field 'function_code' replacing
10730         'u1.f' in tree_decl_common.
10731         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
10732         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
10733         (Variable Attributes): Cross-reference 'aligned' attribute
10734         to Function Attributes.
10735         * flags.h (force_align_functions_log): Delete.
10736         * toplev.c (force_align_functions_log): Delete.
10737
10738 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
10739
10740         PR target/32708
10741         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
10742         (*vec_concatv2di_rex): New insn pattern.
10743
10744 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10745
10746         PR target/32538
10747         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
10748
10749 2007-07-10  Ian Lance Taylor  <iant@google.com>
10750
10751         Replace no_new_pseudos in backends.
10752         * rtl.h (can_create_pseudo_p): Define.
10753         * config/darwin.c (machopic_indirect_data_reference): Use
10754         can_create_pseudo_p () instead of no_new_pseudos.
10755         (machopic_indirect_data_reference): Likewise.
10756         (machopic_legitimize_pic_address): Likewise.
10757         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
10758         (alpha_emit_set_const_1): Likewise.
10759         (alpha_emit_set_const): Likewise.
10760         (alpha_emit_conditional_move): Likewise.
10761         (alpha_split_conditional_move): Likewise.
10762         * config/alpha/alpha.md (various splitters): Likewise.
10763         (movti): Likewise.
10764         * config/arm/arm.c (legitimize_pic_address): Likewise.
10765         (arm_load_pic_register): Likewise.
10766         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
10767         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
10768         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
10769         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
10770         * config/cris/cris.md (movsi): Likewise.
10771         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
10772         (symGOTOFF2reg_hilo): Likewise.
10773         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
10774         * config/h8300/h8300.md (insv, extzv): Likewise.
10775         * config/i386/i386.c (ix86_expand_move): Likewise.
10776         (ix86_expand_vector_move): Likewise.
10777         (ix86_prepare_fp_compare_args): Likewise.
10778         (ix86_expand_carry_flag_compare): Likewise.
10779         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
10780         (tls_dynamic_gnu2_combine_32): Likewise.
10781         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
10782         * config/ia64/ia64.c (ia64_expand_move): Likewise.
10783         (ia64_expand_movxf_movrf): Likewise.
10784         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
10785         (m32c_split_move): Likewise.
10786         (m32c_expand_insv): Likewise.
10787         * config/m68k/m68k.md (movsi): Likewise.
10788         * config/mips/mips.c (mips_force_temporary): Likewise.
10789         (mips_split_symbol): Likewise.
10790         (mips_move_integer): Likewise.
10791         (mips_legitimize_const_move): Likewise.
10792         * config/mn10300/mn10300.md (movsi): Likewise.
10793         * config/pa/pa.c (emit_move_sequence): Likewise.
10794         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10795         (rs6000_got_register): Likewise.
10796         (create_TOC_reference): Likewise.
10797         (rs6000_machopic_legitimize_pic_address): Likewise.
10798         * config/rs6000/rs6000.md (add<mode>3): Likewise.
10799         (various splitters): Likewise.
10800         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
10801         (movsi_got): Likewise.
10802         * config/s390/s390.c (emit_symbolic_move): Likewise.
10803         * config/s390/s390.md (movhi, movqi): Likewise.
10804         (load_multiple, store_multiple): Likewise.
10805         * config/score/score.c (score_force_temporary): Likewise.
10806         * config/sh/sh.c (prepare_move_operands): Likewise.
10807         (prepare_cbranch_operands): Likewise.
10808         (emit_fpu_switch): Likewise.
10809         (fpscr_set_from_mem): Likewise.
10810         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
10811         (adddi3, subsi3): Likewise.
10812         (various splitters): Likewise.
10813         (divsi_inv_fp_combine): Likewise.
10814         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
10815         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
10816         (sne): Likewise.
10817         * config/sh/predicates.md (xor_operand): Likewise.
10818         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
10819         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
10820         (movdi_pic_label_ref): Likewise.
10821         * config/spu/spu.c (spu_split_immediate): Likewise.
10822         * config/alpha/alpha.md (various splitters): Remove test
10823         !no_new_pseudos || reload_completed.
10824         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
10825         no_new_pseudos.
10826         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10827         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10828         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10829         * config/score/score.c (th_output_mi_thunk): Likewise.
10830         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10831         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10832
10833 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10834
10835         PR rtl-optimization/32664
10836         * mode-switching.c (create_pre_exit): Skip barrier insns.
10837
10838 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
10839
10840         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
10841         force_gimple_operand_bsi.
10842         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
10843         rewrite_use_compare): Ditto.
10844         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
10845         Ditto.
10846         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
10847         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
10848         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
10849         * tree-profile.c (prepare_instrumented_value,
10850         tree_gen_interval_profiler, tree_gen_pow2_profiler,
10851         tree_gen_one_value_profiler, tree_gen_ic_profiler,
10852         tree_gen_ic_func_profiler, tree_gen_average_profiler,
10853         tree_gen_ior_profiler): Ditto.
10854         * tree-ssa-reassoc.c (negate_value): Ditto.
10855         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
10856         Use force_gimple_operand_bsi.
10857         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
10858         * tree-if-conv.c (add_to_dst_predicate_list,
10859         find_phi_replacement_condition): Ditto.
10860         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
10861         Call mark_symbols_for_renaming for new statements.
10862         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
10863
10864 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
10865
10866         * cfghooks.c (remove_edge): New function.
10867         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
10868         loop exit rescans.
10869         * cfghooks.h (remove_edge): Declare.
10870         * cfg.c (remove_edge): Renamed to remove_edge_raw.
10871         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
10872
10873 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
10874
10875         * optabs.h: Added declaration for signbit_optab.  
10876         * optabs.c: (init_optabs): Added initialization for signbit_optab.
10877         * genoptinit.c (optabs): Added entry for signbit insns.  
10878         * builtins.c (expand_builtin_signbit): Added code to use a signbit
10879         insn, if available.  
10880         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
10881         * config/s390/s390.md (signbit<mode>2): New expander.  
10882
10883 2007-07-09  Richard Guenther  <rguenther@suse.de>
10884
10885         PR middle-end/32698
10886         * fold-const.c (fold_plusminus_mult_expr): Move constant
10887         arguments second to allow decomposing.
10888
10889 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
10890
10891         Revert:
10892         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
10893         PR debug/23551
10894         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10895         Disregard DECL_FROM_INLINE.
10896
10897 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
10898
10899         PR target/27855
10900         * doc/invoke.texi: Add ftree-reassoc flag.
10901         * common.opt (ftree-reassoc): New flag.
10902         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
10903         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
10904
10905 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
10906
10907         PR tree-optimization/32681
10908         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
10909         saved in second_edge->aux when first_bb is a loop header.
10910
10911 2007-07-09  Jan HUbicka  <jh@suse.cz>
10912
10913         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
10914
10915 2007-07-09  Richard Guenther  <rguenther@suse.de>
10916
10917         * c-decl.c (start_function): Do not promote return type.
10918
10919 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
10920
10921         * function.c (do_warn_unused_parameter): Do not warn if
10922         TREE_NO_WARNING is set.
10923
10924 2007-07-08  Andreas Schwab  <schwab@suse.de>
10925
10926         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
10927
10928 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
10929
10930         Revert this patch:
10931         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
10932
10933         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
10934         apply to assembly language, too.
10935         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
10936
10937 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
10938
10939         Revert (note the sccvn portions are *not* reverted)
10940         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
10941
10942         Fix PR tree-optimization/23488
10943
10944         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
10945         handles.
10946         * tree-flow-inline.h (get_value_handle): Ditto.
10947         * tree-ssa-pre.c (decl_vh_map): New.
10948         (decl_node_pool): New.
10949         (can_value_number_operation): Support DECL_P.
10950         (can_PRE_operation): Ditto.
10951         (create_expression_by_pieces): Ditto.
10952         (find_existing_value_expr): Modify to differnetiate between
10953         addressing and top level.
10954         (create_value_handle_for_expr): Handle DECL's.
10955         (poolify_tree): Ditto.
10956         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
10957         (make_values_for_stmt): Handle DECL's properly.
10958         (init_pre): Reorg to not init useless things during FRE.
10959         (fini_pre): Ditto.
10960         * tree-flow.h: Include pointer-set.h.
10961         (decl_vh_map): Declare.
10962         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
10963
10964 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
10965
10966         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
10967         the constraint description.
10968         * doc/md.texi: Update documentation of AVR constraints.
10969
10970 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
10971
10972         * auto-inc-dec.c, config/arm/arm.c,
10973         config/m32r/constraints.md, config/mips/mips.md,
10974         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
10975         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
10976         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
10977         typos.  Follow spelling conventions.
10978         * doc/invoke.texi, doc/rtl.texi: Fix typos.
10979
10980         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
10981         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
10982
10983         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
10984         realloc_vuse): Remove.
10985         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
10986         and realloc_vuse.
10987
10988 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
10989
10990         Fix PR tree-optimization/23488
10991
10992         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
10993         (try_to_simplify): Ditto.
10994         (visit_use): Ditto.
10995         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
10996         handles.
10997         * tree-flow-inline.h (get_value_handle): Ditto.
10998         * tree-ssa-pre.c (decl_vh_map): New.
10999         (decl_node_pool): New.
11000         (can_value_number_operation): Support DECL_P.
11001         (can_PRE_operation): Ditto.
11002         (create_expression_by_pieces): Ditto.
11003         (find_existing_value_expr): Modify to differnetiate between
11004         addressing and top level.
11005         (create_value_handle_for_expr): Handle DECL's.
11006         (poolify_tree): Ditto.
11007         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
11008         (make_values_for_stmt): Handle DECL's properly.
11009         (init_pre): Reorg to not init useless things during FRE.
11010         (fini_pre): Ditto.
11011         * tree-flow.h: Include pointer-set.h.
11012         (decl_vh_map): Declare.
11013         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
11014                 
11015 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
11016
11017         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
11018         apply to assembly language, too.
11019         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
11020
11021 2007-07-06  Ian Lance Taylor  <iant@google.com>
11022             Zack Weinberg  <zackw@panix.com>
11023
11024         PR middle-end/32441
11025         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
11026
11027 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
11028
11029         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
11030         (prefetch): Likewise if "pref" would be used.
11031
11032 2007-07-06  Josh Conner  <jconner@apple.com>
11033
11034         PR middle-end/32602
11035         PR middle-end/32603
11036         * calls.c (store_one_arg): Handle arguments which are partially
11037         on the stack when detecting argument overlap.
11038
11039 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
11040
11041         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
11042         chosen during find_reloads.
11043
11044 2007-07-06  Richard Guenther  <rguenther@suse.de>
11045
11046         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
11047         TYPE_ARG_TYPES for verification of argument types.  Use
11048         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
11049         parameters as variable arguments.
11050
11051 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11052
11053         * libgcc2.h (word_type): Type definition removed.
11054         (cmp_return_type, shift_count_type): Type definitions added.
11055         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
11056         replaced with shift_count_type.
11057         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
11058         cmp_return_type.
11059         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
11060         changed from word_type to Wtype.
11061         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
11062         replaced with shift_count_type.
11063         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
11064         cmp_return_type.
11065         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
11066         and libgcc_shift_count attribute added.
11067         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
11068         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
11069         (TARGET_INITIALIZER): New target hooks added.
11070         * targhooks.c (default_libgcc_cmp_return_mode,
11071         default_libgcc_shift_count_mode): Default implementations for the new
11072         target hooks added.
11073         * targhooks.h (default_libgcc_cmp_return_mode,
11074         default_libgcc_shift_count_mode): Function prototypes added.
11075         * target.h (struct gcc_target): Fields for the new target hooks added.
11076         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
11077         as library call.
11078         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
11079         library call.
11080
11081         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
11082         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
11083
11084         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
11085         s390_libgcc_shift_count_mode): Functions added.
11086         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
11087         Target hooks defined.
11088
11089 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
11090
11091         * config/mips/mips.c (compute_frame_size): Restore the original
11092         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
11093         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
11094         Document why the difference is needed.
11095
11096 2007-07-06  Richard Guenther  <rguenther@suse.de>
11097
11098         * c-common.c (boolean_increment): Use correctly typed
11099         constant.
11100
11101 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
11102
11103         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
11104         the topmost argument register is not also included in the save mask.
11105         (mips16e_collect_argument_save_p): Take a pointer to the argument
11106         register, rather than a pointer to the number of arguments.
11107         (mips16e_collect_argument_saves): Only include argument saves
11108         that aren't in the register mask.
11109
11110 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
11111
11112         PR rtl-optimization/32450
11113         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
11114         to ensure that instructions are not moved into the prologue when
11115         profiling is on.  Remove unused prologue_end variable.
11116         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
11117         as a scheduling barrier.
11118
11119 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
11120
11121         PR debug/23551
11122         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11123         Disregard DECL_FROM_INLINE.
11124
11125 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
11126
11127         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
11128         IORing with a constant.
11129
11130 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
11131
11132         PR rtl-optimization/32475
11133         * df-scan.c (df_def_record_1): Add a use of the stack pointer
11134         for every definition of the stack pointer.
11135
11136 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
11137
11138         * arm.c (vfp3_const_double_index): Copy signed results of
11139         REAL_VALUE_TO_INT into unsigned vars.
11140
11141 2007-07-05  Richard Guenther  <rguenther@suse.de>
11142
11143         PR middle-end/32639
11144         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
11145         FUNCTION_TYPE.
11146         * tree-ssa.c (useless_type_conversion_p): Check canonical
11147         types early.
11148
11149 2007-07-05 Anatoly Sokolov <aesok@post.ru>
11150
11151         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
11152         zero_extendhisi2): Change to define_insn_and_split. 
11153         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
11154
11155 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
11156
11157         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
11158         pass_match_asm_constraints): New.
11159         * passes.c (init_optimization_passes): Add new pass.
11160         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
11161         * function.h (struct function): Add has_asm_statement bit.
11162         (current_function_has_asm_statement): New.
11163         * tree-pass.h (pass_match_asm_constraints): New.
11164
11165 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
11166
11167         * config/mips/mips.c (mips_file_start): Avoid declaration
11168         after code.
11169
11170 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11171
11172         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
11173
11174 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
11175
11176         * rtl.def (NOTE): Change print format string to print
11177         operand 5 as a note insn name.
11178
11179 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11180             David Ung  <davidu@mips.com>
11181
11182         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
11183         * doc/invoke.texi: (MIPS Options): Document them.
11184
11185 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11186             David Ung  <davidu@mips.com>
11187
11188         Add support for SmartMIPS ASE.
11189
11190         * optabs.c (expand_binop_directly): New, broken out from...
11191         (expand_binop): Here.  Make it try rotating in the other
11192         direction even when the second operand isn't constant.
11193         * config/mips/mips.md (*lwxs): New.
11194         * config/mips/mips.opt (msmartmips): New.
11195         * config/mips/mips.c (mips_lwxs_address_p): New.
11196         (mips_rtx_costs): Make it recognize scaled indexed addressing.
11197         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
11198         __mips_smartmips when compiling for TARGET_SMARTMIPS.
11199         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
11200         (ISA_HAS_LWXS): New.
11201         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
11202         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
11203         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
11204         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
11205         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
11206         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
11207         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
11208
11209 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
11210
11211         * tree-vectorizer.c (new_loop_vec_info): Initialize
11212         LOOP_VINFO_COST_MODEL_MIN_ITERS.
11213         * tree-vectorizer.h (_loop_vec_info): Added new filed
11214         min_profitable_iters.
11215         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
11216         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
11217         * tree-vect-analyze.c (vect_analyze_operations): Set
11218         LOOP_VINFO_COST_MODEL_MIN_ITERS.
11219         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
11220         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
11221         Fix calculation of peel_iters_prologue. Move consideration of epilogue
11222         and prologue cost to after they are computed.
11223         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
11224         TARG_VEC_STMT_COST.
11225         (vect_model_simple_cost): Takes additional argument dt. Consider cost
11226         of creating vectors from scalars according to dt.
11227         (vect_model_store_cost): Likewise.
11228         (vectorizable_call): Use dt array instead of scalar dt. Call
11229         vect_model_simple_cost with additional argument dt.
11230         (vectorizable_assignment): Likewise.
11231         (vectorizable_operation): Likewise.
11232         (vectorizable_type_demotion): Likewise.
11233         (vectorizable_type_promotion): Likewise.
11234         (vectorizable_store): Use dt array instead of scalar dt. Call
11235         vect_model_store_cost with additional argument dt.
11236         (vect_do_peeling_for_loop_bound): Don't call
11237         vect_estimate_min_profitable_iters. Instead, lookup
11238         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
11239         "may not be profitable".
11240
11241 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
11242
11243         PR testsuite/32014
11244         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
11245         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
11246         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
11247         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
11248
11249 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
11250
11251         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
11252         addressing modes cheaper.
11253
11254 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
11255
11256         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
11257         (dw_ranges_struct): Rename block_num to num.  Adjust.
11258         (dw_ranges_by_label_struct): New.
11259         (ranges_by_label, ranges_by_label_allocated,
11260         ranges_by_label_in_use): New variables.
11261         (add_ranges_num): Factored most of the code out of...
11262         (add_ranges): ... this one.  Rewrite in terms of the former.
11263         (add_ranges_by_labels): New.
11264         (output_ranges): Output by-label ranges.
11265         (dwarf2out_finish): Output range for multiple-section
11266         compile_unit.  Output standard DW_AT_low_pc in addition to
11267         unexpected DW_AT_entry_pc.
11268
11269 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
11270
11271         PR tree-optimization/32604
11272         PR tree-optimization/32606
11273
11274         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
11275         (compute_antic_safe): Removed.
11276         (ANTIC_SAFE_LOADS): Ditto.
11277         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
11278         (execute_pre): Don't call compute_antic_safe.
11279         (vuse_equiv): New function.
11280         (make_values_for_stmt): Use it
11281         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
11282         not always true.
11283
11284 2007-07-04 Anatoly Sokolov <aesok@post.ru>
11285
11286         PR target/31331
11287         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
11288         rather than a decl. 
11289         (avr_attribute_table): Make "naked" attribute apply to function types
11290         rather than to decls.
11291         (avr_handle_fntype_attribute): New function.
11292
11293 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
11294
11295         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
11296         after \.
11297
11298 2007-07-04  David Ung  <davidu@mips.com>
11299             Joseph Myers  <joseph@codesourcery.com>
11300
11301         * config/mips/mips.md (type): Add logical, signext and move.
11302         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
11303         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
11304         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
11305         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
11306         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
11307         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
11308         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
11309         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
11310         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
11311         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
11312         movv2sf_hardfloat_64bit): Use the new types.
11313         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
11314         *movdf_softfloat, *movdf_mips16): Use "multi".
11315         (extendqihi2): Replace with a define_expand.
11316         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
11317         Based on extend<SHORT:mode><GPR:mode>2 patterns.
11318         * config/mips/74k.md (r74k_int_logical): New reservation and
11319         bypasses.
11320         (r74k_int_arith): Remove "slt".
11321         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
11322         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
11323         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
11324         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
11325         reservations for "arith".
11326
11327 2007-07-04  Richard Guenther  <rguenther@suse.de>
11328
11329         * tree-ssa.c (useless_type_conversion_p): Add handling for
11330         scalar float and vector types.  Only call the types_compatible_p
11331         langhook for aggregate types as last resort.  Follow the
11332         rules.
11333
11334 2007-07-04  Richard Guenther  <rguenther@suse.de>
11335
11336         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
11337         the same as NOP_EXPR.
11338
11339 2007-07-04  Nick Clifton  <nickc@redhat.com>
11340
11341         * target.h (struct gcc_target): Add target_help field.
11342         * target-def.h (TARGET_HELP): New.
11343         (TARGET_INITIALIZER): Use TARGET_HELP.
11344         * opts.c (command_handle_option): Invoke target_help function, if
11345         defined, when the user has specified --target-help on the command
11346         line.
11347         * doc/invoke.texi: Mention that --target-help might print
11348         additional information.
11349         * doc/tm.texi: Document TARGET_HELP hook.
11350
11351         * arm.c (TARGET_HELP): Override default definition.
11352         (arm_target_help): New - display a wrapped list of cores and
11353         architectures supported.
11354
11355 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
11356
11357         * config/v850/v850.c (expand_prologue): Make sure
11358         GEN_INT() argument is sign extended rather than zero extended.
11359         (expand_epilogue): Likewise.
11360         (output_move_double): Delete.
11361         * config/v850/v850-protos.h (output_move_double): Delete.
11362         * config/v850/v850.md (movdi): Delete.
11363         (*movdi_internal): Delete.
11364         (movdf): Delete.
11365         (*movdf_internal): Delete.
11366
11367 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
11368
11369         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
11370         unless compiling RTP PIC.
11371
11372 2007-07-04  Richard Guenther  <rguenther@suse.de>
11373
11374         PR tree-optimization/32482
11375         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
11376         original ssa name if we didn't find a shift expression.
11377         Fix shift constant for bit zero test.
11378
11379 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
11380
11381         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
11382
11383 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
11384
11385         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
11386         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
11387         * config/arm/vxworks.h (ASM_SPEC): Delete.
11388         (SUBTARGET_EXTRA_ASM_SPEC): Define.
11389
11390 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
11391
11392         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
11393         (DDR_REVERSED_P): New.
11394         * tree-data-ref.c (initialize_data_dependence_relation,
11395         build_classic_dist_vector): Set DDR_REVERSED_P.
11396
11397 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
11398
11399         PR middle-end/32457
11400         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
11401         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
11402         init_omega_for_ddr_1): Use non conservative number of iterations
11403         estimations.
11404         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
11405         (analyze_siv_subscript): Remove FIXME and reinitialization of 
11406         last_conflicts to chrec_dont_know.
11407         * testsuite/gfortran.dg/vect/pr32457.f90: New.
11408
11409 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
11410
11411         * tree.c (maybe_canonicalize_argtypes): Improve description.
11412
11413 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
11414
11415         * tree.c (maybe_canonicalize_argtypes): New.
11416         (build_function_type): Set canonical type.
11417         (build_method_type_directly): Ditto.
11418         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
11419         properly.
11420
11421 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11422
11423         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
11424         like PLUS_EXPR.
11425         (rewrite_use_nonlinear_expr): Likewise.
11426
11427 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
11428
11429         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
11430
11431 2007-07-04  Ben Elliston  <bje@au.ibm.com>
11432
11433         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
11434         of this file.
11435
11436         * c-objc-common.c (c_types_compatible_p): Fix indentation.
11437
11438         * doc/tm.texi (Run-time Target): Capitalise "CPU".
11439         (Exception Handling): Likewise.
11440
11441 2007-07-03  Jan Hubicka  <jh@suse.cz>
11442
11443         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
11444
11445 2007-07-03  Eric Christopher  <echristo@apple.com>
11446
11447         * doc/cppopts.texi: Add conflicting option note to -dM.
11448         * doc/invoke.texi: Add note about possible conflicts with
11449         -E for -dCHARS and note that -dM will not produce
11450         any results if there is no machine dependent reorg.
11451         
11452 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
11453
11454         * tree.h (DECL_ALIGN): Back out previous change.
11455
11456 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
11457
11458         * configure.ac: Test for .dtprelword support on MIPS.
11459         * configure, config.in: Regenerate.
11460         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
11461         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
11462
11463 2007-07-03  Julian Brown  <julian@codesourcery.com>
11464
11465         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
11466         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
11467         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
11468         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
11469         capability.
11470         (all_fpus): Add FPUTYPE_VFP3.
11471         (fp_model_for_fpu): Add VFPv3 field.
11472         (arm_rtx_costs_1): Give cost to VFPv3 constants.
11473         (vfp3_const_double_index): New function. Return integer index of
11474         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
11475         isn't suitable.
11476         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
11477         and argument represents a valid RTX for a VFPv3 constant.
11478         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
11479         two instructions.
11480         (vfp_emit_fstmd): Similar, for fstmd.
11481         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
11482         constants, represented as integer indices.
11483         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
11484         VFP_REGNO_OK_FOR_DOUBLE macros.
11485         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
11486         (arm_file_start): Set float-abi attribute for VFPv3, and output
11487         correct ".fpu" assembler directive.
11488         (arm_dbx_register_numbering): Add FIXME.
11489         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
11490         (fputype): Add FPUTYPE_VFP3.
11491         (FIXED_REGISTERS): Add 32 registers for D16-D31.
11492         (CALL_USED_REGISTERS): Likewise.
11493         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
11494         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
11495         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
11496         (D7_VFP_REGNUM): New.
11497         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
11498         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
11499         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
11500         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
11501         (REG_ALLOC_ORDER): Adjust for VFPv3.
11502         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
11503         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
11504         VFP_LO_REGS, VFP_HI_REGS.
11505         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
11506         (IS_VFP_CLASS): Define macro.
11507         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
11508         IS_VFP_CLASS.
11509         (REGISTER_MOVE_COST): Likewise.
11510         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
11511         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
11512         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
11513         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
11514         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
11515         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
11516         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
11517         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
11518         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
11519         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
11520         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
11521         where appropriate for single-word registers.
11522         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
11523         As above. Fix type attributes.
11524         * config/arm/constraints.md (register_contraint "t"): Define.
11525         (register_constraint "w"): Change to D0-D15, or D0-D31 for
11526         VFPv3/NEON.
11527         (register_constraint "x"): Define.
11528         (constraint "Dv"): Define.
11529
11530 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
11531
11532         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
11533
11534 2007-07-03  Tom Tromey  <tromey@redhat.com>
11535
11536         * c-parser.c (objc_pq_context): Removed.
11537         (objc_need_raw_identifier): Likewise.
11538         (c_parser) <objc_pq_context>: New field.
11539         <objc_need_raw_identifier>: Likewise.
11540         (OBJC_NEED_RAW_IDENTIFIER): Removed.
11541         (c_lex_one_token): Update.
11542         (c_parser_objc_protocol_definition): Update.
11543         (c_parser_objc_method_definition): Update.
11544         (c_parser_objc_methodproto): Update.
11545         (c_parser_declspecs): Update.
11546
11547 2007-07-03  David Ung  <davidu@mips.com>
11548
11549         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
11550
11551 2007-07-03  David Ung  <davidu@mips.com>
11552             Richard Sandiford  <richard@codesourcery.com>
11553
11554         * doc/invoke.texi: Document -march=74kf3_2.
11555         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
11556         (TUNE_74K): Check for it.
11557         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
11558         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
11559         * config/mips/mips.md (cpu): Add 74kf3_2.
11560         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
11561         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
11562         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
11563         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
11564         74kf3_2 to the CPU list.
11565         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
11566         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
11567         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
11568         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
11569         (r74kf3_2_fxfer_from_c1): New insn reservations.
11570
11571 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
11572             David Ung  <davidu@mips.com>
11573
11574         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
11575         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
11576         and 74k[fx].  Document aliases for the new options.
11577         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
11578         (PROCESSOR_24KF2_1): ...this.
11579         (PROCESSOR_24KX): Rename to...
11580         (PROCESSOR_24KF1_1): ...this.
11581         (PROCESSOR_74KF): Rename to...
11582         (PROCESSOR_74KF2_1): ...this.
11583         (PROCESSOR_74KX): Rename to...
11584         (PROCESSOR_74KF1_1): ...this.
11585         (TUNE_74K): Update PROCESSOR_* names.
11586         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
11587         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
11588         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
11589         (mips_rtx_cost_data): Update processor names in comments.
11590         (mips_issue_rate): Update PROCESSOR_* names.
11591         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
11592         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
11593         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
11594         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
11595         Update cpu attribute names.
11596         (r24k_fpu_iss): Rename this reservation to...
11597         (r24kf2_1_fpu_iss): ...this and update all uses.
11598         (r24kx_fpu_iss): Rename this reservation to...
11599         (r24kf1_1_fpu_iss): ...this and update all uses.
11600         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
11601         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
11602         Update cpu attribute names.
11603
11604 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11605
11606         * config/m32r/constraints.md: New file.
11607         * config/m32r/m32r.c: Include tm-constrs.h.
11608         (small_data_operand): Use satisfies_constraint_* instead of macro.
11609         (addr24_operand, gen_compare): Likewise.
11610         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
11611         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
11612         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
11613         EXTRA_CONSTRAINT): Likewise.
11614         * config/m32r/m32r.md: Include constraints.md.
11615         (*movsi_insn): Use satisfies_constraint_* instead of macro.
11616         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
11617         * config/m32r/predicates.md (conditional_move_operand): Likewise.
11618         (two_insn_const_operand, int8_operand, uint16_operand,
11619         reg_or_int16_operand, reg_or_uint16_operand,
11620         reg_or_cmp_int16_operand, cmp_int16_operand,
11621         seth_add3_operand): Likewise.
11622
11623 2007-07-03  Eric Christopher  <echristo@gmail.com>
11624
11625         * libgcc2.h: Conditionally declare __bswapsi2 and
11626         __bswapdi2.
11627         
11628 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
11629
11630         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
11631         defined.
11632
11633 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11634
11635         PR target/28307
11636         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
11637         (__gthrw_pragma): Provide default definition.
11638         (__gthrw2): Use it.
11639         * gthr-posix.c (__gthrw_pragma): Define.
11640
11641 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
11642
11643         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
11644         before declaring inequality.
11645
11646 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
11647
11648         * combine.c (recog_for_combine): Log the success or failure of
11649           matching new insn patterns against the machine description in
11650           detailed dumps.
11651
11652 2007-07-03  Revital Eres  <eres@il.ibm.com>
11653
11654         * ddg.c (print_sccs): New function.
11655         (check_sccs): New function.
11656         (create_ddg_all_sccs): Use it.
11657         * ddg.h (print_sccs): Declare.
11658         * modulo-sched.c (sms_order_nodes): Call print_sccs.
11659
11660 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
11661
11662         * targhooks.h (default_mode_for_suffix): New function declaration.
11663         * targhooks.c (default_mode_for_suffix): New default target hook.
11664         * target.h (struct c): New structure in the targetm struct.
11665         (mode_for_suffix): New target hook as part of struct c.
11666         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
11667         default_mode_for_suffix.
11668         (TARGET_C): New define.
11669         * c-lex.c: Include "target.h".
11670         (interpret_float): Use targetm.c.mode_for_suffix to determine
11671         the mode for a given non-standard suffix.
11672         Makefile.in (c-lex.o): Depend on $(TARGET_H).
11673
11674         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
11675         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
11676
11677         * doc/extend.texi (Floating Types): New node.  Document __float80 and
11678         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
11679
11680 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11681
11682         PR target/32506
11683         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
11684         predicate instead of target_operand.
11685         (divsi3_i1_media, divsi3_media_2): Likewise.
11686
11687 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11688
11689         * tree.h (alias_sets_might_conflict_p): Rename into
11690         alias_sets_must_conflict_p.
11691         * alias.c (alias_sets_might_conflict_p): Likewise.
11692         (alias_sets_conflict_p): Use it.
11693         (objects_must_conflict_p): Likewise.
11694         * c-common.c (strict_aliasing_warning): Adjust.
11695
11696 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11697
11698         * rtlhooks.c (gen_lowpart_if_possible): Check for
11699         invalid subreg before calling gen_lowpart_SUBREG.
11700
11701 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
11702
11703         * config/darwin9.h: Add copyright notice.
11704         (LINK_COMMAND_SPEC): Add comment.
11705         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
11706         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
11707         DARWIN_LIBSYSTEM_HAS_UNWIND.
11708
11709 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11710
11711         PR libgomp/32468
11712         * omp-low.c (check_combined_parallel): New function.
11713         (lower_omp_parallel): Call it via walk_stmts, set
11714         OMP_PARALLEL_COMBINED if appropriate.
11715         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
11716         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
11717         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
11718         don't consider it as combined parallel.
11719
11720 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
11721
11722         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
11723         (gcc_tooldir): Likewise.
11724         * configure: Regenerate.
11725         * Makefile.in (libsubdir_to_prefix): New variable, based on the
11726         old configure.ac gcc_tooldir setting.
11727         (prefix_to_exec_prefix): New variable.
11728         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
11729         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
11730
11731 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
11732
11733         Fix PR tree-optimization/32583
11734         Fix PR tree-optimization/32584
11735         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
11736         (phi_translate_set): Use phi_translate directly now.
11737         (make_values_for_stmt): Don't value number RHS if we already know
11738         it is constant.
11739
11740 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
11741             Jim Wilson <wilson@specifix.com>
11742
11743         PR target/31684
11744         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
11745         copy_insn.
11746
11747 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11748             Richard Sandiford  <richard@codesourcery.com>
11749             Nigel Stephens  <nigel@mips.com>
11750
11751         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
11752         (mips16e_output_save_restore): Declare.
11753         (mips16e_save_restore_pattern_p): Likewise.
11754         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
11755         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
11756         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
11757         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
11758         (BITSET_P): New global macro, extracted from...
11759         (mips_for_each_saved_reg): ...here.
11760         (mips16e_save_restore_info): New struct.
11761         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
11762         (mips16e_save_restore_regs): New variable.
11763         (mips_split_plus, mips16e_find_first_register): New functions.
11764         (mips16e_mask_registers): New function.
11765         (compute_frame_size): Expand the commentary before the function.
11766         Enforce the MIPS16e save and restore register range restrictions.
11767         Pad the general register save area at the low end.
11768         (mips16e_save_restore_reg, mips16e_build_save_restore)
11769         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
11770         (mips16e_output_save_restore, mips16e_collect_propagate_value)
11771         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
11772         New functions.
11773         (mips_expand_prologue, mips_expand_epilogue): Handle
11774         GENERATE_MIPS16E_SAVE_RESTORE.
11775         * config/mips/mips.md (*mips16e_save_restore): New pattern.
11776
11777 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
11778
11779         PR tree-optimization/31966
11780         PR tree-optimization/32533
11781         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
11782         "basic_block" description as its third argument.  Update function
11783         calls to get destination bb from "edge" argument.  Save "cond" into
11784         aux field of the edge.  Update prototype for changed arguments.
11785         (if_convertible_loop_p): Clear aux field of incoming edges if bb
11786         contains phi node.
11787         (find_phi_replacement_condition): Operate on incoming edges, not
11788         on predecessor blocks.  If there is a condition saved in the
11789         incoming edge aux field, AND it with incoming bb predicate.
11790         Return source bb of the first edge.
11791         (clean_predicate_lists): Clean aux field of outgoing node edges.
11792         (tree_if_conversion): Do not initialize cond variable. Move
11793         variable declaration into the loop.
11794         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
11795         initializations of new_stmt, arg0 and arg1 variables.
11796
11797 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11798
11799         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
11800         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
11801
11802 2007-07-02  Richard Guenther  <rguenther@suse.de>
11803
11804         * tree-ssa.c (useless_type_conversion_p): Document
11805         future intent as defining the middle-end type system.
11806         Re-structure to call langhook last, group by type class,
11807         mark questionable parts.
11808
11809 2007-07-02  Richard Guenther  <rguenther@suse.de>
11810
11811         * tree-flow.h (types_compatible_p): Declare.
11812         * tree-ssa.c (types_compatible_p): New function.
11813         * ipa-type-escape.c (discover_unique_type): Use
11814         types_compatible_p instead of lang_hooks.types_compatible_p.
11815         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
11816         * tree-vn.c (expressions_equal_p): Likewise.
11817         * tree.c (fields_compatible_p): Likewise.
11818         * tree-ssa-dom.c (avail_expr_eq): Likewise.
11819         (cprop_operand): Use useless_type_conversion_p instead of
11820         lang_hooks.types_compatible_p.
11821         * tree-inline.c (setup_one_parameter): Likewise.
11822         (declare_return_variable): Likewise.
11823         * tree-nrv.c (tree_nrv): Likewise.
11824         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11825         (maybe_fold_offset_to_component_ref): Likewise.
11826         (maybe_fold_offset_to_reference): Likewise.
11827         * tree-ssa-copy.c (may_propagate_copy): Likewise.
11828         (merge_alias_info): Likewise.
11829         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11830         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
11831         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
11832         * tree-tailcall.c (find_tail_calls): Likewise.
11833         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11834         * gimplify.c (canonicalize_addr_expr): Likewise.
11835         (fold_indirect_ref_rhs): Likewise.
11836         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
11837         (cpt_same_type): Likewise.
11838         (check_pointer_types_r): Swap parameters to cpt_same_type
11839         where appropriate.
11840         * fold-const.c (fold_convert): Revert fix for PR15988.
11841         * tree-inline.c (setup_one_parameter): Instead fix it here by
11842         using fold_build1 instead of fold_convert and checking for
11843         error_mark_node.  Convert only if the conversion is necessary.
11844
11845 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
11846
11847         * configure.ac: Check for .gnu_attribute on Power.
11848         * configure: Regenerate.
11849         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
11850         attribute for floating-point ABI.
11851
11852 2007-07-02  Ira Rosen  <irar@il.ibm.com>
11853
11854         PR tree-optimization/32230
11855         PR tree-optimization/32477
11856         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
11857         address is a constant.
11858
11859 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
11860
11861         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
11862         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
11863         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
11864         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
11865         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
11866         64-bit targets.  Add support for *-elfoabi*.
11867         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
11868         different settings if $(tm_defines) does not select the EABI.
11869         (MULTILIB_EXCLUSIONS): Define in those circumstances.
11870         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
11871         (MIPS_ARCH_OPTION_SPEC): Likewise.
11872         (MIPS_ISA_LEVEL_SPEC): Likewise.
11873         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
11874         * config/mips/elfoabi.h: New file.
11875
11876 2007-07-02  Richard Guenther  <rguenther@suse.de>
11877
11878         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
11879         (useless_type_conversion_p): ... this.
11880         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
11881         (useless_type_conversion_p): ... this.
11882         * builtins.c (fold_builtin_memory_op): Rename
11883         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
11884         * tree-cfg.c (verify_expr): Likewise.
11885         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
11886         * tree-ssa-ccp.c (ccp_fold): Likewise.
11887         * tree-ssa-copy.c (may_propagate_copy): Likewise.
11888         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
11889         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11890         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
11891         * tree-ssa-pre.c (eliminate): Likewise.
11892         * tree-ssa.c (delete_tree_ssa): Likewise.
11893         (tree_ssa_useless_type_conversion): Likewise.
11894         * tree.c (build2_stat): Likewise.
11895
11896 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
11897
11898         Fix PR tree-optimization/32571
11899         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
11900         simplifying them.
11901
11902 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
11903
11904         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
11905         and other expected operations explicitly, change default to
11906         gcc_unreachable. 
11907
11908 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
11909
11910         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
11911         PARALLEL.
11912         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
11913         (tls_load_dot_plus_eight): Move the label number into the unspec.
11914         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
11915
11916 2007-07-01  Andreas Schwab  <schwab@suse.de>
11917
11918         * dwarf2out.c (initial_return_save): Define only if used.
11919
11920 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
11921
11922         Unreverting Richard's Revert of:
11923
11924         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
11925
11926         * dce.c (deletable_insn_p_1): New function, split out from...
11927         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
11928         specially, not those inside PARALLELs.  Remove BODY argument
11929         and adjust recursive call accordingly.
11930         (prescan_insns_for_dce): Update call to delete_insn_p.
11931
11932 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
11933             Revital Eres  <eres@il.ibm.com>
11934
11935         * ddg.c (create_ddg_all_sccs): Fix missed
11936         initialization of scc_nodes.
11937
11938 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
11939
11940         PR middle-end/32559
11941         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
11942         X + ~X to 1 only for INTEGRAL_TYPE_P type.
11943
11944 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
11945
11946         * configure.ac: Check for .gnu_attribute on MIPS.
11947         * configure, config.in: Regenerate.
11948         * config/mips/mips.c (mips_file_start): If supported, output
11949         attribute for floating-point ABI.
11950
11951 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
11952
11953         PR target/32433
11954         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
11955         (ffs_cmove): New expander to expand using ctz pattern.
11956         (*ffs_cmove): Remove pattern.
11957         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
11958         (ffsdi2): Expand using ctz pattern.
11959         (*ffs_rex64): Remove pattern.
11960
11961 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11962
11963         PR rtl-optimization/32296
11964         * pa.md (return): Delete pattern.
11965         (return_internal): Remove "(const_int 1)" from pattern.
11966         (epilogue): Use return_internal pattern for trivial returns.
11967         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
11968         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
11969
11970 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
11971
11972         * tree-ssa-pre.c (is_exception_related): New function
11973         (can_value_number_operation): Use it.
11974
11975 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
11976         
11977         Fix PR tree-optimization/32540
11978         Fix PR tree-optimization/31651
11979
11980         * tree-ssa-sccvn.c: New file.
11981
11982         * tree-ssa-sccvn.h: Ditto.
11983         
11984         * tree-vn.c: Include tree-ssa-sccvn.h
11985         (val_expr_paid_d): Removed.
11986         (value_table): Ditto.
11987         (vn_compute): Ditto.
11988         (val_expr_pair_hash): Ditto.
11989         (val_expr_pair_expr_eq): Ditto.
11990         (copy_vuses_from_stmt): Ditto.
11991         (vn_delete): Ditto.
11992         (vn_init): Ditto.
11993         (shared_vuses_from_stmt): Ditto.
11994         (print_creation_to_file): Moved up.
11995         (sort_vuses): Ditto.
11996         (sort_vuses_heap): Ditto.
11997         (set_value_handle): Make non-static.
11998         (make_value_handle): Ditto.
11999         (vn_add): Rewritten to use sccvn lookups.
12000         (vn_add_with_vuses): Ditto.
12001         (vn_lookup): Ditto (and second argument removed).
12002         (vn_lookup_with_vuses): Ditto.
12003         (vn_lookup_or_add): Ditto (and second argument removed);
12004         (vn_lookup_or_add_with_vuses): Ditto.
12005         (vn_lookup_with_stmt): New.
12006         (vn_lookup_or_add_with_stmt): Ditto.
12007         (create_value_handle_for_expr): Ditto.
12008
12009         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
12010         (seen_during_translate): New function.
12011         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
12012         (phi_trans_add): Ditto.
12013         (constant_expr_p): FIELD_DECL is always constant.
12014         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
12015         Use constant_expr_p.
12016         Avoid infinite recursion on mutually valued expressions.
12017         Change callers of vn_lookup_or_add.
12018         (phi_translate): New function.
12019         (compute_antic_safe): Allow phi nodes.
12020         (create_component_ref_by_pieces): Update for FIELD_DECL change.
12021         (find_or_generate_expression): Rewrite slightly.
12022         (create_expression_by_pieces): Updated for vn_lookup_or_add
12023         change.
12024         Update VN_INFO for new names.
12025         (insert_into_preds_of_block): Update for new names.
12026         (add_to_exp_gen): New function.
12027         (add_to_sets): Use vn_lookup_or_add_with_stmt.
12028         (find_existing_value_expr): Rewrite to changed vn_lookup.
12029         (create_value_expr_from): Ditto, and use add_to_exp_gen.
12030         (try_look_through_load): Removed.
12031         (try_combine_conversion): Ditto.
12032         (get_sccvn_value): New function.
12033         (make_values_for_phi): Ditto.
12034         (make_values_for_stmt): Ditto.
12035         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
12036         SCCVN.
12037         (init_pre): Update for SCCVN changes.
12038         (fini_pre): Ditto.
12039         (execute_pre): Ditto.
12040
12041         * tree-flow.h (make_value_handle): Declare.
12042         (set_value_handle): Ditto.
12043         (sort_vuses_heap): Ditto.
12044         (vn_lookup_or_add_with_stmt): Ditto.
12045         (vn_lookup_with_stmt): Ditto.
12046         (vn_compute): Remove.
12047         (vn_init): Ditto.
12048         (vn_delete): Ditto.
12049         (vn_lookup): Update arguments.
12050
12051         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
12052         (tree-vn.o): Ditto.
12053         (tree-ssa-sccvn.o): New.
12054         (OBJS-common): Add tree-ssa-sccvn.o
12055         
12056 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12057
12058         PR c/4076
12059         * c-typeck.c (build_external_ref): Don't mark as used if called
12060         from itself.
12061         * calls.c (rtx_for_function_call): Likewise.
12062         
12063 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
12064
12065         Revert:
12066
12067         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
12068
12069         * dce.c (deletable_insn_p_1): New function, split out from...
12070         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
12071         specially, not those inside PARALLELs.  Remove BODY argument
12072         and adjust recursive call accordingly.
12073         (prescan_insns_for_dce): Update call to delete_insn_p.
12074
12075 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
12076
12077         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
12078         (try_combine): Move potential calls to undo_all() so they happen
12079         before we commit to using the combined insns.
12080
12081 2006-06-30  Jan Hubicka  <jh@suse.cz>
12082
12083         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
12084         code.
12085
12086 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
12087
12088         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
12089         (cgraph_remove_unreachable_nodes): Likewise.
12090         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
12091         * ipa-inline.c (update_caller_keys): Cast according to the coding
12092         conventions.
12093         (cgraph_decide_recursive_inlining): Likewise.
12094         (cgraph_decide_inlining_of_small_function): Likewise.
12095         (try_inline): Likewise.
12096         (cgraph_decide_inlining_incrementally): Likewise.
12097         * ipa-pure-const.c (get_function_state): Likewise.
12098         (scan_function): Likewise.
12099         (analyze_function): Likewise.
12100         (static_execute): Likewise.
12101         * ipa-reference.c (scan_for_static_refs): Likewise.
12102         (merge_callee_local_info): Likewise.
12103         (analyze_function): Use type safe memory macros.
12104         (static_execute): Likewise. Cast according to the coding conventions.
12105         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
12106         conventions.
12107         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
12108         names.
12109         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
12110         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
12111         variable names.
12112
12113 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12114
12115         PR middle-end/30024
12116         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
12117         for complex modes (both int and real).
12118
12119 2007-06-29  Jan Hubicka  <jh@suse.cz>
12120
12121         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
12122
12123 2007-06-29  Jan Hubicka  <jh@suse.cz>
12124
12125         PR middle-end/32372
12126         * cse.c (cse_insn): Avoid invalid sharing in between register note and
12127         the insn pattern.
12128
12129 2007-06-29  Anatoly Sokolov <aesok@post.ru>
12130
12131         PR target/32335
12132         * config/avr/avr.c: Include dataflow header file.
12133         (expand_prologue): Adjust for prologue insn change.
12134         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
12135         inside a insn.
12136
12137 2007-06-29  Richard Guenther  <rguenther@suse.de>
12138
12139         PR middle-end/32493
12140         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
12141         during type verification.
12142
12143 2007-06-29  Jan Hubicka  <jh@suse.cz>
12144
12145         * recog.c (validate_change_rtx_1): Unshare TO argument.
12146
12147 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
12148
12149         PR tree-optimization/24659
12150         * tree-vect-transform.c (vectorizable_call): Handle
12151         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
12152
12153         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
12154         * config/i386/i386.c (enum ix86_builtins)
12155         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
12156         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
12157         description.
12158         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
12159         const using def_builtin_const.
12160         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
12161         input operands in the same modes as the result.
12162         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
12163
12164 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
12165
12166         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
12167         (df_set_dead_notes_for_mw): Likewise.
12168
12169 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12170
12171         * c-common.c (pointer_int_sum): Do the negation in sizetype.
12172
12173 2007-06-28  DJ Delorie  <dj@redhat.com>
12174
12175         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
12176
12177 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
12178
12179         * doc/invoke.texi (C++ Dialect Options): Document
12180         fvisibility-ms-compat.
12181         * c.opt (fvisibility-ms-compat): New.
12182
12183 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12184
12185         PR tree-opt/32417
12186         * tree-affine.c (aff_combination_add_elt): Handle
12187         pointer addition specially.
12188
12189 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
12190
12191         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
12192         decl is non-external for AIX ABI.
12193
12194 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
12195
12196         * config/rs6000/predicates.md (current_file_function_operand):
12197         Ensure the symbol is non-external for AIX ABI.
12198
12199 2007-06-28  Nick Clifton  <nickc@redhat.com>
12200
12201         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
12202         (fdce, fdse, fpredictive-commoning): Likewise.
12203
12204 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12205
12206         PR other/31400
12207         * gcc.c (process_command): Recognize the new -static-libgfortran
12208         option.
12209
12210 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12211
12212         PR target/32418
12213         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
12214         Use a call clobbered hard reg instead of a pseudo reg.
12215
12216 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
12217
12218         * config/sh/sh.md (load_gbr): Use correct operand constraint.
12219
12220 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
12221
12222         PR target/32479
12223         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
12224         REG_LIBCALL and REG_RETVAL notes.
12225         (divsi3, mulsi3): Likewise.
12226         (mulhisi3): Likewise.  Use emit_libcall_block.
12227         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
12228
12229 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
12230
12231         PR rtl-optimization/32481
12232         * combine.c (adjust_for_new_dest): Rescan the changed insn.
12233
12234 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
12235
12236         * dce.c (deletable_insn_p_1): New function, split out from...
12237         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
12238         specially, not those inside PARALLELs.  Remove BODY argument
12239         and adjust recursive call accordingly.
12240         (prescan_insns_for_dce): Update call to delete_insn_p.
12241
12242 2007-06-27  Richard Guenther  <rguenther@suse.de>
12243
12244         PR middle-end/32492
12245         * tree.h (fold_convertible_p): Declare.
12246         * fold-const.c (fold_convertible_p): New function.
12247         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
12248         instead of lang_hooks.types_compatible_p.
12249
12250 2007-06-26  Jan Hubicka  <jh@suse.cz>
12251
12252         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
12253         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
12254         early use validate_unshare_change.
12255         (reload_combine): Likewise.
12256         * recog.c (change_t): New field unshare.
12257         (validate_change_1): Rename from validate_change; add argument unshare.
12258         (validate_change): Turn into wrapper of validate_change_1; update
12259         prototype for bools.
12260         (validate_unshare_change): New.
12261         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
12262         calls of df_insn_rescan.
12263         * recog.h (validate_change): Replace ints by bools.
12264         (validate_unshare_change): Declare.
12265
12266 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
12267
12268         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
12269         
12270 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
12271
12272         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
12273
12274 2007-06-25  Jan Hubicka  <jh@suse.cz>
12275
12276         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
12277         uninlinable call.
12278         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
12279         cgraph_decide_inlining_incrementally): Move uninlinability checks to
12280         places other call site specific checks are performed.
12281
12282 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12283
12284         PR tree-opt/32421
12285         * tree-vect-transform.c (vectorizable_operation): Convert
12286         POINTER_PLUS_EXPR over to PLUS_EXPR.
12287
12288 2007-06-25  Chao-ying Fu  <fu@mips.com>
12289
12290         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
12291         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
12292         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
12293         Document GET_MODE_IBIT, and GET_MODE_FBIT.
12294
12295         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
12296         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
12297         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
12298         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
12299         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
12300         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
12301         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
12302         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
12303         ALL_FIXED_POINT_MODE_P): New define.
12304         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
12305         MODE_UACCUM.
12306         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
12307
12308         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
12309         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
12310         MODE_VECTOR_UACCUM): New mode classes.
12311
12312         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
12313         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
12314         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
12315         USA, UDA, and UTA.
12316
12317         * genmodes.c (struct mode_data): Add ibit and fbit fields.
12318         (blank_mode): Initialize ibit and fbit.
12319         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
12320         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
12321         MODE_UACCUM.
12322         (new_adjust): Change required_class to required_class_from and
12323         required_class_to for testing within a range.
12324         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
12325         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
12326         MODE_VECTOR_UACCUM.
12327         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
12328         (make_fixed_point_mode): New.
12329         (_ADD_ADJUST): Change C to C1 and C2.
12330         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
12331         use a range for machine classes.
12332         (ADJUST_IBIT, ADJUST_FBIT): New.
12333         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
12334         CONST_MODE_FBIT.
12335         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
12336         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
12337         Emit adjustment for ibit and fbit.
12338         (emit_mode_ibit, emit_mode_fbit): New.
12339         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
12340
12341 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
12342
12343         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
12344         as the source of the set.
12345
12346 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
12347
12348         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
12349         FP_REGNO_P): Use IN_RANGE.
12350         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
12351         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
12352         (DATA_REG_P): Use DATA_REGNO_P.
12353         (FP_REG_P): Use FP_REGNO_P.
12354         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
12355         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
12356         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
12357
12358 2007-06-24  Jan Hubicka  <jh@suse.cz>
12359
12360         PR middle-end/30563
12361         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
12362
12363 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
12364
12365         PR middle-end/32461
12366         * fold-const.c (fold_binary): Strip nops of operand 0
12367         of BIT_NOT_EXPR before calling operand_equal_p.
12368         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
12369         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
12370
12371 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
12372
12373         * doc/extend.texi: Document that dllimport and dllexport imply
12374         default visibility.
12375         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
12376         imported or exported declaration, including type declarations.
12377         * c-common.c (handle_visibility_attribute): Check for conflicts
12378         with dllimport/dllexport.
12379         (c_determine_visibility): Handle dllimport/dllexport as an
12380         explicit visibility atttribute.
12381
12382 2007-06-23  Richard Guenther  <rguenther@suse.de>
12383
12384         PR tree-optimization/16876
12385         PR middle-end/29478
12386         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
12387         for CALL_EXPRs.
12388         * tree-inline.c (initialize_inlined_parameters): Do not call
12389         lang_hooks.tree_inlining.convert_parm_for_inlining.
12390         * cgraphbuild.c (initialize_inline_failed): Set inline failed
12391         reason for mismatched types.
12392         * gimplify.c (gimplify_call_expr): Verify the call expression
12393         arguments match the called function type signature.  Otherwise
12394         mark the call expression to be not considered for inlining
12395         using CALL_CANNOT_INLINE_P flag.
12396         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
12397         edges call expression.
12398         (cgraph_decide_inlining_of_small_function): Likewise.
12399         (cgraph_decide_inlining): Likewise.
12400         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12401         Remove define.
12402         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
12403         * c-typeck.c (c_convert_parm_for_inlining): Remove.
12404         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
12405         Remove declaration.
12406         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
12407         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
12408         Remove.
12409         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
12410         convert_parm_for_inlining member.
12411
12412 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
12413
12414         PR target/31152
12415         * arm.md (negscc): Match the correct operand for optimized LT0 test.
12416         Remove optimization for GT.
12417
12418 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
12419
12420         PR middle-end/32437
12421         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
12422         is a PARALLEL.
12423         (prescan_insns_for_dce): Add extra parameter.
12424         
12425 2007-06-23  Jan Hubicka  <jh@suse.cz>
12426
12427         PR middle-end/31541
12428         * gimplify.c (mark_addressable): New function.
12429         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
12430
12431 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
12432
12433         PR middle-end/32374
12434         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
12435
12436 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
12437
12438         PR target/32413
12439         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
12440         moves between MMX/SSE registers to at least 8 units to prevent
12441         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
12442
12443 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
12444
12445         * config/i386/i386.c (override_options): Correct x86_sahf
12446         setting condition.
12447
12448 2007-06-21  David Daney  <ddaney@avtrex.com>
12449
12450         PR target/32406
12451         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
12452         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
12453         (exception_receiver): Renamed to ...
12454         (nonlocal_goto_receiver): ... this.
12455
12456 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
12457
12458         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
12459         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
12460         partial register accesses.
12461
12462 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
12463
12464         * fold-const.c (debug_fold_checksum): Move it under
12465         ENABLE_FOLD_CHECKING.
12466
12467 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
12468
12469         PR middle-end/20623
12470         * tree.h (debug_fold_checksum): Declared.
12471         * fold-const.c (build_fold_addr_expr_with_type_1): New.
12472         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
12473         build_fold_addr_expr_with_type_1.
12474         (fold_addr_expr, debug_fold_checksum): New.
12475         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
12476         (fold_unary, fold_comparison, split_address_to_core_and_offset):
12477         Use fold_addr_expr.
12478         
12479 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
12480
12481         PR tree-optimization/19590
12482         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
12483         of scev is a constant.
12484
12485 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
12486
12487         * df-problems.c (df_note_bb_compute): Made computation of live
12488         info consistent with df_lr.
12489
12490 2007-06-21  Richard Guenther  <rguenther@suse.de>
12491
12492         PR tree-optimization/32453
12493         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
12494         for pointer anti-range.
12495
12496 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12497
12498         * config/i386/i386.c (processor_target_table): Increase maximum
12499         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
12500         default 64bit.
12501
12502         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
12503         byte alignment if > 8 byte alignment is preferred.
12504         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12505
12506 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
12507
12508         PR tree-optimization/31866
12509         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
12510         if ASM_EXPR's input is not a SSA_NAME.
12511
12512         PR middle-end/32362
12513         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
12514         but decl is a global var, instead return decl.
12515         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
12516         even for is_global_var decls, if they are private in some outer
12517         context.
12518
12519 2007-06-21  Richard Guenther  <rguenther@suse.de>
12520
12521         PR tree-optimization/32451
12522         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
12523
12524 2007-06-21  Christian Bruel  <christian.bruel@st.com>
12525
12526         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
12527         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
12528         (push_regs): Changed saving order or banked registers.
12529         (sh_expand_epilogue): Likewise.
12530         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
12531         (FIRST_BANKED_REG): Likewise.
12532         (LAST_BANKED_REG): Likewise.
12533         * config/sh/sh.md (banked) New attribute.
12534         (in_delay_slot): Check banked attribute.
12535         
12536 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
12537
12538         PR tree-optimization/32075
12539         * tree-data-ref.c (subscript_dependence_tester_1, 
12540         analyze_miv_subscript, analyze_overlapping_iterations,
12541         add_distance_for_zero_overlaps, build_classic_dist_vector,
12542         subscript_dependence_tester_1, analyze_overlapping_iterations,
12543         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
12544         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
12545         to evolution_function_is_affine_multivariate_p.
12546
12547 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12548
12549         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
12550
12551 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12552
12553         PR target/32335
12554         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
12555         for TARGET_A16.
12556         * config/m32c/prologue.md (epilogue_exitd_16): New.
12557         (epilogue_reit_16): New.
12558         (epilogue_exitd): Rename to epilogue_exitd_24.
12559         (epilogue_reit): Rename to epilogue_reit_24.
12560
12561 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
12562             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
12563
12564         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
12565         New counters.
12566         * haifa-sched.c (queue_to_ready): Don't requeue next insn
12567         if dbg_cnt (sched_insn) reaches the limit.
12568         (choose_ready): New parameter INSN_PTR and new return value.
12569         (schedule_block): Handle dbg_cnt (sched_insn). Handle
12570         the new return value from choose_ready.
12571         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
12572         (rest_of_handle_global_alloc): New global_alloc_at_func.
12573
12574 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
12575
12576         PR tree-optimization/25737
12577         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
12578         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
12579         * tree-flow.h (struct fieldoff): Add new field alias_set.
12580         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
12581         argument addressable_type.  Set alias_set of fieldoff.
12582         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
12583         (create_overlap_variables_for): Pass alias_set from fieldoff to
12584         create_sft.
12585         * alias.c (get_alias_set): Use alias_set from SFT if set.
12586
12587 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
12588
12589         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
12590         of a variable as an unsigned HOST_WIDE_INT integer.
12591
12592 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
12593
12594         PR rtl-optimization/32405
12595         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
12596
12597 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
12598
12599         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
12600
12601         PR middle-end/31959
12602         * builtins.c: Include diagnostic.h.
12603         (expand_builtin_expect): Make gcc_assert more permissive.
12604         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
12605
12606         PR inline-asm/32109
12607         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
12608         and !allows_mem.
12609
12610         PR middle-end/32285
12611         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
12612         if ACCUMULATE_OUTGOING_ARGS.
12613
12614 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12615
12616         * config/m68hc11/m68hc11.c: Include dataflow header file.
12617         (m68hc11_reorg): Port to dataflow.
12618
12619 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12620
12621         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
12622         (struct df_problem.free_blocks_on_set_blocks): New field.
12623         (struct dataflow.optional_p): New field.
12624         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
12625         (df_live_set_all_dirty): New function.
12626         * df-scan.c (df_scan_alloc): Initialize optional_p.
12627         (problem_SCAN): Initialize free_blocks_on_set_blocks.
12628         * df-core.c (df_set_blocks): Removed use of
12629         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
12630         df_problem.free_blocks_on_set_blocks to determine which blocks are
12631         recycled.
12632         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
12633         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
12634         uses dataflow.optional_p to determine if problem should be
12635         deleted.
12636         (rest_of_handle_df_initialize): Only start live problem if 
12637         -02 or above.
12638         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
12639         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
12640         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
12641         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
12642         problem_NOTE): Initialize free_blocks_on_set_blocks.
12643         (df_lr_bb_local_compute): Recompute luids if df_live problem is
12644         not active.
12645         (df_live_set_all_dirty, df_note_alloc): New function.
12646         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
12647         df_get_live_*.
12648         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
12649         * postreload.c (reload_combine): Ditto.
12650         * cse.c (cse_extended_basic_block): Ditto.
12651         * regmove.c (mark_flags_life_zones): Ditto.
12652         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
12653         erase_matching_seqs): Ditto.
12654         * bt-load.c (compute_defs_uses_and_gen): Ditto.
12655         * integrate (allocate_initial_values): Ditto.
12656         * combine.c (reg_dead_at_p): Ditto.
12657         * resource.c (mark_target_live_regs): Ditto.
12658         * sched-rgn.c (check_live_1, update_live_1): Ditto.
12659         * config/sh/sh.c (find_r0_life_regions): Ditto.
12660         * global.c (rest_of_handle_global_alloc): Only add back df_live
12661         for -O > 1.
12662         * local-alloc.c (rest_of_handle_local_alloc): Only remove
12663         df_live for -O > 1.
12664         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
12665         df_get_live_*.
12666         (if_convert): Make sure df_live is there at -O == 1.
12667         (pass_if_after_combine): Cleanup flags.
12668         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
12669         is there at -O == 1.
12670         
12671 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
12672
12673         * config/arm/arm.c (arm_get_frame_offsets): Set
12674         offsets->locals_base to avoid negative stack size.
12675         (thumb1_expand_prologue): Assert on negative stack size.
12676
12677 2007-06-19  Sebastian Pop  <sebpop@gmail.com>
12678
12679         PR tree-optimization/32367
12680         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
12681         of the chrec has no evolution in that loop.
12682         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
12683
12684 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
12685
12686         * config/xtensa/xtensa.c: Include "df.h".
12687         (xtensa_builtin_saveregs): Use adjust_address instead of
12688         change_address.
12689         (xtensa_va_start): Invoke make_tree with sizetype for
12690         expand_builtin_saveregs and then convert the result to a pointer.
12691         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
12692         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
12693         Subtract argument size from index value as integers and then use
12694         POINTER_PLUS_EXPR to add the result to the array address.
12695         
12696 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12697
12698         PR target/32335
12699         * config/m32c/m32c.c: Include dataflow header file.
12700         (m32c_emit_prologue): Adjust for prologue insn change.
12701         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
12702         once inside a PARALLEL. Assume frame size passed in operand 0
12703         includes space to save the fb register.
12704         (prologue_enter_24): Likewise.
12705         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
12706
12707 2007-06-19  David Daney  <ddaney@avtrex.com
12708
12709         PR target/32313
12710         * config/mips/mips.md (cprestore): Mark $gp as used.
12711
12712 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12713
12714         PR target/32369
12715         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
12716         (frv_ifcvt_modify_insn): Likewise.
12717
12718 2007-06-19  Richard Guenther  <rguenther@suse.de>
12719
12720         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
12721         only handle positive offsets that fit in a HOST_WIDE_INT.
12722
12723 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
12724
12725         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
12726         result of rsqrt insn for zero input argument to avoid NaN.
12727
12728 2007-06-19  Richard Guenther  <rguenther@suse.de>
12729
12730         PR middle-end/31950
12731         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
12732
12733 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
12734
12735         PR tree-optimization/32353
12736         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
12737
12738 2007-06-19  Nick Clifton  <nickc@redhat.com>
12739
12740         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
12741
12742 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
12743
12744         PR target/32389
12745         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
12746         * config/i386/i386.c (assign_386_stack_local): Assert that
12747         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
12748         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
12749         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
12750         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
12751
12752 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
12753
12754         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
12755
12756 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
12757
12758         PR rtl-optimization/32321
12759         * gcse.c (replace_store_insn): Update the note before
12760         calling emit_insn_after.
12761
12762 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
12763
12764         PR middle-end/32355
12765         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
12766         cse_main.
12767         * df-problems.c (df_note_bb_compute): Fix dumping info.
12768         
12769 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
12770
12771         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
12772         insn with emit_jump_insn.
12773
12774 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
12775
12776         PR tree-optimization/32383
12777         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
12778         * targhooks.h (default_builtin_reciprocal): Update prototype.
12779         * target.h (struct gcc_target): Update builtin_reciprocal.
12780         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
12781         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
12782         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
12783         when fndecl is in BUILT_IN_MD class.
12784         (execute_convert_to_rsqrt): Ditto.
12785
12786         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
12787         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
12788         Convert BUILT_IN_SQRTF code only  when md_fn is false.
12789
12790 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12791
12792         * bt-load.c (move_btr_def): Fix the order of arguments
12793         to validate_replace_rtx.
12794
12795 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
12796
12797         * config/m68k/m68k-devices.def: Add 54450..54455.
12798
12799 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
12800
12801         PR rtl-optimization/32366
12802         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
12803         FLOAT_EXTEND]: Prevent non-scalar modes from entering
12804         significand_size.
12805
12806 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12807
12808         PR middle-end/32349
12809         * modulo-sched (generate_reg_moves): Added rescan parameter and if
12810         this is true, rescan insn being modified.
12811         (sms_schedule): Added rescan parameter.
12812         (rest_of_handle_sms): Moved freeing of dominance info to before
12813         getting out of cfg_layout.
12814         
12815 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
12816
12817         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
12818         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
12819         appropriate.
12820
12821         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
12822         FL_CF_EMAC from the entry for isac.
12823
12824         * config/m68k/predicates.md (const_call_operand): Adjust comment.
12825         (const_sibcall_operand): New.
12826         (sibcall_operand): Use it.
12827         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
12828         (m68k_isas): ISAC does not imply FPU or EMAC.
12829         (override_options): Add ISA_C logic for symbolic jump & call.
12830
12831 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12832
12833         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
12834         return mode from the builtin itself.
12835         (sparc_fold_builtin): Fix cast of zero constant.
12836
12837 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
12838
12839         * targhooks.c (default_builtin_reciprocal): New default target hook.
12840         * targhooks.h (default_builtin_reciprocal): Add prototype.
12841         * hooks.c (hook_tree_tree_bool_null): Remove hook.
12842         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
12843         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
12844         default_builtin_reciprocal.
12845
12846 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
12847
12848         PR middle-end/31723
12849         * hooks.c (hook_tree_tree_bool_null): New hook.
12850         * hooks.h (hook_tree_tree_bool_null): Add prototype.
12851         * tree-pass.h (pass_convert_to_rsqrt): Declare.
12852         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
12853         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
12854         and convert it to reciprocal a*rfunc(b).
12855         (execute_convert_to_rsqrt): New function.
12856         (gate_convert_to_rsqrt): New function.
12857         (pass_convert_to_rsqrt): New pass definition.
12858         * target.h (struct gcc_target): Add builtin_reciprocal.
12859         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
12860         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
12861         TARGET_BUILTIN_RECIPROCAL.
12862         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
12863
12864         * config/i386/i386.h (TARGET_RECIP): New define.
12865         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
12866         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12867         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12868         and not optimizing for size.
12869         (*rcpsf2_sse): New insn pattern.
12870         (*rsqrtsf2_sse): Ditto.
12871         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
12872         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12873         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12874         and not optimizing for size.
12875         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
12876         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12877         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12878         and not optimizing for size.
12879         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
12880         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12881         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12882         and not optimizing for size.
12883         (*sse_rsqrtv4sf2): Do not export.
12884         (sqrtv4sf2): Ditto.
12885         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
12886         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12887         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12888         and not optimizing for size.
12889         (sqrtv4sf2): Ditto.
12890         * config/i386/i386.opt (mrecip): New option.
12891         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
12892         (ix86_emit_swsqrtsf): Ditto.
12893         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
12894         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
12895         builtin definition.
12896         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
12897         ix86_expand_unop1_builtin.
12898         (ix86_emit_swdivsf): New function.
12899         (ix86_emit_swsqrtsf): Ditto.
12900         (ix86_builtin_reciprocal): New function.
12901         (TARGET_BUILTIN_RECIPROCAL): Use it.
12902         (ix86_vectorize_builtin_conversion): Rename from
12903         ix86_builtin_conversion.
12904         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
12905         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
12906         "i386 and x86_64 Options" section.
12907         (Intel 386 and AMD x86_64 Options): Document -mrecip.
12908
12909 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
12910             Zdenek Dvorak <dvorakz@suse.cz>
12911             Richard Guenther  <rguenther@suse.de>
12912             Kaz Kojima  <kkojima@gcc.gnu.org>
12913
12914         * tree-vrp.c (compare_values_warnv): Convert val2 to
12915         the type of val1.
12916         (extract_range_from_assert): Create
12917         POINTER_PLUS_EXPR for pointer types.
12918         (extract_range_from_binary_expr): Handle
12919         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
12920         for pointer types.
12921         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
12922         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
12923         POINTER_PLUS_EXPR as PLUS_EXPR.
12924         (number_of_iterations_lt_to_ne):
12925         For pointer types, use sizetype when
12926         creating MINUS_EXPR/PLUS_EXPRs.
12927         (assert_loop_rolls_lt): For pointer types, use sizetype when
12928         creating MINUS_EXPR/PLUS_EXPRs.
12929         (number_of_iterations_le): Likewise.
12930         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
12931         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
12932         like PLUS_EXPR and MINUS_EXPR.
12933         * tree-pretty-print.c (dump_generic_node): Handle
12934         POINTER_PLUS_EXPR.
12935         (op_prio): Likewise.
12936         (op_symbol_1): Likewise.
12937         * optabs.c (optab_for_tree_code): Likewise.
12938         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
12939         specially.
12940         * tree-tailcall.c (process_assignment): Mention
12941         POINTER_PLUS_EXPR in a TODO comment.
12942         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
12943         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
12944         not used with a pointer and an integer type.
12945         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
12946         increment using chrec_convert_rhs instead of chrec_convert.
12947         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
12948         PLUS_EXPR except for the right hand side's type will be
12949         sizetype.
12950         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
12951         (fold_used_pointer_cast): Kill.
12952         (pointer_offset_p): Kill.
12953         (fold_used_pointer): Kill.
12954         (pointer_used_p): Kill.
12955         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
12956         call fold_used_pointer.
12957         (instantiate_parameters_1): Convert the increment
12958         using chrec_convert_rhs instead of chrec_convert.
12959         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
12960         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
12961         instead of PLUS_EXPR.
12962         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
12963         PLUS_EXPR for pointers.
12964         (std_gimplify_va_arg_expr): Likewise.
12965         (fold_builtin_memory_op): Likewise.
12966         (fold_builtin_strstr): Likewise.
12967         (fold_builtin_strchr): Likewise.
12968         (fold_builtin_strrchr): Likewise.
12969         (fold_builtin_strpbrk): Likewise.
12970         (expand_builtin_memory_chk): Likewise.
12971         (fold_builtin_memory_chk): Likewise.
12972         (std_expand_builtin_va_start): Use
12973         sizetype for the call to make_tree and then convert
12974         to the pointer type.
12975         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
12976         instead of PLUS_EXPR for adding to a pointer.
12977         (std_gimplify_va_arg_expr): Use fold_build2 for
12978         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
12979         the operands to sizetype first and then cast the BIT_AND_EXPR
12980         back to the pointer type.
12981         * fold-const.c (build_range_check): Handle pointer types
12982         specially.
12983         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
12984         of PLUS_EXPR's. Make sure the offset is converted to
12985         sizetype.
12986         (try_move_mult_to_index): Strip the NOPs from the offset.
12987         Remove code argument and replace all uses with PLUS_EXPR.
12988         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
12989         specially. Don't use a pointer type for MINUS_EXPR.
12990         (fold_unary): Handle for (T1)(X op Y),
12991         only p+ as that is the only as that can be handled for
12992         binary operators now.
12993         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
12994         POINTER_PLUS_EXPR.
12995         <case PLUS_EXPR>: Add folding of PTR+INT into
12996         PTR p+ INT.
12997         Don't call try_move_mult_to_index.
12998         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
12999         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
13000         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
13001         Don't call try_move_mult_to_index.
13002         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
13003         (tree_expr_nonzero_p): Likewise.
13004         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
13005         of PLUS_EXPR for the complex expression folding.
13006         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
13007         first chrec is a pointer type, then the second should
13008         be sizetype and not the first's type.
13009         For POINTER_PLUS_EXPR, use a different right hand side type.
13010         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
13011         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
13012         different right hand side type.
13013         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
13014         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
13015         instead of PLUS_EXPR.
13016         When either operand is zero, convert the other operand.
13017         (chrec_apply): Use chrec_convert_rhs
13018         on the argument x instead of chrec_convert.
13019         (reset_evolution_in_loop): For pointer types, the new_evol
13020         should be sizetype.
13021         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
13022         different right hand side type.
13023         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
13024         (chrec_convert_rhs): New function.
13025         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
13026         different right hand side type.
13027         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
13028         * tree-chrec.h (chrec_convert_rhs): New prototype.
13029         (build_polynomial_chrec): For pointer types, the right hand
13030         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
13031         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
13032         Remove subtraction case as it is always addition now.
13033         Make sure the offset is converted to sizetype.
13034         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
13035         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
13036         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
13037         PLUS_EXPR in pointer type.
13038         Handle POINTER_PLUS_EXPR.
13039         (tree_to_aff_combination): Likewise.
13040         (force_expr_to_var_cost): Likewise.
13041         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
13042         instead of PLUS_EXPR for pointers.
13043         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
13044         instead of PLUS_EXPR of pointer types.
13045         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
13046         as PLUS_EXPR.
13047         (check_va_list_escapes): Likewise.
13048         (check_all_va_list_escapes): Likewise.
13049         * dwarf2out.c (loc_descriptor_from_tree_1):
13050         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
13051         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
13052         (string_constant): Likewise.
13053         * tree-ssa-address.c (tree_mem_ref_addr): When adding
13054         the offset to the base, use POINTER_PLUS_EXPR.
13055         (add_to_parts): Convert the index to sizetype.
13056         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
13057         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
13058         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
13059         Offset only holds something for PLUS_EXPR.
13060         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
13061         a PLUS_EXPR.
13062         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
13063         and not PLUS_EXPR.
13064         (analyze_accesses_for_modify_stmt): Likewise.
13065         Remove comment about the type being integral type as it is
13066         wrong now.
13067         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
13068         PLUS_EXPR.
13069         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
13070         and not PLUS_EXPR.
13071         Correct the type which the artimentic is done in (is now
13072         sizetype).
13073         Reindent one loop.
13074         * tree-data-ref.c (split_constant_offset): Handle
13075         POINTER_PLUS_EXPR
13076         * tree-affine.c (tree_to_aff_combination): Likewise.
13077         * c-typeck.c (build_unary_op): For pointers create the increment
13078         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
13079         for pointers.
13080         * gimplify.c (gimplify_self_mod_expr): Create a
13081         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
13082         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
13083         * tree.def (POINTER_PLUS_EXPR): New tree code.
13084         * tree-predcom.c (ref_at_iteration): If we have a pointer
13085         type do the multiplication in sizetype.
13086         * tree-mudflap.c (mf_xform_derefs_1): Create a
13087         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
13088         * tree-ssa-forwprop.c 
13089         (forward_propagate_addr_into_variable_array_index):
13090         Don't expect there to be a cast for the index as that
13091         does not exist anymore.
13092         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
13093         instead of PLUS_EXPR.
13094         Don't check for the first operand of the POINTER_PLUS_EXPR
13095         was the index as it cannot be.
13096         Call forward_propagate_addr_into_variable_array_index with
13097         the SSA_NAME instead of the statement.
13098         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
13099         (compare_constant): Likewise.
13100         (copy_constant): Likewise.
13101         (compute_reloc_for_constant): Likewise.
13102         (output_addressed_constants): Likewise.
13103         (initializer_constant_valid_p): Likewise.
13104         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
13105         Convert the MIN/MAX of the inner type to the outer
13106         type before comparing them.
13107         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
13108         POINTER_PLUS_EXPR instead of PLUS_EXPR.
13109         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
13110         of PLUS_EXPR for pointers.
13111         * tree-inline.c (estimate_num_insns_1): Handle
13112         POINTER_PLUS_EXPR.
13113         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
13114         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
13115         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
13116         instead of PLUS_EXPR for the pointer increment statement.
13117         (vect_update_ivs_after_vectorizer): For pointer types, create
13118         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
13119         MULT_EXPR in sizetype.
13120         (vect_gen_niters_for_prolog_loop): Add a cast when creating
13121         byte_misalign.
13122         * tree-object-size.c (plus_expr_object_size): Handle
13123         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
13124         code which is trying to figure out which side is a pointer and 
13125         is the index.
13126         (check_for_plus_in_loops_1): Likewise.
13127         (check_for_plus_in_loops): Likewise.
13128         * c-common.c (pointer_int_sum): Create a
13129         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
13130         * tree-ssa-structalias.c (handle_ptr_arith): Handle
13131         only POINTER_PLUS_EXPR.  Removing all the extra
13132         code which is trying to figure out which side is a pointer and 
13133         is the index.
13134         * tree-cfg.c (verify_expr): Add extra checking for pointers and
13135         PLUS_EXPR and MINUS_EXPR.
13136         Also add checking to make sure the operands of POINTER_PLUS_EXPR
13137         are correct.
13138         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
13139         with make_tree, instead of a pointer type.
13140         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
13141         for pointers instead of PLUS_EXPR.
13142         (s390_gimplify_va_arg): Likewise.
13143         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
13144         instead of PLUS_EXPR when doing addition on pointer
13145         types.  Use sizetype for the second operand.
13146         (spu_gimplify_va_arg_expr): Likewise.
13147         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
13148         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
13149         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
13150         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
13151         for the pointer addition and also use size_int/sizetype
13152         for the offset.
13153         (ix86_gimplify_va_arg): Likewise.
13154         Perform BIT_AND_EXPR on sizetype arguments.
13155         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
13156         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
13157         for the pointer additions and also use size_int for the offsets.
13158         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
13159         additions and also use size_int for the offsets.  Perform
13160         BIT_AND_EXPR on sizetype arguments.
13161         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
13162         POINTER_PLUS_EXPR for pointers and create the
13163         BIT_AND_EXPR in sizetype.
13164         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
13165         instead of PLUS_EXPR for pointer addition.
13166         (rs6000_va_start): Likewise.
13167         Also use sizetype for the offset.
13168         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
13169         as PLUS_EXPR/MINUS_EXPR.
13170         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
13171         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
13172         Don't use BIT_AND_EXPR on a pointer type, convert the
13173         expression to sizetype first.
13174         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
13175         for pointers.
13176         (mips_gimplify_va_arg_expr): Likewise.
13177         Don't create BIT_AND_EXPR in a pointer type.
13178
13179 2007-06-15  Eric Christopher  <echristo@apple.com>
13180
13181         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
13182         (x86_64-*-darwin*): Ditto.
13183         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
13184         for above.
13185
13186 2007-06-15  Matthew Wilcox <matthew@wil.cx>
13187
13188         * doc/extend.texi: Document behavior of __attribute__((aligned))
13189         on typedefs.
13190
13191 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
13192
13193         * rtlanal.c (note_stores): Improve documentation.
13194
13195 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13196
13197         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
13198         LOCAL_LABEL_PREFIX): Delete.
13199         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
13200         (bfin_internal_label): Delete.
13201
13202 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
13203
13204         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
13205         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
13206         otherwise define to LIBGCC2_TF_CEXT.
13207         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
13208         (LIBGCC_TF_CEXT): Ditto.
13209         (TF_SIZE): Ditto.
13210
13211 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
13212
13213         PR rtl-optimization/32339
13214         * df-scan.c (df_uses_record): Don't modify flags but just add to
13215         it for df_ref_record.
13216
13217 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13218
13219         * tree-mudflap.c: Fix whitespace issues.
13220
13221 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
13222
13223         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
13224
13225 2007-06-14  Eric Christopher  <echristo@apple.com>
13226
13227         * config/i386/sse.md (movdi_to_sse): Rewrite body.
13228         (movv4sf): Use gcc_unreachable instead of abort.
13229
13230 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
13231
13232         PR target/32268
13233         * config/i386/sfp-machine.h (CMPtype): New define.
13234         (mach stubs): Use CMPtype instead of int as a return type.
13235
13236 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
13237
13238         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
13239         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
13240         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
13241         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
13242         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
13243         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
13244         config/soft-fp/soft-fp.h: Update from glibc CVS.
13245
13246 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
13247
13248         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
13249
13250 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
13251
13252         PR target/32341
13253         * config/v850/v850.c: Include dataflow header file.
13254         (substitute_ep_register): Fix typo.
13255
13256 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
13257
13258         * configure.ac: Fix earlier checkin.
13259         * configure: Regenerated.
13260
13261 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
13262
13263         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
13264         * aclocal.m4: Regenerate.
13265         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
13266         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
13267         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
13268         * configure: Regenerate.
13269         * Makefile.in (LOOSE_WARN): Subst loose_warn.
13270
13271         * Makefile.in (quickstrap): Build libgcc too.
13272
13273 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
13274
13275         * configure.ac: Add --enable-checking=df.  Explicitly mention that
13276         the variables are initialized as for "release".
13277         * df-core.c: Use it.
13278         * configure: Regenerate.
13279         * config.in: Regenerate.
13280
13281 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
13282
13283         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
13284         validate_replace_rtx instead of replace_rtx.
13285         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
13286
13287 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
13288
13289         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
13290         (DWARF2_UNWIND_INFO): Override default if configured with
13291         SJLJ EH disabled.
13292         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
13293         (ENDFILE_SPEC): Add crtend.o.
13294         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
13295         (ENDFILE_SPEC): Add crtend.o.
13296         (TARGET_USE_JCR_SECTION): Define.
13297         (MD_UNWIND_SUPPORT): Define for 32-bit target.
13298
13299         * config/i386/cygming-crtbegin.c: New file.
13300         * config/i386/cygming-crtend.c: New file.
13301
13302 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
13303
13304         * config/i386/w32-unwind.h: New file.
13305
13306 2007-06-13  Eric Christopher  <echristo@apple.com>
13307
13308         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
13309         the user set a value below STACK_BOUNDARY.
13310
13311 2007-06-13  Thiemo Seufer  <ths@networkno.de>
13312
13313         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
13314         imply -lpthread for -pthread.
13315
13316 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
13317
13318         * basic-block.h: Remove the prototype for
13319         free_basic_block_vars.
13320         * cfglayout.h: Remove the prototype for
13321         insn_locators_initialize.
13322         * tree.h: Remove the prototype for emit_line_note.
13323
13324         * tree-ssa-pre.c (mergephitemp): Remove.
13325         (init_pre): Don't use mergephitemp.
13326
13327 2007-06-13  Eric Christopher  <echristo@apple.com>
13328
13329         * config/i386/i386.c (override_options): If we've specified
13330         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
13331
13332 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
13333
13334         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
13335         is defined.
13336
13337 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
13338
13339         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
13340         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
13341         (eh_store_handler): New pattern.
13342         (eh_return): Emit it instead of a plain move.
13343
13344 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
13345
13346         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
13347         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
13348         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
13349         def_builtin_const.
13350
13351 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
13352
13353         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
13354         (find_next_insn_start, find_load): New functions.
13355         (bfin_reorg): Use them to deal with the fact that parallel insns are
13356         no longer represented as a SEQUENCE.
13357
13358 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13359
13360         * config/sparc/sparc.c (sparc_override_options): Initialize
13361         fpu mask correctly.
13362
13363 2007-06-13  Dave Korn  <dave.korn@artimi.com>
13364
13365         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
13366         df_get_live_out.
13367
13368 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
13369
13370         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
13371         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
13372         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
13373         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
13374         tree-vect-transform.c: Fix comment typos.  Follow spelling
13375         conventions.
13376
13377 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
13378
13379        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
13380        to the exit block use set.
13381        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
13382        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
13383        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
13384
13385 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
13386
13387         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
13388         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
13389         to indicate an error.
13390         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
13391         New functions.
13392         (dbg_cnt_process_opt): Print an error on a bad argument.
13393         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
13394         * common.opt (-fdbg-cnt-list): New.
13395         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
13396
13397 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
13398
13399         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
13400         flag on ref-all pointers.
13401
13402 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13403
13404         PR middle-end/31579
13405         * expr.c (expand_expr_addr_expr_1): Call expand_expr
13406         for the offset with the modifier as EXPAND_INITIALIZER
13407         if the modifier is EXPAND_INITIALIZER.
13408         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
13409         a register if we had an overflow.
13410
13411 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13412
13413         * real.c (real_isfinite): New.
13414         (real_sqrt): Use it.
13415         * real.h (real_isfinite): New.
13416         * builtins.c: Use it.
13417
13418 2007-06-12  Ian Lance Taylor  <iant@google.com>
13419             Daniel Berlin  <dberlin@dberlin.org>
13420
13421         PR libstdc++/29286
13422         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
13423         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
13424         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
13425         (DECL_NO_TBAA_P): Define.
13426         (struct tree_decl_common): Add no_tbaa_flag field.
13427         * tree-ssa-structalias.c (struct variable_info): Add
13428         no_tbaa_pruning field.
13429         (new_var_info): Initialize no_tbaa_pruning field.
13430         (unify_nodes): Copy no_tbaa_pruning field.
13431         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
13432         (dump_solution_for_var): Print no_tbaa_pruning flag.
13433         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
13434         callers.
13435         (compute_tbaa_pruning): New static function.
13436         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
13437         Call compute_tbaa_pruning.
13438         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
13439         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
13440         * gimple-low.c (lower_stmt): Likewise.
13441         * tree-gimple.c (is_gimple_stmt): Likewise.
13442         * tree-ssa-operands.c (get_expr_operands): Likewise.
13443         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13444         * tree-inline.c (estimate_num_insns_1): Likewise.
13445         (copy_result_decl_to_var): Likewise.
13446         * expr.c (expand_expr_real_1): Likewise.
13447         * tree-pretty-print.c (dump_generic_node): Likewise.
13448         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
13449         * omp-low.c (omp_copy_decl_2): Likewise.
13450         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
13451         * doc/c-tree.texi (Expression trees): Document
13452         CHANGE_DYNAMIC_TYPE_EXPR.
13453
13454 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13455
13456         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
13457         with !HONOR_NANS and !HONOR_INFINITIES.
13458         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13459
13460 2007-06-12  Tristan Gingold  <gingold@adacore.com>
13461
13462         * gcov.c: Comments updated.
13463         (source_info): Add file_time field.
13464         (source_index): New variable.
13465         (mutiple_files): New variable.
13466         (generate_results): New function extracted from process_file.
13467         (process_file): Save and restore chain of functions, generate
13468         results and free structures only if not merging results.
13469         (release_structures): File names are now freed in create_file_names
13470         (create_file_names): Free previous file names.
13471         (find_source): File date is now read here and modifications in
13472         source files is checked here.
13473         (read_graph_file): Only reverse order of functions for the current
13474         object file.
13475         (make_gcov_file_name): Do not generate long names if input_name is
13476         NULL.
13477         (output_lines): If merging results do not display graph, data and
13478         runs informations.
13479         Checking source file modification is done in find_source.
13480
13481         * doc/gcov.texi: Append an s to sourcefile.
13482
13483 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
13484
13485         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
13486         (forced_nop): New pattern.
13487         * config/bfin/bfin.c: Include "df.h".
13488         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
13489         (bfin_discover_loop): Use df_get_live_in instead of
13490         global_live_at_start.
13491         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
13492         df_analyze when done.
13493         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
13494         the insns.  Use QImode for the final insn in a bundle.  Call
13495         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
13496         gen_nop.
13497         (reorder_var_tracking_notes): New function.
13498         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
13499         update_life_info.  Call df_analyze after scheduling and bundle
13500         generation.  Call reorder_var_tracking_notes if generating these
13501         notes.  Call df_finish_pass at the end.
13502
13503 2007-06-12  Dirk Mueller  <dmueller@suse.de>
13504
13505         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
13506         a comparison, not an assignment.
13507
13508 2007-06-12  Olivier Hainque  <hainque@adacore.com>
13509
13510         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
13511         Request walking the subtrees only, leaving the current is_lhs/val_only
13512         untouched.
13513         (convert_non_local_reference): Likewise.
13514
13515 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
13516
13517         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
13518
13519 2007-06-12  Richard Guenther  <rguenther@suse.de>
13520
13521         PR tree-optimization/15353
13522         PR tree-optimization/31657
13523         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
13524         * timevar.def: Add TV_TREE_IFCOMBINE.
13525         * tree-pass.h (pass_tree_ifcombine): Declare.
13526         * tree-ssa-ifcombine.c: New file.
13527         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
13528         * tree-flow.h (blocks_in_phiopt_order): Declare.
13529         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
13530         (tree-ssa-ifcombine.o): New dependencies.
13531
13532 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
13533
13534         PR rtl-optimization/32293
13535         * combine.c (simplify_if_then_else): Truncate return from
13536         nonzero_bits() to correct mode.
13537
13538 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
13539
13540         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
13541         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
13542
13543 2007-06-11  Diego Novillo  <dnovillo@google.com>
13544
13545         * Makefile.in (reload1.o-warn): Remove.
13546
13547 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
13548
13549         * combine.c (subst): Use reg_overlap_mentioned_p
13550         instead of comparing register numbers directly.
13551
13552 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13553
13554         * reload1.c (mark_home_live_1): Use the mode parameter.
13555
13556 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13557
13558         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
13559         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
13560         word "deferred".
13561         * df-core.c: Ditto.
13562
13563 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
13564
13565         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
13566
13567 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13568
13569         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
13570         from integer registers.
13571         (FP mode splitters): Handle TFmode.
13572
13573 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
13574
13575         * tree-ssa-structalias.c (find_what_p_points_to): Return false
13576         for ref-all pointers that point-to anything.
13577
13578 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
13579
13580         * config/arm/arm.c (arm_output_dwarf_dtprel,
13581         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
13582
13583 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
13584
13585         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
13586         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
13587         to memory moves.
13588
13589 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
13590
13591         * tree.c (signed_or_unsigned_type_for): New.
13592         (unsigned_type_for): Use signed_or_unsigned_type_for.
13593         (signed_type_for): Use signed_or_unsigned_type_for.
13594         * tree.h (signed_or_unsigned_type_for): New.
13595         (get_signed_or_unsigned_type): Remove.
13596         * fold-const.c (fold_negate_expr): Use signed_type_for instead of
13597         lang_hooks.types.signed_type
13598         (size_diffop): Likewise.
13599         (all_ones_mask_p): Likewise.
13600         (build_range_check): Likewise.
13601         (fold_cond_expr_with_comparison): Likewise.
13602         (fold_cond_expr_with_comparison): Likewise.
13603         (unextend): Likewise.
13604         (extract_muldiv_1): Likewise.
13605         (fold_single_bit_test_into_sign_test): Likewise.
13606         (fold_binary): Likewise.
13607         (fold_ternary): Likewise.
13608         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
13609         instead of get_signed_or_unsigned_type.
13610         * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
13611         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
13612         * expr.c (signed_or_unsigned_type_for): Use
13613         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
13614         * langhooks.c (get_signed_or_unsigned_type): Remove.
13615         (lhd_signed_or_unsigned_type): Remove.
13616         * langhooks.h (lang_hooks_for_types): Remove signed_type and
13617         signed_or_unsigned_type.
13618         (lhd_signed_or_unsigned_type): Remove.
13619         * expmed.c (make_tree): Use signed_type_for instead of
13620         lang_hooks.types.signed_type.
13621         * c-common.c (same_scalar_type_ignoring_signedness): Use
13622         c_common_signed_type instead of lang_hooks.types.signed_type.
13623         (c_common_unsigned_type): New.
13624         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
13625         (shorten_compare): Use c_common_unsigned_type instead of
13626         c_common_signed_or_unsigned_type.
13627         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
13628         unsigned_type_for.
13629         * convert.c (convert_to_integer): Use signed_type_for instead of
13630         lang_hooks.types.signed_type.
13631         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
13632         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
13633         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
13634         * c-format.c (check_format_types): Use c_common_unsigned_type
13635         instead of unsigned_type_for.
13636         * c-decl.c (groakdeclarator): Likewise.
13637         * c-typeck.c (convert_for_assignment): Likewise.
13638         * c-common.h (c_common_unsigned_type): New.
13639
13640 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13641
13642         PR target/32280
13643         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
13644         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
13645
13646 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13647
13648         PR middle-end/32279
13649         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
13650         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
13651
13652 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
13653             Sebastian Pop  <sebpop@gmail.com>
13654
13655         * lambda-code.c (remove_iv): New.
13656         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
13657
13658 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
13659
13660         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
13661         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
13662         * tree-ssa-loop-prefetch.c: Include optabs.h.
13663         (FENCE_FOLLOWING_MOVNT): New macro.
13664         (struct mem_ref): Add independent_p and storent_p fields.
13665         (record_ref): Initalize the new fields.
13666         (gather_memory_references_ref): Return true if the reference
13667         could be analysed.
13668         (gather_memory_references): Check whether all memory accesses
13669         in loop were recorded.
13670         (should_issue_prefetch_p): Return false for nontemporal stores.
13671         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
13672         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
13673         (determine_loop_nest_reuse): Detect independent memory references.
13674         (loop_prefetch_arrays): Call mark_nontemporal_stores.
13675         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
13676         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
13677         * config/i386/i386.h (x86_mfence): Declare.
13678         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
13679         * config/i386/i386.c (x86_mfence): New variable.
13680         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
13681
13682         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
13683         * optabs.c (init_optabs): Initialize storent_optab.
13684         * optabs.h (enum optab_index): Add OTI_storent.
13685         (storent_optab): Declare.
13686         * genopinit.c (optabs): Add initialization for storent_optab.
13687         * tree.h (MOVE_NONTEMPORAL): New macro.
13688         * expr.c (expand_assignment, store_expr, store_constructor_field,
13689         store_constructor, store_field, expand_expr_real_1): Propagate
13690         nontemporality of the expanded store.
13691         (emit_storent_insn): New function.
13692         * expr.h (expand_assignment, store_expr): Declaration changed.
13693         * function.c (assign_parm_setup_reg): Pass false as nontemporality
13694         to expand_assignment.
13695         * stmt.c (expand_asm_expr): Ditto.
13696         * calls.c (initialize_argument_information): Pass false as
13697         nontemporality to store_expr.
13698         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
13699         storentsi): New.
13700
13701 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
13702
13703         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
13704         parameter, use it.
13705         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
13706
13707 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
13708
13709         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
13710         and allow DECL_P here.
13711
13712 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
13713
13714         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
13715         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
13716         track of the size of the expression.
13717         * cfghooks.c (merge_blocks): Remove block from loops structure only
13718         after call of the merge_blocks hook.
13719
13720 2007-06-09  Tom Tromey  <tromey@redhat.com>
13721
13722         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
13723         (deprecated_state): Removed.
13724         (start_decl): Update.
13725         (enum deprecated_states): Moved earlier.
13726         (groktypename): Update.
13727         (push_parm_decl): Likewise.
13728         (grokfield): Likewise.
13729         (start_function): Likewise.
13730
13731 2007-06-09  Ian Lance Taylor  <iant@google.com>
13732
13733         PR tree-optimization/32169
13734         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
13735         CONVERT_EXPR, check whether min and max both converted to an
13736         overflow infinity representation.
13737
13738 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
13739
13740         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
13741         not inserted on the edge.
13742
13743 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
13744
13745         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
13746         instructions if they are supported.
13747         (__divsi3, __umodsi3, __modsi3): Likewise.
13748         (__ashldi3, __ashrdi3, __lshrdi3): New.
13749         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
13750
13751 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
13752             Tony Linthicum <tony.linthicum@amd.com>
13753
13754         * doc/invoke.texi: Add fvect-cost-model flag.
13755         * common.opt (fvect-cost-model): New flag.
13756         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
13757         cost fields in stmt_vec_info struct for STMT.
13758         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
13759         fields in stmt_vec_info struct and access functions for the same.
13760         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
13761         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
13762         load, store and vector to scalar operation.
13763         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
13764         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
13765         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
13766         (TARG_VEC_STORE_COST): Define cost of vector store.
13767         (vect_estimate_min_profitable_iters): Define new function.
13768         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
13769         check to evaluate if loop iterations are less than minimum profitable
13770         iterations determined by cost model or minimum vect loop bound defined
13771         by user, whichever is more conservative.
13772         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
13773         run-time check to evaluate if loop iterations are less than minimum
13774         profitable iterations determined by cost model or minimum vect loop
13775         bound defined by user, whichever is more conservative.
13776         (vect_estimate_min_profitable_iterations): New function to estimate
13777         mimimimum iterartions required for vector version of loop to be
13778         profitable over scalar version.
13779         (vect_model_reduction_cost): New function.
13780         (vect_model_induction_cost): New function.
13781         (vect_model_simple_cost): New function.
13782         (vect_cost_strided_group_size): New function.
13783         (vect_model_store_cost): New function.
13784         (vect_model_load_cost): New function.
13785         (vectorizable_reduction): Call vect_model_reduction_cost during
13786         analysis phase.
13787         (vectorizable_induction): Call vect_model_induction_cost during
13788         analysis phase.
13789         (vectorizable_load): Call vect_model_load_cost during analysis phase.
13790         (vectorizable_store): Call vect_model_store_cost during analysis phase.
13791         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
13792         vectorizable_promotion, vectorizable_demotion): Call
13793         vect_model_simple_cost during analysis phase.
13794
13795 2007-06-08  Simon Baldwin  <simonb@google.com>
13796
13797         * reg-stack.c (get_true_reg): Readability change.  Moved default case
13798         label into direct switch statement scope.
13799
13800 2007-06-08  Simon Baldwin  <simonb@google.com>
13801
13802         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
13803         in gcc_assert() with '==' comparison.
13804
13805 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13806
13807         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
13808         TARGET_ABM handling of x86_popcnt variable.
13809
13810 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13811
13812         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
13813         __builtin_copysignq and __builtin_infq built-in functions.
13814
13815 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13816
13817         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
13818         SSE4.2 section.  Correct built-in function names in SSE4A section.
13819
13820 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13821
13822         PR tree-optimization/32243
13823         * tree-vect-transform.c (vectorizable_type_promotion): Move check
13824         for ncopies after ratio check between nunits_out and nunits_in.
13825         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
13826
13827 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
13828
13829         PR tree-optimization/32224
13830         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
13831         vectorization upon a non GIMPLE_MODIFY_STMT.
13832
13833 2007-06-08  Christian Bruel  <christian.bruel@st.com>
13834
13835         PR target/29953
13836         * config/sh/sh.md (doloop_end): New pattern and splitter.
13837         * loop-iv.c (simple_rhs_p): Check for hardware registers.
13838
13839 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
13840
13841         PR middle-end/32209
13842         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
13843         functions.
13844         (verify_dominators): Do not change dominance tree.
13845
13846 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13847
13848         * config/sh/constraints.md: New file.
13849         * config/sh/sh.c: Include tm-constrs.h.
13850         (reg_class_from_letter): Remove.
13851         (prepare_cbranch_operands): Use satisfies_constraint_*
13852         function instead of macro.
13853         (andcosts, broken_move, sh_secondary_reload): Likewise.
13854         * config/sh/predicates.md (trapping_target_operand): Likewise.
13855         (and_operand, arith_operand, arith_reg_or_0_operand,
13856         cmp_operand, logical_operand, target_operand,
13857         ua_address_operand, ua_offset, xor_operand): Likewise.
13858         * config/sh/sh.md: Include constraints.md.
13859         (*movsicc_t_false): Use satisfies_constraint_* function
13860         instead of macro.
13861         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
13862         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
13863         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
13864         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
13865         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
13866         (REG_CLASS_FROM_CONSTRAINT): Remove.
13867         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
13868         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
13869         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
13870         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
13871         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13872         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
13873         function instead of macro.
13874         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
13875         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
13876         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
13877         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
13878         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
13879         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
13880         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
13881         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
13882         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
13883         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
13884         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
13885         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
13886         EXTRA_CONSTRAINT_STR): Likewise.
13887         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
13888
13889 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
13890
13891         * config/i386/darwin.h (STACK_BOUNDARY): Define.
13892
13893 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
13894
13895         PR c++/30759
13896         * c-common.h (flag_cpp0x): Replaced by...
13897         (cxx_dialect): ... this new variable specifying the C++ dialect that
13898         is used.
13899         * c-common.c (flag_cpp0x): Removed.
13900         (cxx_dialect): Defined.
13901         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
13902         cxx_dialect.
13903         * c-opts.c (c_common_post_options): Likewise.
13904         (set_std_cxx98): Set cxx_dialect to cxx98.
13905         (set_std_cxx0x): Set cxx_dialect to cxx0x.
13906
13907 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
13908             Hui-May Chang <hm.chang@apple.com>
13909
13910         * doc/invoke.texi (Darwin Options): Update documentation for
13911         -mmacosx-version-min.
13912         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
13913         * config/darwin-driver.c: New file.
13914         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
13915         * config/t-darwin (darwin-driver.o): New rule.
13916
13917         * config/darwin-c.c (version_as_macro): Ignore low digit.
13918
13919 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
13920
13921         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
13922         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
13923         (CSGNMODE): New mode macro.
13924         (CSGNVMODE): New mode attribute.
13925         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
13926         expander using CSGNMODE mode macro.  Handle TFmode.
13927         (copysign<mode>3_const): Rename from copysignsf3_const and
13928         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
13929         Handle TFmode.
13930         (copysign<mode>3_var): Rename from copysignsf3_var and
13931         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
13932         Handle TFmode.
13933         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
13934         mode macro.  Handle TFmode.
13935         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
13936         (iortf3, *iortf3): Ditto.
13937         (xortf3, *xortf3): Ditto.
13938         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
13939         TFmode and TImode masks.
13940         (ix86_expand_copysign): Expand TFmode copysign insn.
13941         (IX86_BUILTIN_INFQ): New.
13942         (IX86_BUILTIN_FABSQ): Ditto.
13943         (IX86_BUILTIN_COPYSIGNQ): Ditto.
13944         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
13945         [__builtin_fabsq]: Ditto.
13946         [__builtin_copysignq]: Ditto.
13947         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
13948         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
13949         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
13950         ix86_expand_binop_builtin().
13951
13952 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
13953
13954         * config/xtensa/lib1funcs.asm: Clean up whitespace.
13955
13956 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
13957
13958         PR target/31850
13959         * rtl.h (push_to_sequence2): New.
13960         * emit-rtl.c (push_to_sequence2): New.
13961         * function.c (assign_parm_data_all): Add new fields.
13962         (assign_parm_setup_block): Call push_to_sequence2 instead of
13963         push_to_sequence.
13964         (assign_parm_setup_reg): Ditto.
13965         (assign_parm_setup_stack): Ditto.
13966         (assign_parms_unsplit_complex): Ditto.
13967         (assign_parms): Change field name.
13968
13969 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
13970
13971         PR tree-optimization/32220
13972         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
13973         phi node is reached before defining statement.
13974
13975 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13976
13977         PR tree-opt/32231
13978         * tree-vect-transform.c (vectorizable_call): Call update_stmt
13979         after changing the right hand side of the assignment.
13980
13981 2007-06-06  Eric Christopher  <echristo@apple.com>
13982
13983         * config.gcc (i?86-*-darwin*): Remove arch parameter.
13984         (x86_64-*-darwin*): Ditto.
13985         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
13986         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
13987
13988 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
13989
13990         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
13991         coding conventions.
13992         (add_key): Likewise.
13993         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
13994         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
13995         variable names.
13996         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
13997         macros.
13998         (add_cost_one_coalesce): Likewise.
13999         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
14000         variable names. Rename orig to orig_name for consistency.
14001         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
14002         coding conventions.
14003         (cprop_into_successor_phis): Avoid using C++ keywords as variable
14004         names.
14005         (record_equivalences_from_stmt): Likewise.
14006         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
14007         the coding conventions.
14008         (memory_ssa_name_same): Likewise.
14009         (dse_optimize_stmt): Likewise.
14010         (dse_record_phis): Likewise.
14011         (dse_finalize_block): Likewise.
14012         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
14013         keywords as variable names.
14014         (may_move_till): Cast according to the coding conventions.
14015         (force_move_till_expr): Avoid using C++ keywords as variable names.
14016         (force_move_till): Cast according to the coding conventions.
14017         (memref_hash): Likewise.
14018         (memref_eq): Likewise.
14019         (gather_mem_refs_stmt): Likewise.
14020         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
14021         using C++ keywords as variable names.
14022         (idx_find_step): Cast according to the coding conventions.
14023         (idx_record_use): Likewise.
14024         (find_depends): Likewise.
14025         (prepare_decl_rtl): Likewise.
14026         (mbc_entry_hash): Likewise.
14027         (mbc_entry_eq): Likewise.
14028         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
14029         (simplify_replace_tree): Avoid using C++ keywords as variable names.
14030         (idx_infer_loop_bounds): Cast according to the coding conventions.
14031         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
14032         * tree-ssa-math-opts.c (occ_new ): Likwise.
14033         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
14034         macros.
14035         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
14036         variable names.
14037         (add_use_op): Likewise.
14038         (add_vop): Likewise.
14039         (add_vuse_op): Likewise.
14040         (add_vdef_op): Likewise.
14041         (get_expr_operands): Likewise.
14042         (push_stmt_changes): Use type safe memory macros.
14043         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
14044         keywords as variable names.
14045         (conditional_replacement): Likewise.
14046         (minmax_replacement): Likewise.
14047         (abs_replacement): Likewise.
14048         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
14049         coding conventions.
14050         (insert_fake_stores): Avoid using C++ keywords as variable names.
14051         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
14052         conventions.
14053         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
14054         (heapvar_insert): Use type safe memory macros.
14055         (new_var_info): Cast according to the coding conventions.
14056         (new_constraint): Likewise.
14057         (remove_preds_and_fake_succs): Use type safe memory macros.
14058         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
14059         conventions.
14060         (thread_single_edge): Likewise.
14061         (thread_through_loop_header): Likewise.
14062
14063 2007-06-06  Eric Christopher  <echristo@apple.com>
14064
14065         * config/i386/i386.c (override_options): Move handling
14066         of TARGET_SUBTARGET* earlier.
14067
14068 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
14069
14070         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
14071         use %n on printf.
14072
14073 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
14074
14075         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
14076         emited outside of basic block.
14077         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
14078         the created blocks.
14079         * rtl.h (delete_insn_chain): Declaration changed.
14080         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
14081         non-removed insns.
14082         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
14083         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
14084         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
14085         to delete_insn_chain.
14086         (rtl_verify_flow_info_1): Verify that the insns in header and footer
14087         do not have bb field set.
14088         (rtl_verify_flow_info): Verify that insns between basic blocks do not
14089         have bb field set.
14090         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
14091         * cfgcleanup.c (try_optimize_cfg): Ditto.
14092
14093 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
14094
14095         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
14096         (lambda_body_vector_new): Use type safe memory macros.
14097         (lambda_linear_expression_new): Likewise.
14098         (lambda_loopnest_new): Likewise.
14099         (lambda_lattice_new): Likewise.
14100         (replace_uses_equiv_to_x_with_y): Cast according to the coding
14101         conventions. Use type safe memory macros.
14102         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
14103         (lambda_body_vector_s): Likewise.
14104         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
14105         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
14106
14107 2007-06-06  Richard Guenther  <rguenther@suse.de>
14108
14109         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
14110         if we need to schedule cfg_cleanup.
14111         (tree_ssa_forward_propagate_single_use_vars): Do so.
14112
14113 2007-06-06  Ian Lance Taylor  <iant@google.com>
14114
14115         * fold-const.c (merge_ranges): If range_successor or
14116         range_predecessor fail, just return 0.
14117
14118 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
14119
14120         PR tree-optimization/32216
14121         * tree-vectorizer.c (supportable_widening_operation): Determine
14122         signedness of FIX_TRUNC_EXPR from output operand.
14123         (supportable_narrowing_operation): Ditto.
14124         * tree-vect-generic.c (expand_vector_operations_1): Determine
14125         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
14126         from input operand.
14127
14128 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
14129
14130         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
14131         (struct pta): ...from here. Change flags to unsigned to avoid
14132         excessive casting (as it is used as a bit mask).
14133         (override_options): Add casts according to the coding convenventions.
14134         (x86_64_elf_unique_section): Likewise.
14135         (examine_argument): Avoid using C++ keywords as variable names.
14136         (construct_container): Likewise.
14137         (legitimize_pic_address): Likewise.
14138         (get_dllimport_decl): Cast according to the coding conventions. Use
14139         type safe memory macros.
14140         (legitimize_address): Cast according to the coding conventions.
14141         (emit_i387_cw_initialization): Corrected the type of slot to enum
14142         ix86_stack_slot.
14143         (ix86_init_machine_status): Use type safe memory macros.
14144         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
14145         (bdesc_pcmpistr): Likewise.
14146         (bdesc_crc32): Likewise.
14147         (bdesc_sse_3arg): Likewise.
14148         (bdesc_2arg): Likewise.
14149         (bdesc_1arg): Likewise.
14150         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
14151         (ix86_expand_sse_pcmpistr): Likewise.
14152         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
14153         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
14154         int to match the langhook definition.
14155         (ix86_builtin_conversion): Change the type of code to unsigned init to
14156         match the langhook definition.
14157         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
14158         names.
14159         (ix86_preferred_output_reload_class): Likewise.
14160         (ix86_cannot_change_mode_class): Likewise.
14161         (ix86_memory_move_cost): Likewise.
14162         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
14163         avoid excessive casting later on.
14164         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
14165
14166 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
14167
14168         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
14169         as flags setting insn.
14170         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
14171
14172 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
14173
14174         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
14175         (UNSPEC_ROUND): New.
14176         ("sse4_1_round<mode>2"): New insn pattern.
14177         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
14178         SSE4.1 targets.
14179         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
14180         expander using SSEMODEF mode macro.  Expand using
14181         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
14182         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
14183         expander using SSEMODEF mode macro.  Expand using
14184         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
14185         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
14186         expander using SSEMODEF mode macro.  Expand using
14187         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
14188         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
14189         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
14190         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
14191         UNSPEC_ROUNDS.
14192
14193 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
14194             Sebastian Pop  <sebpop@gmail.com>
14195
14196         * lambda.h (build_linear_expr): New.
14197         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
14198         Use build_linear_expr, call fold and force_gimple_operand.
14199         (lambda_loopnest_to_gcc_loopnest): Check that there is
14200         something to insert.
14201         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
14202
14203 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
14204
14205         PR preprocessor/23479
14206         * doc/extend.texi: Document the 0b-prefixed binary integer
14207         constant extension.
14208
14209 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
14210
14211         PR tree-optimization/32215
14212         * tree-vectorizer.c (supportable_widening_operation): Return false
14213         for unsupported FIX_TRUNC_EXPR tree code.
14214         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
14215
14216 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
14217
14218         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
14219         register on SPE targets.  Change documentation to reflect
14220         reality.
14221         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
14222         Change FIXED_SCRATCH to 14 and document why we're keeping r14
14223         out of the register allocation pool.
14224         (rs6000_reg_live_or_pic_offset_p): New function.
14225         (rs6000_emit_prologue): Move the actual saving of LR up to free
14226         r0 for holding r11.  Split saving of SPE 64-bit registers into
14227         its own case.  Ensure that offsets will always be in-range for
14228         'evstdd' by using r11 as a scratch register to point at the start
14229         of the SPE save area.  Save r11 if necessary, as it is the static
14230         chain register.
14231         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
14232         into its own case.  Ensure that offsets will always be in-range
14233         for 'evldd' by using r11 as a scratch register to point at the
14234         start of the SPE save area.  Also adjust r11 when restoring
14235         the stack pointer to compensate for pre-loading r11.
14236
14237 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
14238
14239         * cfg.c (init_flow): Use type safe memory macros.
14240         (alloc_block): Likewise.
14241         (unchecked_make_edge): Likewise.
14242         (dump_flow_info): Avoid using C++ keywords as variable names.
14243         (copy_original_table_clear): Cast according to the coding conventions.
14244         (copy_original_table_set): Likewise.
14245         * cfgexpand (label_rtx_for_bb): Likewise.
14246         (expand_gimple_basic_block): Likewise.
14247         * cfghooks.c (dump_bb): Likewise.
14248         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
14249         variable names.
14250         (lv_add_condition_to_bb): Likewise.
14251         * cfglayout (relink_block_chain): Cast according to the coding
14252         conventions.
14253         (fixup_reorder_chain): Likewise.
14254         (fixup_fallthru_exit_predecessor): Likewise.
14255         * cfgloop.c (glb_enum_p): Likewise.
14256         (get_exit_description): Likewise.
14257         (dump_recorded_exit): Likewise.
14258         * cfgloop.h (enum loop_estimation): Move out of struct scope...
14259         (struct loop): ... from here.
14260         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
14261         conventions.
14262         * cfgrtl.c (rtl_create_basic_block): Likewise.
14263         (rtl_split_block): Likewise.
14264         (rtl_dump_bb): Likewise.
14265         (cfg_layout_split_block): Likewise.
14266         (init_rtl_bb_info): Use typesafe memory macros.
14267
14268         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
14269         * graphds.h: Updated all usages of edge to graph_edge.
14270         * graphds.c: Likewise.
14271         * cfgloopanal.c: Likewise.
14272
14273 2007-06-05  Ian Lance Taylor  <iant@google.com>
14274
14275         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
14276         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
14277         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
14278         expression.
14279         (test_for_singularity): Likewise.
14280
14281 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
14282
14283         * config/i386/constraints.md ("Y2"): Replaced by ...
14284         ("Yt"): This.
14285         * config/i386/i386.md: Likewise.
14286         * config/i386/mmx.md: Likewise.
14287         * config/i386/sse.md: Likewise.
14288
14289 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
14290
14291         * config/i386/constraints.md ("z"): Replaced by ...
14292         ("Y0"): This.
14293         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
14294         (sse4_1_blendvps): Likewise.
14295         (sse4_1_pblendvb): Likewise.
14296         (sse4_2_pcmpestr): Likewise.
14297         (sse4_2_pcmpestrm): Likewise.
14298         (sse4_2_pcmpestr_cconly): Likewise.
14299         (sse4_2_pcmpistr): Likewise.
14300         (sse4_2_pcmpistrm): Likewise.
14301         (sse4_2_pcmpistr_cconly): Likewise.
14302
14303 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
14304
14305         * matrix-reorg.c (transform_access_sites): Fix computation.
14306         (transform_allocation_sites): Same.
14307
14308 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
14309
14310         * config/i386/i386.c (override_options): Use
14311         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
14312
14313 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
14314
14315         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
14316         (nonimm_not_xmm0_operand): Ditto.
14317         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
14318         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
14319         as operand[2] predicate.  Require "z" class XMM register for
14320         operand[3].  Adjust asm template.
14321         ("sse4_1_blendvpd"): Ditto.
14322         ("sse4_1_pblendvb"): Ditto.
14323         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
14324         force op2 into xmm0 register for variable blend instructions.
14325
14326 2007-06-04  Tom Tromey  <tromey@redhat.com>
14327
14328         * c-tree.h (start_enum): Update.
14329         (build_enumerator): Likewise.
14330         * c-decl.c (enum_next_value): Removed.
14331         (enum_overflow): Likewise.
14332         (start_enum): Add c_enum_contents argument.  Don't use globals.
14333         (build_enumerator): Likewise.
14334         * c-tree.h (struct c_enum_contents): New struct.
14335
14336 2007-06-04  Tom Tromey  <tromey@redhat.com>
14337
14338         * c-common.c (c_common_get_alias_set): Fix indentation.
14339
14340 2007-06-04  Ian Lance Taylor  <iant@google.com>
14341
14342         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
14343         to overflow, reduce overflow infinity to regular infinity.
14344         (vrp_var_may_overflow): New static function.
14345         (vrp_visit_phi_node): Check vrp_var_may_overflow.
14346
14347 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
14348
14349         * stor-layout.c (layout_type): Remove duplicate code.
14350
14351 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
14352
14353         PR c/32191
14354         * c-common.c (c_define_builtins): Call targetm.init_builtins ()
14355         before build_common_builtin_nodes ().
14356
14357 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
14358
14359         PR target/31733
14360         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
14361
14362 2007-06-04  Jan Hubicka  <jh@suse.cz>
14363
14364         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
14365         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
14366         instead of _stat version.
14367
14368 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
14369
14370         PR tree-optimization/32194
14371         * tree-predcom.c (determine_offset): Check that both references have
14372         the same type.
14373
14374 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
14375
14376         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
14377         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
14378         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
14379         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
14380         Add argument to iterate_fix_dominators call.
14381         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
14382         * gcse.c (hoist_code): Change domby to vector.
14383         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
14384         Add argument to iterate_fix_dominators call.
14385         * loop-doloop.c (doloop_modify): Changed recount_dominator to
14386         recompute_dominator.
14387         * lambda-code.c (perfect_nestify): Ditto.
14388         * cfgloopanal.c: Include graphds.h.
14389         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
14390         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
14391         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
14392         add_edge call.
14393         * graphds.c: New file.
14394         * graphds.h: New file.
14395         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
14396         (get_dominated_by, get_dominated_by_region): Change return type to
14397         vector.
14398         (verify_dominators): Recompute all dominators and compare the results.
14399         (recount_dominator): Renamed to ...
14400         (recompute_dominator): ... this.  Do not check that the block is
14401         dominated by entry.
14402         (iterate_fix_dominators): Reimplemented.
14403         (prune_bbs_to_update_dominators, root_of_dom_tree,
14404         determine_dominators_for_sons): New functions.
14405         * et-forest.c (et_root): New function.
14406         * et-forest.h (et_root): Declare.
14407         * Makefile.in (graphds.o): Add.
14408         (cfgloopanal.o): Add graphds.h dependency.
14409         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
14410         * basic-block.h (get_dominated_by, get_dominated_by_region,
14411         iterate_fix_dominators): Declaration changed.
14412         (recount_dominator): Renamed to ...
14413         (recompute_dominator): ... this.
14414         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
14415         (thread_through_all_blocks): Do not free dominance info.
14416
14417 2007-06-03  Andreas Schwab  <schwab@suse.de>
14418
14419         * config/m68k/m68k.c (override_options): Don't override
14420         REAL_MODE_FORMAT.
14421         * config/m68k/m68k-modes.def (SF, DF): Define to use
14422         motorola_single_format and motorola_double_format, resp.
14423         * real.c (motorola_single_format): Renamed from
14424         coldfire_single_format.
14425         (motorola_double_format): Renamed from coldfire_double_format.
14426         (encode_ieee_extended): Generate a proper canonical NaN image
14427         respecting canonical_nan_lsbs_set.
14428         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
14429         true.
14430         * real.h: Adjust declarations.
14431
14432 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
14433
14434         PR target/32163
14435         * config/sh/sh.md (symGOT_load): Don't schedule insns when
14436         the symbol is generated with the stack protector.
14437
14438 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
14439
14440         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
14441         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
14442         "interrupt".
14443         * doc/extend.texi (interrupt): Mention m68k.
14444
14445 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
14446
14447         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
14448         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
14449         (ix86_expand_sse_pcmpestr): Do not check operands for
14450         "register_operand", when insn operand predicate is "register_operand".
14451         (ix86_expand_sse_pcmpistr): Ditto.
14452
14453 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14454             Uros Bizjak  <ubizjak@gmail.com>
14455
14456         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
14457         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
14458         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
14459         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
14460         * config/i386/constraints.md ("z"): New register constraint
14461         for members of SSE_FIRST_REG class.
14462         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
14463         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
14464         SSE_FIRST_REG class.
14465         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
14466         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
14467         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
14468         (IX86_BUILTIN_PCMPESTRM128): Likewise.
14469         (IX86_BUILTIN_PCMPESTRA128): Likewise.
14470         (IX86_BUILTIN_PCMPESTRC128): Likewise.
14471         (IX86_BUILTIN_PCMPESTRO128): Likewise.
14472         (IX86_BUILTIN_PCMPESTRS128): Likewise.
14473         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
14474         (IX86_BUILTIN_PCMPISTRI128): Likewise.
14475         (IX86_BUILTIN_PCMPISTRM128): Likewise.
14476         (IX86_BUILTIN_PCMPISTRA128): Likewise.
14477         (IX86_BUILTIN_PCMPISTRC128): Likewise.
14478         (IX86_BUILTIN_PCMPISTRO128): Likewise.
14479         (IX86_BUILTIN_PCMPISTRS128): Likewise.
14480         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
14481         (struct builtin_description): Change "flag" field to unsigned.
14482         (bdesc_pcmpestr): New builtin description table.
14483         (bdesc_pcmpistr): Likewise.
14484         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
14485         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
14486         Initialize pcmp[ei]str[im] insns for SSE4.2.
14487         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
14488         (ix86_expand_sse_pcmpistr): Likewise.
14489         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
14490         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
14491         (UNSPEC_PCMPISTR): Likewise.
14492         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
14493         (sse4_2_pcmpestri):New isns pattern.
14494         (sse4_2_pcmpestrm): Likewise.
14495         (sse4_2_pcmpestr_cconly): Likewise.
14496         (sse4_2_pcmpistr): New insn patern and splitter.
14497         (sse4_2_pcmpistri):New isns pattern.
14498         (sse4_2_pcmpistrm): Likewise.
14499         (sse4_2_pcmpistr_cconly): Likewise.
14500         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
14501         in SSE4.2.
14502
14503 2007-06-01  David Daney  <ddaney@avtrex.com>
14504
14505         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
14506         LOADGP_ABSOLUTE and not binds_local_p.
14507
14508 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
14509
14510         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
14511
14512 2007-06-01  Ian Lance Taylor  <iant@google.com>
14513
14514         * tree-vrp.c (compare_name_with_value): Always set
14515         used_strict_overflow if we get a result from the variable itself.
14516
14517 2007-06-01  Ian Lance Taylor  <iant@google.com>
14518
14519         PR rtl-optimization/31455
14520         * lower-subreg.c (find_decomposable_subregs): Don't decompose
14521         subregs which have a cast between modes which are not tieable.
14522
14523 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
14524
14525         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
14526         breaks after return statements.
14527
14528 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14529
14530         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
14531         only after no_new_pseudos.
14532
14533 2007-05-31  Eric Christopher  <echristo@apple.com>
14534
14535         * expr.c (convert_move): Assert that we don't have a BLKmode
14536         operand.
14537         (store_expr): Handle BLKmode moves by calling emit_block_move.
14538
14539 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
14540
14541         * c-typeck.c (build_indirect_ref): Include type in error message.
14542         (build_binary_op): Pass types to binary_op_error.
14543         * c-common.c (binary_op_error): Take two type arguments, print out
14544         types with error.
14545         * c-common.h (binary_op_error): Update prototype.
14546
14547 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14548
14549         * config/i386/i386.c: Correct coments on -mno-sse4.
14550
14551 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14552
14553         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
14554         (x86_64-*-*): Likewise.
14555         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
14556         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
14557         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14558         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
14559         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14560         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14561         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14562         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14563         (OPTION_MASK_ISA_SSE4): Likewise.
14564         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
14565         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14566         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
14567         (override_options): Support SSE4.2.
14568         (ix86_build_const_vector): Support SImode and DImode.
14569         (ix86_build_signbit_mask): Likewise.
14570         (ix86_expand_int_vcond): Support V2DImode.
14571         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
14572         (IX86_BUILTIN_CRC32HI): Likewise.
14573         (IX86_BUILTIN_CRC32SI): Likewise.
14574         (IX86_BUILTIN_CRC32DI): Likewise.
14575         (IX86_BUILTIN_PCMPGTQ): Likewise.
14576         (bdesc_crc32): Likewise.
14577         (bdesc_sse_3arg): Likewise.
14578         (ix86_expand_crc32): Likewise.
14579         (ix86_init_mmx_sse_builtins): Support SSE4.2.
14580         (ix86_expand_builtin): Likewise.
14581         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
14582         __SSE4_2__ for -msse4.2.
14583         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
14584         (CRC32MODE): Likewise.
14585         (crc32modesuffix): Likewise.
14586         (crc32modeconstraint): Likewise.
14587         (sse4_2_crc32<mode>): Likewise.
14588         (sse4_2_crc32di): Likewise.
14589         * config/i386/i386.opt (msse4.2): New for SSE4.2.
14590         (msse4): Likewise.
14591         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
14592         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
14593         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
14594         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
14595         (vcondu<mode>): Likewise.
14596         * doc/extend.texi: Document SSE4.2 built-in functions.
14597         * doc/invoke.texi: Document -msse4.2/-msse4.
14598
14599 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
14600
14601         PR tree-optimization/32160
14602         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
14603         variable as gimple reg.
14604         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
14605
14606 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
14607
14608         * gcc.c (main): Don't consider linker options when issuing the
14609         warning about a linker input file not being used.
14610
14611 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14612
14613         * tree-vrp.c (compare_names): Initialize sop.
14614
14615 2007-05-30  Dirk Mueller  <dmueller@suse.de>
14616
14617         * cgraphunit.c (cgraph_analyze_function): Remove
14618         computation of inline parameters.
14619
14620 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
14621
14622         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
14623
14624 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
14625
14626         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
14627         Add vx-common.h.  Include vxworks.h between vx-common.h and
14628         arm/vxworks.h.
14629         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
14630         redefining.
14631         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
14632         (TARGET_ASM_DESTRUCTOR): Likewise.
14633         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
14634         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
14635         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
14636         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
14637         (VXWORKS_ENDIAN_SPEC): Define.
14638         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
14639         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
14640         VXWORKS_* equivalents.
14641         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
14642         (ASM_FILE_START): Delete.
14643         (TARGET_VERSION): Reformat.
14644         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
14645         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
14646         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
14647         (FPBIT, DPBIT): Define.
14648         (fp-bit.c, dp-bit.c): New rules.
14649         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
14650         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
14651         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
14652         * config/arm/arm.h: Include vxworks-dummy.h.
14653         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
14654         Mark with ATTRIBUTE_UNUSED.
14655         (arm_override_options): Do not allow VxWorks RTP PIC to be used
14656         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
14657         make it incompatible with -msingle-pic-base.
14658         (arm_function_ok_for_sibcall): Return false for calls that might
14659         go through a VxWorks PIC PLT entry.
14660         (require_pic_register): New function, split out from...
14661         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
14662         for VxWorks RTPs.
14663         (arm_load_pic_register): Handle the VxWorks RTP initialization
14664         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
14665         (arm_emit_call_insn): New function.
14666         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
14667         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
14668         (pic_offset_arm): New pattern.
14669         (call, call_value): Use arm_emit_call_insn.
14670         (call_internal, call_value_internal): New expanders.
14671         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
14672         VxWorks unless __PIC__.
14673
14674 2007-05-30  Eric Christopher  <echristo@gmail.com>
14675
14676         * genrecog.c: Include regs.h in generated file.
14677         * genemit.c: Ditto. Fix up formatting.
14678         * config/mn10300/constraints.md: New.
14679         * config/mn10300/mn10300.md: Include.
14680         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
14681         Fix up for removed macro.
14682         * config/mn10300/predicates.md (call_address_operand): Ditto.
14683         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
14684         (CONST_OK_FOR_I): Ditto.
14685         (CONST_OK_FOR_J): Ditto.
14686         (CONST_OK_FOR_K): Ditto.
14687         (CONST_OK_FOR_L): Ditto.
14688         (CONST_OK_FOR_M): Ditto.
14689         (CONST_OK_FOR_N): Ditto.
14690         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
14691         (OK_FOR_Q): Ditto.
14692         (OK_FOR_R): Ditto.
14693         (OK_FOR_T): Ditto.
14694         (EXTRA_CONSTRAINT): Ditto.
14695
14696 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
14697
14698         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
14699         Remove defines.
14700         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
14701         OPTION_MASK_ISA_64BIT.
14702         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
14703
14704 2007-05-30  Richard Guenther  <rguenther@suse.de>
14705
14706         PR middle-end/32152
14707         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
14708         types for comparison.
14709         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
14710         with original typed arguments.
14711         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
14712
14713 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
14714
14715         PR tree-optimization/31769
14716         * except.c (duplicate_eh_regions): Clear prev_try if
14717         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
14718
14719 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
14720
14721         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
14722         * tree-ssa-sink.c (statement_sink_location): Return basic block and
14723         bsi of the location where statements should be inserted.
14724         (sink_code_in_bb): Take bsi from statement_sink_location.
14725         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
14726         instead of bsi_start.
14727         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
14728         bsi_insert_after.
14729         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
14730         (bsi_move_before): Document inconsistency with bsi_move_after.
14731         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
14732
14733 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
14734
14735         * config/i386/i386.h (TARGET_ABM): New define.
14736         (TARGET_POPCNT): Ditto.
14737         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
14738         New temporary defines to redefine from OPTION_ISA_* defines.
14739         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
14740         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
14741         (ix86_isa_flags): New extern int declaration.
14742         (TARGET_SUBTARGET_DEFAULT): New define.
14743         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
14744         (TARGET_SUBTARGET32_DEFAULT): Ditto.
14745         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
14746         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
14747         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
14748         * config/i386/darwin.h: Change TARGET_64BIT define to
14749         OPTION_ISA_64BIT.
14750
14751         * config/i386/i386.opt (m3dnowa): Define as undocumented option
14752         using existing "ix86_isa_flags" varible.
14753         (m32, m64): Use existing "ix86_isa_flags" variable.
14754         (mmmx, m3dnow): Ditto.
14755         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
14756         (mabm): Define as non-negative option using "x86_abm" variable.
14757         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
14758
14759         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
14760         Rewrite feature test bitmap.
14761         (ix86_isa_flags): New initialized global int varible.
14762         (ix86_isa_flags_explicit): New static int variable.
14763         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
14764         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
14765         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
14766         target_flags_explicit.
14767         (override_options): Remove "target_enable" and "target_disable" fields
14768         from "struct ptt". Update processor_target_table accordingly. Remove
14769         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
14770         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
14771         "target_flags" and "ix86_isa_flags_explicit" instead of
14772         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
14773         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
14774         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
14775         to true when either of PTA_POPCNT or PTA_ABM is set in
14776         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
14777         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
14778         processor_alias_table flags entry.  Remove handling of
14779         "target_enable" and "target_disable" fields of processor_target_table.
14780         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
14781         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
14782         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
14783         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
14784         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
14785         "target_flags".
14786         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
14787
14788 2007-05-29  David Daney  <ddaney@avtrex.com>
14789
14790         PR gcc/31975
14791         * config/mips/mips.c (mips_output_mi_thunk): Emit
14792         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
14793
14794 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
14795         * config/i386/i386.c (ix86_function_regparm): Added checking of
14796         ix86_force_align_arg_pointer to determine the number of
14797         register parameters.
14798
14799 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
14800
14801         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
14802         (SET_DR_MISALIGNMENT): New.
14803         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
14804         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
14805         Use SET_DR_MISALIGNMENT.
14806         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
14807         pointer.
14808         * tree-data-ref.c (create_data_ref, compute_all_dependences,
14809         find_loop_nest): Export.
14810         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
14811         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
14812         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
14813         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
14814         New macros.
14815         (struct mem_ref): Add field reuse_distance.
14816         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
14817         Initialize reuse_distance field.
14818         (issue_prefetch_ref): Select temporality of prefetch according to
14819         reuse_distance.
14820         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
14821         self_reuse_distance, determine_loop_nest_reuse): New functions.
14822         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
14823         (tree_ssa_prefetch_arrays): Dump L2 cache size.
14824         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
14825         dependency.
14826
14827 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
14828
14829         * tree-ssa-alias.c: Add aliasing overview.
14830
14831 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
14832             Danny Smith  <dannysmith@users.sourceforge.net>
14833
14834         PR target/29498
14835         * config/i386/t-crtfm: Compile crtfastmath.o with
14836         -minline-all-stringops.
14837         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
14838         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
14839
14840 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14841
14842         * doc/md.texi: Document constraints on HP PA-RISC.
14843
14844         * pa/constraints.md: New file.
14845         * pa.md: Include constraints.md.
14846         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
14847         (integer_store_memory_operand, ldil_cint_p): New functions.
14848         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
14849         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
14850         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
14851         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
14852         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
14853
14854 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
14855
14856         PR c/31339
14857         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
14858         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
14859         case POSTDECREMENT_EXPR>): Return the error_mark_node
14860         if either the real or imaginary parts would an
14861         error_mark_node.
14862
14863 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
14864
14865         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
14866         name when we remove it from a call.
14867
14868 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
14869
14870         * targhooks.c (default_narrow_bitfield): Remove.
14871         * targhooks.h: Remove the prototype for
14872         default_narrow_bitfield.
14873
14874         * langhooks-def.h: Remove the prototype for
14875         hook_get_alias_set_0.
14876         * langhooks.c (hook_get_alias_set_0): Remove.
14877
14878         * global.c (EXECUTE_IF_CONFLICT): Remove.
14879
14880 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14881
14882         PR tree-opt/32100
14883         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
14884         return true when truth_value_p is true and the type
14885         is of signed:1.
14886
14887 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
14888
14889         * doc/install.texi (Prerequisites): We no longer require Autoconf
14890         2.13 for the top-level.
14891
14892 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
14893
14894         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
14895         memory access via x86_expand_vector_move_misalign() only for
14896         TImode values on 32-bit targets.
14897
14898 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
14899
14900         * matrix-reorg.c: New file. Implement matrix flattening and
14901         transposing optimization.
14902         * tree-pass.h: Add matrix reorg pass.
14903         * common.opt: Add fipa-mreorg flag.
14904         * Makefile.in: Add matrix-reorg.c.
14905         * passes.c: Add matrix reorg pass.
14906         * varpool.c (add_new_static_var): New function.
14907         * cgraph.h (add_new_static_var): Declare.
14908
14909 2007-05-27  Eric Christopher  <echristo@apple.com>
14910
14911         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
14912         sp_offset depending on stack size. Save r12 depending
14913         on registers we're saving later.
14914         (rs6000_emit_epilogue): Update sp_offset depending only
14915         on stack size.
14916
14917 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
14918
14919         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
14920         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14921         * ifcvt.c (if_convert): Ditto.
14922         * tree-ssa-threadupdate.c (thread_block): Ditto.
14923         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
14924         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
14925         verify_loop_closed_ssa): Check number_of_loops instead of
14926         current_loops.
14927         * predict.c (tree_estimate_probability): Ditto.
14928         * tree-if-conv.c (main_tree_if_conversion): Ditto.
14929         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
14930         * modulo-sched.c (sms_schedule): Ditto.
14931         * tree-scalar-evolution.c (scev_const_prop): Ditto.
14932         (scev_finalize): Do not do anything if scev analysis was not
14933         initialized.
14934         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
14935         current_loops == NULL.
14936         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
14937         * loop-init.c (loop_optimizer_init): Do not free current_loops when
14938         there are no loops.
14939         (loop_optimizer_finalize): Assert that loops were analyzed.
14940         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
14941         rtl_doloop): Check number_of_loops instead of current_loops.
14942         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
14943         current_loops == NULL.
14944         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
14945         gate_tree_vectorize tree_linear_transform, check_data_deps,
14946         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
14947         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
14948         Check number_of_loops instead of current_loops.
14949         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
14950         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
14951         free loops if available.
14952         (execute_pre): Do not pass do_fre to fini_pre.
14953
14954 2007-05-27  Tobias Burnus  <burnus@net-b.de>
14955
14956         PR middle-end/32083
14957         * real.c (mpfr_from_real): Fix sign of -Inf.
14958
14959 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14960
14961         * tree-vect-transform.c (vectorizable_conversion): Initialize
14962         tree_code variables to ERROR_MARK.
14963         (vectorizable_type_demotion): Likewise.
14964         (vectorizable_type_promotion): Likewise.
14965
14966 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
14967
14968         PR target/32065
14969         * config/i386/i386.md (movti): Handle push operands via
14970         ix86_expand_push().
14971
14972 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
14973
14974         * basic-block.h: Remove the prototype for merge_seq_blocks.
14975         * cfgcleanup.c (merge_seq_blocks): Remove.
14976
14977         * tree-flow.h: Remove the prototype for is_aliased_with.
14978         * tree-ssa-alias.c (is_aliased_with): Remove.
14979
14980 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14981
14982         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
14983
14984         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
14985
14986         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
14987         ix86_expand_sse4_unpack if SSE4.1 is enabled.
14988         (vec_unpacks_hi_v16qi): Likewise.
14989         (vec_unpacku_lo_v16qi): Likewise.
14990         (vec_unpacks_lo_v16qi): Likewise.
14991         (vec_unpacku_hi_v8hi): Likewise.
14992         (vec_unpacks_hi_v8hi): Likewise.
14993         (vec_unpacku_lo_v8hi): Likewise.
14994         (vec_unpacks_lo_v8hi): Likewise.
14995         (vec_unpacku_hi_v4si): Likewise.
14996         (vec_unpacks_hi_v4si): Likewise.
14997         (vec_unpacku_lo_v4si): Likewise.
14998         (vec_unpacks_lo_v4si): Likewise.
14999
15000 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
15001
15002         * c-typeck.c, config/arm/arm.c, config/darwin.c,
15003         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
15004         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
15005         follow spelling conventions in various
15006         warning/error/diagnostic messages.
15007
15008         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
15009         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
15010         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
15011         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
15012         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
15013         * doc/tm.texi: Follow spelling conventions.
15014
15015 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15016
15017         PR tree-opt/32090
15018         * tree-ssa-forwprop.c
15019         (forward_propagate_addr_into_variable_array_index): Remove
15020         the lhs argument.  Use the type of def_rhs instead of lhs.
15021         (forward_propagate_addr_expr_1): Update use of
15022         forward_propagate_addr_into_variable_array_index.
15023
15024 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
15025             Nigel Stephens  <nigel@mips.com>
15026
15027         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
15028         function attributes, "far" being an alias for "long_call".
15029         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
15030         (mips_near_type_p, mips_far_type_p): New.
15031         (mips_comp_type_attributes): New function to check that attributes
15032         attached to a function type are compatible.
15033         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
15034         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
15035         to the target function of the thunk.
15036         (mips_encode_section_info): Check for "near" and "far" function
15037         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
15038
15039         * config/mips/predicates.md (const_call_insn_operand): Test only
15040         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
15041
15042         * doc/extend.texi (Function Attributes): Document MIPS "near" and
15043         "far" attributes.
15044
15045         * testsuite/gcc.target/mips/near-far-1.c: New test case.
15046         * testsuite/gcc.target/mips/near-far-2.c: New test case.
15047         * testsuite/gcc.target/mips/near-far-3.c: New test case.
15048         * testsuite/gcc.target/mips/near-far-4.c: New test case.
15049
15050 2007-05-25  Eric Christopher  <echristo@apple.com>
15051
15052         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
15053         to x86-darwin configurations.
15054         * config/i386/t-darwin: Add softfp support.
15055         * config/i386/t-darwin64: Ditto.
15056         * config/i386/sfp-machine.h: If mach then don't use
15057         aliasing, emit a stub to call.
15058
15059 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
15060
15061         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
15062         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
15063         tree-predcom.c, tree-ssa-alias-warnings.c,
15064         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
15065         comment typos.  Follow spelling conventions.
15066         * doc/cpp.texi, doc/invoke.texi: Fix typos.
15067
15068 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
15069
15070         PR target/32065
15071         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
15072         constants into memory.  Expand unaligned memory references for
15073         SSE modes via x86_expand_vector_move_misalign() function.
15074
15075 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
15076
15077         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
15078         "memory" attribute for "sseishft" type insn without operands[2].
15079
15080 2007-05-25  Dirk Mueller  <dmueller@suse.de>
15081             Marcus Meissner <meissner@suse.de>
15082
15083         * doc/extend.texi (alloc_size): New attribute.
15084         * c-common.c (handle_alloc_size_attribute): New.
15085         * tree-object-size.c (alloc_object_size): Use alloc_size
15086         attribute, if available.
15087
15088 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15089
15090         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
15091         with MASK_SSE2.
15092         (__builtin_ia32_vec_ext_v2di): Likewise.
15093         (__builtin_ia32_vec_ext_v4si): Likewise.
15094         (__builtin_ia32_vec_ext_v8hi): Likewise.
15095         (__builtin_ia32_vec_ext_v16qi): Likewise.
15096         (__builtin_ia32_vec_set_v8hi): Likewise.
15097
15098 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15099
15100         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
15101
15102 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
15103
15104         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
15105         (arm_is_longcall_p): Rename to...
15106         (arm_is_long_call_p): ...this.  Take a single tree argument and
15107         return a bool.
15108         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
15109         (CUMULATIVE_ARGS): Remove call_cookie.
15110         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
15111         (ENCODED_LONG_CALL_ATTR_P): Delete.
15112         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
15113         LONG_CALL_FLAG_CHAR cases.
15114         (ARM_DECLARE_FUNCTION_SIZE): Delete.
15115         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
15116         ARM_DECLARE_FUNCTION_SIZE.
15117         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
15118         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
15119         (arm_encode_call_attribute, current_file_function_operand): Delete.
15120         (arm_function_in_section_p): New function.
15121         (arm_is_longcall_p): Rename to...
15122         (arm_is_long_call_p): ...this.  Take the target function as a single
15123         argument and return a bool.  Do not rely on call cookies.  Check
15124         whether the target symbol is in the same section as the current
15125         function, not just the same compilation unit.
15126         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
15127         (arm_encode_section_info): Don't encode a call type.
15128         * config/arm/arm.md (call, call_value): Update calls to
15129         arm_is_long(_)call_p.  Simplify logic.
15130         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
15131         Update calls to arm_is_long(_)call_p.
15132
15133 2007-05-25  Richard Guenther  <rguenther@suse.de>
15134
15135         PR tree-optimization/31982
15136         * tree-ssa-forwprop.c
15137         (forward_propagate_addr_into_variable_array_index): Handle arrays
15138         with element size one.
15139
15140 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15141
15142         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
15143         (umulsi3_highpart): Likewise.
15144
15145 2007-05-24  Ian Lance Taylor  <iant@google.com>
15146
15147         PR rtl-optimization/32069
15148         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
15149         is NULL.
15150
15151 2007-05-24  Ollie Wild  <aaw@google.com>
15152
15153         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
15154         description.
15155
15156 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15157
15158         * postreload-gcse.c (reg_changed_after_insn_p): New function.
15159         (oprs_unchanged_p): Use it to check all registers in a REG.
15160         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
15161         (reg_set_between_after_reload_p): Delete.
15162         (reg_used_between_after_reload_p): Likewise.
15163         (reg_set_or_used_since_bb_start): Likewise.
15164         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
15165         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
15166         Use reg_set_between_p instead of reg_set_between_after_reload_p.
15167         * rtlanal.c (reg_set_p): Check whether REG overlaps
15168         regs_invalidated_by_call, rather than just checking the
15169         membership of REGNO (REG).
15170
15171 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
15172
15173         * doc/passes.texi: Document predictive commoning.
15174         * doc/invoke.texi (-fpredictive-commoning): Document.
15175         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
15176         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
15177         adding indices to the generated name.
15178         (schedule_sm): Pass 0 to get_lsm_tmp_name.
15179         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
15180         * tree-pretty-print.c (op_symbol_1): Renamed to ...
15181         (op_symbol_code): ... and exported.
15182         (dump_omp_clause, op_symbol): Use op_symbol_code
15183         instead of op_symbol_1.
15184         * tree-pass.h (pass_predcom): Declare.
15185         * timevar.def (TV_PREDCOM): New timevar.
15186         * tree-ssa-loop.c (run_tree_predictive_commoning,
15187         gate_tree_predictive_commoning, pass_predcom): New.
15188         * tree-data-ref.c (find_data_references_in_loop): Find the
15189         references in dominance order.
15190         (canonicalize_base_object_address): Ensure that the result has
15191         pointer type.
15192         (dr_analyze_innermost): Export.
15193         (create_data_ref): Code to fail for references with invariant
15194         address moved ...
15195         (find_data_references_in_stmt): ... here.
15196         * tree-data-ref.h (dr_analyze_innermost): Declare.
15197         * tree-affine.c: Include tree-gimple.h and hashtab.h.
15198         (aff_combination_find_elt, name_expansion_hash,
15199         name_expansion_eq, tree_to_aff_combination_expand,
15200         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
15201         New functions.
15202         * tree-affine.h (aff_combination_constant_multiple_p,
15203         tree_to_aff_combination_expand): Declare.
15204         * tree-predcom.c: New file.
15205         * common.opt (fpredictive-commoning): New option.
15206         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
15207         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
15208         * Makefile.in (tree-predcom.o): Add.
15209         (tree-affine.o): Add TREE_GIMPLE_H dependency.
15210         * passes.c (init_optimization_passes): Add dceloop after
15211         copy propagation in loop optimizer.  Add predictive commoning
15212         to loop optimizer passes.
15213
15214 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15215
15216         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
15217         default hook.
15218
15219 2007-05-24  Jan Hubicka  <jh@suse.cz>
15220
15221         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
15222         statistics.
15223         (genheader): Include statistics.h.
15224
15225         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
15226         notes are gone.
15227         * print-rtl.c (flag_dump_unnumbered): Update comments.
15228         (print_rtl): Fix my previous change.
15229         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
15230         specific data.
15231
15232 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
15233
15234         PR middle-end/32018
15235         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
15236         set_loop_copy.
15237         (thread_through_all_blocks): Call initialize_original_copy_tables
15238         and free_original_copy_tables.
15239         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
15240         Use set_loop_copy.
15241         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
15242         * cfghooks.c (duplicate_block): Use get_loop_copy.
15243         * cfg.c: Include cfgloop.h.
15244         (loop_copy): New hash table.
15245         (initialize_original_copy_tables): Initialize loop_copy table.
15246         (free_original_copy_tables): Free loop_copy table.
15247         (copy_original_table_clear, copy_original_table_set,
15248         set_loop_copy, get_loop_copy): New functions.
15249         (set_bb_original, set_bb_copy): Use copy_original_table_set.
15250         * cfgloop.h (struct loop): Remove copy field.
15251         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
15252         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
15253
15254 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15255
15256         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
15257         -msse/-msse2/-msse3.
15258
15259 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15260
15261         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
15262         __builtin_ia32_vec_set_v2di with MASK_64BIT.
15263
15264 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
15265
15266         PR target/27067
15267         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
15268         * targhooks.h (default_mangle_decl_assembler_name): Declare
15269         default hook.
15270         * targhooks.c (default_mangle_decl_assembler_name): Define
15271         default hook.
15272         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
15273         default hook.
15274         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
15275         * langhooks.c (lhd_set_decl_assembler_name): Call
15276         targetm.mangle_decl_assembler_name for names with global scope.
15277
15278         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
15279         default.
15280         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
15281         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
15282         Declare.
15283         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
15284         New. Factored out of i386_pe_encode_section_info.
15285         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
15286         Move check for prior decoration of stdcall
15287         symbols to i386_pe_encode_section_info.
15288         (i386_pe_encode_section_info): Adjust call to
15289         gen_stdcall_or_fastcall_suffix.  Use
15290         i386_pe_maybe_mangle_decl_assembler_name, if needed.
15291         (i386_pe_mangle_decl_assembler_name): New. Wrap
15292         i386_pe_maybe_mangle_decl_assembler_name.
15293
15294 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
15295
15296         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
15297         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
15298         * langhooks.c (get_signed_or_unsigned_type): Don't check for
15299         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
15300         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
15301         TYPE_UNSIGNED.
15302
15303 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
15304             Nigel Stephens  <nigel@mips.com>
15305             Richard Sandiford  <richard@codesourcery.com>
15306
15307         Fix up MIPS16 hard float and add support for complex.
15308
15309         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
15310         (TARGET_SOFT_FLOAT_ABI): New.
15311         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
15312         __mips_soft_float to reflect the ABI in use, not whether the
15313         FPU is directly accessible (e.g., in MIPS16 mode).
15314         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
15315         (UNITS_PER_FPVALUE): Likewise.
15316
15317         * config/mips/mips.c (mips_expand_call): Remove redundant
15318         TARGET_MIPS16 check.
15319         (mips_arg_regno): New.
15320         (function_arg_advance): When setting bits in cum->fp_code for
15321         MIPS16, don't subtract 1 from cum->arg_number, since it is now
15322         zero-based.
15323         (function_arg): Use mips_arg_regno.
15324         (mips_return_mode_in_fpr_p): New.
15325         (mips16_call_stub_mode_suffix): New.
15326         (mips16_cfun_returns_in_fpr_p): New.
15327         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
15328         (mips_output_function_prologue): Test mips16_hard_float, not
15329         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
15330         (mips_expand_epilogue): Call MIPS16 helper routines to copy
15331         return value into a floating-point register.
15332         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
15333         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
15334         (mips16_fp_args): Handle MIPS32r2 ISA which supports
15335         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
15336         word of double arguments from or to the high bits of 64-bit
15337         floating point registers.
15338         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
15339         (mips16_fpret_double): New helper function.
15340         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
15341         support for complex modes.  Fill in DECL_RESULT for stubdecl.
15342         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
15343
15344         * config/mips/mips16.S
15345         (RET, ARG1, ARG2): New.
15346         (MERGE_GPRf, MERGE_GPRt): New.
15347         (DELAYt, DELAYf): New.
15348         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
15349         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
15350         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
15351         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
15352         (SFOP): Renamed to...
15353         (OPSF3): This, and macro-ified.  Updated all uses.
15354         (SFOP2): Renamed to...
15355         (OPSF2): This, and macro-ified.  Updated all uses.
15356         (SFCMP): Renamed to...
15357         (CMPSF): This, and macro-ified.  Updated all uses.
15358         (SFREVCMP): Renamed to...
15359         (REVCMPSF): This, and macro-ified.  Updated all uses.
15360         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
15361         (LDDBL1, LDDBL2, RETDBL): Deleted.
15362         (DFOP): Renamed to...
15363         (OPDF3): This, and macro-ified.  Updated all uses.
15364         (DFOP2): Renamed to...
15365         (OPDF2): This, and macro-ified.  Updated all uses.
15366         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
15367         (DFCMP): Renamed to...
15368         (CMPDF): This, and macro-ified.  Updated all uses.
15369         (DFREVCMP): Renamed to...
15370         (REVCMPDF): This, and macro-ified.  Updated all uses.
15371         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
15372         (RET_FUNCTION): New.
15373         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
15374         (__mips16_ret_sc, __mips16_ret_dc): New.
15375         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
15376         STUB_ARGS_6, STUB_ARGS_10): New.
15377         (CALL_STUB_NO_RET): New.
15378         (__mips16_call_stub_1): Macro-ified.
15379         (__mips16_call_stub_5): Macro-ified.
15380         (__mips16_call_stub_2): Macro-ified.
15381         (__mips16_call_stub_6): Macro-ified.
15382         (__mips16_call_stub_9): Macro-ified.
15383         (__mips16_call_stub_10): Macro-ified.
15384         (CALL_STUB_RET): New.
15385         (__mips16_call_stub_sf_0): Macro-ified.
15386         (__mips16_call_stub_sf_1): Macro-ified.
15387         (__mips16_call_stub_sf_5): Macro-ified.
15388         (__mips16_call_stub_sf_2): Macro-ified.
15389         (__mips16_call_stub_sf_6): Macro-ified.
15390         (__mips16_call_stub_sf_9): Macro-ified.
15391         (__mips16_call_stub_sf_10): Macro-ified.
15392         (__mips16_call_stub_df_0): Macro-ified.
15393         (__mips16_call_stub_df_1): Macro-ified.
15394         (__mips16_call_stub_df_5): Macro-ified.
15395         (__mips16_call_stub_df_2): Macro-ified.
15396         (__mips16_call_stub_df_6): Macro-ified.
15397         (__mips16_call_stub_df_9): Macro-ified.
15398         (__mips16_call_stub_df_10): Macro-ified.
15399         (__mips16_call_stub_sc_0): New.
15400         (__mips16_call_stub_sc_1): New.
15401         (__mips16_call_stub_sc_5): New.
15402         (__mips16_call_stub_sc_2): New.
15403         (__mips16_call_stub_sc_6): New.
15404         (__mips16_call_stub_sc_9): New.
15405         (__mips16_call_stub_sc_10): New.
15406         (__mips16_call_stub_dc_0): New.
15407         (__mips16_call_stub_dc_1): New.
15408         (__mips16_call_stub_dc_5): New.
15409         (__mips16_call_stub_dc_2): New.
15410         (__mips16_call_stub_dc_6): New.
15411         (__mips16_call_stub_dc_9): New.
15412         (__mips16_call_stub_dc_10): New.
15413
15414         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
15415         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
15416         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
15417
15418 2007-05-23  Ian Lance Taylor  <iant@google.com>
15419
15420         * doc/invoke.texi (Invoking GCC): Document that the order of the
15421         -l option matters.
15422
15423 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
15424
15425         PR target/30987
15426         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
15427         * config/score/predicate.md (const_pow2, const_npow2): Remove.
15428         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
15429         undef.
15430
15431         PR target/30474
15432         * config/score/score.c (score_print_operand): Make sure that only
15433         lower bits are used.
15434
15435 2007-05-22  Ian Lance Taylor  <iant@google.com>
15436
15437         * tree-vrp.c (avoid_overflow_infinity): New static function,
15438         broken out of set_value_range_to_value.
15439         (set_value_range_to_value): Call avoid_overflow_infinity.
15440         (extract_range_from_assert): Likewise.
15441
15442 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15443
15444         PR middle-end/31095
15445          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
15446         change the type before looking for a COMPOUND_EXPR.
15447
15448 2007-05-22  Ian Lance Taylor  <iant@google.com>
15449
15450         * lower-subreg.c (decompose_multiword_subregs): If we change an
15451         insn, call remove_retval_note on it.
15452
15453 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
15454
15455         * regs.h (end_hard_regno): New function.
15456         (END_HARD_REGNO, END_REGNO): New macros.
15457         (add_to_hard_reg_set): New function.
15458         (remove_from_hard_reg_set): Likewise.
15459         (in_hard_reg_set_p): Likewise.
15460         (overlaps_hard_reg_set_p): Likewise.
15461         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
15462         (note_btr_set): Use END_HARD_REGNO.
15463         * caller-save.c (setup_save_areas): Use end_hard_regno.
15464         (mark_set_regs): Use END_HARD_REGNO.
15465         (add_stored_regs): Use end_hard_regno.
15466         (mark_referenced_regs): Use add_to_hard_reg_set.
15467         * combine.c (update_table_tick): Use END_REGNO.
15468         (record_value_for_reg): Likewise.
15469         (record_dead_and_set_regs): Likewise.
15470         (get_last_value_validate): Likewise.
15471         (use_crosses_set_p): Likewise.
15472         (reg_dead_at_p_1): Likewise.
15473         (reg_dead_at_p): Likewise.
15474         (mark_used_regs_combine): Use add_to_hard_reg_set.
15475         (move_deaths): Use END_HARD_REGNO.
15476         (reg_bitfield_target_p): Use end_hard_regno.
15477         (distribute_notes): Use END_HARD_REGNO.
15478         * cse.c (mention_regs): Use END_REGNO.
15479         (insert): Use add_to_hard_reg_set.
15480         (invalidate): Use END_HARD_REGNO.
15481         (invalidate_for_call): Likewise.
15482         (exp_equiv_p): Use END_REGNO.
15483         (cse_insn): Likewise.
15484         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
15485         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
15486         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
15487         * function.c (keep_stack_depressed): Use end_hard_regno.
15488         * global.c (global_alloc): Use end_hard_regno.
15489         (global_conflicts): Use add_to_hard_reg_set instead of
15490         mark_reg_live_nc.
15491         (find_reg): Likewise.
15492         (mark_reg_store): Likewise.
15493         (mark_reg_conflicts): Likewise.
15494         (mark_reg_death): Use remove_from_hard_reg_set.
15495         (mark_reg_live_nc): Delete.
15496         (set_preference): Use end_hard_regno.
15497         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
15498         remove_from_hard_reg_set.
15499         (post_mark_life): Use add_to_hard_reg_set.
15500         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
15501         (reg_becomes_live): Use add_to_hard_reg_set.
15502         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
15503         (peep2_find_free_register): Use add_to_hard_reg_set.
15504         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
15505         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
15506         * regrename.c (note_sets): Use add_to_hard_reg_set.
15507         (clear_dead_regs): Use remove_from_hard_reg_set.
15508         (regrename_optimize): Use add_to_hard_reg_set.
15509         (find_oldest_value_reg): Use in_hard_reg_set_p.
15510         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
15511         (hard_reg_set_here_p): Use end_hard_regno.
15512         (decompose): Likewise.
15513         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
15514         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
15515         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
15516         (mark_home_live): Use end_hard_regno.
15517         (spill_hard_reg): Likewise.
15518         (clear_reload_reg_in_use): Likewise.
15519         * reorg.c (delete_prior_computation): Use END_REGNO.
15520         * resource.c (update_live_status): Use END_HARD_REGNO.
15521         (mark_referenced_resources): Use add_to_hard_reg_set.
15522         (mark_set_resources): Likewise.
15523         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
15524         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
15525         (reg_overlap_mentioned_p): Likewise.
15526         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
15527         (covers_regno_no_parallel_p): Use END_REGNO.
15528         (find_regno_note): Likewise.
15529         (find_reg_fusage): Use END_HARD_REGNO.
15530         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
15531         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
15532
15533 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
15534
15535         * mode-switching.c (reg_dies): Change type of second argument to
15536         "HARD_REG_SET *".
15537         (optimize_mode_switching): Update accordingly.
15538
15539 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
15540
15541         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
15542         in favor of...
15543         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
15544         (hard_reg_set_empty_p): ...these new functions.
15545         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
15546         GO_IF_HARD_REG_SUBSET.
15547         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
15548         instead of GO_IF_HARD_REG_EQUAL.
15549         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
15550         instead of GO_IF_HARD_REG_EQUAL.
15551         * global.c (find_reg): Use hard_reg_set_empty_p instead of
15552         GO_IF_HARD_REG_SUBSET.
15553         (modify_reg_pav): Use hard_reg_set_empty_p instead of
15554         GO_IF_HARD_REG_EQUAL.
15555         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
15556         of GO_IF_HARD_REG_SUBSET.
15557         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
15558         instead of GO_IF_HARD_REG_EQUAL.
15559         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
15560         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
15561         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
15562         of GO_IF_HARD_REG_SUBSET,
15563         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
15564         GO_IF_HARD_REG_SUBSET.
15565         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
15566         instead of GO_IF_HARD_REG_EQUAL.
15567         * config/sh/sh.c (push_regs, calc_live_regs): Use
15568         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
15569         (hard_regs_intersect_p): Delete.
15570
15571 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
15572
15573         * doc/sourcebuild.texi (Test Directives) Add dg-message.
15574
15575 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15576             Richard Henderson  <rth@redhat.com>
15577
15578         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
15579         extra_headers.
15580         (x86_64-*-*): Likewise.
15581
15582         * i386/i386-modes.def (V2QI): New.
15583
15584         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
15585         SSE4A.
15586         (override_options): Support SSE4.1.
15587         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
15588         (IX86_BUILTIN_BLENDPS): Likewise.
15589         (IX86_BUILTIN_BLENDVPD): Likewise.
15590         (IX86_BUILTIN_BLENDVPS): Likewise.
15591         (IX86_BUILTIN_PBLENDVB128): Likewise.
15592         (IX86_BUILTIN_PBLENDW128): Likewise.
15593         (IX86_BUILTIN_DPPD): Likewise.
15594         (IX86_BUILTIN_DPPS): Likewise.
15595         (IX86_BUILTIN_INSERTPS128): Likewise.
15596         (IX86_BUILTIN_MOVNTDQA): Likewise.
15597         (IX86_BUILTIN_MPSADBW128): Likewise.
15598         (IX86_BUILTIN_PACKUSDW128): Likewise.
15599         (IX86_BUILTIN_PCMPEQQ): Likewise.
15600         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
15601         (IX86_BUILTIN_PMAXSB128): Likewise.
15602         (IX86_BUILTIN_PMAXSD128): Likewise.
15603         (IX86_BUILTIN_PMAXUD128): Likewise.
15604         (IX86_BUILTIN_PMAXUW128): Likewise.
15605         (IX86_BUILTIN_PMINSB128): Likewise.
15606         (IX86_BUILTIN_PMINSD128): Likewise.
15607         (IX86_BUILTIN_PMINUD128): Likewise.
15608         (IX86_BUILTIN_PMINUW128): Likewise.
15609         (IX86_BUILTIN_PMOVSXBW128): Likewise.
15610         (IX86_BUILTIN_PMOVSXBD128): Likewise.
15611         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
15612         (IX86_BUILTIN_PMOVSXWD128): Likewise.
15613         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
15614         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
15615         (IX86_BUILTIN_PMOVZXBW128): Likewise.
15616         (IX86_BUILTIN_PMOVZXBD128): Likewise.
15617         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
15618         (IX86_BUILTIN_PMOVZXWD128): Likewise.
15619         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
15620         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
15621         (IX86_BUILTIN_PMULDQ128): Likewise.
15622         (IX86_BUILTIN_PMULLD128): Likewise.
15623         (IX86_BUILTIN_ROUNDPD): Likewise.
15624         (IX86_BUILTIN_ROUNDPS): Likewise.
15625         (IX86_BUILTIN_ROUNDSD): Likewise.
15626         (IX86_BUILTIN_ROUNDSS): Likewise.
15627         (IX86_BUILTIN_PTESTZ): Likewise.
15628         (IX86_BUILTIN_PTESTC): Likewise.
15629         (IX86_BUILTIN_PTESTNZC): Likewise.
15630         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
15631         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
15632         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
15633         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
15634         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
15635         (bdesc_ptest): New.
15636         (bdesc_sse_3arg): Likewise.
15637         (bdesc_2arg): Likewise.
15638         (bdesc_1arg): Likewise.
15639         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
15640         with 3 args.
15641         (ix86_expand_sse_4_operands_builtin): New.
15642         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
15643         smaller than 8 bits as the 2nd arg.
15644         (ix86_expand_sse_ptest): New.
15645         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
15646         (ix86_expand_vector_set): Support SSE4.1.
15647         (ix86_expand_vector_extract): Likewise.
15648
15649         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
15650         __SSE4_1__ for -msse4.1.
15651
15652         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
15653         (UNSPEC_INSERTPS): Likewise.
15654         (UNSPEC_DP): Likewise.
15655         (UNSPEC_MOVNTDQA): Likewise.
15656         (UNSPEC_MPSADBW): Likewise.
15657         (UNSPEC_PHMINPOSUW): Likewise.
15658         (UNSPEC_PTEST): Likewise.
15659         (UNSPEC_ROUNDP): Likewise.
15660         (UNSPEC_ROUNDS): Likewise.
15661
15662         * config/i386/i386.opt (msse4.1): New for SSE4.1.
15663
15664         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
15665         (const_pow2_1_to_32768_operand): Likewise.
15666
15667         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
15668         file.
15669
15670         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
15671         SSE4.1.
15672         (sse4_1_insertps): Likewise.
15673         (*sse4_1_extractps): Likewise.
15674         (sse4_1_ptest): Likewise.
15675         (sse4_1_mulv2siv2di3): Likewise.
15676         (*sse4_1_mulv4si3): Likewise.
15677         (*sse4_1_smax<mode>3): Likewise.
15678         (*sse4_1_umax<mode>3): Likewise.
15679         (*sse4_1_smin<mode>3): Likewise.
15680         (*sse4_1_umin<mode>3): Likewise.
15681         (sse4_1_eqv2di3): Likewise.
15682         (*sse4_1_pinsrb): Likewise.
15683         (*sse4_1_pinsrd): Likewise.
15684         (*sse4_1_pinsrq): Likewise.
15685         (*sse4_1_pextrb): Likewise.
15686         (*sse4_1_pextrb_memory): Likewise.
15687         (*sse4_1_pextrw_memory): Likewise.
15688         (*sse4_1_pextrq): Likewise.
15689         (sse4_1_blendpd): Likewise.
15690         (sse4_1_blendps): Likewise.
15691         (sse4_1_blendvpd): Likewise.
15692         (sse4_1_blendvps): Likewise.
15693         (sse4_1_dppd): Likewise.
15694         (sse4_1_dpps): Likewise.
15695         (sse4_1_movntdqa): Likewise.
15696         (sse4_1_mpsadbw): Likewise.
15697         (sse4_1_packusdw): Likewise.
15698         (sse4_1_pblendvb): Likewise.
15699         (sse4_1_pblendw): Likewise.
15700         (sse4_1_phminposuw): Likewise.
15701         (sse4_1_extendv8qiv8hi2): Likewise.
15702         (*sse4_1_extendv8qiv8hi2): Likewise.
15703         (sse4_1_extendv4qiv4si2): Likewise.
15704         (*sse4_1_extendv4qiv4si2): Likewise.
15705         (sse4_1_extendv2qiv2di2): Likewise.
15706         (*sse4_1_extendv2qiv2di2): Likewise.
15707         (sse4_1_extendv4hiv4si2): Likewise.
15708         (*sse4_1_extendv4hiv4si2): Likewise.
15709         (sse4_1_extendv2hiv2di2): Likewise.
15710         (*sse4_1_extendv2hiv2di2): Likewise.
15711         (sse4_1_extendv2siv2di2): Likewise.
15712         (*sse4_1_extendv2siv2di2): Likewise.
15713         (sse4_1_zero_extendv8qiv8hi2): Likewise.
15714         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
15715         (sse4_1_zero_extendv4qiv4si2): Likewise.
15716         (*sse4_1_zero_extendv4qiv4si2): Likewise.
15717         (sse4_1_zero_extendv2qiv2di2): Likewise.
15718         (*sse4_1_zero_extendv2qiv2di2): Likewise.
15719         (sse4_1_zero_extendv4hiv4si2): Likewise.
15720         (*sse4_1_zero_extendv4hiv4si2): Likewise.
15721         (sse4_1_zero_extendv2hiv2di2): Likewise.
15722         (*sse4_1_zero_extendv2hiv2di2): Likewise.
15723         (sse4_1_zero_extendv2siv2di2): Likewise.
15724         (*sse4_1_zero_extendv2siv2di2): Likewise.
15725         (sse4_1_roundpd): Likewise.
15726         (sse4_1_roundps): Likewise.
15727         (sse4_1_roundsd): Likewise.
15728         (sse4_1_roundss): Likewise.
15729         (mulv4si3): Don't expand for SSE4.1.
15730         (smax<mode>3): Likewise.
15731         (umaxv4si3): Likewise.
15732         (uminv16qi3): Likewise.
15733         (umin<mode>3): Likewise.
15734         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
15735
15736         * doc/extend.texi: Document SSE4.1 built-in functions.
15737
15738         * doc/invoke.texi: Document -msse4.1.
15739
15740 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
15741
15742         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
15743         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
15744         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
15745         (ASM_SPEC): Add asm_pcrel_spec.
15746         (EXTRA_SPECS): Add asm_pcrel_spec.
15747
15748 2007-05-21  David Daney  <ddaney@avtrex.com>
15749
15750         * doc/install.texi (Building a cross compiler): Add requirements
15751         for Java cross compiler.
15752
15753 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15754
15755         PR middle-end/31995
15756         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
15757         Add loopno argument.  Use evolution_function_is_invariant_rec_p
15758         instead of evolution_function_is_constant_p.
15759         Update calls to evolution_function_is_affine_multivariate_p.
15760         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
15761         Add loopno argument.
15762         * tree-scalar-evolution.c (gather_chrec_stats): Call
15763         evolution_function_is_affine_multivariate_p with a loop
15764         number of 0.
15765         * tree-data-ref.c (analyze_miv_subscript): Likewise.
15766         (analyze_overlapping_iterations): Likewise.
15767         (access_functions_are_affine_or_constant_p): Likewise.
15768         (build_classic_dist_vector_1): If the access functions
15769         are equal, don't do anything.
15770
15771 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
15772             Paolo Carlini  <pcarlini@suse.de>
15773             Uros Bizjak  <ubizjak@gmail.com>
15774
15775         * c-cppbuiltin.c (c_cpp_builtins): Define
15776         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
15777         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
15778         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
15779         * doc/cpp.texi ([Standard Predefined Macros]): Document.
15780
15781 2007-05-21  Mike Stump  <mrs@apple.com>
15782
15783         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
15784         handling as well.
15785         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15786
15787 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
15788
15789         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
15790         implementation if __OPTIMIZE__ is not defined.
15791         (_mm_alignr_pi8): Ditto.
15792         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
15793         (_mm_inserti_si64): Ditto.
15794         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
15795         (_mm_slli_epi16): Ditto.
15796         (_mm_slli_epi32): Ditto.
15797         (_mm_slli_epi64): Ditto.
15798         (_mm_srai_epi16): Ditto.
15799         (_mm_srai_epi32): Ditto.
15800         (_mm_srli_si128): Ditto.
15801         (_mm_slli_si128): Ditto.
15802         (_mm_srli_epi16): Ditto.
15803         (_mm_srli_epi32): Ditto.
15804         (_mm_srli_epi64): Ditto.
15805         (_mm_extract_epi16): Ditto.
15806         (_mm_insert_epi16): Ditto.
15807         (_mm_shufflehi_epi16): Ditto.
15808         (_mm_shufflelo_epi16): Ditto.
15809         (_mm_shuffle_epi32): Ditto.
15810         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
15811         (_m_pextrw): Ditto.
15812         (_mm_insert_pi16): Ditto.
15813         (_m_pinsrw): Ditto.
15814         (_mm_shuffle_pi16): Ditto.
15815         (_m_pshufw): Ditto.
15816         (_mm_shufle_ps): Ditto.
15817         (_mm_prefetch): Ditto.
15818
15819 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
15820
15821         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
15822         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
15823         * real.c (encode_i370_single, decode_i370_single,
15824         encode_i370_double, decode_i370_double): Functions removed.
15825         (i370_single_format, i370_double_format): Initializations removed.
15826         (real_maxval, round_for_format, exact_real_truncate, significand_size):
15827         Consider the log2_b field to always be one.
15828         (ieee_single_format, mips_single_format, coldfire_single_format,
15829         ieee_double_format, mips_double_format, coldfire_double_format,
15830         ieee_extended_motorola_format, ieee_extended_intel_96_format,
15831         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15832         ibm_extended_format, mips_extended_format, ieee_quad_format,
15833         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15834         decimal_single_format, decimal_double_format, decimal_quad_format,
15835         c4x_single_format, c4x_extended_format, real_internal_format): Remove
15836         initialization of log2_b.
15837         * real.h (i370_single_format, i370_double_format): Declarations
15838         removed.
15839         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
15840         field to always be one.
15841
15842 2007-05-21  Andreas Schwab  <schwab@suse.de>
15843
15844         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
15845         NOTE_INSN_BASIC_BLOCK_P.
15846         (process_for_unwind_directive): Likewise.
15847
15848 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
15849
15850         * builtins.c (expand_builtin_setjmp_setup): Update comment.
15851         * function.h (struct function): Move va_list_gpr_size,
15852         va_list_fpr_size, function_frequency to front of bitfields.  Add
15853         calls_unwind_init.
15854         (current_function_calls_unwind_init): New.
15855         * except.c (expand_builtin_unwind_init): Set
15856         current_function_calls_unwind_init not
15857         current_function_has_nonlocal_label.
15858         * reload1.c (has_nonexceptional_receiver): New.
15859         (reload): Use it and current_function_calls_unwind_init to
15860         determine whether call-saved regs must be saved.
15861
15862 2007-05-20  Jan Hubicka  <jh@suse.cz>
15863
15864         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
15865         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15866         * ddg.c (create_ddg): LIkewise.
15867         * final.c (final): Remove hunk moving line number notes around since
15868         they are no longer present at this stage.
15869         (final_scan_insn): Use NOTE_KIND instead of
15870         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15871         (output_asm_label): Likewise.
15872         * reorg.c (dbr_schedule): Likewise.
15873         * haifa-sched.c (unlink_other_notes): Likewise.
15874         * mode-switching.c (optimize_mode_switching): Likewise.
15875         * graph.c (start_bb): Likewise.
15876         * rtl.def (NOTE): Update description.
15877         * jump.c (squeeze_notes): Delete.
15878         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
15879         NOTE_INSN_BASIC_BLOCK_P when possible.
15880         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
15881         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
15882         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15883         (dwarf2out_var_location): Likewise.
15884         * cfgbuild.c (make_edges): Likewise.
15885         (find_basic_blocks_1): Likewise.
15886         * function.c (reorder_blocks_1): Likewise.
15887         (epilogue_done): Likewise.
15888         (reposition_prologue_and_epilogue_notes): Likewise.
15889         * print-rtl.c (print_rtx): Likewise; drop code for printing
15890         line number notes.
15891         (print_rtl): Likewise.
15892         (print_rtl_single): Likewise.
15893         * gcse.c (insert_insn_start_bb): Likewise.
15894         * alias.c (init_alias_analysis): Likewise.
15895         * calls.c (fixup_tail_calls): Likewise.
15896         * except.c (sjlj_emit_function_enter): Likewise.
15897         * emit-rtl.c (add_insn_after): Likeiwse.
15898         (emit_label_before): Likewise.
15899         (emit_label_after): Likewise.
15900         (emit_note_before, emit_note_after, emit_note): Update
15901         parameter to be enum insn_note; do not deal with source
15902         files.
15903         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
15904         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
15905         when possible.
15906         (merge_blocks_move_successor_nojumps): Simplify now when
15907         we don't have BLOCK notes.
15908         (try_optimize_cfg): Likewise.
15909         * cfglayout.c (skip_insns_after_block): Likewise.
15910         (record_effective_endpoints): Likewise.
15911         (duplicate_insn_chain): Likewise.
15912         * varasm.c (output_constant_pool_1): Likewise.
15913         * sched-deps.c (sched_analyze): Likewise.
15914         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
15915         Exterminate.
15916         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
15917         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
15918         (SET_INSN_DELETED): Simplify.
15919         (NOTE_LINE_NUMBER): Exterminate.
15920         (NOTE_LINE_KIND): New.
15921         (NOTE_INSN_BASIC_BLOCK_P): Update.
15922         (enum insn_note): Simplify.
15923         (GET_NOTE_INSN_NAME) Simplify.
15924         (emit_note_before, emit_note_after, emit_note): Update prototype.
15925         (squeeze_notes): Remove.
15926         * sched-int.h (NOTE_NOT_BB_P): Update.
15927         * resource.c (mark_target_live_regs): Update.
15928         * sched-rgn.c (debug_dependencies): Update.
15929         * sched-vis.c (print_insn): Update.
15930         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
15931         * config/i386/i386.c (ix86_output_function_epilogue): Update.
15932         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
15933         (TARGET_ADJUST_UNROLL_MAX): Likewise.
15934         (split_branches): Update.
15935         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
15936         4.0.0.
15937         (sh_adjust_unroll_max): Exterminate.
15938         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
15939         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
15940         (m68hc11_reorg): Likewise.
15941         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
15942         (emit_predicate_relation_info): Update.
15943         (process_for_unwind_directive): Update.
15944         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
15945         (output_call): Update.
15946         * config/pa/pa.c (output_lbranch): Update.
15947         (output_millicode_call): Update.
15948         (output_call): Update.
15949         (pa_combine_instructions): Update.
15950         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
15951         * config/bfin/bfin.c (gen_one_bundle): Update.
15952         * cfgrtl.c (can_delete_note_p): Update.
15953         (delete_insn): Update.
15954         (rtl_merge_blocks): Update.
15955         (commit_one_edge_insertion): Update.
15956         (rtl_verify_flow_info): Update.
15957         * stmt.c (expand_case): Do not call squeeze_notes.
15958
15959 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15960
15961         PR middle-end/7651
15962         PR c++/11856
15963         PR c/12963
15964         PR c/23587
15965         PR other/29694
15966         * c.opt (Wtype-limits): New.
15967         * doc/invoke.texi (Wtype-limits): Document it.
15968         (Wextra): Enabled by -Wextra.
15969         * c-opts.c (c_common_post_options): Enabled by -Wextra.
15970         * c-common.c (shorten_compare): Warn with Wtype-limits.
15971
15972 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
15973
15974         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
15975         inlined function, not as a macro.
15976         (_mm_alignr_pi8): Ditto.
15977         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
15978         (_mm_inserti_si64): Ditto.
15979         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
15980         (_mm_extract_epi16): Ditto.
15981         (_mm_insert_epi16): Ditto.
15982         (_mm_shufflehi_epi16): Ditto.
15983         (_mm_shufflelo_epi16): Ditto.
15984         (_mm_shuffle_epi32): Ditto.
15985         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
15986         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
15987         all functions.
15988         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
15989         float constant.
15990         (_m_to_float): Use C89 compatible assignment.
15991
15992 2007-05-20  Martin Michlmayr  <tbm@cyrius.com>
15993
15994         PR target/32007
15995         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
15996
15997 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15998
15999         PR middle-end/7651
16000         * doc/invoke.texi (Wreturn-type): Complete description.
16001         (Wextra): Delete item about return-type warning.
16002         * c-decl.c: Delete redundant Wextra warning.
16003
16004 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
16005
16006         PR target/31585
16007         * config/i386/pmmintrin.h: Do not include xmmintrin.h
16008         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
16009         inlined function, not as a macro.
16010         (_mm_prefetch): Ditto.
16011         (_m_pextrw): Ditto.
16012         (_mm_insert_pi16): Ditto.
16013         (_m_pinsrw): Ditto.
16014         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
16015         (_m_pshufw): Ditto. Add const to __N argument.
16016         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
16017         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
16018         (_mm_slli_epi32): Ditto.
16019         (_mm_srli_si128): Implement as always inlined function, not as a
16020         macro.  Add __inline to function declaration.
16021         (_mm_slli_si128): Ditto.
16022
16023 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
16024
16025         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
16026         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
16027         New constants.
16028         (struct fenv): New structure.
16029         (FP_HANDLE_EXCEPTIONS): New define.
16030         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
16031         (_FP_DECL_EXP): New define.
16032         (FP_INIT_ROUNDMODE): New define.
16033         (FP_ROUNDMODE): New define.
16034
16035 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16036
16037         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
16038         (Wconversion): Update description.
16039         (Wconversion-sign): New.
16040         * c.opt (Wconversion-sign): New.
16041         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
16042         means disabled for C++. Otherwise, take the status of Wconversion.
16043         * c-common.c (conversion_warning): Warn with either Wconversion or
16044         Wconversion-sign.
16045         (warnings_for_convert_and_check): Conditions are already checked by
16046         conversion_warning.
16047         (convert_and_check): Don't check warnings if the conversion failed.
16048
16049 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
16050            Anatoly Sokolov <aesok@dol.ru>
16051
16052         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
16053         avr_epilogue_uses) : Add declaration.
16054         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
16055         * config/avr/constraints.md (R): New constraint.
16056         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
16057         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
16058         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
16059         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
16060         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
16061         call_prologue_saves, epilogue_restores, return_from_epilogue,
16062         return_from_main_epilogue, return_from_interrupt_epilogue,
16063         return_from_naked_epilogue, prologue, epilogue): New patterns.
16064         (jump): Handle symbol reference.
16065         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
16066         avr_output_function_prologue, avr_output_function_epilogue): Remove
16067         functions.
16068         (avr_init_machine_status, expand_prologue, expand_epilogue,
16069         avr_asm_function_end_prologue, avr_epilogue_uses,
16070         avr_asm_function_begin_epilogue): New functions.
16071         (prologue_size, epilogue_size, jump_tables_size): Remove global
16072         variables.
16073         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
16074         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
16075         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
16076         (avr_override_options): Initialise init_machine_status.
16077         (output_movhi): Handle all stack pointer loads.
16078         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
16079         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
16080         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
16081         (EPILOGUE_USES) Redefine.
16082         (machine_function) Declare.
16083
16084 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
16085
16086         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
16087         Use a single return statement.
16088
16089 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16090
16091         PR middle-end/30250
16092         * builtins.c (do_mpfr_lgamma_r): New.
16093         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
16094         * tree.h (CASE_FLT_FN_REENT): New.
16095
16096 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
16097
16098         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
16099         (output_die): Use 'unsigned long' with %x.
16100         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
16101         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
16102         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
16103
16104         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
16105
16106 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16107
16108         PR target/31989
16109         PR target/31681
16110         PR target/31666
16111         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
16112         true if function has no argument.
16113
16114 2007-05-18  DJ Delorie  <dj@redhat.com>
16115
16116         * config/mips/mips.c (mips_offset_within_alignment_p): New.
16117         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
16118
16119 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
16120
16121         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
16122         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
16123         count_trailing_zeros.
16124         (__i386__): Implement count_leading_zeros using __builtin_clz().
16125         Implement count_trailing_zeros usign __builtin_ctz().
16126
16127 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
16128
16129         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
16130
16131 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
16132
16133         PR middle-end/31344
16134         * expr.c (emit_move_change_mode): Change mode of push operands here.
16135
16136 2007-05-17  Ian Lance Taylor  <iant@google.com>
16137
16138         PR tree-optimization/31953
16139         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
16140         Change all callers.
16141         (set_value_range_to_null): Call set_value_range_to_value.
16142         (extract_range_from_comparison): Likewise.
16143
16144 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16145
16146         * toplev.c (print_version): Output GMP/MPFR version info.
16147
16148         * builtins.c (CASE_MATHFN_REENT): New macro.
16149         (mathfn_built_in): Use it.
16150         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
16151         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
16152         BUILT_IN_LGAMMAL_R): New.
16153         * doc/extend.texi: Document new builtins.
16154
16155         PR middle-end/31796
16156         * builtins.c (do_mpfr_remquo): New.
16157         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
16158         (fold_builtin_3): Handle BUILT_IN_REMQUO.
16159
16160         PR middle-end/30251
16161         * builtins.c (fold_builtin_1): Handle y0, y1.
16162         (fold_builtin_2): Handle yn.
16163
16164         PR middle-end/30251
16165         * builtins.c (do_mpfr_bessel_n): New.
16166         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
16167         (fold_builtin_2): Handle BUILT_IN_JN.
16168
16169 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
16170
16171         PR target/31965
16172         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
16173         TYPE_PRECISION (intmax_type_node).
16174
16175 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
16176
16177         PR target/31850
16178         * reload.c (subst_reloads): Remove checking.
16179
16180 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
16181
16182         PR rtl-optimization/31691
16183         * combine.c (simplify_set): Build a new src pattern instead of
16184         substituting its operands in the COMPARE case.
16185
16186 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
16187
16188         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
16189         (execute_vrp): Preserve loops through jump threading.
16190         * tree-ssa-threadupdate.c (thread_single_edge,
16191         dbds_continue_enumeration_p, determine_bb_domination_status,
16192         thread_through_loop_header): New functions.
16193         (create_edge_and_update_destination_phis,
16194         create_edge_and_update_destination_phis): Set loops for the new blocks.
16195         (prune_undesirable_thread_requests): Removed.
16196         (redirect_edges): Do not pretend that redirect_edge_and_branch can
16197         create new blocks.
16198         (thread_block): Do not call prune_undesirable_thread_requests.
16199         Update loops.
16200         (mark_threaded_blocks): Select edges to thread here.
16201         (thread_through_all_blocks): Take may_peel_loop_headers argument.
16202         Thread edges through loop headers independently.
16203         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
16204         * tree-pass.h (TODO_mark_first_instance): New.
16205         (first_pass_instance): Declare.
16206         * cfghooks.c (duplicate_block): Put the block to the original loop
16207         if copy is not specified.
16208         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
16209         jump threading.  Pass may_peel_loop_headers to
16210         thread_through_all_blocks according to first_pass_instance.
16211         * cfgloop.h (create_preheader): Declare.
16212         * tree-flow.h (thread_through_all_blocks): Declaration changed.
16213         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
16214         * passes.c (first_pass_instance): New variable.
16215         (next_pass_1): Set TODO_mark_first_instance.
16216         (execute_todo): Set first_pass_instance.
16217
16218 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
16219
16220         PR tree-optimization/24659
16221         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
16222         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
16223         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
16224         OTI_vec_pack_ufix_trunc.
16225         (vec_unpacks_float_hi_optab): Define new macro.
16226         (vec_unpacks_float_lo_optab): Ditto.
16227         (vec_unpacku_float_hi_optab): Ditto.
16228         (vec_unpacku_float_lo_optab): Ditto.
16229         (vec_pack_sfix_trunc_optab): Ditto.
16230         (vec_pack_ufix_trunc_optab): Ditto.
16231         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
16232         and vec_pack_[s|u]fix_trunc_optab using
16233         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
16234         * tree-vectorizer.c (supportable_widening_operation): Handle
16235         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
16236         (supportable_narrowing_operation): New function.
16237         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
16238         * tree-vect-transform.c (vectorizable_conversion): Handle
16239         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
16240         (vect_gen_widened_results_half): Move before vectorizable_conversion.
16241         (vectorizable_type_demotion): Call supportable_narrowing_operation()
16242         to check for target support.
16243         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
16244         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
16245         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
16246         for VEC_PACK_FIX_TRUNC_EXPR.
16247         (expand_binop): Special case mode of the result for
16248         vec_pack_[u|s]fix_trunc_optab.
16249         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
16250         vec_pack_[u|s]fix_trunc_optab.
16251
16252         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
16253         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
16254         * tree-pretty-print.c (dump_generic_node): Handle
16255         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
16256         VEC_PACK_FIX_TRUNC_EXPR.
16257         (op_prio): Ditto.
16258         * expr.c (expand_expr_real_1): Ditto.
16259         * tree-inline.c (estimate_num_insns_1): Ditto.
16260         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
16261
16262         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
16263         (vec_unpacks_float_lo_v8hi): Ditto.
16264         (vec_unpacku_float_hi_v8hi): Ditto.
16265         (vec_unpacku_float_lo_v8hi): Ditto.
16266         (vec_unpacks_float_hi_v4si): Ditto.
16267         (vec_unpacks_float_lo_v4si): Ditto.
16268         (vec_pack_sfix_trunc_v2df): Ditto.
16269
16270         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
16271         Document.
16272         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
16273         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
16274         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
16275         [vec_pack_ufix_trunc]: Ditto.
16276         [vec_unpacks_float_hi]: Ditto.
16277         [vec_unpacks_float_lo]: Ditto.
16278         [vec_unpacku_float_hi]: Ditto.
16279         [vec_unpacku_float_lo]: Ditto.
16280
16281 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
16282
16283         * soft-fp/README: Update for new files.
16284         * soft-fp/floattisf.c: New file.
16285         * soft-fp/floattidf.c: New file.
16286         * soft-fp/floattitf.c: New file.
16287         * soft-fp/floatuntisf.c: New file.
16288         * soft-fp/floatuntidf.c: New file.
16289         * soft-fp/floatuntitf.c: New file.
16290         * soft-fp/fixsfti.c: New file.
16291         * soft-fp/fixdfti.c: New file.
16292         * soft-fp/fixtfti.c: New file.
16293         * soft-fp/fixunssfti.c: New file.
16294         * soft-fp/fixunsdfti.c: New file.
16295         * soft-fp/fixunstfti.c: New file.
16296         * soft-fp/extendxftf.c: New file.
16297         * soft-fp/trunctfxf.c: New file.
16298
16299         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
16300         (__trunctfxf2): Ditto.
16301
16302         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
16303         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
16304         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
16305         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
16306         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
16307         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
16308
16309         * config/i386/t-fprules-softfp64: New file.
16310         * config/i386/sfp-machine.h: New file.
16311         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
16312         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
16313         and soft-fp/t-softfp to tmake_file.
16314         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
16315         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
16316
16317         * config/i386/t-linux64 (softfp_wrap_start): New.
16318         (softfp_wrap_end): New.
16319         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
16320         supported for TARGET_64BIT.
16321
16322 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
16323
16324         * c-common.c (c_common_signed_or_unsigned_type): Emulate
16325         c_common_unsigned_type behavior.
16326
16327 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
16328
16329         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
16330         calls as pure.
16331
16332 2007-05-16  Eric Christopher  <echristo@apple.com>
16333
16334         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
16335         saving after stack push. Set sp_offset whenever we push.
16336         (rs6000_emit_epilogue): Move altivec register restore before
16337         stack push.
16338
16339 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
16340
16341         * configure.ac: Allow sysroots to be relocated under $prefix as
16342         well as $exec_prefix.
16343         * configure: Regenerate.
16344
16345 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
16346
16347         Revert:
16348
16349         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
16350
16351         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
16352         (gcc_tooldir): Likewise.
16353         * configure: Regenerate.
16354         * Makefile.in (libsubdir_to_prefix): New variable, based on the
16355         old configure.ac gcc_tooldir setting.
16356         (prefix_to_exec_prefix): New variable.
16357         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
16358         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
16359
16360 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
16361
16362         * c-typeck.c (build_binary_op): Return early for error.
16363
16364 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
16365
16366         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
16367         struct nb_iter_bound.
16368         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
16369         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
16370         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
16371         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
16372         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
16373         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
16374         (del_scev_info): Use ggc_free.
16375         (scev_initialize): Allocate scalar_evolution_info in gc memory.
16376         * loop-init.c: Include ggc.h.
16377         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
16378         (loop_optimizer_finalize): Use ggc_free.
16379         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
16380         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
16381         pass_iv_optimize): Add TODO_ggc_collect.
16382         * function.h (struct function): Remove skip marker from
16383         x_current_loops.
16384         * cfgloop.c: Include ggc.h.
16385         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
16386         memory.
16387         (establish_preds): Vector superloops is gc allocated.
16388         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
16389         loop->exits list.
16390         (flow_loops_find): Vector larray is gc allocated.
16391         (loop_exit_free): Use ggc_free.
16392         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
16393         that head of exits list is now not a part of struct loop.
16394         (record_loop_exits): Allocate exits table in gc memory.
16395         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
16396         that head of exits list is now not a part of struct loop.
16397         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
16398         struct loop_exit): Add GTY marker.
16399         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
16400         Add skip marker to aux field.  Make head of exits list a separate
16401         object.
16402         (struct loops): Add GTY marker.  Make larray vector gc allocated.
16403         Add param marker to exits table.
16404         (get_loops): Type changed.
16405         * Makefile.in (tree-scalar-evolution.o): Add
16406         gt-tree-scalar-evolution.h dependency.
16407         (cfgloop.o, loop-init.o): Add ggc.h dependency.
16408         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
16409         * basic-block.h (struct basic_block_def): Remove skip marker from
16410         loop_father field.
16411
16412 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
16413
16414         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
16415         of 0 in the call to expand_expr().
16416         (expand_builtin_mathfn_3): Ditto.
16417         (expand_builtin_interclass_mathfn): Ditto.
16418         (expand_builtin_cexpi): Ditto.
16419         (expand_builtin_int_roundingfn): Ditto.
16420         (expand_builtin_int_roundingfn_2): Ditto.
16421         (expand_builtin_pow): Ditto.
16422         (expand_builtin_powi): Ditto.
16423         (expand_builtin_bswap): Ditto.
16424         (expand_builtin_unop): Ditto.
16425         (expand_builtin_fabs): Ditto.
16426         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
16427         the call to expand_expr().
16428         (expand_builtin_sync_operation): Ditto.
16429         (expand_builtin_compare_and_swap): Ditto.
16430         (expand_builtin_lock_test_and_set): Ditto.
16431         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
16432         instead of 0 in the call to expand_expr().
16433         (expand_builtin_extract_return_addr): Ditto.
16434         (expand_builtin_eh_return): Ditto.
16435         (expand_eh_return): Ditto.
16436         * explow.c (expr_size): Ditto.
16437         * expr.c (optimize_bitfield_assignment_op): Ditto.
16438         (expand_assignement): Ditto.
16439         (store_expr): Ditto.
16440         (store_field): Ditto.
16441         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
16442         the call to expand_expr().
16443         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
16444         in the call to expand_expr().
16445         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
16446         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
16447         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
16448         of expand_expr().
16449         * optabs.c (expand_vec_shift_expr): Ditto.
16450         (expand_vec_cond_expr): Ditto.
16451         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
16452         call to expand_expr().
16453         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
16454         in the call to expand_expr().
16455
16456 2007-05-14  Dave Korn  <dave.korn@artimi.com>
16457
16458         * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
16459
16460 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
16461
16462         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
16463         instead of c_common_unsigned_type.
16464         (c_common_unsigned_type): Remove.
16465         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
16466         c_common_unsigned_type.
16467         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
16468         c_common_unsigned_type.
16469         * c-common.h (c_common_unsigned_type): Remove.
16470         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
16471         c_common_unsigned_type.
16472         * c-format.c (check_format_types): Use unsigned_type_for instead of
16473         c_common_unsigned_type.
16474         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
16475         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
16476         of c_common_unsigned_type.
16477         * convert.c (convert_to_integer): Use unsigned_type_for instead of
16478         lang_hooks.types.unsigned_type.
16479         * expmed.c (make_tree): Use unsigned_type_for instead of
16480         lang_hooks.types.unsigned_type.
16481         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
16482         lang_hooks.types.unsigned_type.
16483         (build_range_check): Likewise.
16484         (fold_unary): Likewise.
16485         (fold_binary): Likewise.
16486         (fold_ternary): Likewise.
16487         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
16488         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
16489         * tree.c (get_unsigned_type): New.
16490         (unsigned_type_for): Use get_unsigned_type instead of
16491         lang_hooks.types.unsigned_type.
16492
16493 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
16494
16495         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
16496         to m68k_get_function_kind.  Update its prototype.
16497         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
16498         interrupt_thread.
16499         (m68k_interrupt_function_p): Return enum m68k_function_type
16500         instead of bool.  Rename to m68k_get_function_kind.
16501         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
16502         target is not fido.
16503         (m68k_compute_frame_layout): Don't mark any register for save
16504         if an interrupt_thread attribute is specified.
16505         (m68k_hard_regno_rename_ok): Update a use of
16506         m68k_interrupt_function_p.
16507         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
16508         m68k_interrupt_function_p.
16509         (m68k_function_type): New.
16510         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
16511         for a function with an interrupt_thread attribute.
16512         * doc/extend.texi: Document the interrupt_thread attribute.
16513
16514 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
16515
16516         Fix PR tree-optimization/31911
16517         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
16518         if they didn't change the expression.
16519
16520 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
16521
16522         * tree-scalar-evolution.c (resolve_mixers): Exported.
16523         * tree-scalar-evolution.h (resolve_mixers): Declare.
16524         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
16525         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
16526         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
16527         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
16528         init_array_ref, init_pointer_ref, analyze_indirect_ref,
16529         strip_conversion, analyze_offset_expr, address_analysis,
16530         object_analysis, analyze_offset): Removed.
16531         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
16532         split_constant_offset, canonicalize_base_object_address,
16533         object_address_invariant_in_loop_p, disjoint_objects_p,
16534         dr_may_alias_p, dr_address_invariant_p): New functions.
16535         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
16536         and dr_analyze_alias.
16537         (initialize_data_dependence_relation): Use dr_may_alias_p
16538         and object_address_invariant_in_loop_p.
16539         (compute_self_dependence): Handle the case when
16540         DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
16541         (find_data_references_in_stmt): Restrict the analysis of data
16542         references to the given loop nest.
16543         (find_data_references_in_loop): Made static.  Pass loop nest to
16544         find_data_references_in_stmt.
16545         (compute_data_dependences_for_loop): Use DR_VOPS.
16546         (free_data_ref): Free DR_VOPS.
16547         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
16548         (struct innermost_loop_behavior): ... new.
16549         (struct base_object_info): Replaced by ...
16550         (struct indices): ... new.
16551         (struct dr_alias): New.
16552         (enum data_ref_type): Removed.
16553         (struct data_reference): Consist of struct innermost_loop_behavior,
16554         struct indices and struct dr_alias.
16555         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
16556         (DR_MEMTAG): Renamed to ...
16557         (DR_SYMBOL_TAG): ... this.
16558         (find_data_references_in_loop): Declaration removed.
16559         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
16560         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
16561         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
16562         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
16563
16564 2007-05-13  Revital Eres  <eres@il.ibm.com>
16565
16566         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
16567         which walks virtual def-use chains to find redundant stores.
16568         (dse_optimize_stmt): Call it.
16569
16570 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
16571
16572         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
16573         * passes.c (init_optimization_passes): Move pass_jump_bypass
16574         after loop2.
16575
16576         * basic-block.h (bb_has_eh_pred): Fix style issue.
16577
16578 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
16579
16580         PR rtl-optimization/31848
16581         * loop-invariant.c (move_invariant_reg): If we move an insn
16582         with a REG_EQUAL note, and that insn is not always executed,
16583         remove the REG_EQUAL note.
16584
16585 2007-05-12  Richard Guenther  <rguenther@suse.de>
16586
16587         PR tree-optimization/31797
16588         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
16589         propagate into a stmt that has volatile ops.
16590
16591 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
16592
16593         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
16594         (gcc_tooldir): Likewise.
16595         * configure: Regenerate.
16596         * Makefile.in (libsubdir_to_prefix): New variable, based on the
16597         old configure.ac gcc_tooldir setting.
16598         (prefix_to_exec_prefix): New variable.
16599         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
16600         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
16601
16602 2007-05-11  Silvius Rus  <rus@google.com>
16603
16604         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
16605         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
16606         * c-common.h (strict_aliasing_warning): Change return type.
16607         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
16608         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
16609         (build_c_cast): Condition call to strict_aliasing_warning.
16610         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
16611         * flags.h (set_Wstrict_aliasing): Declare.
16612         * opts.c (set_Wstrict_alising): Define, add call to.
16613         * tree-flow.h (strict_aliasing_warning_backend): Declare.
16614         * tree-ssa-alias-warnings.c: New file.
16615         * tree-ssa-alias.c (compute_may_aliases): Add call to
16616         strict_aliasing_warning_backend.
16617
16618 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
16619
16620         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
16621         Use loop_depth and loop_outer accessor functions.
16622         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
16623         determine_invariantness_stmt, move_computations_stmt): Ditto.
16624         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
16625         add_loop, loopify, unloop, fix_loop_structure): Ditto.
16626         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
16627         * tree-scalar-evolution.c (interpret_loop_phi,
16628         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
16629         instantiate_parameters_1, scev_const_prop): Ditto.
16630         * cfghooks.c (make_forwarder_block): Ditto.
16631         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
16632         * modulo-sched.c (loop_canon_p): Ditto.
16633         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
16634         slpeel_can_duplicate_loop_p): Ditto.
16635         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
16636         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
16637         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
16638         cancel_loop, verify_loop_structure): Ditto.
16639         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
16640         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
16641         superloops vector instead of "pred" array.
16642         (establish_preds): Take father loop as an argument.  Initialize the
16643         superloops vector.
16644         (flow_loop_tree_node_add): Pass father loop to establish_preds.
16645         Do not initialize loop->outer.
16646         (flow_loop_tree_node_remove): Truncate the superloops vector.
16647         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
16648         "pred" merged to "superloops" vector.
16649         (loop_depth, loop_outer): New.
16650         (fel_init): Use loop_outer.
16651
16652 2007-05-11  Jan Hubicka  <jh@suse.cz>
16653
16654         * cgraphunit.c: Include gt-cgraphunit.h
16655         (static_ctors, static_dtors): New static vars.
16656         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
16657         based on implementation in c-common.c
16658         (cgraph_finalize_function): Call record_cdtor_fn.
16659         (cgraph_optimize): Call cgraph_build_cdtor_fns.
16660         * decl.c (finish_function): Do not call c_record_cdtor_fn.
16661         (c_write_global_declarations): Do not call c_build_cdtor_fns.
16662         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
16663         build_cdtor, c_build_cdtor_fns): Remove.
16664         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
16665         c_build_cdtor_fns): Remove prototype.
16666
16667 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
16668
16669         PR other/31852
16670         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
16671         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
16672         * builtins.c (fold_builtin_memchr): New.
16673         (expand_builtin_memchr): Call the latter.
16674         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
16675         * doc/extend.texi ([Other built-in functions provided by GCC]):
16676         Document memchr.
16677
16678 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
16679
16680         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
16681         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
16682         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
16683         PFPO_OP1_TYPE_SHIFT): Constants added.
16684         (DFP_ALL): Mode macro defined.
16685         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
16686         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
16687         Insn definitions added.
16688         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
16689         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
16690         Expanders added.
16691
16692 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
16693
16694         PR tree-optimization/31885
16695         * tree-chrec.c (chrec_contains_undetermined): Do not consider
16696         NULL_TREE to be undetermined.
16697         (automatically_generated_chrec_p): Return false for NULL.
16698
16699 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
16700
16701         * config/bfin/bfin.h (MOVE_RATIO): Define.
16702
16703 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
16704
16705         * config.gcc (sparc-wrs-vxworks): New target.
16706         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
16707         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
16708         * config/sparc/sparc.h: Include vxworks-dummy.h.
16709         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
16710         include LABEL_REFs too.
16711         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
16712         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
16713         VxWorks.
16714         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
16715         on VxWorks.
16716         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
16717         (sparc_emit_call_insn): New function.
16718         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
16719         functions when generating VxWorks PIC.
16720         * config/sparc/sparc.md (vxworks_load_got): New pattern.
16721         (call, call_value): Use sparc_emit_call_insn instead of
16722         emit_call_insn.
16723
16724 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
16725
16726         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
16727
16728 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
16729
16730         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
16731         for floating-point values if HOST_BITS_PER_LONG > 32.  Use
16732         split_double instead of operand_subword.
16733
16734 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
16735
16736         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
16737         * config/bfin/bfin.c (bfin_local_alignment): New function.
16738         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
16739
16740 2007-05-08  Chao-ying Fu  <fu@mips.com>
16741
16742         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
16743         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
16744         (smsub_widen_optab, umsub_widen_optab): Define.
16745         * optabs.c (init_optabs): Initialize smsub_widen_optab and
16746         umsub_widen_optab.
16747         * genopinit.c (optabs): Fill in smsub_widen_optab and
16748         umsub_widen_optab.
16749         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
16750         and umsub_widen_optab to implement multiply-subtract sequences.
16751         * config/mips/mips.md (*msac<u>_di): Rename to...
16752         (<u>msubsidi4): ...this.  Extend condition to include
16753         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
16754         of operand 0 to "ka" and use the three-operand form of msub<u>
16755         for TARGET_DSPR2.
16756         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
16757         to define_expands.
16758
16759 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16760
16761         PR rtl-optimization/28011
16762         * reload.c (push_reload): Set dont_share if IN appears in OUT
16763         also when IN is a PLUS rtx.
16764         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
16765         are same PLUS rtx.
16766
16767 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
16768
16769         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
16770         call unshare_all_decls.
16771         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
16772         (unshare_all_decls): Remove.
16773
16774 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
16775
16776         PR 31847
16777         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
16778         dumps.
16779
16780 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
16781             Nigel Stephens  <nigel@mips.com>
16782
16783         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
16784         Update comments and all uses.
16785         (MIN_FPRS_PER_FMT): Define.
16786         * config/mips/mips.c (function_arg): Fix to correctly handle
16787         the -mips32r2 -mfp64 -mabi=32 case.
16788         (override_options): Enable use of odd-numbered registers for
16789         SFmode values on MIPS32.
16790         (mips_save_reg_p): Save whole floating-point register pair if
16791         either half is used.
16792         (compute_frame_size): Fix comment.
16793
16794 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
16795
16796         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
16797         argument of type bool.
16798         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
16799         argument. Safely select temporary P register according to it.
16800         (do_link): Change call site of add_to_reg accordingly.
16801         (do_unlink): Add epilogue_p as a fourth argument and pass it
16802         to add_to_reg.
16803         (expand_interrupt_handler_epilogue): Change call of do_unlink
16804         accordingly.
16805         (bfin_expand_prologue): Add a third argument sibcall_p.
16806         * config/bfin/bfin.md (epilogue): Change call of
16807         bfin_expand_epilogue accordingly.
16808         (sibcall_epilogue): Likewise.
16809         (eh_return_internal): Likewise.
16810
16811         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
16812         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
16813         * config/bfin/bfin.c (bfin_handle_option): Handle
16814         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
16815         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
16816         Support bf534, bf536 and bf561.
16817         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
16818
16819 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
16820
16821         PR target/31854
16822         * config/i386/i386.c (ix86_function_regparm): Process local
16823         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
16824
16825 2007-05-07  Mike Stump  <mrs@apple.com>
16826
16827         * doc/invoke.texi (Warning Options): Document that -Wempty-body
16828         also checks for and while statements in C++.
16829
16830 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
16831
16832         * gcc.c (at_file_supplied): New variable.
16833         (main): Set it if we expanded argv.
16834         (do_spec_1): Pass an @-file to the linker if we were called with
16835         an @-file argument and HAVE_GNU_LD.
16836         * collect2.c (at_file_supplied): New variable.
16837         (response_file): New variable.
16838         (collect_exit): Unlink response_file if necessary.
16839         (handler): Likewise.
16840         (do_wait): Likewise.
16841         (main): Set at_file_supplied if we expanded argv.
16842         (collect_execute): Pass an @-file to subprocesses if we were called
16843         with an @-file argument.
16844         * configure.ac: Add define for HAVE_GNU_LD.
16845         * configure: Regenerate.
16846         * config.in: Regenerate.
16847
16848 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
16849
16850         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
16851         operand to HI mode.
16852         (mulsi3): New.
16853         (divsi3): New.
16854         (udivsi3): New.
16855
16856 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
16857
16858         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
16859         (TARGET_ENCODE_SECTION_INFO): Re-define.
16860         (m32c_encode_section_info): New
16861         (function_vector_handler): New
16862         (current_function_special_page_vector): New
16863         (m32c_special_page_vector_p): New.
16864         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
16865         Prototype.
16866         * config/m32c/jump.md: Added instruction JSRS for functions
16867         with attribute "function_vector".
16868         * doc/extend.texi (function_vector): Added description
16869         for M16C, M32C targets.
16870
16871 2007-05-07  DJ Delorie  <dj@redhat.com>
16872
16873         PR 31794
16874         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
16875         ashrpsi3, lshrpsi3): Update shift count constraint.
16876
16877 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
16878             Nathan Froyd  <froydnj@codesourcery.com>
16879
16880         PR 22133
16881         * c-incpath.c (add_path): Strip trailing path separators.
16882
16883 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16884
16885         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
16886         Free dominance info before purging EH edges.
16887         (eliminate_degenerate_phis): Likewise.
16888         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
16889
16890 2007-05-07  Jan Hubicka  <jh@suse.cz>
16891
16892         * gimplify.c (gimplify_expr): Do not crash when folding
16893         (void *)(int)&a + 4.
16894
16895 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16896
16897         PR driver/31694
16898         * c-opts.c (lang_fortran): Make it non static.
16899         * c-common.h (lang_fortran): New prototype.
16900         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
16901         -lang-fortran option was passed by the driver.
16902
16903 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
16904
16905         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
16906         of ASSERT_CHECKING.  Tweak message.
16907
16908 2007-05-06  Revital Eres  <eres@il.ibm.com>
16909
16910         PR 30957
16911         * loop-unroll.c (insert_var_expansion_initialization):
16912         Initialize the expansions with -zero instead of +zero.
16913
16914 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
16915
16916         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
16917         into pic and non-pic versions. Mark r19 as used for
16918         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
16919         for tgd_load, tld_load and tie_load .
16920         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
16921         version of tgd_load, tld_load and tie_load depending on the
16922         value of flag_pic.
16923
16924 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
16925             Jakub Jelinek  <jakub@redhat.com>
16926
16927         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
16928         (__do_global_dtors_aux): Use more paranoid loop to run
16929         destructors if HIDDEN_DTOR_LIST_END.
16930         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
16931
16932 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
16933
16934         * varasm.c (align_variable): Don't increase alignment for
16935         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
16936         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
16937
16938 2007-05-04  Josh Conner  <jconner@apple.com>
16939
16940         * basic-block.h (cdi_direction): Assign values to all enumeration
16941         constants.
16942         (dom_computed): Remove.
16943         (dom_info_state): New.
16944         (set_dom_info_availability): New.
16945         * tree-ssa-loop-im.c (determine_invariantness): Initialize
16946         walk_data.dom_direction.
16947         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
16948         instead of dom_computed[].
16949         (split_edge): Likewise.
16950         (create_basic_block): Likewise.
16951         (merge_blocks): Likewise.
16952         * ifcvt.c (find_if_header): Likewise.
16953         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
16954         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
16955         * tree-ssa.c (verify_ssa): Likewise.
16956         * tree-cfg.c (tree_verify_flow_info): Likewise.
16957         (remove_edge_and_dominated_blocks): Likewise.
16958         * dominance.c (dom_computed): Make static.
16959         (calc_dfs_tree_nonrec): Change third param to a bool.
16960         (calc_dfs_tree): Change second param to a bool.
16961         (calc_idioms): Change second param to a bool.  Use
16962         dom_convert_dir_to_idx.
16963         (init_dom_info): Validate dir before using.
16964         (dom_convert_dir_to_idx): New.
16965         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
16966         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
16967         (free_dominance_info): Use dom_convert_dir_to_idx.
16968         (get_immediate_dominator): Likewise.
16969         (set_immediate_dominator): Likewise.
16970         (get_dominated_by): Likewise.
16971         (redirect_immediate_dominators): Likewise.
16972         (nearest_common_denominator): Likewise.
16973         (dominated_by_p): Likewise.
16974         (bb_dom_dfs_in): Likewise.
16975         (bb_dom_dfs_out): Likewise.
16976         (recount_dominator): Likewise.
16977         (iterate_fix_dominators): Likewise.
16978         (add_to_dominance_info): Likewise.
16979         (delete_from_dominance_info): Likewise.
16980         (first_dom_son): Likewise.
16981         (next_dom_son): Likewise.
16982         (dom_info_available_p): Likewise.
16983         (dom_info_state): New.
16984         (set_dom_info_availability): New.
16985
16986 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
16987
16988         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
16989         Expander removed.
16990         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
16991
16992 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
16993
16994         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
16995         (subdi3, subdi_carry): Delete.
16996
16997 2007-05-04  Jan Hubicka  <jh@suse.cz>
16998             Richard Guenther  <rguenther@suse.de>
16999
17000         * opts.c (decode_options): Do not fiddle with inlining
17001         parameters in case of optimizing for size.
17002         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
17003         for size do nothing.
17004         (cgraph_decide_inlining_of_small_function): When optimizing for
17005         size never inline functions increasing caller size.
17006         (cgraph_early_inlining): Inline for size when optimizing for size.
17007
17008 2007-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
17009
17010         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
17011         logical operations piecewise.
17012         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
17013         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
17014         subdi_sesidi_di): Delete.
17015         (add_with_carry): Produce carry in CC instead of a DREG to shorten
17016         the generated sequence.  Allow three-reg add in constraints.  Rewrite
17017         the rtl expression for carry to avoid zero_extend of a constant.
17018         (sub_with_carry): New pattern.
17019         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
17020         different sequence not involving jumps.
17021         (notbi): Now a named pattern.
17022
17023 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
17024
17025         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
17026         Add the note about a significant loss of accuracy of some
17027         mathematical routines when these options are used.
17028
17029 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
17030
17031         * haifa-sched.c (rtx_vec_t): New typedef.
17032         (contributes_to_priority_p): Extract piece of priority () into new
17033         static function.
17034         (priority): Use the function.  Add assertion.
17035         (rank_for_schedule, set_priorities): Add assertion to check that
17036         insn's priority is initialized.
17037         (clear_priorities, calc_priorities): Change signature.  Make it update
17038         all relevant insns.  Update all callers ('add_to_speculative_block ()'
17039         and 'create_block_check_twin ()').
17040         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
17041         Add new field 'priority_status'.
17042         (INSN_PRIORITY_STATUS): New macro.
17043         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
17044
17045 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
17046
17047         * sched-ebb.c (debug_ebb_dependencies): New static function.
17048         (init_ready_list): Use it.
17049
17050         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
17051         with changed signature and 'debug_rgn_dependencies ()'.
17052         (debug_rgn_dependencies): New static function.
17053         (init_ready_list): Use it.
17054
17055         * sched-int.h (debug_dependencies): Declare.
17056
17057 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
17058
17059         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
17060
17061 2007-05-04  Dirk Mueller  <dmueller@suse.de>
17062
17063         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
17064
17065 2007-05-03  Jan Hubicka  <jh@suse.cz>
17066
17067         * fold-const.c (fold_unary): Convert (T1)(X op Y) into
17068         ((T1)X op (T1)Y), for pointer type in more cases than before.
17069
17070         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
17071
17072         * tree-object-size.c (plus_expr_object_size): When operand size is
17073         unknown, return unknown.
17074
17075 2007-05-03  Dirk Mueller  <dmueller@suse.de>
17076
17077         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
17078
17079         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
17080         options.
17081
17082         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
17083
17084 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
17085
17086         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
17087
17088 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
17089
17090         * config/soft-fp/double.h, config/soft-fp/extended.h,
17091         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
17092         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
17093         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
17094         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
17095         glibc CVS.
17096
17097 2007-05-03  Ian Lance Taylor  <iant@google.com>
17098
17099         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
17100         MASK_PPC_GFXOPT for 8540 or 8548.
17101
17102 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
17103
17104         * tree-vect-transform.c (vect_update_inits_of_drs): Use
17105         vect_print_dump_info() to output debug information.
17106
17107 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
17108
17109         PR target/31768
17110         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
17111         operands of size 2 when operand is not MEM_P.
17112
17113 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
17114
17115         PR tree-optimization/30565
17116         * lambda-code.c (perfect_nestify): Fix updating of dominators.
17117
17118 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
17119
17120         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
17121         (umulsi3_highpart): Use them.
17122         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
17123         for final accumulator to D regisster tranfser.
17124
17125 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
17126
17127         PR tree-optimization/31699
17128         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
17129         wrong code.
17130         (vect_enhance_data_refs_alignment): Compute peel amount using
17131         TYPE_VECTOR_SUBPARTS instead of vf.
17132         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
17133
17134 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
17135
17136         PR bootstrap/31776
17137         * system.h: Remove inclusion of double-int.h
17138         * tree.h: Include double-int.h
17139         * gengtype.c: Likewise
17140         * cfgloop.h: Likewise
17141         * Makefile.in: Adjust dependencies on double-int.h
17142
17143 2007-05-02  Eric Christopher  <echristo@apple.com>
17144
17145         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
17146         -shared to -Zdynamiclib.
17147
17148 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
17149
17150         PR c++/31663
17151         * c-common.c (strip_pointer_or_array_types): New function.
17152         * c-common.h (strip_pointer_or_array_types): New function declaration.
17153
17154 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
17155
17156         PR tree-optimization/31771
17157         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
17158
17159 2007-05-02  Paul Brook  <paul@codesourcery.com>
17160
17161         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
17162
17163 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17164
17165         PR middle-end/29715
17166         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
17167         transformation.
17168
17169 2007-05-02  Nick Clifton  <nickc@redhat.com>
17170
17171         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
17172
17173 2007-05-02  Richard Guenther  <rguenther@suse.de>
17174
17175         PR tree-optimization/31146
17176         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
17177         argument, single_use_p.  If we have a single use that is
17178         a conversion to the definition rhs type, propagate that rhs.
17179         (forward_propagate_addr_expr): Pass single_use_p argument
17180         to forward_propagate_addr_expr_1.
17181
17182 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
17183
17184         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
17185         variable.
17186
17187 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17188
17189         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
17190         'AMD Family 10 core'.
17191
17192 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17193
17194         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
17195         and athlon64-sse3 as improved versions of k8, opteron and athlon64
17196         with SSE3 instruction set support.
17197         * doc/invoke.texi: Likewise.
17198
17199 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17200
17201         * config/i386/i386.c (override_options): Tuning 32-byte loop
17202         alignment for amdfam10 architecture. Increasing the max loop
17203         alignment to 24 bytes.
17204
17205 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
17206
17207         * config/m68k/constraints.md: New.
17208         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
17209         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
17210         EXTRA_CONSTRAINT): Remove.
17211         * config/m68k/m68k.md: Include constraints.md.
17212         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
17213
17214 2007-05-01  Ian Lance Taylor  <iant@google.com>
17215
17216         PR tree-optimization/31739
17217         * tree-vrp.c (vrp_val_is_max): New static function.
17218         (vrp_val_is_min): New static function.
17219         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
17220         copying the node.
17221         (set_value_range): Use vrp_val_is_{max,min}.
17222         (extract_range_from_assert): Likewise.
17223         (extract_range_from_binary_expr): Likewise.
17224         (extract_range_from_unary_expr): Likewise.
17225         (dump_value_range, vrp_meet): Likewise.
17226         (vrp_visit_phi_node): Likewise.
17227         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
17228
17229 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
17230
17231         * config/i386/gmon-sol2.c (size_t): New type.
17232         (intptr_t): Likewise.
17233         (s_textsize): Declare as size_t.
17234         (sbrk): Declare.
17235         (monstartup): Use size_t for sizes.
17236         (_mcount): Save and restore registers.
17237         (internal_mcount): Pass 0 as the first argument to monstartup
17238         in 64-bit mode.
17239         (moncontrol): Convert pointer to appropriately sized integer
17240         before passing to profil.
17241
17242 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
17243
17244         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
17245         __NO_FPRS__, not just if _SOFT_DOUBLE.
17246         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
17247         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
17248         also for E500 double.
17249         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
17250         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
17251         && !TARGET_FPRS).
17252
17253 2007-05-01  Richard Guenther  <rguenther@suse.de>
17254
17255         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
17256         is NULL.
17257
17258 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
17259
17260         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
17261
17262 2007-05-01  Jan Hubicka  <jh@suse.cz>
17263
17264         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
17265         invariant.
17266
17267 2007-05-01  Jan Hubicka  <jh@suse.cz>
17268
17269         * tree.h (maybe_fold_offset_to_component_ref): Remove.
17270         (maybe_fold_offset_to_reference): Declare.
17271         * fold-const.c (fold_unary): Do not fold
17272         (type *)&A into &A->field_of_type_and_offset_0
17273         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
17274         size is unknown, give up.
17275         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
17276         offsets.
17277         (maybe_fold_offset_to_reference): New.
17278         (maybe_fold_stmt_indirect): Use it.
17279         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
17280         * gimplify.c (gimplify_conversion): Canonicalize conversions to
17281         field references.
17282         (gimplify_expr): Likewise for plus_expr.
17283
17284 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
17285
17286         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
17287         bsi_after_labels.  Always insert statements before bsi.
17288         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
17289         * predict.c (apply_return_prediction): Check for empty blocks.
17290         * cfgexpand.c (lab_rtx_for_bb): New variable.
17291         (label_rtx_for_bb): Do not create new tree labels.
17292         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
17293         (tree_expand_cfg): Initialize lab_rtx_for_bb.
17294         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
17295         creating edges.
17296         (label_for_bb): Add field used.
17297         (update_eh_label, main_block_label): Mark the label used.
17298         (cleanup_dead_labels): Remove unused labels.
17299
17300 2007-05-01  Richard Guenther  <rguenther@suse.de>
17301
17302         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
17303         if it is not about to be set.
17304         (get_value_range): Do not pre-allocate equiv bitmap.
17305         (update_value_range): No need to clear equiv field.
17306         (add_equivalence): Change prototype to get bitmap pointer.
17307         Allocate bitmap here if it is not already.
17308         (extract_range_from_assert): Do not allocate bitmap here.
17309         Update callers to add_equivalence.
17310         (extract_range_from_ssa_name): Likewise.
17311         (get_vr_for_comparison): New static helper.
17312         (compare_name_with_value): Handle NULL equiv bitmap by
17313         peeling the first iteration of the comparison loop.
17314         Use get_vr_for_comparison.
17315         (compare_names): Handle NULL equiv bitmaps by using fake
17316         ones.  Use get_vr_for_comparison.
17317
17318 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
17319
17320         * double-int.c (mpz_set_double_int): Moved from
17321         tree-ssa-loop-niter.c.
17322         (mpz_get_double_int): Likewise; also, add option to wrap
17323         out-of-range integers.
17324         * double-int.h: New prototypes for above.
17325         * tree.c (get_static_type_bounds): Moved from
17326         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
17327         TYPE_MAX_VALUE if they exist..
17328         * tree.h: New prototype for above.
17329         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
17330         get_type_bounds calls.
17331         (mpz_set_double_int): Move to double-int.c.
17332         (get_type_bounds): Move to tree.c, rename to
17333         get_static_type_bounds.
17334         (mpz_to_double_int): Move to double-int.c, rename to
17335         mpz_get_double_int.
17336
17337 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
17338
17339         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
17340         DIV0 exception can fall through to a normal return.
17341
17342 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
17343
17344         PR middle-end/22156
17345         Temporarily revert:
17346         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
17347         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
17348         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
17349         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
17350         initialize align to silence bogus warning.
17351         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
17352         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
17353         all_no_warning.
17354         (struct sra_walk_fns): Remove use_all parameter from use.
17355         (sra_hash_tree): Handle BIT_FIELD_REFs.
17356         (sra_elt_hash): Don't hash bitfld blocks.
17357         (sra_elt_eq): Skip them in parent compares as well.  Handle
17358         BIT_FIELD_REFs.
17359         (sra_walk_expr): Don't maintain or pass down use_all_p.
17360         (scan_use): Remove use_all parameter.
17361         (scalarize_use): Likewise.  Re-expand assignment to
17362         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
17363         output, and re-scalarize after output.  Don't mark anything
17364         for no warning.
17365         (scalarize_ldst): Adjust.
17366         (scalarize_walk_gimple_modify_statement): Likewise.
17367         (build_element_name_1): Handle BIT_FIELD_REFs.
17368         (instantiate_element): Don't warn for any element whose parent
17369         is used as a whole.
17370         (instantiate_missing_elements_1): Return the sra_elt.
17371         (canon_type_for_field): New.
17372         (try_instantiate_multiple_fields): New.
17373         (instantiate_missing_elemnts): Use them.
17374         (mark_no_warning): Removed.
17375         (generate_one_element_ref): Handle BIT_FIELD_REFs.
17376         (REPLDUP, sra_build_elt_assignment): New.
17377         (generate_copy_inout): Use them.
17378         (generate_element_copy): Likewise.  Handle bitfld differences.
17379         (generate_element_zero): Don't recurse for blocks.  Use
17380         sra_build_elt_assignment.
17381         (generate_one_element_int): Take elt instead of var.  Use
17382         sra_build_elt_assignment.
17383         (generate_element_init_1): Adjust.
17384         (scalarize_use, scalarize_copy): Use REPLDUP.
17385         (scalarize_ldst): Move assert before dereference.
17386         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
17387
17388 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17389
17390         PR C++/31721
17391         * tree.c (reconstruct_complex_type): Reconstruct a reference
17392         correctly.
17393         Also use the same mode for the pointer as the old pointer type.
17394
17395 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
17396
17397         * doc/trouble.texi (Interoperation): Remove note about Ultrix
17398         Fortran compiler.
17399
17400 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
17401
17402         PR rtl-optimization/31676
17403         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
17404         (df_refs_record): Call it.
17405
17406 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17407
17408         * rtl.def (SS_ABS): New code.
17409         * config/bfin/bfin.c (print_operand): New modifier 'v'.
17410         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
17411         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
17412         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
17413         (bfin_init_builtins): Define them.
17414         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
17415         (bfin_expand_builtin): ... and handle the others here.
17416         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
17417         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
17418         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
17419         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
17420         operand is only HImode.
17421
17422 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
17423
17424         * regclass.c (scan_one_insn): Remove splitting of
17425         two address insns.
17426
17427 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
17428             Nigel Stephens  <nigel@mips.com>
17429
17430         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
17431
17432 2007-04-28  Jan Hubicka  <jh@suse.cz>
17433
17434         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
17435         insn_locators_alloc instead of insn_locators_initialize;
17436         call reset_block_changes.
17437         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17438         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
17439         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
17440         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17441         * config/score/score.c (th_output_mi_thunk): Likewise.
17442         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17443         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
17444         tolerate uninitialized locator info.
17445
17446         Re-apply:
17447         * function.c (init_function_start): Don't init line number info.
17448         (expand_function_end): Update.
17449         (reset_block_changes, record_block_change, finalize_block_changes,
17450         check_block_change, free_block_changes): Kill.
17451         * function.h (reset_block_changes, record_block_change,
17452         finalize_block_changes, check_block_change, free_block_changes):
17453         Remove prototypes.
17454         (struct function): Remove ib_boundaries_block.
17455         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
17456         Use curr_insn_locator to initialize locator.
17457         (emit_line_note): Remove.
17458         * cfgexpand.c (expand_gimple_cond_expr): Update.
17459         (construct_exit_block): Likewise.
17460         (tree_expand_cfg): Initialize/finalize locators.
17461         * expr.c (expand_expr_real): Update.
17462         * cfglayout.c (line_locators_locs, line_locators_lines,
17463         file_locators_locs, file_locators_files): Remove.
17464         (set_block_levels): Move to cfgexpand.c.
17465         (insn_locators_initialize): Remove.
17466         (pass_insn_locators_initialize): Remove.
17467         (locations_locators_locs, locations_locators_vals): New static vars.
17468         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
17469         Likewise.
17470         (insn_locators_alloc, insn_locators_finalize,
17471         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17472         New functions.
17473         (locator_location): New.
17474         (locator_line, locator_file): Rewrite.
17475         * rtl.h (emit_line_note): Kill.
17476         (insn_locators_alloc, insn_locators_finalize,
17477         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17478         Declare.
17479         * tree-inline.c (initialize_cfun): Do not initialize
17480         ib_boundaries_block.
17481         * passes.c (pass_insn_locators_initialize): Remove.
17482
17483 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
17484
17485         * tree-cfg.c (move_block_to_fn): Release bb from dominance
17486         info.  Update last_basic_block correctly.
17487
17488 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
17489
17490         PR target/31701
17491         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
17492         register itself to hold the offset constant.  Tell flow the use
17493         of r4 and r5 when they are used.
17494
17495 2007-04-27  Richard Guenther  <rguenther@suse.de>
17496
17497         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
17498         if we simplified anything.
17499         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
17500         warnings until we did a simplification and the stmt was not
17501         marked as TREE_NO_WARNING.
17502
17503 2007-04-27  Mike Stump  <mrs@apple.com>
17504
17505         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
17506
17507 2007-04-27  Ian Lance Taylor  <iant@google.com>
17508
17509         PR middle-end/31710
17510         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
17511         TYPE_MAX_VALUE exist, convert them to the new type.
17512
17513 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17514
17515         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
17516         if it claims to be available.
17517         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
17518         edge is redirected.
17519         (perform_tree_ssa_dce): Always free postdominators.
17520
17521 2007-04-27  Richard Henderson  <rth@redhat.com>
17522
17523         * config/alpha/predicates.md (aligned_memory_operand): Mark
17524         as define_special_predicate.
17525         (unaligned_memory_operand, normal_memory_operand): Likewise.
17526         (reg_or_unaligned_mem_operand): Remove.
17527         (any_memory_operand): Match the documentation and check for
17528         non-renumbered pseudos during reload.
17529         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
17530         alpha_secondary_reload_class, update to new interface, make static.
17531         Handle CQImode like HImode.  Remove FP subreg check.
17532         (alpha_expand_mov): Use replace_equiv_address.
17533         (alpha_expand_mov_nobwx): Use any_memory_operand.
17534         (TARGET_SECONDARY_RELOAD): New.
17535         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
17536         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
17537         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
17538         * config/alpha/alpha.md: ... here.
17539         (RELOAD12, reloadmode): New.
17540         (movcqi): New.
17541         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
17542         Don't handle the aligned case here.
17543         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
17544         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
17545         reload_inhi_help.  Don't expect a scratch register.
17546         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
17547         reload_outhi_help.
17548         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
17549
17550 2007-04-27  Richard Guenther  <rguenther@suse.de>
17551
17552         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
17553
17554 2007-04-27  Richard Guenther  <rguenther@suse.de>
17555
17556         PR tree-optimization/30965
17557         PR tree-optimization/30978
17558         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
17559         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
17560         (find_equivalent_equality_comparison): Likewise.
17561         (simplify_cond): Likewise.
17562         (get_prop_source_stmt): New helper.
17563         (get_prop_dest_stmt): Likewise.
17564         (can_propagate_from): Likewise.
17565         (remove_prop_source_from_use): Likewise.
17566         (combine_cond_expr_cond): Likewise.
17567         (forward_propagate_comparison): New function.
17568         (forward_propagate_into_cond): Rewrite to use fold for
17569         tree combining.
17570         (tree_ssa_forward_propagate_single_use_vars): Call
17571         forward_propagate_comparison to propagate comparisons.
17572
17573 2007-04-27  Richard Guenther  <rguenther@suse.de>
17574
17575         PR tree-optimization/31715
17576         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
17577         sure to do computation on the offset in an appropriate
17578         signed type.
17579
17580 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
17581
17582         * reload.h (elimination_target_reg_p): Declare.
17583         * reload.c (find_reloads): Don't apply the reg_rtx move
17584         optimization if the SET_DEST satisfies elimination_target_reg_p.
17585         * reload1.c (elimination_target_reg_p): New function.
17586         (gen_reload): In the move/add2 fallback, make sure that op0
17587         does not overlap the destination register.
17588
17589 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17590
17591         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
17592         transform only GIMPLE_MODIFY_STMTs.
17593         * tree-complex.c (expand_complex_operations_1): Ditto.
17594         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
17595         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
17596         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
17597         branches.
17598         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
17599         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
17600         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
17601         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
17602         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
17603         slpeel_add_loop_guard): Ditto.
17604         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
17605         * lambda-code.c (perfect_nestify): Ditto.
17606         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
17607         before the first statement.
17608         * tree-optimize.c (execute_free_datastructures): Fix comments.
17609         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
17610         * tree-flow.h (disband_implicit_edges): Declaration removed.
17611         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
17612         branches.
17613         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
17614         COND_EXPRs without gotos.
17615         (disband_implicit_edges, has_label_p): Removed.
17616         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
17617         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
17618         branches.
17619         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
17620         side effects.
17621         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
17622         also for COND_EXPRs.
17623         * cfgexpand.c (label_rtx_for_bb): New function.
17624         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
17625         Use label_rtx_for_bb to find the labels.
17626         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
17627         last block.  Detect fallthru edges.
17628
17629 2007-04-26  Ian Lance Taylor  <iant@google.com>
17630
17631         PR target/28675
17632         * reload.c (find_reloads_subreg_address): If the address was valid
17633         in the original mode but not in the new mode, reload the whole
17634         address.
17635
17636 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17637
17638         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
17639         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
17640         (cleanup_control_expr_graph): Do not invalidate dominance info.
17641         Record altered blocks.
17642         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
17643         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
17644         cleanup_tree_cfg_bb): New functions.
17645         (remove_forwarder_block): Do not maintain the worklist of blocks.
17646         Record altered blocks.
17647         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
17648         not over whole cfg.
17649         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
17650         delete_unreachable_blocks if dominators are not available.
17651         * tree-inline.c (optimize_inline_calls): Free dominance information
17652         earlier.
17653         * tree-flow.h (remove_edge_and_dominated_blocks,
17654         cfgcleanup_altered_bbs): Altered.
17655         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
17656         blocks.
17657         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
17658         functions.
17659         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
17660         do not invalidate dominators.
17661
17662 2007-04-26  Anatoly Sokolov <aesok@post.ru>
17663
17664         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
17665         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
17666         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
17667         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
17668
17669 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
17670
17671         * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
17672
17673 2007-04-26  Richard Guenther  <rguenther@suse.de>
17674
17675         PR tree-optimization/31703
17676         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
17677         the right type for the target of the bittest.
17678
17679 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17680
17681         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
17682         ix86_sol10_return_in_memory.
17683
17684 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17685
17686         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
17687         variables.
17688
17689 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
17690
17691         PR c++/31598
17692         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
17693
17694         PR tree-optimization/30558
17695         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
17696         clear this_state.prev_try.
17697
17698 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17699             Mark Mitchell  <mark@codesourcery.com>
17700
17701         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
17702         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
17703         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
17704
17705 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17706
17707         PR driver/31107
17708         * doc/invoke.texi (%:print-asm-header): Document.
17709         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
17710         and -ftarget-help.
17711         (static_spec_functions): Add print-asm-header.
17712         (main): Print a banner before the --target-help linker options.
17713         (print_asm_header_spec_function): New function.
17714
17715 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17716
17717         PR target/31403
17718         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
17719         (movsf_ie): Likewise.
17720
17721 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
17722
17723         * doc/extend.texi ([Type Traits]): Adjust per N2255.
17724
17725 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
17726
17727         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
17728         exception for divide-by-zero.
17729         (__umodsi3, __modsi3): Likewise.
17730
17731 2007-04-25  Dirk Mueller  <dmueller@suse.de>
17732
17733         * c-typeck.c (build_compound_expr): Annotate warning()
17734         call with OPT_Wunused_value.
17735         * tree-ssa.c (warn_uninit): Annotate warning with
17736         OPT_Wunintialized.
17737         * c-common.c (handle_sentinel_attribute): Annotate warning
17738         call with OPT_Wattributes.
17739
17740 2007-04-25  Thiemo Seufer  <ths@mips.com>
17741
17742         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
17743         (mips16): Fix typo.
17744         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
17745         on to the assembler.  Improve handling of -mno-mips16.  Add handling
17746         of -mno-mips3d, -mno-dsp, -mno-dspr2.
17747         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
17748         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
17749         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
17750
17751 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
17752
17753         PR target/31680
17754         * config/i386/winnt.c (i386_pe_file_end): Strip only
17755         USER_LABEL_PREFIX when writing export name.
17756
17757 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
17758
17759         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
17760         sh/elf.h, vx-common.h and vxworks.h.
17761         * config/sh/sh.h: Include config/vxworks-dummy.h.
17762         (SUBTARGET_OVERRIDE_OPTIONS): Define.
17763         (OVERRIDE_OPTIONS): Use it.
17764         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
17765         (vxworks_picreg): New pattern.
17766         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
17767         VXWORKS_OS_CPP_BUILTINS.
17768         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
17769         to their VXWORKS_* equivalents.
17770         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
17771         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
17772         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
17773         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
17774         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
17775         -mrtp/-fPIC multilibs.
17776         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
17777         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
17778         (MULTILIB_OSDIRNAMES): Delete.
17779
17780 2007-04-25  Anatoly Sokolov <aesok@post.ru>
17781
17782         PR target/18989
17783         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
17784
17785 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
17786
17787         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
17788         rounding mode to be specified by the caller.
17789         (real_to_mpfr) Likewise.
17790         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
17791         include new arguments.
17792         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
17793
17794 2007-04-24  Ian Lance Taylor  <iant@google.com>
17795
17796         PR tree-optimization/31605
17797         * tree-vrp.c (set_value_range): Check that min and max are not
17798         both overflow infinities.
17799         (set_value_range_to_value): New static function.
17800         (extract_range_from_binary_expr): Call set_value_range_to_value.
17801         (extract_range_from_cond_expr): Likewise.
17802         (extract_range_from_expr): Likewise.
17803         (extract_range_from_unary_expr): Likewise.  Don't create a range
17804         which overflows on both sides.
17805         (vrp_meet): Check for a useless range.
17806         (vrp_visit_phi_node): If we see a constant which looks like an
17807         overflow infinity, turn off the TREE_OVERFLOW flag.
17808
17809 2007-04-24  Ian Lance Taylor  <iant@google.com>
17810
17811         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
17812
17813 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
17814
17815         PR diagnostic/25923
17816         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
17817         diagnostic message is being built.
17818         * tree-pretty-print.c (dump_generic_node): Only write the
17819         formatted text into BUFFER's stream if we are not building a
17820         diagnostic message.
17821         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
17822         dump_generic_node.
17823         * Makefile.in (toplev.o): Depend on tree-pass.h.
17824
17825 2007-04-24  Ian Lance Taylor  <iant@google.com>
17826
17827         PR tree-optimization/31602
17828         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
17829         conditionals in the copied loop header.
17830         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
17831         warnings if TREE_NO_WARNING is set.
17832         * doc/invoke.texi (Warning Options): Clarify that
17833         -Wstrict-overflow does not warn about loops.
17834
17835 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
17836
17837         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
17838         expand on the comment about _Decimal128 arguments and check the
17839         integer result of the modulus operation; for 64-bit ELF ABI, ensure
17840         that _Decimal128 argument uses even/odd register pair.
17841         (function_arg): Ditto.
17842
17843 2007-04-24  Hui-May Chang <hm.chang@apple.com>
17844
17845         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
17846         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
17847
17848 2007-04-24  Richard Guenther  <rguenther@suse.de>
17849             Olga Golovanevsky  <olga@il.ibm.com>
17850
17851         * fold-const.c (multiple_of_p): Check for bottom
17852         to be zero.
17853
17854 2007-04-24  Richard Henderson  <rth@redhat.com>
17855
17856         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
17857         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
17858         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
17859         looking for non-zero bits shifted out.  Avoid a recursive call
17860         when constructing the scalar.
17861         (__floatundisf): Likewise.
17862
17863 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17864
17865         * dwarf2out.c (field_byte_offset): Move the existing logic
17866         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
17867         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
17868
17869 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17870
17871         PR target/31641
17872         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
17873         length argument of 0 for memset.
17874         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
17875         unsigned shift instead of the signed variant.
17876
17877 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17878
17879         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
17880         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
17881         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
17882         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
17883         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
17884         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
17885         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
17886         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
17887         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
17888         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
17889         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
17890         "mul<mode>3", "div<mode>3"): Insn definitions added.
17891         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
17892         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
17893         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
17894         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
17895         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
17896         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
17897         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
17898         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
17899         TARGET_FLOAT_FORMAT): Macro definitions removed.
17900         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
17901         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
17902         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
17903         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
17904         (s390_gen_rtx_const_DI): Function removed.
17905         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
17906
17907 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
17908
17909         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
17910         over an external ffs function.
17911
17912 2007-04-24  Chao-ying Fu  <fu@mips.com>
17913             Richard Sandiford  <richard@nildram.co.uk>
17914
17915         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
17916         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
17917         (smadd_widen_optab, umadd_widen_optab): Define.
17918         * optabs.c (init_optabs): Initialize smadd_widen_optab and
17919         umadd_widen_optab.
17920         * genopinit.c (optabs): Fill in smadd_widen_optab and
17921         umadd_widen_optab.
17922         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
17923         and umadd_widen_optab to implement multiply-add sequences.
17924         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
17925         (<u>maddsidi4): ...this.  Extend condition to include
17926         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
17927         of operand 0 to "ka" and use the three-operand form of madd<u>
17928         for TARGET_DSPR2.
17929         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
17930         to define_expands.
17931         * config/mips/constraints.md (ka): New register constraint.
17932
17933 2007-04-24  Jan Hubicka  <j@suse.cz>
17934
17935         Revert:
17936
17937         2007-04-23  Jan Hubicka  <jh@suse.cz>
17938         * function.c (init_function_start): Don't init line number info.
17939         (expand_function_end): Update.
17940         (reset_block_changes, record_block_change, finalize_block_changes,
17941         check_block_change, free_block_changes): Kill.
17942         * function.h (reset_block_changes, record_block_change,
17943         finalize_block_changes, check_block_change, free_block_changes):
17944         Remove prototypes.
17945         (struct function): Remove ib_boundaries_block.
17946         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
17947         Use curr_insn_locator to initialize locator.
17948         (emit_line_note): Remove.
17949         * cfgexpand.c (expand_gimple_cond_expr): Update.
17950         (construct_exit_block): Likewise.
17951         (tree_expand_cfg): Initialize/finalize locators.
17952         * expr.c (expand_expr_real): Update.
17953         * cfglayout.c (line_locators_locs, line_locators_lines,
17954         file_locators_locs, file_locators_files): Remove.
17955         (set_block_levels): Move to cfgexpand.c.
17956         (insn_locators_initialize): Remove.
17957         (pass_insn_locators_initialize): Remove.
17958         (locations_locators_locs, locations_locators_vals): New static vars.
17959         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
17960         Likewise.
17961         (insn_locators_alloc, insn_locators_finalize,
17962         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17963         New functions.
17964         (locator_location): New.
17965         (locator_line, locator_file): Rewrite.
17966         * rtl.h (emit_line_note): Kill.
17967         (insn_locators_alloc, insn_locators_finalize,
17968         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17969         Declare.
17970         * tree-inline.c (initialize_cfun): Do not initialize
17971         ib_boundaries_block.
17972         * passes.c (pass_insn_locators_initialize): Remove.
17973
17974 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
17975
17976         * doc/invoke.texi: Removed leading '-' from option index entries.
17977
17978 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
17979
17980         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
17981         Use phi_nodes_ptr.
17982         (create_phi_node): Use set_phi_nodes.
17983         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
17984         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
17985         (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
17986         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
17987         (bsi_start, bsi_last): Use bb_stmt_list.
17988         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
17989         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
17990         Traverse the statements using tsi iterator.
17991         * basic-block.h (struct basic_block_def): Fields stmt_list
17992         and phi_nodes moved to ...
17993         (struct tree_bb_info): ... new structure.
17994         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
17995         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
17996         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
17997         (tree_verify_flow_info): Verify that il.tree is not set for
17998         entry and exit block.
17999         (tree_split_block): Use set_bb_stmt_list.
18000
18001 2007-04-23  Mike Stump  <mrs@apple.com>
18002
18003         * config/i386/i386.c (ix86_tune_features
18004         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
18005         nocona and core2.
18006
18007 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
18008
18009         * config/i386/i386.md (prefix_extra): New attribute.
18010         (length): Add prefix_extra.
18011
18012         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
18013         (sse2_movntv2di): Likewise.
18014         (sse2_cvtps2dq): Likewise.
18015         (sse2_cvtpd2pi): Likewise.
18016         (sse2_cvttpd2pi): Likewise.
18017         (*sse2_cvtpd2ps): Likewise.
18018         (*add<mode>3): Likewise.
18019         (sse2_ssadd<mode>3): Likewise.
18020         (sse2_usadd<mode>3): Likewise.
18021         (*sub<mode>3): Likewise.
18022         (sse2_sssub<mode>3): Likewise.
18023         (sse2_ussub<mode>3): Likewise.
18024         (*mulv8hi3): Likewise.
18025         (*smulv8hi3_highpart): Likewise.
18026         (*umulv8hi3_highpart): Likewise.
18027         (sse2_umulv2siv2di3): Likewise.
18028         (sse2_pmaddwd): Likewise.
18029         (ashr<mode>3): Likewise.
18030         (lshr<mode>3): Likewise.
18031         (ashl<mode>3): Likewise.
18032         (sse2_ashlti3): Likewise.
18033         (sse2_lshrti3): Likewise.
18034         (*umaxv16qi3): Likewise.
18035         (*smaxv8hi3): Likewise.
18036         (*uminv16qi3): Likewise.
18037         (*sminv8hi3): Likewise.
18038         (sse2_eq<mode>3): Likewise.
18039         (sse2_gt<mode>3): Likewise.
18040         (*and<mode>3): Likewise.
18041         (sse2_nand<mode>3): Likewise.
18042         (*ior<mode>3): Likewise.
18043         (*xor<mode>3): Likewise.
18044         (sse2_packsswb): Likewise.
18045         (sse2_packssdw): Likewise.
18046         (sse2_packuswb): Likewise.
18047         (sse2_punpckhbw): Likewise.
18048         (sse2_punpcklbw): Likewise.
18049         (sse2_punpckhwd): Likewise.
18050         (sse2_punpcklwd): Likewise.
18051         (sse2_punpckhdq): Likewise.
18052         (sse2_punpckldq): Likewise.
18053         (sse2_punpckhqdq): Likewise.
18054         (sse2_punpcklqdq): Likewise.
18055         (*sse2_pinsrw): Likewise.
18056         (*sse2_pextrw): Likewise.
18057         (sse2_pshufd_1): Likewise.
18058         (sse2_uavgv16qi3): Likewise.
18059         (sse2_uavgv8hi3): Likewise.
18060         (sse2_psadbw): Likewise.
18061         (sse2_pmovmskb): Likewise.
18062         (*sse2_maskmovdqu): Likewise.
18063         (*sse2_maskmovdqu_rex64): Likewise.
18064         (sse4a_extrqi): Likewise.
18065         (sse4a_extrq): Likewise.
18066         (sse3_lddqu): Set prefix_rep.
18067         (sse3_addsubv4sf3): Likewise.
18068         (sse3_haddv4sf3): Likewise.
18069         (sse3_hsubv4sf3): Likewise.
18070         (sse_cvtss2si): Likewise.
18071         (sse_cvtss2si_2): Likewise.
18072         (sse_cvtss2siq): Likewise.
18073         (sse_cvtss2siq_2): Likewise.
18074         (sse_cvttss2si): Likewise.
18075         (sse_cvttss2siq): Likewise.
18076         (sse2_cvttps2dq): Likewise.
18077         (sse3_movshdup): Likewise.
18078         (sse3_movsldup): Likewise.
18079         (sse2_cvtsd2si): Likewise.
18080         (sse2_cvtsd2si_2): Likewise.
18081         (sse2_cvtsd2siq): Likewise.
18082         (sse2_cvtsd2siq_2): Likewise.
18083         (sse2_cvttsd2si): Likewise.
18084         (sse2_cvttsd2siq): Likewise.
18085         (*sse2_cvtpd2dq): Likewise.
18086         (*sse2_cvttpd2dq): Likewise.
18087         (sse2_pshuflw_1): Likewise.
18088         (sse2_pshufhw_1): Likewise.
18089         (sse4a_insertqi): Likewise.
18090         (sse4a_insertq): Likewise.
18091         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
18092         (ssse3_phadddv4si3): Likewise.
18093         (ssse3_phaddswv8hi3): Likewise.
18094         (ssse3_phsubwv8hi3): Likewise.
18095         (ssse3_phsubdv4si3): Likewise.
18096         (ssse3_phsubswv8hi3): Likewise.
18097         (ssse3_pmaddubswv8hi3): Likewise.
18098         (ssse3_pmulhrswv8hi3): Likewise.
18099         (ssse3_pshufbv16qi3): Likewise.
18100         (ssse3_psign<mode>3): Likewise.
18101         (ssse3_palignrti): Likewise.
18102         (abs<mode>2): Likewise.
18103         (ssse3_phaddwv4hi3): Set prefix_extra.
18104         (ssse3_phadddv2si3): Likewise.
18105         (ssse3_phaddswv4hi3): Likewise.
18106         (ssse3_phsubwv4hi3): Likewise.
18107         (ssse3_phsubdv2si3): Likewise.
18108         (ssse3_phsubswv4hi3): Likewise.
18109         (ssse3_pmaddubswv4hi3): Likewise.
18110         (ssse3_pmulhrswv4hi3): Likewise.
18111         (ssse3_pshufbv8qi3): Likewise.
18112         (ssse3_psign<mode>3): Likewise.
18113         (ssse3_palignrdi): Likewise.
18114         (abs<mode>2): Likewise.
18115         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
18116         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
18117         (sse2_pmovmskb): Set mode to SI instead of V2DF.
18118
18119 2007-04-23  Nick Clifton  <nickc@redhat.com>
18120
18121         * params.def: Fix formatting of emacs local variables.
18122
18123 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
18124
18125         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
18126         move if inter-unit move isn't allowed.
18127         Don't split moving the first element of V2DI to DI to inter-unit
18128         move if inter-unit move isn't allowed.
18129
18130 2007-04-23  Richard Guenther  <rguenther@suse.de>
18131
18132         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
18133         and CDI_POST_DOMINATORS separately.
18134
18135 2007-04-23  Nick Clifton  <nickc@redhat.com>
18136
18137         * c.opt (Wformat-contains-nul): Add warning attribute.
18138
18139 2007-04-23  Jan Hubicka  <jh@suse.cz>
18140
18141         * function.c (init_function_start): Don't init line number info.
18142         (expand_function_end): Update.
18143         (reset_block_changes, record_block_change, finalize_block_changes,
18144         check_block_change, free_block_changes): Kill.
18145         * function.h (reset_block_changes, record_block_change,
18146         finalize_block_changes, check_block_change, free_block_changes):
18147         Remove prototypes.
18148         (struct function): Remove ib_boundaries_block.
18149         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
18150         Use curr_insn_locator to initialize locator.
18151         (emit_line_note): Remove.
18152         * cfgexpand.c (expand_gimple_cond_expr): Update.
18153         (construct_exit_block): Likewise.
18154         (tree_expand_cfg): Initialize/finalize locators.
18155         * expr.c (expand_expr_real): Update.
18156         * cfglayout.c (line_locators_locs, line_locators_lines,
18157         file_locators_locs, file_locators_files): Remove.
18158         (set_block_levels): Move to cfgexpand.c.
18159         (insn_locators_initialize): Remove.
18160         (pass_insn_locators_initialize): Remove.
18161         (locations_locators_locs, locations_locators_vals): New static vars.
18162         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
18163         Likewise.
18164         (insn_locators_alloc, insn_locators_finalize,
18165         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18166         New functions.
18167         (locator_location): New.
18168         (locator_line, locator_file): Rewrite.
18169         * rtl.h (emit_line_note): Kill.
18170         (insn_locators_alloc, insn_locators_finalize,
18171         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18172         Declare.
18173         * tree-inline.c (initialize_cfun): Do not initialize
18174         ib_boundaries_block.
18175         * passes.c (pass_insn_locators_initialize): Remove.
18176
18177 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18178
18179         PR middle-end/31448
18180         * expr.c (reduce_to_bit_field_precision): Handle
18181         CONST_INT rtx's.
18182
18183 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
18184
18185         PR tree-optimization/24659
18186         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
18187         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
18188         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
18189         * genopinit.c (optabs): Rename vec_pack_mod_optab
18190         to vec_pack_trunc_optab.
18191         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
18192         early for scalar floating point operands for NOP_EXPR.
18193         (vectorizable_type_promotion): Ditto.
18194         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
18195         vec_pack_trunc_optab.
18196         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
18197
18198         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
18199         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
18200         Rename from VEC_PACK_MOD_EXPR.
18201         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
18202         * expr.c (expand_expr_real_1): Ditto.
18203         * tree-inline.c (estimate_num_insns_1): Ditto.
18204         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
18205
18206         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
18207         (vec_unpacks_lo_v4sf): Ditto.
18208         (vec_pack_trunc_v2df): Ditto.
18209         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
18210         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
18211         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
18212
18213         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
18214         vec_pack_mod_v8hi.
18215         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
18216
18217         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
18218         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
18219         packing of floating point operands.
18220         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
18221         represent unpacking of floating point operands.
18222         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
18223         [vec_unpacks_hi]: Ditto.
18224         [vec_unpacks_lo]: Ditto.
18225
18226 2007-04-22  Jan Hubicka  <jh@suse.cz>
18227
18228         * final.c (rest_of_handle_final): Call
18229         targetm.asm_out.constructor/targetm.asm_out.destructor
18230         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
18231         proper priority via decl_*_priority_insert.
18232         * c-common.c (c_expand_body): Likewise.
18233
18234 2007-04-22  Richard Guenther  <rguenther@suse.de>
18235
18236         PR tree-optimization/29789
18237         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
18238         (rewrite_reciprocal): New helper split out from
18239         determine_invariantness_stmt.
18240         (rewrite_bittest): Likewise.
18241         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
18242         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
18243         is not.
18244
18245 2007-04-22  Revital Eres  <eres@il.ibm.com>
18246
18247         * loop-unroll.c (var_to_expand): New field to support also
18248         insns of the form x = something + x.
18249         (analyze_insn_to_expand_var): Use it.
18250         (expand_var_during_unrolling): Likewise.
18251
18252 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
18253
18254         * predict.c: Include pointer-set.h.
18255         (bb_predictions): New variable.
18256         (tree_predicted_by_p, tree_predict_edge,
18257         remove_predictions_associated_with_edge): Use bb_predictions map
18258         instead of bb->predictions.
18259         (clear_bb_predictions, assert_is_empty): New functions.
18260         (combine_predictions_for_bb): Use bb_predictions map.  Call
18261         clear_bb_predictions.
18262         (tree_estimate_probability): Create and free bb_predictions map.
18263         * Makefile.in (predict.o): Add pointer-set.h dependency.
18264         * basic-block.h (struct basic_block_def): Remove predictions
18265         field.
18266         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
18267
18268 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
18269
18270         PR target/31480
18271         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
18272         is null.
18273
18274 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18275
18276         * timevar.c (timevar_print): Change reference of --disable-checking to
18277         --enable-checking=release.  Also warn if assert checking is disabled.
18278
18279 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18280
18281         PR C/30265
18282         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
18283         decl as addressable if the compound literal was marked as
18284         addressable.
18285         Mark the decl as a gimple register if it is a complex or
18286         vector decl and does not live in memory.
18287
18288 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18289
18290         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
18291         (GENERIC_NEXT): New function macro.
18292         (PHI_CHAIN): Use phi_node's new chain variable.
18293         (tree_phi_node): Change tree_common to tree_base
18294         and add the chain field.
18295         * tree-phinodes.c (make_phi_node): Don't set
18296         TREE_TYPE on the new node.
18297         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
18298         instead of checking GIMPLE_TUPLE_P in chain_next.
18299         * tree-vect-transform.c
18300         (get_initial_def_for_induction): Look at
18301         PHI_RESULT_TREE for the type of the phi node.
18302         (update_vuses_to_preheader): Use PHI_CHAIN
18303         instead of TREE_CHAIN on the phi node.
18304         * tree-ssa-structalias.c (compute_points_to_sets):
18305         Likewise.
18306         (ipa_pta_execute): Likewise.
18307
18308 2007-04-21  Richard Guenther  <rguenther@suse.de>
18309
18310         PR middle-end/31136
18311         * fold-const.c (fold_unary): Call fold_convert_const on the
18312         original tree.
18313
18314 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
18315
18316         * gcse.c (store_killed_in_insn): Handle PARALLELs.
18317         (store_killed_in_pat): New.
18318
18319 2007-04-20  Richard Henderson  <rth@redhat.com>
18320
18321         PR target/31628
18322         * config/i386/i386.c (type_has_variadic_args_p): Look for any
18323         TREE_LIST with a void_type_node value, not void_list_node exactly.
18324
18325 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
18326
18327         * doc/standards.texi: Re-arrange into language-specific
18328         subsections. Add a C++ section, documenting which standards we
18329         support.
18330
18331 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
18332
18333         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
18334         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
18335
18336 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
18337
18338         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
18339         ecrti.o and crtbegin.o.
18340         (LIB_DEFAULT_SPEC): Include -lc.
18341         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
18342
18343 2007-04-20  Richard Henderson  <rth@redhat.com>
18344
18345         PR target/28623
18346         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
18347         argument; update all callers.
18348         (get_unaligned_offset): New.
18349         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
18350         get_unaligned_address, just pass on the address directly.
18351         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
18352         the subreg in the helper patterns.
18353         (unaligned_extendqidi_le): Use get_unaligned_offset.
18354         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
18355         (unaligned_extendhidi_be): Likewise.
18356         (unaligned_extendhidi): Tidy.
18357         * config/alpha/alpha-protos.h: Update.
18358
18359 2007-04-20  Richard Henderson  <rth@redhat.com>
18360
18361         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
18362         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
18363         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
18364         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
18365         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
18366         (CPP_SPEC): Don't include %(cpp_subtarget).
18367         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
18368         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
18369         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
18370
18371 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
18372
18373         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
18374         for __builtin_ia32_cmpordss.
18375
18376         PR tree-optimization/31632
18377         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
18378         and arg1 for optimizations of comparison against min/max values.
18379         Fold arg0 to arg1's type for optimizations of comparison against
18380         min+1 and max-1 values.
18381
18382 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
18383
18384         * reload.c (combine_reloads): When trying to use a dying register,
18385         check whether it's uninitialized and don't use if so.
18386
18387 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
18388
18389         * fold-const.c: Remove prototypes for native_encode_expr and
18390         native_interpret_expr.
18391         (native_encode_expr): Make non-static.
18392         (native_interpret_expr): Likewise.
18393         * tree.h: Add prototypes for the above.
18394
18395 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
18396
18397         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
18398         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
18399         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
18400         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
18401         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
18402         Add length attributes.
18403
18404 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
18405
18406         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
18407         not that it is 1.
18408
18409         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
18410         __STDC_WANT_DEC_FP__.
18411
18412 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
18413
18414         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
18415         for long double compatibility.
18416         * configure: Regenerate.
18417
18418 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
18419
18420         PR rtl-optimization/29841
18421         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
18422         trap instructions.
18423         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
18424         that may cause control flow transfer from being moved.
18425
18426 2007-04-18  Jan Hubicka  <jh@suse.cz>
18427
18428         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
18429         types.
18430
18431 2007-04-18  Eric Christopher  <echristo@apple.com>
18432
18433         * config/rs6000/darwin.md (load_macho_picbase): Use link register
18434         only. Update operands.
18435         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
18436         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
18437         link register to pic register.
18438
18439 2007-04-18  Dirk Mueller  <dmueller@suse.de>
18440
18441         PR diagnostic/31227
18442         * tree-vrp.c (search_for_addr_array): New.
18443         (check_array_bounds): Suppress warning about
18444         address taken of array refs if its not de-referenced.
18445
18446 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
18447
18448         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
18449         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
18450
18451         * tree-vectorizer.h (NITERS_KNOWN_P): New.
18452         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
18453         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
18454
18455         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
18456         dump print.
18457         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
18458         print message.
18459         (vect_analyze_scalar_cycles): Fix indentation.
18460         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
18461         (vect_mark_relevant): Include phis in relevance analysis.
18462
18463         * tree-vect-transform.c (vect_transform_loop): Add an assert.
18464
18465 2007-04-18  Anatoly Sokolov <aesok@post.ru>
18466
18467         * config/avr/avr.c (ptrreg_to_str): Replace error() with
18468         output_operand_lossage().
18469
18470 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
18471
18472         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
18473         the unused code for reduction without adjust-in-epilog to simplify the
18474         function.
18475
18476 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
18477
18478         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
18479         (S390_TDC_NEGATIVE_ZERO): New constant.
18480         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
18481         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
18482         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
18483         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
18484         (S390_TDC_POSITIVE_INFINITY): New constant.
18485         (S390_TDC_NEGATIVE_INFINITY): New constant.
18486         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
18487         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
18488         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
18489         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
18490         (S390_TDC_INFINITY): New constant.
18491         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
18492         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
18493         optimization for UNSPEC_CCZ_TO_INT.
18494         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
18495         ("*ccz_to_int"): New insn.
18496         ("isinf<mode>2"): New insn.
18497         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
18498         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
18499         (UNSPEC_CCZ_TO_INT): New constant.
18500
18501 2007-04-18  Richard Guenther  <rguenther@suse.de>
18502
18503         PR tree-optimization/19431
18504         PR tree-optimization/21463
18505         * tree-pass.h (pass_phiprop): Declare.
18506         * passes.c (init_optimization_passes): New phiprop pass.
18507         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
18508         (phivn_valid_p): New helper function.
18509         (phiprop_insert_phi): Likewise.
18510         (propagate_with_phi): Likewise.
18511         (tree_ssa_phiprop): New propagator propagating loads
18512         through phi nodes if profitable.
18513
18514 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
18515
18516         * tree-vect-analyze.c (process_use): New function.
18517         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
18518         Check phis in all bbs.
18519         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
18520         assert.
18521
18522 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
18523
18524         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
18525         we use REG_EQUAL.
18526
18527 2007-04-17  Anatoly Sokolov <aesok@post.ru>
18528
18529         PR target/30483
18530         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
18531         error().
18532
18533 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18534
18535         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
18536         on "0".
18537         (sse_vmmulv4sf3): Likewise.
18538         (sse2_vmaddv2df3): Likewise.
18539         (sse2_vmmulv2df3): Likewise.
18540
18541 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
18542
18543         PR rtl-optimization/31360
18544         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
18545         (target_reg_cost): New.
18546         (init_set_costs): Initialize target_reg_cost.  Add comments
18547         regarding the rationale of the costs.
18548         (global_cost_for_size): Renamed to...
18549         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
18550         of register pressure.
18551         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
18552         estimate_reg_pressure_cost.  Add number of ivs.
18553         (determine_set_costs): Dump target_reg_cost.
18554         * loop-invariant.c (gain_for_invariant): Use
18555         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
18556         (best_gain_for_invariant, find_invariants_to_move): Remove
18557         n_inv_uses.
18558         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
18559         (target_reg_cost): Declare.
18560         (global_cost_for_size): Declaration removed.
18561         (estimate_reg_pressure_cost): Declare.
18562
18563 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
18564
18565         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
18566         regnos into even/odd register pairs.
18567         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
18568         TDmode similar to the other floating point modes.
18569         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
18570         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
18571         define_expand's.
18572         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
18573         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
18574         (movdd_hardfloat64): Use TARGET_MFPGPR.
18575
18576 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18577
18578         * reload1.c (delete_output_reload): Don't count output in n_inherited.
18579
18580         Revert
18581         2005-01-05  Richard Henderson  <rth@redhat.com>
18582         PR rtl-opt/10692
18583         * reload1.c (do_input_reload): Restrict the optimization deleteing
18584         a previous output reload to RELOAD_FOR_INPUT.
18585
18586 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
18587
18588         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
18589         induc_vec_info_type.
18590         (vectorizable_induction): New function declaration.
18591         * tree-vect-transform.c (get_initial_def_for_induction): No need to
18592         check if already vectorized.  Find first place in BB where new stmts
18593         can be inserted.  Takes only one argument.
18594         (vectorizable_induction): New function.
18595         (vect_transform_stmt): Add case for induc_vec_info_type to call
18596         vectorizable_induction.
18597         (vect_transform_loop): Consider phis for vectorization.
18598         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
18599         condition.
18600         (analyze_operations): Call vectorizable_induction when analyzing phis.
18601         Fix comment.
18602         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
18603         (vect_mark_relevant): Include phis in relevance analysis.
18604         (vect_mark_stmts_to_be_vectorize): Likewise.
18605         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
18606
18607 2007-04-16  Lawrence Crowl  <crowl@google.com>
18608
18609         * doc/invoke.texi (Debugging Options): Add documentation for the
18610         -femit-struct-debug options -femit-struct-debug-baseonly,
18611         -femit-struct-debug-reduced, and
18612         -femit-struct-debug-detailed[=...].
18613
18614         * c-opts.c (c_common_handle_option): Add
18615         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
18616         and OPT_femit_struct_debug_detailed_.
18617         * c.opt: Add specifications for
18618         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
18619         and -femit-struct-debug-detailed[=...].
18620         * opts.c (set_struct_debug_option): Parse the
18621         -femit-struct-debug-... options.
18622         * opts.c (matches_main_base, main_input_basename,
18623         main_input_baselength, base_of_path, matches_main_base): Add
18624         variables and functions to compare header base name to compilation
18625         unit base name.
18626         * opts.c (should_emit_struct_debug): Add to determine to emit a
18627         structure based on the option.
18628         (dump_struct_debug) Also disabled function to debug this
18629         function.
18630         * opts.c (handle_options): Save the base name of the
18631         compilation unit.
18632
18633         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
18634         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
18635         This hook indicates if a type is generic.  Set it by default
18636         to "never generic".
18637         * langhooks.h (struct lang_hooks_for_types): Add a new hook
18638         to determine if a struct type is generic or not.
18639         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
18640         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
18641         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
18642         with live C++ hook.
18643
18644         * flags.h (enum debug_info_usage): Add an enumeration to describe
18645         a program's use of a structure type.
18646         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
18647         to indicate the program's usage of the type.  Filter structs based
18648         on the -femit-struct-debug-... specification.
18649         (gen_type_die): Split into two routines, gen_type_die and
18650         gen_type_die_with_usage.  gen_type_die is now a wrapper
18651         that assumes direct usage.
18652         (gen_type_die_with_usage): Replace calls to gen_type_die
18653         with gen_type_die_with_usage adding the program usage of
18654         the referenced type.
18655         (dwarf2out_imported_module_or_decl): Suppress struct debug
18656         information using should_emit_struct_debug when appropriate.
18657
18658 2007-04-16  Ian Lance Taylor  <iant@google.com>
18659
18660         PR tree-optimization/31522
18661         * tree-vrp.c (vr_phi_edge_counts): New static variable.
18662         (vrp_initialize): Allocate vr_phi_edge_counts.
18663         (vrp_visit_phi_node): Don't push to infinity if we saw a new
18664         executable edge.  Drop test for all constants.
18665         (vrp_finalize): Free vrp_phi_edge_counts.
18666
18667         * doc/cpp.texi (Common Predefined Macros): Clarify description of
18668         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
18669
18670         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
18671         predecessors at head rather than tail.
18672
18673 2007-04-16  Matthias Klose  <doko@debian.org>
18674
18675         * config/alpha/linux.h (CPP_SPEC): Define.
18676         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
18677
18678 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
18679
18680         * function.h: Remove sequence_stack extern declaration.
18681
18682 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
18683
18684         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
18685         TARGET_FIDOA.
18686         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
18687         defined.
18688
18689 2007-04-16  Anatoly Sokolov <aesok@post.ru>
18690
18691         * config/avr/avr.c (avr_arch_types): Rearranging  array.
18692         (enum avr_arch): Add.
18693         (avr_mcu_types): Use avr_arch enumeration constants instead of
18694         numbers.
18695         * config/avr/avr.h (LINK_SPEC): Simplify.
18696
18697 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
18698
18699         * config/m68k/m68k.c (m68k_libcall_value,
18700         m68k_function_value): Use macros for register names more.
18701
18702         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
18703         instead.
18704         (M68K_REGNAME): Use A6_REG.
18705         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
18706
18707 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
18708
18709         PR middle-end/28071
18710         * sched-int.h (struct deps): Split field 'pending_lists_length' into
18711         'pending_read_list_length' and 'pending_write_list_length'.  Update
18712         comment.
18713         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
18714         to handle two length counters instead of one.  Update all uses.
18715         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
18716         two length counters instead of one.
18717         * sched-rgn.c (propagate_deps): Update to handle two length counters
18718         instead of one.
18719
18720 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
18721
18722         PR target/31582
18723         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
18724         copy of source, pass it to ix86_expand_vector_set and return
18725         it as target.
18726
18727 2007-04-16  David Ung  <davidu@mips.com>
18728             Joseph Myers  <joseph@codesourcery.com>
18729
18730         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
18731         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
18732         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
18733         Add 74K processor information.
18734         * config/mips/mips.md: Include 74k.md.
18735         (cpu): Add 74kc,74kf,74kx.
18736         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
18737         * config/mips/74k.md: New.
18738         * doc/invoke.texi (MIPS Options): Document 74K support.
18739
18740 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
18741
18742         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
18743         vectorizable_* functions.
18744         * tree-vect-transform.c (vectorizable_call): Add check for
18745         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
18746         (vectorizable_store): likewise.
18747         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
18748         Add comments.
18749         (vectorizable_operation, vectorizable_type_demotion): Likewise.
18750         (vectorizable_type_promotion, vectorizable_load): Likewise.
18751         (vectorizable_live_operation, vectorizable_condition): Likewise.
18752         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
18753         STMT_VINFO_LIVE_P.
18754         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
18755
18756 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18757
18758         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
18759         register numbers more.
18760         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
18761         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
18762         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
18763         FUNCTION_VALUE_REGNO_P): Likewise.
18764         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
18765         STATIC_CHAIN_REGNUM): Likewise.
18766         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
18767         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
18768         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
18769         * config/m68k/m68k.md (FP_REG): New.
18770
18771 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18772
18773         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
18774         alignment on fido.
18775
18776 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18777
18778         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
18779         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
18780         comment typos.
18781
18782 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
18783
18784         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
18785         cold loops.
18786
18787 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18788
18789         PR c/31520
18790         * c-decl.c (finish_decl): Grab the type of the decl after the call
18791         to store_init_value.
18792
18793 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
18794
18795         * common.opt (fforward-propagate): Fix "Optimization" annotation.
18796
18797 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
18798
18799         PR c++/25874
18800         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
18801         dominators, post dominators and cleanup cfg before returning.
18802
18803 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
18804
18805         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
18806         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
18807
18808 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
18809
18810         * config.gcc: Recognize fido.
18811         * config/m68k/m68k-devices.def (fidoa): New.
18812         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
18813         __mfido__.
18814         (FL_FIDOA, TARGET_FIDOA): New.
18815         * config/m68k/m68k.opt (mfidoa): New.
18816
18817 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18818
18819         PR middle-end/31322
18820         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
18821         when a personality function is used.
18822
18823 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
18824
18825         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
18826
18827 2007-04-13  Mike Stump  <mrs@apple.com>
18828
18829         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
18830         we can...
18831         * config/darwin.opt (fapple-kext): Make C++ only.
18832         * config/darwin.c (darwin_override_options): Remove code to ensure
18833         -fapple-kext is given for C++ only.
18834
18835 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
18836
18837         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
18838         * config/mips/mips.c (override_options): Call
18839         SUBTARGET_OVERRIDE_OPTIONS, if defined.
18840
18841 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18842
18843         * config/i386/i386.opt (msvr3-shlib): Removed.
18844
18845         * doc/invoke.texi: Remove -msvr3-shlib.
18846
18847 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18848
18849         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
18850         with "popcnt" instruction.
18851
18852 2007-04-13  Richard Guenther  <rguenther@suse.de>
18853
18854         PR tree-optimization/21258
18855         * tree-vrp.c (compare_case_labels): New helper.
18856         (find_switch_asserts): New function.
18857         (find_assert_locations): Call it for SWITCH_EXPRs.
18858
18859 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
18860
18861         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
18862         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
18863         check is now implied in X87_FLOAT_MODE_P.
18864         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
18865         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
18866         (fix_trunc<mode>_i386_fisttp): Ditto.
18867         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
18868         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
18869         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
18870         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
18871         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
18872         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
18873         (unnamed_splitters): Ditto.
18874         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
18875         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
18876         FIRST_SSE_REG for local functions when SSE math is enabled or
18877         for functions with sseregparm attribute.
18878         (standard_80387_constant_p): Return -1 if mode is not
18879         X87_FLOAT_MODE_P.
18880         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
18881         (ix86_expand_compare): Ditto.
18882         (ix86_expand_carry_flag_compare): Ditto.
18883         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
18884         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
18885         DECIMAL_FLOAT_MODE_P.
18886         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
18887         of SCALAR_FLOAT_MODE_P.
18888         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
18889         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
18890         checks before FLOAT_MODE_P.
18891         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
18892         before FLOAT_MODE_P.
18893         [DIV]: Ditto.
18894         [NEG]: Ditto.
18895         [ABS]: Ditto.
18896         [SQRT]: Ditto.
18897         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
18898
18899 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
18900             Charles Wilson  <libtool@cwilson.fastmail.fm>
18901
18902         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
18903         (libgcc.mvars): Don't depend on them.
18904         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
18905         * exec-tool.in: New.
18906
18907 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
18908
18909         * doc/invoke.text (--help): Document --help=common.
18910
18911 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
18912
18913         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
18914
18915 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18916
18917         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
18918         * genemit.c (main): Emit #include "integrate.h".
18919         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
18920         (LOADGP_RTP): New mips_loadgp_style.
18921         * config/mips/mips.h: Include config/vxworks-dummy.h.
18922         (TARGET_RTP_PIC): New macro.
18923         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
18924         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
18925         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
18926         for TARGET_RTP_PIC.
18927         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
18928         -mvxworks-pic when using -mrtp and a PIC option.
18929         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
18930         for RTP PIC.
18931         (mips_symbolic_constant_p, mips_symbolic_address_p)
18932         (mips_symbol_insns): Handle SYMBOL_HALF.
18933         (override_options): Warn about -G and -mrtp being used together.
18934         Initialize mips_lo_relocs[SYMBOL_HALF].
18935         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
18936         (mips_emit_loadgp): Handle LOADGP_RTP.
18937         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
18938         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
18939         (tablejump): Handle function-relative case table entries if
18940         TARGET_RTP_PIC.
18941         * config/mips/predicates.md (symbol_ref_operand): New predicate.
18942
18943 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18944
18945         * config/mips/mips.md (load_call<mode>): Allow any general register.
18946         destination.
18947         (sibcall_value_internal, sibcall_value_multiple_internal)
18948         (call_value_internal, call_value_split, call_value_multiple_internal)
18949         (call_value_multiple_split): Remove constraints from operand 0.
18950
18951 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18952
18953         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
18954         rather than loadgp_noshared.
18955         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
18956         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
18957         gen_loadgp.
18958         * config/mips/mips.md (loadgp): Rename to...
18959         (loadgp_newabi): ...this.
18960         (loadgp_noshared): Rename to...
18961         (loadgp_absolute): ...this.
18962
18963 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18964
18965         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
18966         false for locally-binding symbols.
18967         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
18968
18969 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18970
18971         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
18972         (SYMBOL_GOT_PAGE_OFST): ...this.
18973         (SYMBOL_GOT_GLOBAL): Rename to...
18974         (SYMBOL_GOT_DISP): ...this.
18975         (SYMBOL_GOTOFF_GLOBAL): Rename to...
18976         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
18977         * config/mips/mips.c (mips_global_symbol_p): New function.
18978         (mips_symbol_binds_local_p): Likewise.
18979         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
18980         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use
18981         mips_global_symbol_p and mips_symbol_binds_local_p.
18982         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
18983         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
18984         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
18985         SYMBOL_GOTOFF_DISP.
18986         (mips_ok_for_lazy_binding_p): New function.
18987         (mips_load_call_address, mips_expand_call): Use it.
18988         (mips_dangerous_for_la25_p): Likewise.
18989         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
18990         (*got_disp<mode>): Use got_disp_operand instead of
18991         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
18992         SYMBOL_GOTOFF_GLOBAL.
18993         (*got_page<mode>): Use got_page_ofst_operand instead of
18994         local_got_operand.
18995         * config/mips/predicates.md (const_call_insn_operand): Use
18996         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
18997         (global_got_operand): Rename to...
18998         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
18999         SYMBOL_GOT_GLOBAL.
19000         (local_got_operand): Rename to...
19001         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
19002         of SYMBOL_GOT_LOCAL.
19003
19004 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
19005
19006         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
19007         TARGET_CALL_CLOBBERED_GP.
19008         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
19009         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
19010         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
19011         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
19012         of TARGET_ABICALLS && !TARGET_NEWABI.
19013         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
19014         * config/mips/mips.c (mips_load_call_address): Check
19015         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
19016         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
19017         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
19018         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
19019         TARGET_ABICALLS && TARGET_NEWABI.
19020         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
19021         TARGET_ABICALLS.
19022         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
19023         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
19024         TARGET_ABICALLS && TARGET_NEWABI.
19025         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
19026         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
19027         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
19028         whether indirect calls must use $25.
19029         (mips_extra_live_on_entry): Check TARGET_GOT instead of
19030         TARGET_ABICALLS.
19031         * config/mips/mips.md (jal_macro): Check flag_pic and
19032         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
19033         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
19034         instead of TARGET_ABICALLS.
19035         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
19036         TARGET_ABICALLS && TARGET_OLDABI.
19037         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
19038         (sibcall): In the comment above the define_insn, mention
19039         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
19040         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
19041         instead of TARGET_ABICALLS.
19042
19043 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
19044
19045         * doc/md.texi (Blackfin family constraints): Document PA and PB.
19046         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
19047         (MACFLAGS_MATCH_P): New macro.
19048         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
19049         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
19050         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
19051         the other MACFLAG constants.
19052         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
19053         (flag_machi): Tighten constraints.  Renumber some of the operands.
19054         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
19055         output template.
19056         (flag_machi_parts_acconly): New pattern.
19057         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
19058         used.
19059         (flag_macinit1hi): Tighten constraints.
19060         (flag_mul_macv2hi_parts_acconly): New pattern.
19061
19062         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
19063         Use a more efficient implementation.
19064         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
19065         inline sequences when not optimizing for size.
19066
19067         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
19068         movhi_high2low): Delete, merge functionality into...
19069         (packv2hi): ... this pattern.
19070
19071         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
19072         * config/bfin/bfin.opt (msim): New option.
19073         (mcpu=): New option.
19074         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
19075         (bfin_cpu_t): Typedef of enum bfin_cpu.
19076         (bfin_cpu_type): New declaration.
19077         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
19078         -msim and -mcpu= options.
19079         (LIB_SPEC): Likewise.
19080         * config/bfin/bfin.c (bfin_cpu_type): Define.
19081         (bfin_handle_option): Handle -mcpu= option.
19082         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
19083         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
19084         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
19085
19086 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
19087
19088         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
19089         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
19090         (powerpc-wrs-vxworksae): Use ${tm_file}.
19091         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
19092         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
19093         * config/i386/vx-common.h: New file.
19094
19095 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
19096
19097         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
19098         of crt0.o%s.
19099
19100 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
19101
19102         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
19103         ldxtr.
19104
19105 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
19106
19107         PR c++/31078
19108         PR c++/31103
19109         * c-common.c (c_build_qualified_type): Set canonical type
19110         appropriately.
19111
19112 2007-04-12  Richard Guenther  <rguenther@suse.de>
19113
19114         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
19115         lower bound and element size if lower bound is not zero
19116         or either of the ARRAY_REF operands is set.
19117
19118 2007-04-12  Richard Guenther  <rguenther@suse.de>
19119
19120         PR tree-optimization/24689
19121         PR tree-optimization/31307
19122         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
19123         indices by value.
19124         * gimplify.c (canonicalize_addr_expr): To be consistent with
19125         gimplify_compound_lval only set operands two and three of
19126         ARRAY_REFs if they are not gimple_min_invariant.  This makes
19127         it never at this place.
19128         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
19129
19130 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19131
19132         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
19133         null before emitting a .nsubspa directive.
19134
19135 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
19136
19137         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
19138         need_to_partition_p if there are no memory statements in the
19139         function.
19140
19141 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
19142
19143         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
19144         (gcd_of_steps_may_divide_p): New function.
19145         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
19146
19147 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
19148
19149         * reload.c (find_reloads_toplev, find_reloads_address,
19150         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
19151         not a pointer equality test, to decide if we need to call
19152         push_reg_equiv_alt_mem.
19153
19154 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
19155
19156         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
19157         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
19158         New.
19159         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
19160
19161 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
19162
19163         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
19164         vector to be positive.
19165
19166 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
19167
19168         PR 30735
19169         PR 31090
19170         * doc/invoke.texi: Document --params max-aliased-vops and
19171         avg-aliased-vops.
19172         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
19173         debug_memory_partitions): Move to tree-flow.h
19174         * params.h (AVG_ALIASED_VOPS): Define.
19175         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
19176         users.
19177         (mp_info_t): Likewise.
19178         (get_mem_sym_stats_for): New.
19179         (set_memory_partition): Move from tree-flow-inline.h.
19180         (mark_non_addressable): Only clear the set of symbols for the
19181         partition if it exists.
19182         (dump_memory_partitions): Move from tree-ssa-operands.c
19183         (debug_memory_partitions): Likewise.
19184         (need_to_partition_p): New.
19185         (dump_mem_ref_stats): New.
19186         (debug_mem_ref_stats): New.
19187         (dump_mem_sym_stats): New.
19188         (debug_mem_sym_stats): New.
19189         (update_mem_sym_stats_from_stmt): New.
19190         (compare_mp_info_entries): New.
19191         (mp_info_cmp): Call it.
19192         (sort_mp_info): Change argument to a list of mem_sym_stats_t
19193         objects.
19194         (get_mpt_for): Move from tree-ssa-operands.c.
19195         (find_partition_for): New.
19196         (create_partition_for): Remove.
19197         (estimate_vop_reduction): New.
19198         (update_reference_counts): New.
19199         (build_mp_info): New.
19200         (compute_memory_partitions): Refactor.
19201         Document new heuristic.
19202         Call build_mp_info, update_reference_counts,
19203         find_partition_for and estimate_vop_reduction.
19204         (compute_may_aliases): Populate virtual operands before
19205         calling debugging dumps.
19206         (delete_mem_sym_stats): New.
19207         (delete_mem_ref_stats): New.
19208         (init_mem_ref_stats): New.
19209         (init_alias_info): Call it.
19210         (maybe_create_global_var): Remove alias_info argument.
19211         Get number of call sites and number of pure/const call sites
19212         from gimple_mem_ref_stats().
19213         (dump_alias_info): Call dump_memory_partitions first.
19214         (dump_points_to_info_for): Show how many times a pointer has
19215         been dereferenced.
19216         * opts.c (decode_options): For -O2 set --param
19217         max-aliased-vops to 500.
19218         For -O3 set --param max-aliased-vops to 1000 and --param
19219         avg-aliased-vops to 3.
19220         * fortran/options.c (gfc_init_options): Remove assignment to
19221         MAX_ALIASED_VOPS.
19222         * tree-flow-inline.h (gimple_mem_ref_stats): New.
19223         * tree-dfa.c (dump_variable): Dump memory reference
19224         statistics.
19225         Dump NO_ALIAS* settings.
19226         (referenced_var_lookup): Tidy.
19227         (mem_sym_stats): New.
19228         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
19229         and ORIG are different SSA names for a memory partition.
19230         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
19231         * tree-flow.h (struct mem_sym_stats_d): Define.
19232         (mem_sym_stats_t): Define.
19233         (struct mem_ref_stats_d): Define.
19234         (struct gimple_df): Add field mem_ref_stats.
19235         (enum noalias_state): Define.
19236         (struct var_ann_d): Add bitfield noalias_state.
19237         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
19238         debug_mem_ref_stats, debug_memory_partitions,
19239         debug_mem_sym_stats): Declare.
19240         * tree-ssa-structalias.c (update_alias_info): Update call
19241         sites, pure/const call sites and asm sites in structure
19242         returned by gimple_mem_ref_stats.
19243         Remove local variable IS_POTENTIAL_DEREF.
19244         Increase NUM_DEREFS if the memory expression is a potential
19245         dereference.
19246         Call update_mem_sym_stats_from_stmt.
19247         If the memory references memory, call
19248         update_mem_sym_stats_from_stmt for all the direct memory
19249         symbol references found.
19250         (intra_create_variable_infos): Set noalias_state field for
19251         pointer arguments according to the value of
19252         flag_argument_noalias.
19253         * tree-ssa-structalias.h (struct alias_info): Remove fields
19254         num_calls_found and num_pure_const_calls_found.
19255         (update_mem_sym_stats_from_stmt): Declare.
19256         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
19257         Set default value to 100.
19258         (PARAM_AVG_ALIASED_VOPS): Define.
19259
19260 2007-04-11  Richard Guenther  <rguenther@suse.de>
19261
19262         PR middle-end/31530
19263         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
19264         a * -b + c as c - a * b if we honor sign dependent rounding.
19265
19266 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
19267
19268         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
19269         bfin_expand_strmov.
19270         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
19271         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
19272         variables.
19273         (initialize_trampoline): Don't use old-style function definition.
19274         (bfin_secondary_reload): Mark IN_P argument as unused.
19275
19276 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
19277
19278         PR tree-optimization/31343
19279         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
19280         (build_polynomial_chrec): Return a scalar when the evolution is zero.
19281         * testsuite/gcc.dg/vect/pr31343.c: New.
19282
19283 2007-04-10  Eric Christopher  <echristo@apple.com>
19284
19285         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
19286         * config/i386/i386.md (*cmpfp0): Use.
19287         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
19288         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
19289         (fix_trunc<mode>_i386_fisttp): Ditto.
19290         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
19291         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
19292         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
19293         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
19294         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
19295         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
19296         (unnamed_splitters): Ditto.
19297         * config/i386/i386.c (output_fix_trunc): Assert that
19298         we're not being passed a TFmode operand.
19299
19300 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
19301
19302         PR tree-optimization/31526
19303         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
19304         n_basic_blocks to find newly added blocks.
19305
19306 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
19307
19308         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
19309         alternative.
19310         (fix_trunc<mode>si_sse): Ditto.
19311         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
19312         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
19313         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
19314         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
19315         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
19316         expander using SSEMODEF mode macro.
19317         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
19318         expander using SSEMODEF mode macro.
19319         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
19320         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
19321         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
19322         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
19323         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
19324         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
19325         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
19326         Macroize insn using X87MODEF mode macro.
19327
19328 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
19329
19330         * config/i386/sse.md (sse2_pinsrw): Removed.
19331         (sse2_pextrw): Renamed to ...
19332         (*sse2_pextrw): This.
19333
19334 2007-04-09  Jan Hubicka  <jh@suse.cz>
19335
19336         PR target/27869
19337         * config/i386/sse.md
19338         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
19339         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
19340         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
19341         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
19342
19343 2007-04-09  Jan Hubicka  <jh@suse.cz>
19344
19345         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
19346         multiple fields of union.
19347
19348 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
19349
19350         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
19351         (create_preheaders): Check that loops are available.
19352         (fix_loop_structure): Clean up, improve comments.
19353         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
19354         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
19355         state flags.
19356         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
19357         * predict.c (tree_estimate_probability): Do not call
19358         calculate_dominance_info.  Call create_preheaders.
19359         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
19360         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
19361         flags.
19362         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
19363         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
19364         * tree-cfg.c (tree_split_edge): Make an assert more precise.
19365         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
19366         arguments.
19367
19368 2007-04-08  Jan Hubicka  <jh@suse.cz>
19369
19370         * tree.h (maybe_fold_offset_to_component_ref): Declare.
19371         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
19372         * fold-const.c (fold_unary): Use it.
19373
19374 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19375
19376         * varasm.c (assemble_variable): Remove call to
19377         lang_hooks.decls.prepare_assemble_variable.
19378         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
19379         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
19380         * langhooks.h (lang_hooks_for_decls): Remove
19381         prepare_assemble_variable.
19382
19383 2007-04-08  Mike Stump  <mrs@apple.com>
19384
19385         * config/i386/i386.c: Use inc/dec on Core2.
19386
19387 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
19388
19389         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
19390         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
19391         lhd_tree_inlining_end_inlining): Remove.
19392         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
19393         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
19394         end_inlining hooks.
19395         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
19396         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
19397         lhd_tree_inlining_end_inlining): Remove prototypes.
19398         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
19399         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
19400         LANG_HOOKS_TREE_INLINING_START_INLINING,
19401         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
19402
19403         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
19404         not set it.
19405
19406 2007-04-08  Anatoly Sokolov <aesok@post.ru>
19407
19408         PR target/29932
19409         * config/avr/predicates.md (io_address_operand): Delete predicate.
19410         (low_io_address_operand): Don't use 'mode' argument.
19411         (higth_io_address_operand): Rename ...
19412         (high_io_address_operand): ... to this. Don't use 'mode' argument.
19413         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
19414         for above change.
19415
19416 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
19417
19418         Revert change removing staticp.
19419
19420 2007-04-07  Anatoly Sokolov <aesok@post.ru>
19421
19422         PR target/30289
19423         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
19424         earlyclobber.
19425
19426 2007-04-07  Bruce Korb  <bkorb@gnu.org>
19427
19428         * c.opt: Add -Wformat-contains-nul.
19429         * c-format.c (set_Wformat): Set warn_format_contains_nul to the
19430           -Wformat setting.
19431         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
19432         the NUL byte warning.
19433
19434 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
19435
19436         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
19437
19438 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
19439
19440         * tree.c (staticp): No longer use staticp langhook.
19441         * langhooks.c (lhd_staticp): Removed.
19442         * langhooks.h (struct lang_hooks): Remove staticp.
19443         * c-common.c (c_staticp): Remove.
19444         * c-common.h (c_staticp): Ditto.
19445         * langhooks-defs.h (lhd_staticp): Ditto.
19446         (LHD_HOOKS_STATICP): Ditto
19447         * tree.h (gcc_assert_lowered): New macro.
19448
19449 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
19450
19451         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
19452         argument "reliable".
19453         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
19454         Add argument "reliable".  Propagate it through calls.
19455         (infer_loop_bounds_from_undefined): Derive number of iterations
19456         estimates from references in blocks that do not dominate loop latch.
19457         (gcov_type_to_double_int): New function.
19458         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
19459         and expected_loop_iterations_unbounded.
19460         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
19461         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
19462         * tree-data-ref.c (estimated_loop_iterations): Export.
19463         (get_references_in_stmt): Fix -- do not return addresses of local
19464         objects.
19465         * cfgloop.h (expected_loop_iterations_unbounded,
19466         estimated_loop_iterations): Declare.
19467
19468 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
19469
19470         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
19471
19472 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
19473
19474         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
19475         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
19476         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
19477         Use output_387_reg_move().
19478         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
19479         expander using X87MODEF12 mode macro.
19480         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
19481         choosing register preferences.  Use output_387_reg_move().
19482         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
19483         instead of "x".  Use output_387_reg_move().
19484         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
19485         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
19486         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
19487         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
19488         Use output_387_reg_move().
19489         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
19490         mode macro.
19491         (*truncxf?f_i387 splitter): Ditto.
19492
19493 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
19494
19495         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
19496         LANG_HOOKS_SAFE_FROM_P.
19497         * expr.c (safe_from_p): Remove langhook call.
19498         * langhooks.h (lang_hooks): Remove safe_from_p.
19499         (lhd_safe_from_p): Remove prototype.
19500         * langhooks.c (lhd_safe_from_p): Remove.
19501
19502 2007-04-06  Jan Hubicka  <jh@suse.cz>
19503
19504         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
19505         functions.
19506
19507 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
19508
19509         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
19510         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
19511         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
19512         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
19513         alternative.
19514         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
19515         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
19516
19517 2007-04-05  Richard Henderson  <rth@redhat.com>
19518
19519         * config/alpha/alpha.c (print_operand) [+]: Remove.
19520         (alpha_end_function): Print nop if call at end of function.
19521         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
19522         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
19523         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
19524         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
19525         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
19526         the call pattern. Update peepholes to match.
19527
19528 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
19529
19530         * doc/extend.texi (Other Builtins): Add decimal float variants
19531         of signbit.
19532         * builtins.def: Ditto.
19533         * builtins.c (expand_builtin): Ditto.
19534
19535 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
19536             H.J. Lu  <hongjiu.lu@intel.com>
19537
19538         PR target/31478
19539         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
19540         of V8HImode when calling ix86_binary_operator_ok.
19541         (sse2_pmaddwd): Call ix86_binary_operator_ok.
19542         (sdot_prodv8hi): Operands 1 and 2 must be register.
19543
19544 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
19545
19546         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
19547         initialize align to silence bogus warning.
19548
19549 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
19550
19551         PR middle-end/22156
19552         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
19553         all_no_warning.
19554         (struct sra_walk_fns): Remove use_all parameter from use.
19555         (sra_hash_tree): Handle BIT_FIELD_REFs.
19556         (sra_elt_hash): Don't hash bitfld blocks.
19557         (sra_elt_eq): Skip them in parent compares as well.  Handle
19558         BIT_FIELD_REFs.
19559         (sra_walk_expr): Don't maintain or pass down use_all_p.
19560         (scan_use): Remove use_all parameter.
19561         (scalarize_use): Likewise.  Re-expand assignment to
19562         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
19563         output, and re-scalarize after output.  Don't mark anything
19564         for no warning.
19565         (scalarize_ldst): Adjust.
19566         (scalarize_walk_gimple_modify_statement): Likewise.
19567         (build_element_name_1): Handle BIT_FIELD_REFs.
19568         (instantiate_element): Don't warn for any element whose parent
19569         is used as a whole.
19570         (instantiate_missing_elements_1): Return the sra_elt.
19571         (canon_type_for_field): New.
19572         (try_instantiate_multiple_fields): New.
19573         (instantiate_missing_elemnts): Use them.
19574         (mark_no_warning): Removed.
19575         (generate_one_element_ref): Handle BIT_FIELD_REFs.
19576         (REPLDUP, sra_build_elt_assignment): New.
19577         (generate_copy_inout): Use them.
19578         (generate_element_copy): Likewise.  Handle bitfld differences.
19579         (generate_element_zero): Don't recurse for blocks.  Use
19580         sra_build_elt_assignment.
19581         (generate_one_element_int): Take elt instead of var.  Use
19582         sra_build_elt_assignment.
19583         (generate_element_init_1): Adjust.
19584         (scalarize_use, scalarize_copy): Use REPLDUP.
19585         (scalarize_ldst): Move assert before dereference.
19586         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
19587
19588 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19589
19590         * regmove.c: Fix unused variable warnings due to previous commit.
19591
19592 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19593
19594         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
19595         (regmove_bb_head): Remove.
19596         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
19597         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
19598         problems with fixup_match_1.
19599         Don't initialize/free regmove_bb_head.
19600
19601         (reg_is_remote_constant_p): If an insn is in the same basic block
19602         but not before INSN, consider it remote, too.
19603
19604 2007-04-05  Anatoly Sokolov <aesok@post.ru>
19605
19606         PR target/25448
19607         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
19608         DECL_ASSEMBLER_NAME, not the DECL_NAME.
19609
19610 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
19611
19612         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
19613         (CONDITIONAL_REGISTER_USAGE): Likewise.
19614
19615 2007-04-04  Richard Henderson  <rth@redhat.com>
19616
19617         * config/alpha/lib1funcs.asm: Remove unused file.
19618
19619 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19620
19621         PR other/31356
19622         * opts.c (print_specific_help): Fix --help=<language>
19623         header line.
19624         (common_handle_option): Support --help=common.
19625
19626 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19627
19628         PR other/31353
19629         * gcc.c (main): Do not run the linker if
19630         print_subprocess_help indicates that it shouldn't be
19631         run.
19632
19633 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19634
19635         PR doc/31355
19636         * doc/invoke.texi (--help=): Document <languages> value, fix
19637         formatting in tables of values.
19638
19639 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
19640
19641         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
19642         dllimport attribute of virtual methods.
19643
19644 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
19645
19646         * config/score/crti.asm: Change _bss_start to __bss_start.
19647         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
19648         (OUTGOING_REG_PARM_STACK_SPACE) update.
19649         * config/score/score.opt: add options to make backend support
19650         score5, score5u, score7 and score7d.
19651         * config/score/score.md: Likewise.
19652         * config/score/misc.md: Likewise.
19653         * config/score/mac.md: Likewise.
19654         * doc/invoke.texi: Likewise.
19655         * doc/md.texi: update constraints define.
19656
19657 2007-04-03  Richard Henderson  <rth@redhat.com>
19658
19659         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
19660         an appropriate type, use the mode instead.
19661
19662 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
19663
19664         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
19665         Set the default --with-arch setting to mips2.
19666         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
19667         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
19668         (MULTILIB_OSDIRNAMES): Delete.
19669         (MULTILIB_DIRNAMES): Define.
19670         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
19671         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
19672         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
19673         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
19674         VXWORKS_OS_CPP_BUILTINS.
19675         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
19676         (MIPS_DEBUGGING_INFO): Undefine.
19677         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
19678
19679 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
19680
19681         PR middle-end/30704
19682         * fold-const.c (native_encode_real): Encode real.c provided longs
19683         as a series of 32-bit native integers.
19684         (native_interpret_real): Interpret buffer as a series of 32-bit
19685         native integers.
19686
19687 2007-04-03  Richard Guenther  <rguenther@suse.de>
19688
19689         * genpreds.c (write_insn_constraint_len): Write function
19690         optimized for CONSTRAINT_LEN implementation.
19691         (write_tm_preds_h): Output insn_constraint_len inline and
19692         use it for CONSTRAINT_LEN.
19693         (write_insn_preds_c): Don't output insn_constraint_len.
19694         * doc/md.texi (define_register_constraint): Document multi-letter
19695         constraints shall have the same length if they start with the same
19696         letter.
19697
19698 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
19699
19700         PR target/31175
19701         * config/i386/i386.md (isinf<mode>2): Expand only when
19702         TARGET_C99_FUNCTIONS is set.
19703
19704 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
19705
19706         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
19707         (x86_64-*-linux*): Ditto.
19708         * config/i386/i386.opt (mpc): New option.
19709         * config/i386/i386.c (overrride_options): Handle
19710         ix87_precision_string.
19711         * config/i386/crtprec.c: New file.
19712         * config/i386/t-crtpc: Ditto.
19713         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
19714         and -mpc80 options.
19715         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
19716         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
19717         crtprec32.o, crtprec64.o and crtprec80.o.
19718
19719         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
19720         and -mpc80 options.
19721         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
19722
19723 2007-04-02  Eric Christopher  <echristo@apple.com>
19724
19725         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
19726         limitations on darwin.
19727
19728 2007-04-02  Anatoly Sokolov <aesok@post.ru>
19729
19730         PR target/31137
19731         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
19732
19733 2007-04-02  Dave Korn  <dave.korn@artimi.com>
19734
19735         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
19736
19737 2007-04-02  Dave Korn  <dave.korn@artimi.com>
19738
19739         * libgcc2.h (exception_descriptor): Don't forward-declare.
19740         (__get_eh_table_language, __get_eh_table_version): Delete
19741         prototypes of long-dead functions.
19742
19743 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
19744
19745         * ebitmap.h: New file
19746         * ebitmap.c: New file
19747         * Makefile.in (ebitmap.o): New target.
19748
19749 2007-04-01  Jan Hubicka  <jh@suse.cz>
19750
19751         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
19752         before very first instruction.
19753
19754 2007-04-01  Jan Hubicka  <jh@suse.cz>
19755
19756         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
19757         waring on 64bit hosts.
19758         * bitmap.h: Fix typo in bitmap_head_def.
19759
19760 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
19761
19762         PR rtl-optimization/31391
19763         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
19764         into a DELETED_LABEL note, and the label is in an empty basic
19765         block, update BB_END as well as BB_HEAD.
19766
19767 2007-04-01  Richard Henderson  <rth@redhat.com>
19768
19769         PR tree-optimization/31169
19770         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
19771         to varying if the range is outside [0,  prec-1].
19772
19773 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
19774
19775         PR target/31388
19776         * config/mips/mips.md (load_const_gp): New insn.
19777         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
19778         the MIPS16 GP pseudo register if no_new_pseudos.
19779         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
19780
19781 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19782
19783         PR target/31364
19784         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
19785         secureplt.
19786         (call_value): Likewise.
19787
19788 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
19789             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19790
19791         PR 14737
19792         * doc/invoke.texi: (optimization options): Reword description
19793         of -ffast-math. Document its primary purpose.
19794
19795 2007-03-31  Richard Guenther  <rguenther@suse.de>
19796
19797         * omp-low.c (splay-tree.h): Include.
19798         (lookup_decl): Replace splay-tree usage by pointer-map.
19799         (maybe_lookup_decl): Likewise.
19800         (new_omp_context): Likewise.
19801         (delete_omp_context): Likewise.
19802         * gimplify.c (splay-tree.h): Include.
19803         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
19804         pointer-map.
19805         (remap_ssa_name): Likewise.
19806         (remap_decl): Likewise.
19807         (remap_type_1): Likewise.
19808         (remap_type): Likewise.
19809         (copy_body_r): Likewise.
19810         (expand_call_inline): Likewise.
19811         (clone_body): Likewise.
19812         (copy_tree_r): Likewise.
19813         (remap_save_expr): Likewise.
19814         (unsave_r): Likewise.
19815         (unsave_expr_now): Likewise.
19816         (tree_function_versioning): Likewise.
19817         (build_duplicate_type): Likewise.
19818         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
19819         (struct copy_body_data): Replace splay-tree by pointer-map.
19820         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
19821         not $(SPLAY_TREE_H).
19822         (gimplify.o): Depend on $(SPLAY_TREE_H).
19823         (omp-low.p): Likewise.
19824
19825 2007-03-31  Anatoly Sokolov <aesok@post.ru>
19826
19827         * config/avr/predicates.md (even_register_operand,
19828         odd_register_operand): New predicates.
19829         * config/avr/avr.md (movw peephole2): New.
19830         (movw_r peephole2): New.
19831
19832 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
19833
19834         * tree.h (get_signed_or_unsigned_type): New.
19835         * fold-const.c (operand_equal_for_comparison_p): Use
19836         get_signed_or_unsigned_type instead of
19837         lang_hooks.types.signed_or_unsigned_type.
19838         * expr.c (store_expr): Ditto.
19839         * langhooks.c (get_signed_or_unsigned_type): New.
19840         (lhd_signed_or_unsigned_type): New.
19841         * langhooks.h (lhd_signed_or_unsigned_type): New.
19842         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
19843
19844 2007-03-30  Richard Henderson  <rth@redhat.com>
19845
19846         * tree-ssa-loop-ivopts.c: Include target.h.
19847         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
19848         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
19849         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
19850         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
19851
19852 2007-03-30  Richard Henderson  <rth@redhat.com>
19853             Kai Tietz  <kai.tietz@onevision.com>
19854
19855         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
19856         default for 64-bit.
19857         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
19858         (TARGET_64BIT_MS_ABI): New.
19859         (DBX_REGISTER_NUMBER): Handle 64-bit.
19860         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
19861         (LONG_TYPE_SIZE): Force to 32.
19862         (REG_PARM_STACK_SPACE): New.
19863         (OUTGOING_REG_PARM_STACK_SPACE): New.
19864         (REGPARM_MAX, SSE_REGPARM_MAX): New.
19865         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
19866         (STACK_BOUNDARY): Use 128 for 64-bit.
19867         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
19868         Add 64-bit implementation.
19869         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
19870         argument unused.
19871         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
19872         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
19873         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
19874         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
19875         (ix86_handle_cconv_attribute): Don't warn when ignoring if
19876         TARGET_64BIT_MS_ABI.
19877         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
19878         (ix86_pass_by_reference): Likewise.
19879         (ix86_function_value_regno_p): Likewise.
19880         (ix86_build_builtin_va_list): Likewise.
19881         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
19882         (function_arg_advance_ms_64): New.
19883         (function_arg_advance): Call it.
19884         (function_arg_ms_64): New.
19885         (function_arg): Call it.
19886         (function_value_ms_64): New.
19887         (ix86_function_value_1): Call it.
19888         (return_in_memory_ms_64): New.
19889         (ix86_return_in_memory): Call it.
19890         (setup_incoming_varargs_ms_64): New.
19891         (ix86_setup_incoming_varargs): Call it.
19892         (ix86_expand_prologue): Handle 64-bit stack probing.
19893         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
19894         (output_pic_addr_const): Likewise.
19895         (x86_this_parameter): Likewise.
19896         (x86_output_mi_thunk): Likewise.
19897         (x86_function_profiler): Likewise.
19898         (TARGET_STRICT_ARGUMENT_NAMING): New.
19899         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
19900         (TARGET_64BIT_MS_ABI): New.
19901         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
19902         * config/i386/i386.md (allocate_stack_worker): Remove.
19903         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
19904         describe the clobber of eax without a match_scratch.
19905         (allocate_stack_worker_postreload): Remove.
19906         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
19907         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
19908         (allocate_stack_worker_rex64_postreload): Remove.
19909         (allocate_stack): Handle 64-bit.
19910         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
19911         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
19912         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
19913         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
19914         (STANDARD_STARTFILE_PREFIX_1): Likewise.
19915         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
19916         * config.build (x86_64-*-mingw*): New host.
19917         * config.host (x86_64-*-mingw*): New host.
19918         * config.gcc (x86_64-*-mingw*): New target.
19919         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
19920
19921 2007-03-30  Richard Henderson  <rth@redhat.com>
19922             Kai Tietz  <kai.tietz@onevision.com>
19923
19924         * c-pragma.c (struct def_pragma_macro_value): New.
19925         (struct def_pragma_macro): New.
19926         (pushed_macro_table): New.
19927         (dpm_hash, dpm_eq): New.
19928         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
19929         (init_pragma): Install them.
19930         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
19931
19932 2007-03-30  Anatoly Sokolov <aesok@post.ru>
19933
19934         * config/avr/avr.c (avr_override_options): Clear
19935         'flag_delete_null_pointer_checks'.
19936
19937 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
19938
19939         PR c++/26099
19940         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
19941         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
19942         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
19943         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
19944         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
19945         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
19946         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
19947         C++ extensions.
19948         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
19949
19950 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
19951
19952         * regmove.c: Move all of pass_stack_adjustments from here...
19953         * combine-stack-adj.c: ...to this new file.
19954         * Makefile.in: Add rules for combine-stack-adj.o.
19955
19956 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
19957
19958         PR tree-optimization/31383
19959         * tree-data-ref.c (affine_function_equal_p): Do not require the
19960         vectors to have the same length.
19961
19962 2007-03-30  Jan Hubicka  <jh@suse.cz>
19963
19964         PR middle-end/30700
19965         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
19966         availablility; add more sanity checking; ask varpool only about
19967         VAR_DECL.
19968
19969 2007-03-29  Richard Henderson  <rth@redhat.com>
19970
19971         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
19972         to decide, but __SIZEOF_LONG_LONG__.
19973
19974 2007-03-29  Richard Henderson  <rth@redhat.com>
19975
19976         * emutls.c (struct __emutls_array): New.
19977         (emutls_destroy): Use it instead of casting element 0 from void*.
19978         (__emutls_get_address): Likewise.
19979
19980 2007-03-29  Richard Henderson  <rth@redhat.com>
19981
19982         * varasm.c (initializer_constant_valid_p): Don't deny
19983         DECL_DLLIMPORT_P on functions.
19984
19985         * config/i386/cygming.h: Remove function declarations.
19986         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
19987         (ASM_OUTPUT_LABELREF): Remove.
19988         (COMMON_ASM_OP): Remove.
19989         (ASM_OUTPUT_COMMON): Remove.
19990         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19991         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
19992         (ASM_DECLARE_FUNCTION_NAME): Likewise.
19993         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
19994         Rename from TARGET_ENCODE_SECTION_INFO.
19995         * config/i386/netware.h: Likewise.
19996         * config/i386/i386-protos.h: Update.
19997         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
19998         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
19999         (legitimate_constant_p): Reject dllimports.
20000         (dllimport_map, get_dllimport_decl): New.
20001         (legitimize_dllimport_symbol): New.
20002         (legitimize_address, ix86_expand_move): Use it.
20003         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
20004         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
20005         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
20006         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
20007         * config/i386/predicates.md (constant_call_address_operand): Only
20008         accept symbols; reject dllimport_p symbols.
20009         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20010         i386_pe_maybe_record_exported_symbol.
20011         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
20012         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
20013         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
20014         trust the setting of DECL_DLLIMPORT_P.
20015         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
20016         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
20017         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
20018         tidy the argument scanning loop.
20019         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
20020         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
20021         (i386_pe_strip_name_encoding): Remove.
20022         (i386_pe_binds_local_p): New.
20023         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
20024         (i386_pe_output_labelref): Remove.
20025         (i386_pe_asm_output_aligned_decl_common): New.
20026         (i386_pe_maybe_record_exported_symbol): Rename from
20027         i386_pe_record_exported_symbol; check for dllexported symbols.
20028
20029 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
20030
20031         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
20032         add comment explaining why vsnprintf cannot be used.
20033
20034 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
20035
20036         PR tree-optimization/30666
20037         * tree.c (build_complex_type): When creating type names for DWARF2
20038         debug info, create TYPE_DECLs for TYPE_NAME instead of
20039         IDENTIFIER_NODEs.
20040         (build_common_tree_nodes_2): Use build_complex_type when building
20041         predefined complex types, to preserve canonical types.
20042
20043 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
20044
20045         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
20046         (noce_get_alt_condition): Look at it to determine whether to
20047         reverse the condition or not.
20048         (noce_get_condition): Substitute the truth for lies.
20049         (noce_find_if_block): Set the then_else_reversed field.
20050
20051 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
20052
20053         * config/fr30/fr30.md (movdi): Do not accept immediates as the
20054         destination of this insn.
20055         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
20056         than calling gen_rtx_SET directly.  Use r0 to hold the value of
20057         'address + 4' rather than a stack based temporary which can be
20058         mis-optimized away.
20059
20060 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
20061
20062         * config/s390/s390.c (s390_secondary_input_reload_class,
20063         s390_secondary_output_reload_class): Functions removed.
20064         (s390_secondary_reload): New function.
20065         (TARGET_SECONDARY_RELOAD): Target macro defined.
20066         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
20067         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
20068         * config/s390/s390.md ("reload_outti", "reload_outdi",
20069         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
20070         "reload_out<mode>"): Expanders removed.
20071         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
20072         "reload<mode>_nonoffmem_out"): Expanders added.
20073
20074 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
20075
20076         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
20077         action if SRC->DEST replacement failed anyway.
20078
20079 2007-03-28  Mike Stump  <mrs@apple.com>
20080
20081         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
20082         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
20083         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
20084
20085 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
20086
20087         * config.gcc: Accept barcelona as a variant of amdfam10.
20088         * config/i386/i386.c (override_options): Likewise.
20089         * doc/invoke.texi: Likewise.
20090
20091 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20092
20093         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
20094         offsets for BIT_FIELD_REF and COMPONENT_REF.
20095
20096 2007-03-28  Richard Guenther  <rguenther@suse.de>
20097
20098         * tree.c (is_global_var): Move ...
20099         * tree-flow-inline.h (is_global_var): ... here.
20100         * tree.h (is_global_var): Remove declaration.
20101
20102 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
20103
20104         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
20105         option.
20106         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
20107         * config/i386/i386.c (ix86_tune_features): Initialize new
20108         tuning option.
20109         * config/i386/predicates.md (promotable_binary_operator): Use
20110         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
20111
20112 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
20113
20114         PR target/31380
20115         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
20116
20117 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
20118
20119         * config/fr30/fr30.md (movsi_internal): Change destination
20120         constraint from m to V and add m to the end.
20121
20122 2007-03-28  Christian Bruel  <christian.bruel@st.com>
20123
20124         * config/sh/sh.md (movsi_i): Fix type attribute.
20125
20126 2007-03-28  Christian Bruel  <christian.bruel@st.com>
20127
20128         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
20129         (movsf_ie): Likewise.
20130
20131 2007-03-28  Christian Bruel  <christian.bruel@st.com>
20132
20133         * config.gcc: Add sh4-300 to multilib.
20134         * config/sh/t-mlib-sh4-300: New file.
20135
20136 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
20137
20138         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
20139         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
20140         fix_trunc<mode>di2.
20141         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
20142         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
20143         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
20144         "fixuns_trunctddi2"): Whitespace fix.
20145
20146 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20147
20148         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
20149         the definition of struct sh_args.
20150         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
20151         CALL_COOKIE_INT_REG_GET): Likewise.
20152
20153 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20154
20155         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
20156         transformations are applied successfully.
20157
20158 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
20159
20160         * tree.c (tree_contains_struct): Permit 512 tree codes.
20161         * tree.h (tree_contains_struct): Ditto.
20162         (MAX_TREE_CODES): Ditto.
20163         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
20164         SPARE member to store remaining padding bits.
20165
20166 2007-03-27  Anatoly Sokolov <aesok@post.ru>
20167
20168         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
20169         architecture.
20170
20171 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
20172
20173         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
20174         * configure: Regenerate.
20175
20176         * configure: Regenerate using the correct version of autoconf.
20177
20178 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
20179
20180         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
20181         pointer regs.
20182         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
20183         regs to "__SP_L__" and "__SP_H__".
20184
20185 2007-03-27  Richard Guenther  <rguenther@suse.de>
20186
20187         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
20188         computations with it with a HOST_WIDE_INT variable.
20189
20190 2007-03-26  Mike Stump  <mrs@apple.com>
20191
20192         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
20193         objective-c-header, objective-c++-header and objc++-cpp-output
20194         support.
20195         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
20196
20197 2007-03-26  Richard Henderson  <rth@redhat.com>
20198
20199         PR target/31361
20200         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
20201         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
20202         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
20203         IX86_BUILTIN_PSRLQ128): New.
20204         (ix86_init_mmx_sse_builtins): Add them.
20205         (ix86_expand_builtin): Expand them.
20206         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
20207         operand 2 be TImode.
20208         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
20209         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
20210         _mm_srli_epi64): Mark __B const.
20211         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
20212         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
20213         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
20214         new two-vector shift builtins.
20215
20216 2007-03-26  Ian Lance Taylor  <iant@google.com>
20217
20218         PR tree-optimization/31345
20219         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
20220         [+INF, +INF(OVF)] into VARYING.
20221
20222 2007-03-26  Zack Weinberg  <zackw@panix.com>
20223
20224         * gengtype-parse.c: New file.
20225         * gengtype-yacc.y: Delete.
20226         * gengtype-lex.l: Don't include gengtype-yacc.h.
20227         Define YY_DECL and yyterminate appropriately for recursive
20228         descent parser.  yylval is now a string out-parameter to yylex.
20229         (HWS, EOID): New shorthand.
20230         (IWORD): Add a couple more types.
20231         (yylex): Add a setup stanza.  Remove the complex rules for
20232         detecting GTY'ed types and typedefs; replace with simple
20233         keyword detectors.  Adjust everything for the changed
20234         definition of yylval.  Ignore all pp-directives, not just #define.
20235         (yyerror): Delete.
20236         (parse_file): Rename yybegin; do not call yyparse.
20237         (yyend): New.
20238         * gengtype.c (xasprintf): Export again.
20239         (this_file): New.  Use everywhere __FILE__ was being used.
20240         (get_lang_bitmap): Special case types defined in gengtype.c.
20241         (do_typedef, new_structure): Suppress definition of certain types.
20242         (new_structure): Improve diagnostics of duplicate definitions.
20243         Make sure location_s is associated with input.h.
20244         (nreverse_pairs, define_location_structures): New functions.
20245         (main): Improve tagging of kludge types.  Remove old kludges
20246         for input.h types; use define_location_structures.
20247         * gengtype.h: Update prototypes.  Define token codes here.
20248         * Makefile.in: Remove all references to gengtype-yacc.
20249         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
20250         and gengtype.
20251         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
20252         add GTY((skip)) to the field that's only conditionally there.
20253         * doc/install.texi: Document that Bison is no longer required
20254         unless building treelang.
20255
20256         * gengtype.c: Don't include gtyp-gen.h.
20257         (srcdir): Declare here.
20258         (base_files, lang_dir_names): Allocate dynamically.
20259         (gt_files, num_gt_files, num_lang_dirs): New globals.
20260         (measure_input_list, read_input_line, read_input_list)
20261         (set_lang_bitmap): New functions.
20262         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
20263         simplify, relying on read_input_list to set up the bitmaps.
20264         (main): Arguments are no longer unused.  Check for correct number
20265         of command line arguments, set srcdir and srcdir_len, then call
20266         read_input_list, before doing anything else.  No need to worry
20267         about duplicates in main loop.
20268         * configure.ac: Simplify the calculation of all_gtfiles.
20269         Put language tags in there.  Don't set or substitute
20270         all_gtfiles_files_langs or all_gtfiles_files_frags.
20271         * Makefile.in: Revamp the way gengtype is invoked, now that it
20272         takes a file on its command line with a much simpler format.
20273         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
20274         (GTFILES): Remove duplicates and C source files.
20275         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
20276         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
20277         * configure: Regenerate.
20278
20279         * gengtype.h: Remove all type definitions to gengtype.c; leave
20280         only definitions of options_p, type_p, and pair_p as opaque
20281         pointers.  Update prototypes.
20282         * gengtype.c: Many type definitions moved here from gengtype.h.
20283         Consolidate type definitions at the top of the file.
20284         (xvasprintf): Delete.
20285         (xasprintf): Make static.
20286         (create_nested_pointer_option): Add 'next' parameter.
20287         (create_field_all, create_field_at): New functions.
20288         (create_field): Now a thin wrapper around create_field_all.
20289         (create_optional_field): Rename create_optional_field_ and add
20290         line argument.  Original name is now a macro which supplies
20291         __LINE__.
20292         (oprintf): Use vsnprintf directly.
20293         (close_output_files): Use fatal rather than perror/exit.
20294         (note_def_vec, note_def_vec_alloc): Use create_field_at.
20295         (main): Set progname.  Don't use exit.
20296         * gengtype-yacc.y (struct_fields): Use create_field_at.
20297         (option, optionseqopt): Delete.
20298         (optionseq): Consolidate productions from option here so we
20299         can use the first argument to create_option.
20300
20301         * gengtype-lex.l: Distinguish unions from structures in the
20302         token type.  Don't call find_structure; return the tag as a string.
20303         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
20304         ENT_UNION.  Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
20305         string.  Reorganize typedef_struct production accordingly.
20306         Use create_nested_ptr_option.
20307         * gengtype.c (create_nested_ptr_option): New function.
20308         * gengtype.h: Declare it.
20309
20310         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
20311         (string_type): Don't declare.
20312         (do_scalar_typedef): Declare.
20313         (create_scalar_type): Update prototype.
20314         * gengtype.c (string_type): Make static.
20315         (scalar_nonchar, scalar_char): New.
20316         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
20317         (resolve_typedef): Use scalar_nonchar for error recovery.
20318         (create_scalar_type): Remove name_len field.  Return scalar_char
20319         or scalar_nonchar as appropriate.
20320         (adjust_field_type): Look at scalar_is_char boolean to decide whether
20321         to use string_type.
20322         (throughout): Use scalar_nonchar instead of calling
20323         create_scalar_type, whenever possible.
20324         (main): Initialize scalar_char and scalar_nonchar before calling
20325         gen_rtx_next.
20326         * gengtype-lex.l: Adjust for removal of second argument to
20327         create_scalar_type.  Use yylval.s instead of yylval.t when
20328         returning SCALAR.
20329         * gengtype-yacc.y: Type of SCALAR is string.  Call
20330         create_scalar_type from type:SCALAR rule.  Adjust for removal of
20331         second argument to create_scalar_type.
20332
20333         * vec.h: Remove all #if IN_GENGTYPE blocks.
20334         Add comment saying that changes may require adjustments to gengtype.
20335         * gengtype.c: Don't include coretypes.h or tm.h.
20336         Add comment to inclusion of errors.h.
20337         (note_def_vec, note_def_vec_alloc): New functions.
20338         * gengtype.h: Declare new functions.
20339         * gengtype-lex.l: Don't include coretypes.h.
20340         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
20341         Delete.
20342         (update_lineno): Remove unnecessary prototype.
20343         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
20344         (VEC rule): Just return VEC_TOKEN.
20345         * gengtype-yacc.y (VEC_TOKEN): New token type.
20346         (type): Add a production for VEC(a,b).
20347         * Makefile.in: Update dependencies.
20348
20349         * gengtype-lex.l: Remove rules for parsing pointer-to-function
20350         typedefs that use the old PARAMS macro.
20351
20352         * gengtype-lex.l: Remove all rules and states relating to yacc
20353         input files.
20354         * gengtype-yacc.y: Similarly.
20355         * gengtype.c (note_yacc_type): Delete function.
20356         * gengtype.h: Update prototypes.
20357
20358 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
20359
20360         * tree-pretty-print.c (dump_generic_node): Report precision of
20361         unnamed integer types.
20362
20363 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
20364
20365         * ifcvt.c (noce_try_store_flag_constants): Don't check
20366         no_new_pseudos here.
20367         (noce_try_store_flag_constants): Don't check no_new_pseudos.
20368         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
20369         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
20370         noce_try_sign_mask): Likewise.
20371         (if_convert): Check no_new_pseudos here.
20372
20373         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
20374         Remove prototypes.
20375         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
20376         (noce_get_condition): Handle new then_else_reversed argument.
20377         (noce_init_if_info): Remove, fold into noce_find_if_block.
20378         (noce_process_if_block): Take a struct noce_if_info as the
20379         argument.  Don't set up one based on ce_if_info.  Update pointer
20380         references accordingly.
20381         (cond_move_process_if_block): Likewise.
20382         (process_if_block): Removed.
20383         (find_if_block): Removed.  Move functionality two new functions,
20384         noce_find_if_block and cond_exec_find_if_block.
20385         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
20386         blocks and the symmetric IF-ELSE-JOIN case.
20387         (cond_exec_find_if_block): Also new function mostly based on old
20388         find_if_block and process_if_block.
20389         (find_if_header): Replace find_if_block call with separately
20390         guarded calls to noce_find_if_block and cond_exec_find_if_block.
20391         (find_cond_trap): Update noce_get_condition call.
20392         (dead_or_predicable): Likewise.
20393
20394 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
20395
20396         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
20397         Remove.
20398         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
20399         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
20400         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
20401         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
20402         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
20403         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
20404         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
20405         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
20406         __builtin_ia32_psrad128 builtins.
20407
20408 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
20409
20410         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
20411         * config/i386/constraints.md
20412         (define_constraint "I"): Use IN_RANGE macro.
20413         (define_constraint "J"): Ditto.
20414         (define_constraint "K"): Ditto.
20415         (define_constraint "M"): Ditto.
20416         (define_constraint "N"): Ditto.
20417         (define_constraint "O"): Ditto.
20418         * config/i386/predicates.md
20419         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
20420         (define_predicate "const_0_to_3_operand"): Ditto.
20421         (define_predicate "const_0_to_7_operand"): Ditto.
20422         (define_predicate "const_0_to_15_operand"): Ditto.
20423         (define_predicate "const_0_to_63_operand"): Ditto.
20424         (define_predicate "const_0_to_255_operand"): Ditto.
20425         (define_predicate "const_1_to_31_operand"): Ditto.
20426         (define_predicate "const_2_to_3_operand"): Ditto.
20427         (define_predicate "const_4_to_7_operand"): Ditto.
20428
20429 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
20430
20431         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
20432         in SImode for save_world.
20433         * config/rs6000/altivec.md (save_world, restore_world): Convert to
20434         LR hard reg.
20435
20436 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
20437
20438         PR tree-optimization/30784
20439         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
20440         BIT_FIELD_REF.
20441
20442 2007-03-25  Revital Eres  <eres@il.ibm.com>
20443
20444         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
20445           Fold movement_possibility function into it.
20446
20447 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
20448
20449         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
20450         (load_macho_picbase_{si,di}): Convert to LR hard reg.
20451         (call_indirect_nonlocal_darwin64): Same.
20452         (call_nonlocal_darwin64): Same.
20453         (call_value_indirect_nonlocal_darwin64): Same.
20454         (call_value_nonlocal_darwin64): Same.
20455         (sibcall_nonlocal_darwin64): Same.
20456         (sibcall_value_nonlocal_darwin64): Same.
20457         (sibcall_symbolic_64): Same.
20458         (sibcall_value_symbolic_64): Same.
20459         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
20460         LR pseudo.
20461         (rs6000_emit_load_toc_table): Same.
20462         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
20463         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
20464         (mull_call): Same.
20465         (divss_call): Same.
20466         (divus_call): Same.
20467         (quoss_call): Same.
20468         (quous_call): Same.
20469         (load_toc_v4_pic_si): Same
20470         (load_toc_v4_PIC_1): Same.
20471         (load_toc_v4_PIC_1b): Same.
20472         (call_indirect_aix{32,64}): Same.
20473         (call_value_indirect_aix{32,64}): Same.
20474         (call): Same.
20475         (call_value): Same.
20476         (call_local{32,64}): Same.
20477         (call_value_local{32,64}): Same.
20478         (call_indirect_nonlocal_aix{32,64}): Same.
20479         (call_nonlocal_aix{32,64}): Same.
20480         (call_value_indirect_nonlocal_aix{32,64}): Same.
20481         (call_value_nonlocal_aix{32,64}): Same.
20482         (call_indirect_nonlocal_sysv<mode>): Same.
20483         (call_nonlocal_sysv<mode>): Same.
20484         (call_value_indirect_nonlocal_sysv<mode>): Same.
20485         (call_value_nonlocal_sysv<mode>): Same.
20486         (sibcall): Same.
20487         (sibcall_local{32,64}): Same.
20488         (sibcall_value_local{32,64}): Same.
20489         (sibcall_nonlocal_aix{32,64}): Same.
20490         (sibcall_value_nonlocal_aix{32,64}): Same.
20491         (sibcall_nonlocal_sysv<mode>): Same.
20492         (sibcall_value): Same.
20493         (sibcall_value_nonlocal_sysv<mode>): Same.
20494
20495 2007-03-24  Paul Brook  <paul@codesourcery.com>
20496
20497         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
20498         * config/arm/linux-eabi.h: Remove legacy syscall hack.
20499
20500 2007-03-24  Richard Henderson  <rth@redhat.com>
20501
20502         * config/ia64/constraints.md: New file.
20503         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
20504         satisfies_constraint_?.
20505         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
20506         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
20507         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
20508         ia64_output_mi_thunk): Likewise.
20509         (ia64_const_ok_for_letter_p): Remove.
20510         (ia64_const_double_ok_for_letter_p): Remove.
20511         (ia64_extra_constraint): Remove.
20512         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
20513         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
20514         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
20515         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
20516         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
20517         EXTRA_MEMORY_CONSTRAINT): Remove.
20518         * config/ia64/ia64.md: Include constriants.md.  Replace
20519         CONST_OK_FOR_? with satisfies_constraint_?.
20520
20521 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
20522             H.J. Lu  <hongjiu.lu@intel.com>
20523
20524         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
20525         DPD or BID name.
20526         (name macros): Use DPD_BID_NAME to convert names properly.
20527
20528         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
20529         decimal floating point format.
20530         (init_floating_libfuncs): Change decimal functions so that they
20531         have a "bid_" prefix if the decimal system uses the BID format,
20532         and "dpd_" prefix if the decimal system uses the DPD format.
20533         (init_interclass_conv_libfuncs): Ditto.
20534         (init_intraclass_conv_libfuncs): Ditto.
20535
20536         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
20537         using the BID format.
20538
20539         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
20540         whether we are using the BID decimal format.
20541         * configure: Regenerate.
20542
20543         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
20544         the compiler has decimal floating point enabled.  Define
20545         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
20546         instead of DPD.
20547
20548         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
20549         using the BID format.
20550
20551         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
20552         whether we are using the BID decimal format.
20553         * configure: Regenerate.
20554
20555         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
20556         the compiler has decimal floating point enabled.  Define
20557         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
20558         instead of DPD.
20559
20560         * doc/install.texi (--enable-decimal-float): Document BID and DPD
20561         options, and that it is enabled for i386/x86_64 systems.
20562
20563         * Makefile.in (enable_decimal_float): New.
20564         (DECNUMFMT): New.
20565         (DECNUMINC): Add  -I$(DECNUMFMT).
20566         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
20567         to $(DECNUMFMT) from $(DECNUM).
20568
20569         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
20570         Substitute enable_decimal_float.
20571         * configure: Regenerated.
20572
20573         PR other/30529
20574         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
20575         unsigned long.
20576
20577         * configure.ac: Enable decimal float for x86_64-*-linux*.
20578         * configure: Regenerated.
20579
20580         PR other/30530
20581         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
20582         decimal128ClearSign to flip and clear the sign bit in decimal128.
20583         (decimal_real_maxval): Set decimal128SetSign to set the sign
20584         bit in decimal128.
20585
20586 2007-03-23  Ian Lance Taylor  <iant@google.com>
20587
20588         * fold-const.c (fold_binary): Correct warning for X - c >= X.
20589
20590 2007-03-23  Ian Lance Taylor  <iant@google.com>
20591
20592         * tree-dump.c (dump_files): Correct comment.
20593
20594 2007-03-23  Ian Lance Taylor  <iant@google.com>
20595
20596         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
20597
20598 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
20599
20600         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
20601         in cfglayout mode.  Don't go into and out of cfglayout mode.
20602         Link the blocks in the order of the constructed traces.
20603         (rest_of_handle_tracer): Adjust call to tracer.
20604         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
20605         Don't go into cfglayout mode.
20606         (rtl_loop_done): Don't go out of cfglayout mode.
20607         * cfglayout.c (relink_block_chain): New function, split out from...
20608         (fixup_reorder_chain): ...here.  Remove redundant checking.
20609         (cfg_layout_finalize): Don't clear the header, footer, and aux
20610         fields here, move the code to do so to relink_block_chain.  Likewise
20611         for free_original_copy_tables.
20612         * rtl.h (tracer): Update prototype.
20613         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
20614         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
20615         mode.  Use relink_block_chain to serialize the CFG according to the
20616         new basic block order.  Move targetm.cannot_modify_jumps_p check from
20617         here...
20618         (gate_handle_reorder_blocks): ...to here.
20619         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
20620         from here...
20621         (gate_duplicate_computed_gotos): ...to here.
20622         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
20623         something always changes when going into and out of cfglayout mode.
20624         Perform an expensive cfg cleanup while going into cfglayout mode.
20625         Always update liveness information on HAVE_conditional_execution
20626         targets.  Reserialize the basic blocks and go out of cfglayout mode.
20627         * reg-stack.c: Include cfglayout.h.
20628         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
20629         the call to reorder_basic_blocks.
20630         * basic-block.h (reorder_basic_blocks): Update prototype.
20631         (relink_block_chain): New prototype.
20632         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
20633
20634 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
20635
20636         * config/mips/mips.md (type, hazard, *movdi_32bit,
20637         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
20638         *movhi_internal, *movqi_internal, *movsf_hardfloat,
20639         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
20640         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
20641         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
20642         applicable.
20643         (movcc): Change first xfer to multi.
20644         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
20645         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
20646         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
20647         config/mips/generic.md: Change reservations using "xfer" to use
20648         "mfc,mtc".
20649         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
20650         using match_operand.
20651         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
20652         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
20653         examining mode.
20654         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
20655
20656 2007-03-22  Richard Henderson  <rth@redhat.com>
20657
20658         * config/i386/i386.c: Remove unnecessary function declarations.
20659         Move targetm definition, and all related macros, to the end of
20660         the file.  Resort some functions to put definitions before uses.
20661         (ix86_attribute_table): Make static.  Move to end of file.
20662         (ix86_gimplify_va_arg): Make static.
20663
20664 2007-03-22  Richard Henderson  <rth@redhat.com>
20665
20666         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
20667         don't increase local_regparm with force_align_arg_pointer check.
20668         (ix86_function_sseregparm): Assert 32-bit.
20669         (type_has_variadic_args_p): New.
20670         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
20671         type_has_variadic_args_p.
20672         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
20673         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
20674         use memset instead.  Do maybe_vaarg check first; skip attribute
20675         tests if true; skip attribute tests for 64-bit.
20676         (construct_container): Remove TARGET_DEBUG_ARG.
20677         (function_arg_advance_32, function_arg_advance_64): Split out ...
20678         (function_arg_advance): ... from here.
20679         (function_arg_32, function_arg_64): Split out ...
20680         (function_arg): ... from here.
20681         (ix86_pass_by_reference): Tidy.
20682         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
20683         (function_value_32): New, from parts of ix86_function_value
20684         and ix86_value_regno.
20685         (function_value_64): New, from parts of ix86_function_value
20686         and ix86_libcall_value.
20687         (ix86_function_value_1): New.
20688         (ix86_function_value, ix86_libcall_value): Use it.
20689         (return_in_memory_32, return_in_memory_64): Split out ...
20690         (ix86_return_in_memory): ... from here.
20691         (ix86_struct_value_rtx): Skip for 64-bit.
20692         (ix86_libcall_value, ix86_value_regno): Remove.
20693         (setup_incoming_varargs_64): Split out ...
20694         (ix86_setup_incoming_varargs): ... from here.
20695         (ix86_va_start): Remove TARGET_DEBUG_ARG.
20696         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
20697         * config/i386/i386-protos.h (ix86_function_value): Remove.
20698         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
20699
20700 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20701
20702         PR other/23572
20703         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
20704         infinities not supported, otherwise emit warning if -Woverflow. On
20705         underflow, emit warning if -Woverflow.
20706         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
20707         and 0 otherwise.
20708         * real.h (real_from_string): Update declaration
20709
20710 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
20711             Richard Henderson  <rth@redhat.com>
20712
20713         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
20714         * calls.c (compute_argument_block_size, expand_call,
20715         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
20716         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20717         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
20718         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
20719         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
20720         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
20721         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
20722         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
20723         Set to 1.
20724
20725 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
20726
20727         * c-incpath.c (add_sysroot_to_chain): New.
20728         (merge_include_chains): Add sysroot argument.  Call
20729         add_sysroot_to_chain if sysrooted.
20730         (register_include_chains): Update call to merge_include_chains.
20731         * doc/cppopts.texi: Document use of '=' in include directory
20732         arguments.
20733
20734 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
20735
20736         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
20737         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
20738         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
20739         insn pattern using X87MODEF12 mode macro.
20740
20741 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
20742
20743         * regmove.c (regmove_optimize): Use reg_mentioned_p
20744         instead of reg_overlap_mentioned_p for DST.
20745
20746 2007-03-21  Mike Stump  <mrs@apple.com>
20747
20748         * c.opt: Fixup for Objective-C/C++.
20749
20750 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
20751
20752         * explow.c (convert_memory_address): Fold memory reference when
20753         POINTERS_EXTEND_UNSIGNED < 0
20754
20755 2007-03-21  Richard Henderson  <rth@redhat.com>
20756
20757         PR target/31245
20758         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
20759         * config/i386/mmintrin.h (__m64): Likewise.
20760         * config/i386/xmmintrin.h (__m128): Likewise.
20761
20762 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20763
20764         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
20765         (VXWORKS_OS_CPP_BUILTINS): Define.
20766         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
20767         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
20768
20769 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20770
20771         * rtl.h (constant_pool_reference_p): Delete.
20772         (find_constant_src): Declare.
20773         * rtlanal.c (find_constant_src): New function.
20774         * simplify-rtx.c (constant_pool_reference_p): Delete.
20775         * config/i386/i386.md: Use find_constant_src instead of
20776         constant_pool_reference_p/avoid_constant_pool_reference pairs.
20777
20778 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20779
20780         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
20781         * c-cppbuiltin.c (c_cpp_builtins): Define them.
20782
20783 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
20784
20785         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
20786         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
20787         (arm_elf_asm_constructor): Use it.
20788         (arm_elf_asm_destructor): New function.
20789
20790 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
20791
20792         * jump.c (mark_jump_label): Treat SEQUENCE specially.
20793
20794 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
20795
20796         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
20797
20798 2007-03-19  Andrew Haley  <aph@redhat.com>
20799
20800         PR tree-optimization/31264
20801         * tree-vrp.c (register_edge_assert_for_1): Don't look though
20802         VIEW_CONVERT_EXPRs.
20803
20804 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
20805
20806         PR rtl-optimization/30907
20807         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
20808         (fwprop_init): Always call loop_optimizer_initialize.
20809         (fwprop_done): Always call loop_optimizer_finalize.
20810         (fwprop): We always have loop info now.
20811         (gate_fwprop_addr): Remove.
20812         (pass_fwprop_addr): Use gate_fwprop as gate.
20813
20814         PR rtl-optimization/30841
20815         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
20816         df_chain_alloc): Call df_reorganize_refs unconditionally.
20817         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
20818         refs_organized to refs_organized_size.
20819         (df_ref_create_structure): Use refs_organized_size instead of
20820         bitmap_size if refs had been organized, and keep refs_organized_size
20821         up-to-date.
20822         * df.h (struct df_ref_info): Change refs_organized to
20823         refs_organized_size.
20824         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
20825         bitmap_size.
20826
20827 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
20828
20829         * except.c (output_function_exception_table): Do not reference the
20830         EH personality routine for functions that do not require an
20831         exception table.
20832
20833 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
20834
20835         PR c/30762
20836         * c-typeck.c (convert_for_assignment): Call comptypes for
20837         RECORD_TYPE or UNION_TYPE.
20838
20839         PR inline-asm/30505
20840         * reload1.c (reload): Do invalid ASM checking after
20841         cleanup_subreg_operands.
20842
20843 2007-03-19  Jeff Law  <law@redhat.com>
20844
20845         * tree-cfg.c (find_taken_edge): Tighten conditions for
20846         optimizing computed gotos.
20847
20848 2007-03-19  Michael Matz  <matz@suse.de>
20849
20850         * builtins.c (expand_builtin_sync_operation,
20851         expand_builtin_compare_and_swap,
20852         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
20853         correctly.
20854
20855         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
20856         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
20857         for operand 3.
20858
20859 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20860
20861         * doc/tm.texi: Add brackets around the return type of
20862         TARGET_SECONDARY_RELOAD.
20863
20864 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20865         Richard Guenther  <rguenther@suse.de>
20866
20867         PR tree-optimization/31254
20868         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
20869         Use handled_component_p () where appropriate.  Continue
20870         propagating into the rhs if we propagated into an INDIRECT_REF
20871         on the lhs.
20872
20873 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20874
20875         * config/s390/s390.md (op_type attribute): RRR instruction type added.
20876         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
20877         (xde, xdee): Mode attributes adjusted to support DFP modes.
20878         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
20879         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
20880         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
20881         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
20882         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
20883         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
20884         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
20885         numbers.
20886         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
20887         "movsf"): Insn definitions removed.
20888         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
20889         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
20890         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
20891         definitions added.
20892         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
20893         "reload_in<mode>", "reload_out<mode>"): Expander added.
20894         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
20895         Expander removed.
20896
20897 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20898
20899         * config/s390/s390.md: Only non-functional changes.  Renamed
20900         FPR mode macro to BFP all over the file.
20901
20902 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20903
20904         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
20905         (op_type attribute): RRF instruction type added.
20906         (fT0): New mode attribute.
20907         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
20908         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
20909         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
20910         instruction no secondary memory is needed when moving DFmode values
20911         between GPRs and FPRs.
20912
20913 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20914
20915         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
20916         inverted and documentation adjusted.
20917         ("mhard-dfp", "msoft-dfp"): New options.
20918         * config/s390/s390.c (s390_handle_arch_option): New architecture
20919         switch: z9-ec.
20920         (override_options): Sanity checks for the new options added.
20921         * config.gcc: New architecture switch: z9-ec.
20922         * config/s390/s390.h (processor_flags): PF_DFP added.
20923         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
20924         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
20925         when the bit is NOT set so remove it from the defaults.
20926
20927 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20928
20929         * genemit.c (main): Print include statement for dfp.h.
20930         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
20931         is not available.
20932
20933 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
20934
20935         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
20936
20937 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20938
20939         PR target/31022
20940         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
20941         instead of PATTERN.
20942
20943 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20944
20945         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
20946         attr_length_call, output_call, output_indirect_call): Cleanup
20947         formatting of targetm calls.
20948
20949 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
20950
20951         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
20952
20953 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20954
20955         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
20956         reservation, bypass and anti-bypass descriptions for these
20957         instructions.  Update move patterns.
20958         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
20959         TYPE_FPSTORE.
20960
20961 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
20962
20963         * tree-vect-transform.c (get_initial_def_for_induction): Replace
20964         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
20965         (get_initial_def_for_reduction): Likewise.
20966
20967 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
20968
20969         Fix PR tree-optimization/29922
20970         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
20971         (get_representative): Removed.
20972         (value_dies_in_block_x): Update for rvuse removal.
20973         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
20974         (compute_antic_aux): Handle when PHI nodes appear in
20975         non-single-successors.
20976         (dump_bitmap_of_names): Removed.
20977         (compute_antic_safe): Renamed and removed rvuse calculation.
20978         Calculate only antic safe.
20979         (insert_into_preds_of_block): Remove assert.
20980         (execute_pre): Update for renamed functions.
20981         (defer_or_phi_translate_block): New function.
20982
20983 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
20984
20985         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
20986         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
20987         typos.
20988         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
20989         Follow spelling conventions.
20990
20991         * tree-data-ref.h: Remove the prototype for analyze_array.
20992
20993 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
20994
20995         PR tree-optimization/31041
20996         * tree-vect-transform.c (get_initial_def_for_induction): Call
20997         force_gimple_operand.
20998
20999 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
21000
21001         * ipa-type-escape.c (look_for_casts) : Revert code to use
21002         handled_component_p due to ada test a-numaux.adb.
21003
21004 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
21005
21006         * final.c (final_scan_insn): Alter the condition of a
21007         conditional trap if we have nonstandard CC.
21008
21009 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
21010
21011         * configure.ac: Remove excess quoting from asm line 0 test.
21012         * configure: Rebuilt.
21013
21014 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21015
21016         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
21017         * c-common.c (convert_and_check): Move warning logic to...
21018         (warnings_for_convert_and_check): ...here. Define.
21019         * c-common.h (warnings_for_convert_and_check): Declare.
21020
21021 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21022
21023         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
21024         (output_call): Likewise.
21025
21026 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
21027
21028         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
21029
21030 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
21031
21032         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
21033
21034 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
21035
21036         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
21037         opteron, athlon-64 and athlon-fx processor_alias_table entries.
21038
21039 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
21040
21041         PR tree-optimization/31183
21042         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
21043         Use double_int instead of unsigned int for representing access_strides.
21044         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
21045
21046 2007-03-16  Richard Guenther  <rguenther@suse.de>
21047
21048         PR tree-optimization/31146
21049         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
21050         to allow recursion of forward_propagate_addr_expr.
21051         (forward_propagate_addr_into_variable_array_index): Likewise.
21052         (forward_propagate_addr_expr): Likewise.
21053         (tree_ssa_forward_propagate_single_use_vars): Likewise.
21054         (forward_propagate_addr_expr_1): Recurse on simple copies
21055         instead of propagating into them.  Do so for useless conversions
21056         as well.
21057         (forward_propagate_addr_expr): Clean up unused statements after
21058         recursion.
21059
21060 2007-03-16  Richard Guenther  <rguenther@suse.de>
21061
21062         * builtins.c (expand_builtin_cexpi): Use the right argument
21063         for the expansion via cexp.
21064
21065 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
21066
21067         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
21068         * configure: Rebuilt.
21069
21070 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
21071
21072         PR debug/29906
21073         * dwarf2out.c (force_type_die): Adjust comment.
21074         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
21075
21076 2007-03-15  DJ Delorie  <dj@redhat.com>
21077
21078         * config/frv/predicates.md (minmax_operator): Don't check operands
21079         here.
21080
21081 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
21082
21083         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
21084         Update constant estimates of number of iterations.
21085         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
21086         argument renamed to "realistic".
21087         (compute_estimated_nb_iterations): Removed.
21088         (record_niter_bound): New function.
21089         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
21090         call record_nonwrapping_iv with upper = false.
21091         (infer_loop_bounds_from_signedness): Pass upper argument to
21092         record_nonwrapping_iv.
21093         (estimate_numbers_of_iterations_loop): Do not call
21094         compute_estimated_nb_iterations.  Record estimate based on profile
21095         information.  Initialize the constant estimates of number of
21096         iterations.
21097         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
21098         estimates.
21099         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
21100         number of iterations is too small.
21101         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
21102         (EST_NOT_AVAILABLE): Removed.
21103         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
21104         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
21105         fields.
21106
21107 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
21108
21109         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
21110         Handle NE_EXPR guards.
21111
21112 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21113
21114         PR c++/24924
21115         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
21116         Set also -pedantic-errors by default for the  preprocessor unless
21117         -fpermissive is given.
21118
21119 2007-03-15  Richard Guenther  <rguenther@suse.de>
21120
21121         PR middle-end/29719
21122         PR middle-end/31161
21123         * builtins.c (expand_builtin_cexpi): As a fallback if we
21124         don't have builtins for sincos or cexp create a function
21125         declaration for cexp and expand to a call to that.
21126         (expand_builtin_int_roundingfn): Always fall
21127         back to floor/ceil and its variants even if they may be
21128         not available.
21129
21130 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
21131
21132         PR middle-end/31159
21133         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
21134         jump tables, move the call to delete_dead_jumptables from here...
21135         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
21136         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
21137         don't allow merging of blocks that try_redirect_by_replacing_jump
21138         also does not handle when not optimizing.
21139
21140 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
21141             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21142
21143         * config/i386/i386.md (x86_sahf_1): Correctly handle
21144         HAVE_AS_IX86_SAHF.
21145
21146 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
21147
21148         PR target/31167
21149         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
21150         x86_64_general_operand as operand[2] predicate.  Remove "iF"
21151         from operand constraints and use "e" constraint instead.
21152         (*subti3_1, *subti3_1 splitter): Ditto.
21153         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
21154         operand[1] predicate.
21155
21156 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
21157
21158         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
21159         arrays, multiply the access strides by the size of the sub-array.
21160         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
21161
21162 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
21163
21164         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
21165         the configured assembler supports the sahf mnemonic.
21166         * configure: Regenerate.
21167         * config.in: Regenerate.
21168
21169         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
21170         emit "sahf" or ".byte\t0x9e" as asm template.
21171
21172 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
21173
21174         PR 31018
21175         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
21176         option to replace hard coded TARGET_xxx in md file.
21177         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
21178         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
21179         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
21180         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
21181         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
21182         (X86_TUNE_NOT_VECTORMODE): Ditto.
21183         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
21184         (TUNE_AVOID_VECTOR_DECODE): Ditto.
21185         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
21186         (TUNE_SLOW_IMUL_IMM8): Ditto.
21187         (TUNE_MOVE_M1_VIA_OR): Ditto.
21188         (TUNE_NOT_UNPAIRABLE): Ditto.
21189         (TUNE_NOT_VECTORMODE): Ditto.
21190
21191         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
21192         options.
21193
21194         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
21195         tuning options instead of hard coded TARGET_xxx.
21196         (fix ssemode peephole2's): Ditto.
21197         (imul peephole2's): Ditto.
21198         (movsi_or): Ditto.
21199         (movdi_or_rex64): Ditto.
21200         (move peephole2): Ditto.
21201         (not peephole2's): Ditto.
21202
21203 2007-03-14  Dirk Mueller  <dmueller@suse.de>
21204
21205         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
21206         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
21207         * c-parser.c (c_parser_if_body): Always add an empty statement in case
21208         of empty body.
21209         * c-parser.c (c_parser_do_statement): Warn about empty body in
21210         do/while statement.
21211         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
21212         * doc/invoke.texi (-Wempty-body): Update documentation.
21213
21214 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21215
21216         PR c/21438
21217         * c-common.h (warn_for_div_by_zero): Declare.
21218         * c-common.c (warn_for_div_by_zero): Define.
21219         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
21220         warning.
21221
21222 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
21223
21224         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
21225         to PREFIX and STANDARD_PREFIX.
21226
21227 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
21228             Phil Edwards  <phil@codesourcery.com>
21229
21230         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
21231         (__gthread_once_t): Remove busy field for RTPs.
21232         (__GTHREAD_ONCE_INIT): Update accordingly.
21233
21234 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
21235
21236         * doc/invoke.texi: Document VxWorks options.
21237
21238 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
21239
21240         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
21241
21242 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
21243
21244         PR tree-optimization/30590
21245         * tree-nrv.c (tree_nrv): Check for the partial update of the
21246         return value.
21247
21248 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
21249
21250         * flags.h (flag_random_seed): Remove declaration, in favor of...
21251         * toplev.h (get_random_seed, set_random_seed): ... these.
21252         * tree.c (get_file_function_name): Use the former.
21253         * opts.c (common_handle_option): Use the latter.
21254         * toplev.c
21255
21256 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
21257
21258         PR middle-end/31127
21259         * cse.c (cse_find_path): Do not bail out if a basic block that
21260         we already visited now becomes part of a path that starts at a
21261         different basic block.  Just disallow this, to make sure we
21262         visit each basic block at most once.
21263
21264 2007-03-13  Jan Hubicka  <jh@suse.cz>
21265
21266         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
21267         attributes, when profile esitmate is present, calls with very low
21268         frequency are cold.
21269
21270 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
21271
21272         PR tree-optimization/30730
21273         PR tree-optimization/26900
21274         * tree-ssa-loop-niter.c: Include gmp.h.
21275         (bounds): New type.
21276         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
21277         split_to_var_and_offset, determine_value_range,
21278         bound_difference_of_offsetted_base, refine_bounds_using_guard,
21279         bound_difference, bounds_add, bounds_negate,
21280         number_of_iterations_ne_max, dump_affine_iv): New functions.
21281         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
21282         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
21283         difference of initial and final value of control iv to validate
21284         results.
21285         (number_of_iterations_cond): Add loop parameter.  Determine bounds
21286         on the difference of the extremes of the control iv.  Add dumps.
21287         (expand_simple_operations): Handle phi nodes.
21288         (simplify_using_initial_conditions): Do not record used conditions.
21289         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
21290         Do not set additional_info.
21291         (implies_nonnegative_p, implies_ge_p): Removed.
21292         (derive_constant_upper_bound): Do not use parameter `additional'.
21293         (record_estimate): Parameter `additional' removed.  Parameter
21294         `i_bound' added.  Do not call derive_constant_upper_bound.
21295         (record_nonwrapping_iv): Use derive_constant_upper_bound to
21296         bound the number of iterations estimate.
21297         (estimate_numbers_of_iterations_loop): Pass the estimate from
21298         the number of iterations analysis to record_estimate.
21299         * tree.h (multiple_of_p): Declare.
21300         * tree-scalar-evolution.c (expression_expensive_p): Removed.
21301         (scev_const_prop): Do not check expression_expensive_p.
21302         * fold-const.c (multiple_of_p): Exported.
21303         * double-int.c (double_int_mask): Exported.
21304         * double-int.h (double_int_mask): Declare.
21305         * tree-flow.h (struct tree_niter_desc): Removed additional_info
21306         field.  Added max field.
21307
21308 2007-03-13  David Taylor  <taylor@candd.org>
21309
21310         PR driver/12448:
21311         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
21312         default -MQ.
21313
21314 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21315
21316         PR target/31123
21317         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
21318         two unamed patterns.
21319
21320 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
21321
21322         * config/i386/i386.opt (mcx16, msahf): New options.
21323         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
21324         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
21325
21326         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
21327         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
21328         Output -mcx16 and -msahf options when corresponding bit is set.
21329
21330         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
21331         and -msahf options.
21332
21333 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
21334
21335         * configure.ac: Test for assembler tolerance to # 0 "".
21336         * configure, config.in: Rebuilt.
21337         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
21338
21339 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
21340
21341         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
21342
21343         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
21344         (handle_syscall): Handle direct system calls.
21345         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
21346
21347 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
21348
21349         * doc/invoke.texi: Fix cpp.info cross-reference.
21350         * doc/passes.texi: Fix gcc.info cross-reference.
21351
21352 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
21353
21354         PR tree-optimization/30835
21355         * lambda-code.c (can_convert_to_perfect_nest): Check whether
21356         bb_for_stmt is not NULL before accessing it.
21357
21358 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
21359
21360         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
21361         some multilibs.
21362
21363 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
21364
21365         PR 30635
21366         * doc/install.texi: Document --enable-stage1-languages
21367
21368 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
21369
21370         * tree-pass.h (pass_into_cfg_layout_mode,
21371         pass_outof_cfg_layout_mode): Declare.
21372         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
21373         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
21374         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
21375         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
21376
21377 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
21378
21379         * c-decl.c (warn_variable_length_array): New function.
21380         Refactored from grokdeclarator to handle warn_vla
21381         and handle unnamed array case.
21382         (grokdeclarator): Refactored VLA warning case.
21383         * c.opt (Wvla): New flag.
21384         * doc/invoke.texi (Wvla): New warning.
21385
21386 2007-03-12  Richard Henderson  <rth@redhat.com>
21387
21388         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
21389         (TARGET_SECTION_TYPE_FLAGS): New.
21390
21391 2007-03-12  Richard Henderson  <rth@redhat.com>
21392
21393         * config/darwin.c (machopic_reloc_rw_mask): New.
21394         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
21395         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
21396
21397 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
21398
21399         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
21400         * cppdefault.h (cpp_PREFIX): Document.
21401         (cpp_PREFIX_len): Likewise.
21402         (cpp_EXEC_PREFIX): New variable.
21403         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
21404         * c-incpath.c (add_standard_paths): Correct logic for relocating
21405         paths within prefix.
21406
21407 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
21408
21409         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
21410         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
21411         mode macro.
21412         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
21413         fix_truncdfdi_sse using SSEMODEF mode macro.
21414         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
21415         fix_truncdfsi_sse using SSEMODEF mode macro.
21416         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
21417         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
21418
21419 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
21420
21421         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
21422         elfos.h to tm_file.
21423
21424 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
21425
21426         * tree.h : Add multiple_of_p declaration.
21427         * fold-const.c (multiple_of_p): Make multiple_of_p public.
21428         * ipa-type-escape.c (results_of_malloc): Redundant.
21429         (visited_stmts): New. Visited stmt for walk_use_def_chains.
21430         (cast_type): Extended with new members.
21431         (check_cast): Returns cast_type.
21432         (cast): New structure for data of walk_use_def_chains.
21433         (is_malloc_result, is_cast_from_non_pointer_1,
21434         is_cast_from_non_pointer,
21435         is_array_access_through_pointer_and_index): New functions.
21436         (look_for_casts): Returns cast types.
21437         (check_call): Returns void.
21438         (okay_pointer_operation): Use support of pointer plus index,
21439         pointer plus constant and allow all multiplications.
21440
21441 2007-03-11  Richard Guenther  <rguenther@suse.de>
21442
21443         PR tree-optimization/31115
21444         * tree-vrp.c (extract_range_from_binary_expr): Make sure
21445         the shift count is positive and non-anti-range for RSHIFT_EXPR.
21446         A shift count of zero is not special as with *_DIV_EXPR.
21447         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
21448         direction.
21449
21450 2007-03-11  Ian Lance Taylor  <iant@google.com>
21451
21452         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
21453         the *_DIV_EXPR codes correctly with overflow infinities.
21454
21455 2007-03-11  Ira Rosen  <irar@il.ibm.com>
21456
21457         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
21458         indicate success/failure of the analysis. Add negation to subtrahend
21459         in case of subtraction. Fail if both operands contain constants.
21460         (create_data_ref): Fail if analyze_offset fails.
21461
21462 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
21463
21464         * config/i386/i386.md (frndintxf2): Rename to ...
21465         (rintxf2): ... this. Remove expander having same name.
21466         (rintsf2, rintdf2): Implement using SSEMODEF macro.
21467         (roundsf2, rounddf2): Ditto.
21468         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
21469         (lround<mode>di2, lround<mode>si2): Ditto.
21470
21471 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
21472
21473         * lower-subreg.c: Include except.h.
21474         (decompose_multiword_subregs): Verify that the only control flow
21475         insns we can split are loads to multi-words pseudos.
21476         Handle breaking such blocks after splitting, instead of calling
21477         find_many_sub_basic_blocks.
21478
21479         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
21480         on the new basic block.  Add a lengthy comment explaining why we
21481         thought this was necessary.
21482         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
21483
21484 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
21485
21486         PR c++/30924
21487         * tree.c (walk_type_fields): Recurse into the element type of
21488         ARRAY_TYPEs if there is a pointer set.
21489
21490 2007-03-10  Dirk Mueller  <dmueller@suse.de>
21491
21492         * c-common.c (warn_logical_operator): Fix condition.
21493
21494 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
21495
21496         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
21497         quotation mark.
21498         * config/darwin.c (machopic_select_section): Remove superfluous
21499         argument in call to categorize_decl_for_section.  Remove unused
21500         variable shlib.
21501
21502 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
21503
21504         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
21505         defined.
21506         * configure: Regenerate.
21507
21508 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
21509
21510         PR target/31101
21511         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
21512         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
21513         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
21514         Add LABEL_NUSES to emitted label.
21515         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
21516         branch probability value to emitted jump insn.
21517         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
21518         Do not check life information and do not re-arrange input operands
21519         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
21520
21521 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21522
21523         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
21524         the change of decode_asm_operands.
21525
21526 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21527
21528         * mode-switching.c (create_pre_exit): Skip blockage insn.
21529
21530 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
21531
21532         * tree-pass.h (TODO_update_smt_usage): Remove.
21533         Update all users.
21534         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
21535         argument SOME.
21536         Update all users.
21537
21538 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21539
21540         * pa.c (attr_length_call): Revise condition for long
21541         pc-relative branch.
21542         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
21543         local calls on the SOM target.  Don't use "LONG_PIC_PCREL" call
21544         sequence on SOM target.
21545
21546 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
21547
21548         * gcc.c: Document %{, in big comment at top.
21549         (input_suffix_matches): Remove special handling for .s and
21550         .S.
21551         (input_spec_matches): New.
21552         (handle_braces): Handle %{,.
21553         (validate_switches): ',' indicates a value which is not a switch.
21554         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
21555         to detect assembler input.
21556         * config/i386/sol2.h (CPP_SPEC): Likewise.
21557         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
21558         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21559         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
21560         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
21561         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
21562         -m64 causes deployment target to default to 10.5.
21563         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
21564
21565 2007-03-09  Richard Henderson  <rth@redhat.com>
21566
21567         PR target/26090
21568         * target.h (targetm.asm.out.reloc_rw_mask): New.
21569         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
21570         (TARGET_ASM_OUT): Use it.
21571         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
21572         * varasm.c (categorize_decl_for_section): Remove shlib argument;
21573         use the new reloc_rw_mask target hook instead.
21574         (default_section_type_flags_1): Merge into...
21575         (default_section_type_flags): ... here.
21576         (decl_readonly_section_1): Merge into...
21577         (decl_readonly_section): ... here.
21578         (default_elf_select_section_1): Merge into...
21579         (default_elf_select_section): ... here.
21580         (default_unique_section_1): Merge into...
21581         (default_unique_section): ... here.
21582         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
21583         (default_select_rtx_section): Use it.
21584         (default_elf_select_rtx_section): Likewise.
21585         * output.h: Update to match.
21586         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
21587         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
21588         (TARGET_ASM_RELOC_RW_MASK): New.
21589         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
21590         to categorize_decl_for_section.
21591         (x86_64_elf_unique_section): Likewise.
21592         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
21593         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
21594         (TARGET_ASM_RELOC_RW_MASK): New.
21595         * config/ia64/ia64.c (ia64_rwreloc_select_section,
21596         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
21597         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
21598         (TARGET_RWRELOC): Remove.
21599         (ia64_section_type_flags): Adjust call to default_section_type_flags.
21600         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
21601         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
21602         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
21603         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
21604         (rs6000_xcoff_select_section): Use decl_readonly_section.
21605         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
21606         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
21607         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
21608         (TARGET_SECTION_TYPE_FLAGS): Remove.
21609         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
21610
21611 2007-03-09  Roger Sayle  <roger@eyesopen.com>
21612
21613         * fold-const.c (fold_comparison): Remove compile-time evaluation of
21614         complex constant equality/inequality comparisons for here.
21615         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
21616         known at compile-time or can be simplified to a scalar comparison.
21617         (fold_relational_const): Move compile-time evaluation of complex
21618         constant equality/inequality comparisons to here.
21619
21620 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21621
21622         PR rtl-optimization/30643
21623         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
21624         dest_addr_elt.
21625         (fold_rtx): Recurse, like before 2006-11-03.
21626
21627 2007-03-09  DJ Delorie  <dj@redhat.com>
21628
21629         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
21630         m32c-pragma.o.
21631
21632 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
21633
21634         PR tree-optimization/30375
21635         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
21636         LHS of statements is not the same.
21637         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
21638
21639 2007-03-09  Chao-ying Fu  <fu@mips.com>
21640
21641         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
21642         REV 2.
21643         * doc/invoke.texi (-mdspr2): Document new option.
21644         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
21645         New unspec for DSP REV 2.
21646         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
21647         these instructions are extended in DSP REV 2.
21648         (mips-dspr2.md): Include.
21649         * config/mips/mips.opt (mdspr2): New option.
21650         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
21651         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
21652         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
21653         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
21654         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
21655         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
21656         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
21657         and 2 builtins.
21658         (bdesc_map): Add one field of unsupported_target_flags.
21659         (bdesc_arrays): Update entries to have extra fields.  Add
21660         dsp_32only_bdesc.
21661         (mips_init_builtins): Initialize new function types.
21662         Check unsupported_target_fileds to filter out builtins.
21663         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
21664         TARGET_DSPR2.
21665         (ASM_SPEC): Pass mdspr2 to the assembler.
21666         * config/mips/mips-dspr2.md: New file.
21667
21668 2007-03-09  Sa Liu  <saliu@de.ibm.com>
21669
21670         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
21671
21672 2007-03-09  Ian Lance Taylor  <iant@google.com>
21673
21674         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
21675         argument) like -Wstrict-overflow=2.
21676         * doc/invoke.texi (Warning Options): Update documentation.
21677
21678 2007-03-09  Dirk Mueller  <dmueller@suse.de>
21679
21680         PR c++/17946
21681         * doc/invoke.texi (-Wlogical-op): Document.
21682         * common.opt (-Wlogical-op): New.
21683         * c-common.h (warn_logical_operator): Declare.
21684         * c-common.c (warn_logical_operator): Define.
21685         * c-typeck.c (parser_build_binary_op): Call
21686         warn_logical_operator.
21687
21688 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21689
21690         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
21691         * final.c (final_scan_insn): Test for non-"" file name.
21692
21693 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
21694
21695         * doc/loop.texi: Document the Omega linear constraints solver.
21696         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
21697         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
21698         omega-hash-table-size, omega-max-keys, and
21699         omega-eliminate-redundant-constraints.
21700         * tree-pass.h (pass_check_data_deps): Declared.
21701         * omega.c: New.
21702         * omega.h: New.
21703         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
21704         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
21705         pass_check_data_deps): New.
21706         * tree-data-ref.c (init_data_ref): Remove declaration.
21707         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
21708         (analyze_array): Renamed init_array_ref, move up initializations.
21709         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
21710         Removed arguments that are set to NULL.
21711         (analyze_indirect_ref): Correct indentation, correct call to
21712         init_pointer_ref.
21713         (object_analysis): Call init_array_ref instead of analyze_array.
21714         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
21715         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
21716         of DR_ACCESS_FNS_ADDR.
21717         (init_omega_eq_with_af, omega_extract_distance_vectors,
21718         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
21719         ddr_consistent_p): New.
21720         (compute_affine_dependence): Check consistency of ddrs when
21721         flag_check_data_deps is passed.
21722         (analyze_all_data_dependences): Uncomment.
21723         (tree_check_data_deps): New.
21724         * tree-data-ref.h: Include omega.h.
21725         (DR_ACCESS_FNS_ADDR): Removed.
21726         (data_dependence_relation): Add inner_loop.
21727         (DDR_INNER_LOOP): New.
21728         * common.opt (fcheck-data-deps): New.
21729         * tree-flow.h (tree_check_data_deps): Declare.
21730         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
21731         (OBJS-common): Depend on omega.o.
21732         (omega.o): Define.
21733         * passes.c (pass_check_data_deps): Scheduled.
21734         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21735         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21736         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
21737         PARAM_VECT_MAX_VERSION_CHECKS,
21738         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
21739
21740 2007-03-09  Richard Guenther  <rguenther@suse.de>
21741
21742         PR tree-optimization/30904
21743         PR middle-end/31058
21744         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
21745         the same way as *_DIV_EXPR.
21746
21747 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21748
21749         * recog.c (decode_asm_operands): No mixed declarations and code.
21750
21751 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21752
21753         * rtl.def (ASM_INPUT): Add location.
21754         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
21755         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
21756         (decode_asm_operands): Add loc operand.
21757         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
21758         * stmt.c (expand_asm): Rename to...
21759         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
21760         gen_rtx_ASM_INPUT_loc.
21761         (expand_asm_expr): Adjust.
21762         * recog.c (decode_asm_operands): Add loc operand.
21763         (check_asm_operands, extract_insn): Adjust.
21764         * reload1.c (maybe_fix_stack_asms): Likewise.
21765         * final.c (asm_insn_count): Likewise.
21766         (final_scan_insn): Output # line before and after asm.
21767
21768 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
21769
21770         * tree-ssa-structalias.c (variable_info): Remove
21771         finished_solution.
21772         (new_var_info): Ditto.
21773         (shared_bitmap_info_t): New structure.
21774         (shared_bitmap_table): New variable.
21775         (shared_bitmap_hash): New function.
21776         (shared_bitmap_eq): Ditto
21777         (shared_bitmap_lookup): Ditto.
21778         (shared_bitmap_add): Ditto.
21779         (merge_smts_into): Change to take bitmap directly.
21780         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
21781         (init_alias_vars): Init shared bitmap hashtable.
21782         (delete_points_to_sets): Delete shared bitmap hashtable.
21783         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
21784         is_aliased removal as a change that was still necessary was
21785         deleted.
21786
21787 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
21788
21789         * config/i386/i386.h (override_options): Conditionally disable
21790         x86_sahf for 64bit targets only.
21791
21792 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21793
21794         PR C/31072
21795         * c-decl.c (merge_decls): Don't call make_var_volatile.
21796         * varasm.c (make_var_volatile): Remove.
21797         * output.h (make_var_volatile): Remove.
21798
21799 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
21800
21801         PR tree-optimization/31085
21802         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
21803
21804 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21805
21806         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
21807         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
21808         ATTR_CONST_NOTHROW_LIST.
21809
21810         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
21811         FIX_TRUNC_EXPR.
21812
21813 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
21814
21815         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
21816
21817 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
21818
21819         PR 31013
21820         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
21821         is declared.
21822         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
21823         passed, use shared libgcc.
21824
21825 2007-03-08  Roger Sayle  <roger@eyesopen.com>
21826
21827         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
21828         instead of calling build2 with a GIMPLE_MODIFY_STMT.
21829         (honor_protect_cleanup_actions, lower_try_finally_switch):
21830         Likewise.
21831         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
21832         ifc_temp_var): Likewise.
21833         * tree-inline.c (setup_one_parameter): Likewise.
21834         * tree-mudflap.c (mf_decl_cache_locals,
21835         mf_build_check_statement_for): Likewise.
21836         * tree-nested.c (init_tmp_var, save_tmp_var,
21837         finalize_nesting_tree_1): Likewise.
21838         * tree-outof-ssa.c (insert_copy_on_edge,
21839         insert_backedge_copies): Likewise.
21840         * tree-profile.c (tree_gen_edge_profiler,
21841         tree_gen_ic_profiler): Likewise.
21842         * tree-scalar-evolution.c (scev_const_prop): Likewise.
21843         * tree-sra.c (sra_build_assignment): Likewise.
21844         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
21845         * tree-ssa-math-opts.c (insert_reciprocals,
21846         execute_cse_sincos_1): Likewise.
21847         * tree-tailcall.c (adjust_accumulator_values,
21848         adjust_return_value): Likewise.
21849         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
21850         * tree-vect-transform.c (vect_create_data_ref_ptr,
21851         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
21852         vect_create_epilog_for_reduction, vectorizable_reduction,
21853         vectorizable_call, vectorizable_conversion,
21854         vectorizable_assignment, vectorizable_operation,
21855         vectorizable_type_demotion, vect_gen_widened_results_half,
21856         vect_permute_store_chain, vectorizable_store,
21857         vect_setup_realignment, vect_permute_load_chain,
21858         vectorizable_load, vectorizable_condition,
21859         vect_create_cond_for_align_checks): Likewise.
21860         * tree-vrp.c (build_assert_expr_for): Likewise.
21861
21862 2007-03-08  Ian Lance Taylor  <iant@google.com>
21863
21864         * tree-vrp.c: Include "intl.h".
21865         (usable_range_p): New static function.
21866         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
21867         overflowed values, juts set *strict_overflow_p.
21868         (compare_values): Only return -2 if one of the operands is not a
21869         constant.
21870         (compare_ranges): Call usable_range_p.
21871         (compare_range_with_value): Likewise.
21872         (vrp_evaluate_conditional_warnv): Rename from
21873         vrp_evaluate_conditional.  Make static.  Change all callers.
21874         (vrp_evaluate_conditional): New function.
21875         (simplify_div_or_mod_using_ranges): Issue warning about reliance
21876         on signed overflow.
21877         (simplify_abs_using_ranges): Likewise.
21878         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
21879         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
21880         within_stmt parameter.
21881         * tree-ssa-propagate.c (fold_predicate_in): Update call to
21882         vrp_evaluate_conditional.
21883         * tree-ssa-threadedge.c
21884         (record_temporary_equivalences_from_stmts_at_dest): Change
21885         simplify parameter to take a second tree parameter.
21886         (simplify_control_stmt_condition): Likewise.
21887         (thread_across_edge): Likewise.
21888         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
21889         (thread_across_edge): Likewise.
21890         * Makefile.in (tree-vrp.o): Depend upon intl.h.
21891
21892 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
21893
21894         * config/i386/i386.h (TARGET_SAHF): New define.
21895         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
21896         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
21897         (x86_sahf): New global variable.
21898         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
21899         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
21900         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
21901         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
21902         for 64-bit.
21903         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
21904         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
21905         when expanding fcomi/sahf based tests.
21906         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
21907         expanding sahf based alternative. Emit sahf based sequence when
21908         optimizing for code size.
21909         * config/i386/i386.md (x86_sahf_1): Do not disable for
21910         TARGET_64BIT, enable for TARGET_SAHF.
21911
21912 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
21913
21914         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
21915         spurious whitespace from error message.
21916
21917 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
21918
21919         PR c++/30852
21920         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
21921
21922 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
21923
21924         * c-decl.c (grokdeclarator): Disable warnings for anonymous
21925         bitfields.
21926         * tree-sra.c (instantiate_element): Propagate disabled warnings
21927         from the element itself to the created variable.
21928
21929 2007-03-07  Richard Henderson  <rth@redhat.com>
21930
21931         PR target/30848
21932         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
21933         silently fix up the stack in the case of a missing register.
21934
21935 2007-03-07  Paul Brook  <paul@codesourcery.com>
21936
21937         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
21938
21939 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
21940
21941         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
21942         New.
21943         (phase1_vrs): Use them.
21944         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
21945         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
21946         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
21947         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
21948         __gnu_Unwind_Restore_WMMXC if required.
21949         (_Unwind_VRS_Pop): Implement iWMMXt support.
21950         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
21951         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
21952         gnu_Unwind_Save_WMMXC): Define.
21953
21954 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
21955
21956         * config/vxworks.h (vxworks_override_options): Declare.
21957         (VXWORKS_OVERRIDE_OPTIONS): Use it.
21958         * config/vxworks.c: Include target.h and toplev.h.
21959         (vxworks_override_options): New function.
21960         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
21961
21962 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21963
21964         * config/s390/s390.c (override_options): Don't emit an error when
21965         -mstack-size is used without providing -mstack-guard.
21966         (s390_emit_prologue): Choose stack_guard value automatically if not
21967         provided via command line.
21968         * doc/invoke.texi: Adjust description of -mstack-guard and
21969         -mstack-size.
21970
21971 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
21972
21973         * config/i386/i386.c (output_set_got): Add a GOT initialization
21974         sequence for VxWorks PIC.
21975         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
21976         around labels as well as symbols.  Use gotoff_operand instead
21977         of local_symbolic_operand.
21978         (legitimize_pic_address): Use gotoff_operand instead of
21979         local_symbolic_operand.  Use @GOT accesses for labels as
21980         well as symbols.
21981         (ix86_output_addr_diff_elt): Use PC-relative rather than
21982         GP-relative offsets for VxWorks PIC.
21983         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
21984         no_new_pseudos.  Check whether the returned register is op0.
21985         * config/i386/i386.md (tablejump): Use PC-relative rather than
21986         GP-relative offsets for VxWorks PIC.
21987         * config/i386/predicates.md (gotoff_operand): New predicate.
21988
21989 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21990
21991         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
21992         before defining.
21993         * config/vxworks-dummy.h: New file.
21994         * config/i386/i386.h: Include it.
21995
21996 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
21997
21998         * dwarf2out.c (is_inlined_entry_point): New
21999         (add_high_low_attributes): Emit DW_AT_entry_pc along with
22000         DW_AT_ranges if the first subblock is the entry point.
22001
22002 2007-03-06  David Daney  <ddaney@avtrex.com>
22003
22004         * doc/install.texi (mips-*-*): Change recommended binutils
22005         version.
22006
22007 2007-03-06  Anatoly Sokolov <aesok@post.ru>
22008
22009         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
22010         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
22011         devices.
22012         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
22013         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
22014
22015 2007-03-06  Jan Hubicka  <jh@suse.cz>
22016
22017         * errors.h (warning, error, fatal, internal_error): Mark as cold.
22018         * predict.c (maybe_hot_bb): Cold functions are never hot; hot
22019         functions are hot.
22020         (probably_cold_bb_p): Cold functions are cold.
22021         (probably_never_executed_bb_p): Cold functions are cold.
22022         (tree_bb_level_predictions): Predict calls to cold functions as not
22023         taken.
22024         (compute_function_frequency): Check hot/cold attributes.
22025         * function.h (function_frequency): Update comments.
22026         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
22027         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
22028         (c_common_att): Add cold and hot.
22029
22030         * doc/extend.texi (hot,cold attributes): Document.
22031
22032 2007-03-06  Andrew Haley  <aph@redhat.com>
22033
22034         * function.c (expand_function_end): Move blockage to just after we
22035         emit the label for the naked return from the function.
22036
22037 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22038
22039         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
22040         before redefining.
22041
22042 2007-03-06  Jan Hubicka  <jh@suse.cz>
22043
22044         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
22045         loaded for constant large models.  Non-large 64bit PIC can do.
22046         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
22047         * cmodel.h: Add LARGE PIC.
22048         * i386.md (UNSPEC_PLTOFF): New.
22049         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
22050         unspecs as needed.
22051         (*call_1_rex64): Disable for large models.
22052         (*call_1_rex64_large): New.
22053         (*call_value_1_rex64): Disable for large models.
22054         (*call_value_1_rex64_large): New.
22055         (set_rip_rex4): New.
22056         (set_got_offset_rex64): New.
22057         * predicates.md (constant_call_address_operand): For large model
22058         constant calls are not possible.
22059         * i386-protos.h (construct_plt_address): Declare.
22060         * i386.c (override_options): Accept large models.
22061         (ix86_expand_prologue): Expand large PIC GOT pointer load.
22062         (legitimate_constant_p): Add new UNSPECs.
22063         (legitimate_pic_operand_p): Likewise.
22064         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
22065         (legitimize_pic_address): Do easy RIP relative way for TLS only for
22066         non-large model.
22067         (output_pic_addr_const): Add PLTOFF.
22068         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
22069         (ix86_expand_move): Legitimize pic address when in PIC mode.
22070         (construct_plt_address): New function.
22071         (ix86_expand_call): Offload the address to register and use GOT
22072         pointer for large model.
22073         * invoke.texi (mcmodel=large): Update documentation.
22074
22075 2007-03-06  Richard Henderson  <rth@redhat.com>
22076
22077         * config/i386/i386.c (x86_use_leave, x86_push_memory,
22078         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
22079         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
22080         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
22081         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
22082         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
22083         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
22084         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
22085         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
22086         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
22087         x86_partial_reg_dependency, x86_memory_mismatch_stall,
22088         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
22089         x86_sse_partial_reg_dependency, x86_sse_split_regs,
22090         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
22091         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
22092         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
22093         x86_schedule, x86_use_bt, x86_pad_returns,
22094         x86_use_xchgb): Merge into ...
22095         (ix86_tune_features): ... here.  New array.
22096         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
22097         x86_bswap): Merge into ...
22098         (ix86_arch_features): ... here.  New array.
22099         (x86_3dnow_a): Remove.
22100         (x86_accumulate_outgoing_args): Make static.
22101         (x86_arch_always_fancy_math_387): Make static.
22102         (ix86_tune_mask, ix86_arch_mask): Move ...
22103         (override_options): ... to local variables here.  Apply the
22104         appropriate mask to each element of ix86_arch_features and
22105         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
22106         as were done in the old macros.
22107         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
22108         * config/i386/i386.h (x86_use_leave, x86_push_memory,
22109         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
22110         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
22111         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
22112         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
22113         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
22114         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
22115         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
22116         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
22117         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
22118         x86_partial_reg_dependency, x86_memory_mismatch_stall,
22119         x86_accumulate_outgoing_args, x86_prologue_using_move,
22120         x86_epilogue_using_move, x86_decompose_lea,
22121         x86_arch_always_fancy_math_387, x86_shift1,
22122         x86_sse_partial_reg_dependency, x86_sse_split_regs,
22123         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
22124         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
22125         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
22126         x86_use_incdec, x86_pad_returns, x86_bswap,
22127         x86_partial_flag_reg_stall): Remove.
22128         (enum ix86_tune_indices): New.
22129         (ix86_tune_features): New.
22130         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
22131         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
22132         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
22133         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
22134         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
22135         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
22136         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
22137         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
22138         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
22139         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
22140         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
22141         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
22142         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
22143         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
22144         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
22145         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
22146         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
22147         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
22148         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
22149         TARGET_EXT_80387_CONSTANTS): Use it.
22150         (enum ix86_arch_indices): New.
22151         (ix86_arch_features): New.
22152         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
22153         TARGET_BSWAP): Use it.
22154         (ix86_tune_mask, ix86_arch_mask): Remove.
22155
22156 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
22157
22158         PR bootstrap/31020
22159         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
22160         Define using $${sysroot_headers_suffix}.
22161         * configure: Regenerate.
22162         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
22163         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
22164         defined.
22165         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
22166         * gcc.c (print_sysroot_headers_suffix): New.
22167         (option_map): Include --print-sysroot-headers-suffix.
22168         (display_help): Mention -print-sysroot-headers-suffix.
22169         (process_command): Handle -print-sysroot-headers-suffix.
22170         (do_spec_1): Append multilib directory to include-fixed path if
22171         sysroot suffixes in use.
22172         (main): Handle -print-sysroot-headers-suffix.
22173         * Makefile.in (start.encap): Don't depend on xlimits.h
22174         (xlimits.h): Remove.
22175         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
22176         limits.h for each multilib in fixinc_list.
22177         (fixinc_list, s-fixinc_list): New.
22178         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
22179         generate them for each multilib in fixinc_list.
22180         (stmp-fixproto): Use include-fixed.  Run fixproto for each
22181         multilib in fixinc_list.
22182         (mostlyclean): Don't remove xlimits.h.
22183         (clean): Remove include-fixed.
22184         (real-install-headers-tar, real-install-headers-cpio,
22185         real-install-headers-cp): Don't copy include, only include-fixed.
22186         (install-mkheaders): Depend on fixinc_list.  Don't depend on
22187         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
22188         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
22189         SYSTEM_HEADER_DIR setting in mkheaders.conf.
22190
22191 2007-03-06  Jan Hubicka  <jh@suse.cz>
22192
22193         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
22194         NANs easilly.
22195
22196 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22197
22198         * configure.ac: Allow tm_file to contain build-directory files.
22199         * configure: Regenerate.
22200         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
22201         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
22202         * config/m68k/print-sysroot-suffix.sh: New file.
22203
22204 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22205
22206         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
22207         of pic_offset_table_rtx if reload_completed.
22208         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
22209         PIC_OFFSET_TABLE_REGNUM.
22210         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
22211         return true.
22212         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
22213         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
22214
22215 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22216
22217         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
22218         functions that call eh_return.
22219
22220 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22221
22222         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
22223         functions that need a constant pool.
22224
22225 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22226
22227         PR target/28181
22228         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
22229         (m68k_preferred_reload_class): Likewise.
22230         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
22231         (SECONDARY_RELOAD_CLASS): Define.
22232         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
22233         (LIMIT_RELOAD_CLASS): Delete.
22234         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
22235         registers from storing bytes.
22236         (m68k_secondary_reload_class): New function.
22237         (m68k_preferred_reload_class): Likewise.
22238
22239 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22240
22241         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
22242         leaf functions.
22243         (m68k_expand_prologue): Likewise.
22244
22245 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22246
22247         * config/m68k/m68k-protos.h (output_sibcall): Declare.
22248         (mips_expand_epilogue): Add a bool parameter.
22249         (m68k_legitimize_sibcall_address): Declare.
22250         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
22251         (m68k_expand_epilogue): Add a parameter to select between sibling
22252         and normal epilogues.  Only generate a return for the latter.
22253         (m68k_ok_for_sibcall_p): New function.
22254         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
22255         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
22256         (sibcall_value, *sibcall_value): Likewise.
22257         (*call, *call_value): Require !SIBLING_CALL_P.
22258         (epilogue): Update call to m68k_expand_epilogue.
22259         (sibcall_epilogue): New pattern.
22260         * config/m68k/predicates.md (const_call_operand): Say that this
22261         predicate applies to sibling calls too.
22262         (sibcall_operand): New predicate.
22263
22264 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22265
22266         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
22267         alternatives as movsi_cf.
22268         (movsf_cf_hard): Add commentary.
22269
22270 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
22271             Richard Sandiford  <richard@codesourcery.com>
22272
22273         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
22274         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
22275         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
22276         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
22277         as being live on exit from an interrupt function.
22278         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
22279         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
22280         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
22281         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
22282         (m68k_interrupt_function_p): Globalize.
22283         (m68k_compute_frame_layout): Remove reverse mask code.
22284         (m68k_emit_movem, m68k_set_frame_related): New functions.
22285         (m68k_output_function_prologue): Delete in favor of...
22286         (m68k_expand_prologue): ...this new function.
22287         (m68k_output_function_epilogue): Delete in favor of...
22288         (m68k_expand_epilogue): ...this new function.
22289         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
22290         functions.
22291         (print_operand): Handle %?.
22292         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
22293         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
22294         (prologue, epilogue): New patterns.
22295         (return): Turn into a define_expand.
22296         (*return): New pattern, derived from old "return" pattern.  Use rte
22297         rather than rts for interrupt functions.  Only use rtd if the pop
22298         count is nonzero.
22299         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
22300         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
22301         (link, *link, unlink, *unlink, load_got): Likewise.
22302
22303 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
22304
22305         PR target/23482
22306         PR target/17114
22307         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
22308         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
22309         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
22310         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
22311         and m68k_matches_u_p.
22312         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
22313         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
22314         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
22315         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
22316         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
22317         (REG_STRICT_P): New macro.
22318         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
22319         PCREL_GENERAL_OPERAND_OK.
22320         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
22321         m68k_legitimate_base_reg_p.
22322         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
22323         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
22324         (PIC_CASE_VECTOR_ADDRESS): Update comment.
22325         * config/m68k/m68k.c (m68k_address): New structure.
22326         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
22327         (m68k_decompose_index, m68k_legitimate_constant_address_p)
22328         (m68k_jump_table_ref_p, m68k_decompose_address)
22329         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
22330         (m68k_matches_u_p): New functions.
22331         (print_operand_address): Rewrite to use m68k_decompose_index.
22332
22333 2007-03-05  David Taylor  <dtaylor@emc.com>
22334
22335         * gcc.c: Correct copyright date in --version output.
22336
22337 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22338
22339         * pa.md: In unamed move patterns, disparge copies between general
22340         and floating point registers using '?' modifier.  Don't include 'f'
22341         constraint for register preferences in DImode, SImode, HImode and
22342         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
22343         Remove constraints for copies between general and floating registers
22344         in soft-float DFmode pattern.
22345         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
22346         floating register.
22347         (movsf): Likewise.
22348
22349 2007-03-05  Mike Stump  <mrs@apple.com>
22350
22351         * c-common.c (targetcm): Add.
22352         * c-opts.c (c_common_handle_option): Handle language specific
22353         target options.
22354         * opts.c (handle_option): Verify language for target options, if
22355         any are given.
22356         * opth-gen.awk: Add CL_LANG_ALL.
22357         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
22358         (TARGETCM_INITIALIZER): Add.
22359         * target.h (struct gcc_targetcm): Add.
22360         (targetcm): Add.
22361         * targhooks.c (default_handle_c_option): Add.
22362         * targhooks.h (default_handle_c_option): Add.
22363         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
22364
22365         * config/darwin.opt (iframework): Add.
22366         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
22367         * config/darwin-c.c (handle_c_option): Add.
22368         (TARGET_HANDLE_C_OPTION): Add.
22369         (targetcm): Add.
22370         * doc/invoke.texi (Darwin Options): Add -iframework.
22371
22372 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22373
22374         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
22375         conversion.
22376
22377 2007-03-05  Ian Lance Taylor  <iant@google.com>
22378
22379         * c.opt (fgnu89-inline): New option.
22380         * c-opts.c (c_common_post_options): Set default value for
22381         flag_gnu89_inline.
22382         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
22383         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
22384         inline functions.
22385         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
22386         (grokdeclarator, start_function): Likewise.
22387         * c-cppbuiltin.c (c_cpp_builtins): Define either
22388         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
22389         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
22390         (C Dialect Options): Document -fgnu89-inline.
22391         * doc/extend.texi (Function Attributes): Explain what the
22392         gnu_inline attribute does.
22393         * doc/cpp.texi (Common Predefined Macros): Document
22394         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
22395
22396 2007-03-05  Ian Lance Taylor  <iant@google.com>
22397
22398         PR tree-optimization/31034
22399         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
22400         half-range if the other side is an overflow infinity.
22401
22402 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
22403
22404         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
22405         (bfin*-linux-uclibc*): New configuration.
22406         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
22407         defining.
22408         * config/bfin/linux.h: New file.
22409         * config/bfin/libgcc-bfin.ver: New file.
22410         * config/bfin/t-bfin-uclinux: New file.
22411         * config/bfin/t-bfin-linux: New file.
22412         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
22413         (TARGET_OS_CPP_BUILTINS): New macro.
22414
22415 2007-03-05  Richard Guenther  <rguenther@suse.de>
22416
22417         * fold-const.c (fold_binary): Remove duplicate folding
22418         of comparison of non-null ADDR_EXPR against null.
22419
22420 2007-03-05  Richard Guenther  <rguenther@suse.de>
22421             Dorit Nuzman  <dorit@il.ibm.com>
22422
22423         PR tree-optimization/26420
22424         * tree-vectorizer.c (vectorize_loops): Bail out early if there
22425         are no loops in the function.  Only print the number of
22426         vectorized loops if it is greater than zero or we are supposed
22427         to print information about unvectorized loops.
22428
22429 2007-03-05  Revital Eres  <eres@il.ibm.com>
22430
22431         * gcc.dg/var-expand1.c: New test.
22432         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
22433         when an accumulator is expanded.
22434
22435 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22436
22437         PR other/30465
22438         * c-common.c (convert_and_check): Don't give warnings for
22439         conversion if 'expr' already overflowed.
22440
22441 2007-03-04  Roger Sayle  <roger@eyesopen.com>
22442
22443         PR middle-end/30744
22444         * fold-const.c (fold_comparison): Enforce type consistency when
22445         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
22446
22447 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
22448
22449         * tree-ssa-address.c (create_mem_ref): Do not put an expression
22450         containing a cast to the base of TARGET_MEM_REF.
22451
22452 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
22453
22454         * tree.c (tree_contains_struct_check_failed): Remove spurious
22455         whitespace from error message.
22456
22457 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
22458
22459         PR target/30406
22460         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
22461         instead of precision.
22462
22463 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
22464             Nathan Sidwell  <nathan@codesourcery.com>
22465
22466         * emit-rtl.c (find_auto_inc): New.
22467         (try_split): recreate REG_INC notes,
22468         Use regular for loops rather than whiles.
22469
22470 2007-03-03  Andreas Schwab  <schwab@suse.de>
22471
22472         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
22473         * configure: Regenerate.
22474
22475 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22476
22477         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
22478         flag_rounding_math, not flag_unsafe_math_optimizations.
22479
22480         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
22481         fold_build2.
22482         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
22483         alpha_fold_vector_minmax): Likewise.
22484         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22485         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
22486
22487 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
22488
22489         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
22490         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
22491         if the lhs has side-effects.
22492         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
22493
22494 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
22495
22496         * config/i386/i386.h (TUNEMASK): Remove define.
22497         (ARCHMASK): Remove define.
22498         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
22499          Use ix86_arch_mask variable instead of ARCHMASK.
22500         * config/i386/i386.c (override_options): Ditto.
22501         (standard_80387_constant_p): Ditto.
22502
22503 2007-03-02  Ian Lance Taylor  <iant@google.com>
22504
22505         Used signed infinities in VRP.
22506         * tree-vrp.c (uses_overflow_infinity): New static function.
22507         (supports_overflow_infinity): New static function.
22508         (make_overflow_infinity): New static function.
22509         (negative_overflow_infinity): New static function.
22510         (positive_overflow_infinity): New static function.
22511         (is_negative_overflow_infinity): New static function.
22512         (is_positive_overflow_infinity): New static function.
22513         (is_overflow_infinity): New static function.
22514         (overflow_infinity_range_p): New static function.
22515         (compare_values_warnv): New function split out of compare_values.
22516         (compare_value): Call it.
22517         (set_value_range_to_nonnegative): Add overflow_infinity
22518         parameter.  Change caller.
22519         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
22520         Change callers.
22521         (vrp_expr_computes_nonzero): Likewise.
22522         (compare_ranges, compare_range_with_value): Likewise.
22523         (compare_name_with_value, compare_names): Likewise.
22524         (vrp_evaluate_conditional): Likewise.
22525         (set_value_range): Handle infinity
22526         (vrp_operand_equal_p, operand_less_p): Likewise.
22527         (extract_range_from_assert): Likewise.
22528         (vrp_int_const_binop): Likewise.
22529         (extract_range_from_binary_expr): Likewise.
22530         (extract_range_from_unary_expr): Likewise.
22531         (extract_range_from_comparison): Likewise.
22532         (extract_range_from_expr): Likewise.
22533         (dump_value_range): Likewise.
22534         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
22535         (test_for_singularity): Likewise.
22536         (vrp_int_const_binop): Remove inline qualifier.
22537         (adjust_range_with_scev): Add comment.
22538         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
22539
22540 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
22541
22542         * tree-ssa-structalias.c (could_have_pointers): Tidy.
22543         (get_constraint_for): Likewise.
22544         (do_structure_copy): Likewise.
22545         (find_func_aliases): Fix references to MODIFY_EXPR.
22546         (intra_create_variable_infos): Tidy.
22547         * tree-ssa-operands.c (add_virtual_operand): Add argument
22548         IS_CALL_SITE.
22549         When adding members of alias sets, if IS_CALL_SITE is true and
22550         the symbol is not call-clobbered, skip it.
22551         Adjust all callers.
22552
22553 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
22554
22555         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
22556         entry by means of emit_insn_at_entry.
22557
22558 2007-03-02  Richard Henderson  <rth@redhat.com>
22559
22560         * expr.h (promoted_input_arg): Remove decl.
22561         * function.c (promoted_input_arg): Merge into ...
22562         * combine.c (setup_incoming_promotions): ... only caller.
22563         Rearrange to avoid double loop.
22564
22565 2007-03-02  Ben Elliston  <bje@au.ibm.com>
22566             Peter Bergner  <bergner@vnet.ibm.com>
22567             Janis Johnson  <janis187@us.ibm.com>
22568
22569         * config/rs6000/dfp.md: New file.
22570         * config/rs6000/rs6000.md: Include dfp.md.
22571         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
22572         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
22573         and TDmode decimal float modes in FP registers.
22574         (num_insns_constant): Likewise.
22575         (rs6000_legitimate_offset_address_p): Likewise.
22576         (rs6000_legitimize_address): Likewise.
22577         (rs6000_legitimize_reload_address): Likewise.
22578         (rs6000_legitimate_address): Likewise.
22579         (rs6000_emit_move): Likewise.
22580         (function_arg_boundary): Likewise.
22581         (function_arg_advance): Likewise.
22582         (rs6000_darwin64_record_arg_recurse): Likewise.
22583         (function_arg): Likewise.
22584         (rs6000_gimplify_va_arg): Likewise.
22585         (rs6000_split_multireg_move): Likewise.
22586         (rs6000_output_function_epilogue): Likewise.
22587         (rs6000_output_function_epilogue): Likewise.
22588         (rs6000_register_move_cost): Likewise.
22589         (rs6000_function_value): Likewise.
22590         (rs6000_libcall_value): Likewise.
22591
22592 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
22593
22594         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
22595
22596 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
22597
22598         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
22599         Use $MULTIDIR to choose between the kernel and RTP headers,
22600         and use $WIND_BASE and $WIND_USR to locate them.
22601
22602 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
22603
22604         * config/i386/i386.c (override_options): Put initialization of
22605         ix86_tune_mask and ix86_arch_mask to the correct place.
22606
22607 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
22608             Michael Meissner  <michael.meissner@amd.com>
22609
22610         PR target/31019
22611         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
22612         (ARCHMASK): Define.
22613         (TARGET_CMOVE): Use ARCHMASK.
22614         (TARGET_CMPXCHG): Ditto.
22615         (TARGET_CMPXCHG8B): Ditto.
22616         (TARGET_XADD): Ditto.
22617         (TARGET_BSWAP): Ditto.
22618         * config/i386/i386.c (ix86_tune_mask): New global variable.
22619         (ix86_arch_mask): Ditto.
22620         (override_options): Initialize ix86_tune_mask and
22621         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
22622         target_flags.
22623
22624 2007-03-02  Ben Elliston  <bje@au.ibm.com>
22625
22626         PR 30992
22627         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
22628
22629 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
22630
22631         * target.h (init_dwarf_reg_sizes_extra): New target hook.
22632         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
22633         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
22634         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
22635         hook.
22636         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
22637         rs6000_init_dwarf_reg_sizes_extra): New.
22638         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
22639         SPE register high parts.
22640
22641 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
22642
22643         * Makefile.in: Add install-pdf target as
22644         copied from automake v1.10 rules.
22645         * configure.ac: Add install-pdf to target list.
22646         * configure: Regenerate.
22647
22648 2007-03-01  Paul Brook  <paul@codesourcery.com>
22649
22650         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
22651         modes to LDRD for DImode.
22652         (output_move_double): Fixup out of range ldrd/strd.
22653         (vfp_secondary_reload_class): Rename...
22654         (coproc_secondary_reload_class): ... to this.  Add wb argument.
22655         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
22656         coproc_secondary_reload_class for CLASS_IWMMXT.
22657         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
22658         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
22659
22660 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
22661
22662         * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
22663         unroll factor by the estimated number of iterations.
22664         (loop_prefetch_arrays): Do not prefetch in loops that iterate less
22665         than prefetch latency.
22666
22667         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
22668         decode_caches_intel, detect_caches_intel): New functions.
22669         (host_detect_local_cpu): Use detect_caches_amd and
22670         detect_caches_intel.
22671
22672 2007-03-01  Richard Henderson  <rth@redhat.com>
22673
22674         * expr.c (emit_move_complex_push): Export.
22675         (emit_move_complex_parts): Split out from ...
22676         (emit_move_complex): ... here.
22677         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
22678         * config/i386/i386.md (movcdi): New.
22679
22680 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
22681
22682         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
22683         size of mode1 to check for tieable modes in MMX case.
22684
22685 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
22686
22687         * Makefile.in (rtlanal.o): Depend on tree.h.
22688         * rtl.h (offset_within_section_p, split_const): Declare.
22689         * rtlanal.c: Include tree.h.
22690         (offset_within_block_p): New function, taken from
22691         mips_offset_within_object_p.
22692         (split_const): New function, taken from mips_split_const.
22693         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
22694         Declare.
22695         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
22696         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
22697         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
22698         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
22699         (m68k_illegitimate_symbolic_constant_p): New function.
22700         * config/m68k/m68k.md (movsi): Remove misleading predicates.
22701         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
22702         symbolic constant that might be outside the symbol's section,
22703         move the symbol first and then add the offset.
22704         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
22705         Override.
22706         * config/mips/mips.c (mips_split_const): Delete.
22707         (mips_offset_within_object_p): Delete.
22708         (mips_symbolic_constant_p): Use offset_within_section_p and
22709         split_const instead of mips_offset_within_object_p and
22710         mips_split_const.
22711         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
22712         (mips_legitimize_const_move, print_operand_reloc)
22713         (mips_dangerous_for_la25_p): Use split_const instead of
22714         mips_split_const.
22715
22716 2007-02-28  Eric Christopher  <echristo@apple.com>
22717
22718         * Makefile.in (install-include-dir): Don't rm -rf include.
22719
22720 2007-02-28  Richard Guenther  <rguenther@suse.de>
22721
22722         PR middle-end/30364
22723         * fold-const.c (fold_binary): Do not associate expressions
22724         with more than one variable for integer types that do not wrap.
22725
22726 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
22727
22728         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
22729         Delete, and replace with...
22730         (fold_builtin_call_array): This.  Update callers to use it.
22731         * fold-const.c (fold_build_call_list): Delete, and replace with...
22732         (fold_build_call_array): This.
22733         (fold_build_call_list_initializer): Delete, and replace with...
22734         (fold_build_call_array_initializer): This.
22735         * tree.h: Update declarations to reflect above changes.
22736
22737         * c-typeck.c (build_function_call): Store converted arguments
22738         in a stack-allocated array instead of building a list.
22739         (convert_arguments): Store arguments in the array passed in as an
22740         argument, and return the actual number of arguments.
22741         * c-format.c: (check_function_format): Pass arguments in an
22742         array instead of a list.
22743         * c-common.c (check_function_nonnull): Likewise.
22744         (check_function_sentinel): Likewise.
22745         (check_function_arguments): Likewise.
22746         * c-common.h: Update declarations to reflect above changes.
22747
22748 2007-02-28  Jan Hubicka  <jh@suse.cz>
22749
22750         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
22751         PRED_NEGATIVE_RETURN): Update outcomes.
22752
22753 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
22754
22755         * calls.c (emit_library_call_value_1): Handle partial registers
22756         correctly when building up CALL_INSN_FUNCTION_USAGE.
22757
22758 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22759
22760         * pa/predicates.md (move_src_operand): Allow zero for mode.
22761         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
22762         move pattern.
22763
22764 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
22765
22766         PR target/30970
22767         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
22768         *movv2df_internal): Enable pattern only for valid operand
22769         combinations.
22770         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
22771         tie only 128bit modes. For MMX registers, tie only 64bit modes.
22772
22773 2007-02-27  Mike Stump  <mrs@apple.com>
22774
22775         * config/darwin-crt3.c: Avoid compilation when compiling for a
22776         kext multilib.
22777
22778 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
22779
22780         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
22781         FIXED_INCLUDE_DIR.
22782         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
22783         for fixed headers and limits.h.
22784         (install-include-dir, install-headers-tar, install-headers-cpio,
22785         install-headers-cp, real-install-headers-tar,
22786         real-install-headers-cpio, real-install-headers-cp): Handle
22787         include-fixed as well as include.
22788         (install-mkheaders): Don't install files that go only in include
22789         not include-fixed.
22790         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
22791         from GCC_INCLUDE_DIR.
22792         * gcc.c (process_command): Remove special -BstageN/ handling.
22793         (do_spec_1): Add include-fixed directories.
22794
22795 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22796
22797         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
22798         _smulsi3_highpart.
22799         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
22800         New functions.
22801         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
22802         patterns.
22803
22804 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
22805
22806         * c-common.c (get_priority): Add check for
22807         SUPPORTS_INIT_PRIORITY.
22808
22809 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22810
22811         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
22812
22813         * config/bfin/bfin.c: Include "cfglayout.h".
22814         (MAX_LSETUP_DISTANCE): New macro.
22815         (struct loop_info): New members incoming, incoming_src and
22816         incoming_dest.  Delete member predecessor.
22817         (length_for_loop): New function.
22818         (bfin_optimize_loop): Handle more different loop structures.
22819         (bfin_discover_loop): Rework detection of predecessor blocks by
22820         examining incoming edges.
22821         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
22822         bfin_reorg_loops.
22823         (bfin_reorder_loops): New function.
22824         (bfin_reorg_loops): Use these three new functions.
22825
22826         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
22827         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
22828         (CONSTRAINT_LEN): Add entry for 'q'.
22829         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
22830         Add 'q' constraints.
22831         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
22832         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
22833
22834         * config/bfin/bfin.md (add_with_carry): New pattern.
22835         (s_or_u, su_optab, su_modifier): New code macros/attrs.
22836         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
22837         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
22838         support unsigned multiplies too.  Removed incorrect commutativity from
22839         operand 1 constraint where appropriate.
22840         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
22841         patterns.
22842         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
22843         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
22844         New patterns.
22845         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
22846         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
22847         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
22848         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
22849         usmulhisi_hh_huh): New patterns.
22850
22851         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
22852         lshifthi3): Fix output template to use half reg for operand 2.
22853
22854         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
22855         instead of R2.
22856
22857         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
22858
22859 2007-02-27  Andreas Schwab  <schwab@suse.de>
22860
22861         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
22862
22863 2007-02-27  Jan Hubicka  <jh@suse.cz>
22864
22865         * predict.c (last_basic_block_p): Remove.
22866         (tree_estimate_probability): Update return heuristic for commonized
22867         return blocks.
22868
22869 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
22870
22871         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
22872
22873 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
22874
22875         * doc/include/gcc-common.texi (versionsubtitle): New macro.
22876         * doc/cpp.texi: Standardize title page.
22877         * doc/cppinternals.texi: Likewise.
22878         * doc/gcc.texi: Standardize title page, remove version number
22879         from copyright page.
22880         * doc/gccint.texi: Likewise.
22881         * doc/install.texi: Standardize title page, add table of
22882         contents.
22883
22884 2007-02-26  Jan Hubicka  <jh@suse.cz>
22885
22886         * predict.def: Set outcomes according to more recent results.
22887         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
22888         Remove dead predictors.
22889         * predict.c (return_prediction): Fix pasto.
22890
22891 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22892
22893         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
22894         change; avoid a memory leak when returning early.
22895
22896 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
22897
22898         * c-decl.c (static_ctors): Move to c-common.c.
22899         (static_dtors): Likewise.
22900         (finish_function): Use c_record_cdtor_fn.
22901         (build_cdtor): Move to c-common.c.
22902         (c_write_global_declarations): Use c_build_cdtor_fns.
22903         * c-common.h (static_ctors): Declare.
22904         (static_dtors): Likewise.
22905         (c_record_cdtor_fn): Likewise.
22906         (c_build_cdtor_fns): Likewise.
22907         * c-common.c (static_ctors): New variable.
22908         (static_dtors): Likewise.
22909         (c_record_cdtor_fn): New function.
22910         (build_cdtor): Move from c-decl.c
22911         (c_build_cdtor_fns): New function.
22912
22913         * output.h (assemble_addr_to_section): Declare.
22914         (get_cdtor_priority_section): Likewise.
22915         * varasm.c (assemble_addr_to_section): New function.
22916         (get_cdtor_priority_section): Likewise.
22917         (default_named_section_asm_out_destructor): Use them.
22918         (destor_dtor_section_asm_out_destructor): Likewise.
22919         (default_named_section_asm_out_constructor): Likewise.
22920         (default_ctor_section_asm_out_constructor): Likewise.
22921         * config.gcc (*-*-vxworks*): Include vxworks.o.
22922         * config/t-vxworks (vxworks.o): New target.
22923         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
22924         (TARGET_ASM_CONSTRUCTOR): Define.
22925         (TARGET_ASM_DESTRUCTOR): Likewise.
22926         (vxworks_asm_out_constructor): Declare.
22927         (vxworks_asm_out_destructor): Likewise.
22928
22929         * c-common.c (get_priority): Check that we have not just an
22930         INTEGER_CST, but an integer constant with integeral type.
22931
22932 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
22933
22934         PR tree-optimization/30938
22935         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
22936         use &dt[nargs-1] instead of &dt[nargs] in the call to
22937         vect_is_simple_use().
22938
22939 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
22940
22941         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
22942         from register elimination as PRE_MODIFY / POST_MODIFY increments.
22943         Do not attempt to handle MEM inside auto-inc expressions.
22944         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
22945         of a register modified by an auto-inc expression.  However, do handle
22946         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
22947         (elimination_effects): Prohibit elimination of a register modified
22948         by an auto-inc expression.  Disable register elimination rules whose
22949         target register is modified by an auto-inc expression with variable
22950         increment.
22951
22952 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
22953
22954         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
22955         off-by-one error.
22956         (array_at_struct_end_p): New function.
22957         (idx_infer_loop_bounds): Use it.
22958         (estimate_numbers_of_iterations_loop): Export.
22959         * predict.c (predict_loops): Use estimated_loop_iterations_int.
22960         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
22961         (tree_estimate_probability): Call record_loop_exits.
22962         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
22963         (estimated_loop_iterations, estimated_loop_iterations_int,
22964         estimated_loop_iterations_tree): New functions.
22965         (analyze_siv_subscript_cst_affine,
22966         compute_overlap_steps_for_affine_1_2,
22967         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
22968         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
22969         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
22970         (PRED_LOOP_ITERATIONS_GUESSED): New.
22971         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
22972         * cfgloop.h (estimate_numbers_of_iterations_loop,
22973         estimated_loop_iterations_int): Declare.
22974
22975 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
22976
22977         * doc/extend.texi: Document optional priority argument to
22978         constructors and destructors.
22979         * tree.c (init_priority_for_decl): Adjust GTY markers.
22980         (init_ttree): Use priority-info hash functions for
22981         init_priority_for_decl.
22982         (tree_map_eq): Rename to ...
22983         (tree_map_base_eq): ... this.
22984         (tree_map_marked_p): Rename to ...
22985         (tree_map_base_marked_p): ... this.
22986         (tree_map_base_hash): New function.
22987         (decl_init_priority_lookup): Rework.
22988         (decl_fini_priority_lookup): New function.
22989         (decl_priority_info): New function.
22990         (decl_init_priority_insert): Use it.
22991         (decl_fini_priority_insert): Likewise.
22992         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
22993         hierarchy.
22994         (decl_restrict_base_insert): Likewise.
22995         (decl_debug_expr_insert): Likewise.
22996         (decl_value_expr_lookup): Likewise.
22997         (decl_value_expr_insert): Likewise.
22998         * tree.h (priority_type): New type.
22999         (decl_init_priority_lookup): Use priority_type.
23000         (decl_fini_priority_lookup): New function.
23001         (decl_init_priority_insert): Use priority_type.
23002         (decl_fini_priority_insert): New function.
23003         (DECL_HAS_INIT_PRIORITY): Tweak comments.
23004         (DECL_INIT_PRIORITY): Likewise.
23005         (SET_DECL_INIT_PRIORITY): Add comment.
23006         (DECL_FINI_PRIORITY): New macro.
23007         (SET_DECL_FINI_PRIORITY): Likewise.
23008         (DEFAULT_INIT_PRIORITY): Document.
23009         (MAX_INIT_PRIORITY): Likewise.
23010         (MAX_RESERVED_INIT_PRIORITY): Likewise.
23011         (tree_map_base): New type.
23012         (tree_map_base_eq): New function.
23013         (tree_map_base_hash): Likewise.
23014         (tree_map_base_marked_p): Likewise.
23015         (tree_map): Inherit from tree_map_base.
23016         (tree_map_eq): Make it a macro.
23017         (tree_map_marked_p): Likewise.
23018         (tree_int_map): Inherit from tree_map_base.
23019         (tree_int_map_eq): Make it a macro.
23020         (tree_int_map_hash): Likewise.
23021         (tree_int_map_marked_p): Likewise.
23022         (tree_priority_map): New type.
23023         (tree_priority_map_eq): New macro.
23024         (tree_priority_map_hash): Likewise.
23025         (tree_priority_map_marked_p): Likewise.
23026         * varasm.c (emults_decl): Adjust for refactoring of tree_map
23027         hierarchy.
23028         (emutls_common_1): Likewise.
23029         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
23030         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
23031         of tree_map hierarchy.
23032         * tree-cfg.c (move_stmt_r): Likewise.
23033         (new_label_mapper): Likewise.
23034         * c-tree.h (c_expand_body): Move to ...
23035         * c-common.h (c_expand_body): ... here.
23036         * c-decl.c (c_expand_body): Move to ...
23037         * c-common.c (c_expand_body): ... here.
23038         (c_common_attribute_table): Allow 1 argument for the constructor
23039         and destructor attributes.
23040         (get_priority): New function.
23041         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
23042         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
23043
23044 2007-02-24  Jan Hubicka  <jh@suse.cz>
23045
23046         PR middle-end/30509
23047         * tree-inline.c (copy_bb): Produce exact copy of EH info when
23048         copying for inlining.
23049
23050 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
23051             Jan Hubicka  <jh@suse.cz>
23052
23053         PR target/30778
23054         * i386.c (counter_mode): New function.
23055         (expand_set_or_movmem_via_loop): Use it.
23056         (expand_movmem_epilogue): Likewise; fix pasto.
23057         (ix86_expand_movmem): Do emit guard even for constant counts.
23058         (ix86_expand_setmem): Likewise.
23059
23060 2007-02-25  Nick Clifton  <nickc@redhat.com>
23061
23062         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
23063         (JUMP_TABLES_IN_TEXT_SECTION): Define.
23064
23065 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
23066
23067         PR target/30770
23068         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
23069         count argument with 0x10, not with 0x16.
23070         (expand_setmem_epilogue): Ditto.
23071
23072 2007-02-24  Mike Stump  <mrs@apple.com>
23073
23074         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
23075         symbols.
23076
23077 2007-02-24  Richard Guenther  <rguenther@suse.de>
23078
23079         PR middle-end/30951
23080         * fold-const.c (fold_binary): Fold x +- CST op x for
23081         EQ_EXPR and NE_EXPR.
23082
23083 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23084
23085         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
23086
23087 2007-02-24  Jan Hubicka  <jh@suse.cz>
23088
23089         * cgraphunit.c (decide_is_function_needed): Honor
23090         -fkeep-inline-functions.
23091
23092 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23093
23094         * builtins.c (fold_builtin_modf): New.
23095         (fold_builtin_2): Use it.
23096
23097 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
23098
23099         * loop-iv.c (implies_p): Detect additional cases where A implies B.
23100         (determine_max_iter): Take additional LOOP arg; all callers changed.
23101         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
23102         one using simplifications.
23103         (simplify_using_initial_values): Return if the expression becomes
23104         invalid due to altered regs.
23105
23106 2007-02-23  DJ Delorie  <dj@redhat.com>
23107
23108         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
23109
23110 2007-02-23  Mike Stump  <mrs@apple.com>
23111
23112         * tlink.c (scan_linker_output): Parse linker messages from
23113         darwin9's linker better.
23114
23115 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
23116
23117         PR debug/29614
23118         * varpool.c (varpool_assemble_pending_decls): Set
23119         varpool_last_needed_node to null.
23120
23121 2007-02-23  DJ Delorie  <dj@redhat.com>
23122
23123         * config/i386/i386.c (ix86_data_alignment): Don't specify an
23124         alignment bigger than the object file can handle.
23125
23126 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
23127
23128         PR target/30825
23129         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
23130         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
23131         (*movsf_1): Penalize MMX moves.
23132
23133 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
23134
23135         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
23136         2^32-1 or more times unless flag_unsafe_loop_optimizations.
23137
23138         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
23139
23140 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23141
23142         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
23143         (fold_builtin_1): Use them.
23144         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
23145         BUILT_IN_SIGNIFICAND.
23146
23147 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
23148
23149         * config/i386/i386.c (bdesc_1arg): Initialize
23150         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
23151         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
23152         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
23153         and IX86_BUILTIN_MOVSLDUP.
23154
23155 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
23156
23157         PR rtl-optimization/30841
23158         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
23159
23160 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23161
23162         * builtins.c (fold_builtin_frexp): New.
23163         (fold_builtin_2): Use it.
23164
23165 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
23166
23167         * doc/invoke.texi (Spec Files): Document getenv spec function.
23168
23169         * gcc.c (getenv_spec_function): New function.
23170         (static_spec_functions): Add it.
23171         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
23172         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
23173         header files.
23174
23175 2007-02-22  Michael Matz  <matz@suse.de
23176
23177         PR c++/29433
23178         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
23179         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
23180
23181 2007-02-22  Ian Lance Taylor  <iant@google.com>
23182
23183         PR debug/30898
23184         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
23185         (mem_loc_descriptor): Call it.
23186
23187 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
23188             Ira Rosen  <irar@il.ibm.com>
23189
23190         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
23191
23192 2007-02-22  Ira Rosen  <irar@il.ibm.com>
23193
23194         PR tree-optimization/30843
23195         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
23196         stores only after all the group is vectorized.
23197
23198 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
23199
23200         PR tree-optimization/30858
23201         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
23202         in the reduction cycle have a single use in the loop.
23203         * tree-vectorizer.h (relevant): Add documentation.
23204
23205 2007-02-20  Mike Stump  <mrs@apple.com>
23206
23207         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
23208         * configure: Regenerate.
23209
23210 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
23211
23212         Change the defaults of some parameters and options.
23213         * config/spu/spu-protos.h (spu_optimization_options): Declare.
23214         * config/spu/spu.c (spu_optimization_options): Add.
23215         (spu_override_options): Change params in spu_optimization_options.
23216         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
23217
23218         Register 127 is only 16 byte aligned when used as a frame pointer.
23219         * config/spu/spu-protos.h (spu_init_expanders): Declare.
23220         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
23221         HARD_FRAME_POINTER_REGNUM.
23222         (spu_legitimate_address): Use regno_aligned_for_reload.
23223         (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
23224         aligned when frame_pointer_needed is true.
23225         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
23226         to 8 bits.
23227         * config/spu/spu.h (INIT_EXPANDERS): Define.
23228
23229         Make sure shift and rotate instructions have valid immediate operands.
23230         * config/spu/predicates.md (spu_shift_operand): Remove.
23231         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
23232         * config/spu/constraints.md (W, O): Extend range.
23233         * config/spu/spu.md (umask, nmask): Define.
23234         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
23235         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
23236         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
23237         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
23238         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
23239         (lshr<mode>3_reg): Fix rtl description.
23240
23241         Make sure mulhisi immediate operands are valid.
23242         * config/spu/predicates.md (imm_K_operand): Add.
23243         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
23244
23245         Generate constants using fsmbi and andi.
23246         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
23247         (print_operand, spu_split_immediate, classify_immediate,
23248         fsmbi_const_p): Handle IC_FSMBI2.
23249
23250         Correctly handle a CONST_VECTOR containing symbols.
23251         * config/spu/spu.c (print_operand): Handle HIGH correctly.
23252         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
23253         (immediate_load_p): Allow symbols that use 2 instructions to create.
23254         (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
23255         with symbols when flag_pic is set.
23256         (const_vector_immediate_p): New.
23257         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
23258         accept a CONST_VECTOR with symbols.
23259         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
23260         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
23261         correctly.
23262         * config/spu/spu.md (high, low): Delete.
23263         (low_<mode>): Define.
23264
23265         Remove INTRmode and INTR_REGNUM, which didn't work.
23266         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
23267         of INTR_REGNUM.
23268         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
23269         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
23270         peephole2 pattern): Don't use INTR or 131.
23271         (movintrcc): Delete.
23272         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
23273         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
23274         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
23275         (UNSPEC_SET_INTR): Add.
23276         * config/spu/spu-modes.def (INTR): Remove.
23277
23278         More accurate warnings about run-time relocations.
23279         * config/spu/spu.c (reloc_diagnostic): Test in_section.
23280
23281         Correctly warn about immediate arguments to specific intrinsics.
23282         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
23283         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
23284         the instruction predicate.
23285
23286         Fix tree check errors with latest update.
23287         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
23288         CALL_EXPR_ARG.
23289         (spu_expand_builtin): Use CALL_EXPR_FN.
23290
23291         Add missing specific intrinsics.
23292         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
23293         si_bislede.
23294         * config/spu/spu_internals.h: Ditto.
23295
23296         Fix incorrect operand modifiers.
23297         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
23298         * config/spu/spu.md (xor<mode>3): Change %S to %J.
23299
23300         Optimize one case of zero_extend of a vec_select.
23301         * config/spu/spu.md (_vec_extractv8hi_ze): Add.
23302
23303         Accept any immediate for hbr.
23304         * config/spu/spu.md (hbr): Change s constraints to i.
23305
23306 2007-02-21  Paul Brook  <paul@codesourcery.com>
23307
23308         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
23309         condexec_count when skipping USE and CLOBBER.
23310
23311 2007-02-21  Nick Clifton  <nickc@redhat.com>
23312
23313         * common.opt (Warray-bounds): Add Warning attribute.
23314         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
23315         Likewise.
23316         (fsized-zeroes): Add Optimization attribute.
23317         (fsplit-wide-types, ftree-scev-cprop): Likewise.
23318         * c.opt (Wc++0x-compat): Add Warning attribute.
23319
23320 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
23321
23322         PR middle-end/30761
23323         * reload1.c (eliminate_regs_in_insn): In the single_set special
23324         case, attempt to re-recognize the insn before falling back to
23325         having reload fix it up.
23326
23327 2007-02-20  Eric Christopher  <echristo@gmail.com>
23328
23329         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
23330         Rewrite accordingly.
23331         (frv_read_iacc_argument): Ditto.
23332         (frv_expand_set_builtin): Take a call instead of arglist, update for
23333         above changes.
23334         (frv_expand_unop_builtin): Ditto.
23335         (frv_expand_binop_builtin): Ditto.
23336         (frv_expand_cut_builtin): Ditto.
23337         (frv_expand_binopimm_builtin): Ditto.
23338         (frv_expand_voidbinop_builtin): Ditto.
23339         (frv_expand_int_void2arg): Ditto.
23340         (frv_expand_prefetches): Ditto.
23341         (frv_expand_voidtriop_builtin): Ditto.
23342         (frv_expand_voidaccop_builtin): Ditto.
23343         (frv_expand_load_builtin): Ditto.
23344         (frv_expand_store_builtin): Ditto.
23345         (frv_expand_mdpackh_builtin): Ditto.
23346         (frv_expand_mclracc_builtin): Ditto.
23347         (frv_expand_mrdacc_builtin): Ditto.
23348         (frv_expand_mwtacc_builtin): Ditto.
23349         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
23350         calls for above.
23351
23352 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
23353
23354         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
23355         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
23356         cmpb instruction.
23357         (HAVE_GAS_DFP): Check for assembler support of decimal floating
23358         point instructions.
23359         * configure: Regenerate.
23360         * config.in: Regenerate.
23361         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
23362         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
23363         masks to power6 and power6x and to POWERPC_MASKS.
23364         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23365         _ARCH_PWR6.
23366         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
23367         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
23368         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
23369         Access PROTOTYPE as variable, not mask.
23370
23371 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
23372
23373         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
23374         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
23375         * combine.c (adjust_for_new_dest): Use it.
23376         * postreload.c (reload_combine): Likewise.
23377
23378 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
23379
23380         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
23381         notes on an insn with multiple sets, even if single_set returns
23382         non-NULL for that insn.
23383
23384 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23385
23386         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
23387         scalbn and scalbln.
23388
23389 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
23390
23391         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
23392         if user didn't pass it.
23393         * config/i386/darwin.h (CC1_SPEC): Likewise.
23394         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
23395         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
23396         -mmacosx-version-min.
23397
23398 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23399             Uros Bizjak  <ubizjak@gmail.com>
23400
23401         * optabs.h (enum optab_index): Add new OTI_scalb.
23402         (scalb_optab): Define corresponding macro.
23403         * optabs.c (init_optabs): Initialize scalb_optab.
23404         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
23405         patterns.
23406         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
23407         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
23408         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
23409         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
23410         flag_unsafe_math_optimizations is set.
23411
23412         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
23413         to implement scalbf, scalb and scalbl built-ins as inline x87
23414         intrinsics.
23415
23416 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23417             DJ Delorie <dj@redhat.com>
23418
23419         PR other/30824
23420         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
23421         (diagnostic_report_diagnostic): ... here, and turn them into real
23422         errors. If warnings are inhibited, no need to do anything.
23423
23424 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
23425
23426         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
23427         better code generation.
23428
23429 2007-02-20  Ben Elliston  <bje@au.ibm.com>
23430
23431         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
23432
23433 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
23434
23435         * config/alpha/alpha.c, config/alpha/alpha.md,
23436         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
23437         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
23438         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
23439         config/arm/lib1funcs.asm: Follow spelling conventions.
23440
23441         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
23442         config/fr30/fr30.md, config/i386/i386.h,
23443         config/iq2000/iq2000.h, config/iq2000/predicates.md,
23444         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
23445         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
23446         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
23447         config/rs6000/altivec.md, config/rs6000/rs6000.c,
23448         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
23449         config/sparc/sparc.c, config/sparc/sparc.h,
23450         config/sparc/sparc.md, config/spu/constraints.md,
23451         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
23452         conventions.
23453
23454 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
23455
23456         PR target/29943
23457         * varasm.c (use_blocks_for_decl_p): Return false for decls with
23458         alias attribute.
23459
23460 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
23461
23462         * doc/invoke.texi (-ftree-lrs): Remove.
23463
23464 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
23465
23466         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
23467         NULL.
23468
23469 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
23470
23471         * config/ia64/ia64.c (ia64_expand_builtin): Use the
23472         new CALL_EXPR_FN macro for retrieving the function
23473         declaration of the input expression.
23474
23475 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23476
23477         * c.opt (Waddress): New.
23478         * common.opt (Walways-true): Delete.
23479         (Wstring-literal-comparison): Delete.
23480         * doc/invoke.texi (Warning Options): Delete -Walways-true and
23481         -Wstring-literal-comparison. Add -Waddress.
23482         (Waddress): New.
23483         (Walways-true): Delete.
23484         (Wstring-literal-comparison): Delete.
23485         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
23486         consistently instead of -Walways-true in example.
23487         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
23488         * c-typeck.c (parser_build_binary_op): Replace
23489         -Wstring-literal-comparison and -Walways-true with -Waddress.
23490         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
23491         with -Waddress.
23492
23493 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
23494
23495         * tree-cfg.c (dump_function_to_file): Be prepared for functions
23496         without DECL_STRUCT_FUNCTION initialized.
23497
23498 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
23499
23500         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
23501         due to calls to functions taking pointers as parameters.
23502
23503 2007-02-19  Richard Henderson  <rth@redhat.com>
23504
23505         PR debug/29558
23506         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
23507         in memory.
23508
23509 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
23510
23511         * config/s390/s390.c (s390_call_saved_register_used,
23512         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
23513         accessed to the new scheme.
23514
23515 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23516
23517         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
23518         (cris_print_index, cris_print_operand, cris_print_operand_address)
23519         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
23520         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
23521         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
23522         GET_CODE () == xxx.
23523         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
23524         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
23525         GO_IF_LEGITIMATE_ADDRESS): Ditto.
23526         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
23527         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
23528         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
23529         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
23530         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
23531         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
23532         (uminsi3, call, call_value): Ditto.
23533         (define_split: indir_to_reg_split, unnamed): Ditto.
23534
23535 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
23536
23537         PR tree-optimization/30975
23538         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
23539         wrong assert.
23540
23541 2007-02-18  Eric Christopher  <echristo@gmail.com>
23542
23543         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
23544         Remove use of arglist.
23545         (mips_expand_builtin): Remove use of arglist, pass in expr.
23546         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
23547         (mips_expand_builtin_movtf): Ditto.
23548         (mips_expand_builtin_compare): Ditto.
23549
23550 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
23551
23552         * tree-sra.c (sra_build_assignment): Replace assertion
23553         checking with a comment explaining why it can't be done.
23554
23555 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
23556
23557         PR middle-end/30833
23558         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
23559         during CALL_EXPR representation conversion.
23560         * tree-ssa-propagate.c (set_rhs): Likewise.
23561
23562 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
23563
23564         * tree-sra.c (sra_build_assignment): Disable assertion checking
23565         for now.
23566
23567 2007-02-18  Roger Sayle  <roger@eyesopen.com>
23568
23569         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
23570         instead of calling build2 with a GIMPLE_MODIFY_STMT.
23571         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
23572         Likewise.
23573         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
23574         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
23575         gimplify_init_ctor_eval_range, gimple_push_cleanup,
23576         gimplify_omp_for, gimplify_omp_atomic_pipeline,
23577         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
23578         force_gimple_operand): Likewise.
23579         * ipa-cp.c (constant_val_insert): Likewise.
23580         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
23581         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
23582         perfect_nestify): Likewise.
23583         * langhooks.c (lhd_omp_assignment): Likewise.
23584         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
23585         lower_copyprivate_clauses, lower_send_clauses,
23586         lower_send_shared_vars, expand_parallel_call,
23587         expand_omp_for_generic, expand_omp_for_static_nochunk,
23588         expand_omp_for_static_chunk, expand_omp_sections,
23589         lower_omp_single_copy, lower_omp_for_lastprivate,
23590         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
23591         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
23592         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
23593         Likewise.
23594
23595 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
23596
23597         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
23598         config/sh/sh.md: Follow spelling conventions.
23599
23600         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
23601         config/frv/predicates.md: Follow spelling conventions.
23602
23603         * config/m68k/linux-unwind.h: Fix a comment typo.
23604         * target.h: Follow spelling conventions.
23605
23606 2007-02-18  Roger Sayle  <roger@eyesopen.com>
23607
23608         PR rtl-optimization/28173
23609         * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
23610         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
23611         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
23612         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
23613         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
23614
23615 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23616
23617         * builtins.c (fold_builtin_load_exponent): New.
23618         (fold_builtin_2): Use it.
23619
23620 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
23621
23622         PR rtl-optimization/30773
23623         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
23624         if we fail to attach a REG_EQUIV note.
23625
23626 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
23627             Roger Sayle  <roger@eyesopen.com>
23628
23629         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
23630
23631 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
23632
23633         * calls.c (initialize_argument_information): Pass original EXP
23634         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
23635         code to split complex arguments here, as part of initializing the
23636         ARGS array.
23637         (expand_call): Remove code that builds a list of arguments and
23638         inserts implicit arguments into it.  Instead, just count how many
23639         implicit arguments there will be so we can determine the size of
23640         the ARGS array, and let initialize_argument_information do the work.
23641         (split_complex_values): Delete unused function.
23642
23643 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23644
23645         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
23646
23647 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23648
23649         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
23650         for arg pointer based indexed addressing.
23651
23652 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
23653
23654         * config/ia64/ia64.h, config/ia64/ia64.md,
23655         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
23656         spelling conventions.
23657
23658 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23659
23660         * config/m68k/m68k.c (split_di): New.
23661         * config/m68k/m68k-protos.h: Declare split_di.
23662         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
23663           Improve predicate handling and split constant shifts.
23664
23665 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23666
23667         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
23668         parameter for register bitfield operations, general predicates
23669         cleanup
23670
23671 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23672
23673         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
23674         * config/m68k/linux-unwind.h: New file.
23675
23676 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
23677
23678         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
23679         config/i386/athlon.md, config/ia64/ia64.md,
23680         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
23681         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
23682         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
23683         tree-ssa-loop-niter.c, tree-vect-analyze.c,
23684         tree-vect-transform.c: Fix comment typos.
23685
23686 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
23687
23688         * sched-deps.c (find_insn_list): Remove.
23689         * sched-int.h: Remove the prototype for find_insn_list.
23690
23691 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
23692
23693         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
23694         to linker.
23695         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
23696         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
23697         darwin_rs6000_override_options.
23698         (C_COMMON_OVERRIDE_OPTIONS): Expect
23699         darwin_macosx_version_min to be non-NULL always.
23700         (TARGET_C99_FUNCTIONS): Likewise.
23701         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
23702         (DARWIN_MINVERSION_SPEC): New.
23703         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
23704         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
23705         to cc1*.
23706         (DARWIN_MINVERSION_SPEC): New.
23707         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
23708         value.
23709         * config/darwin-c.c (darwin_cpp_builtins): Expect
23710         darwin_macosx_version_min to be non-NULL always.
23711
23712         * config/rs6000/rs6000.c: Clean up trailing whitespace.
23713
23714 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
23715
23716         * config/i386/i386.h (x86_use_xchgb): New.
23717         (TARGET_USE_XCHGB): New macro.
23718         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
23719         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
23720         Split after reload into bswaphi for shifts of 8.
23721         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
23722         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
23723         or when optimizing for size.
23724
23725 2007-02-16  Richard Guenther  <rguenther@suse.de>
23726             Christian Bruel  <christian.bruel@st.com>
23727
23728         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
23729         DECLs but prefer SSA_NAMEs over DECLs.
23730
23731 2007-02-16  Richard Guenther  <rguenther@suse.de>
23732
23733         * tree-flow-inline.h (single_imm_use_p): Remove.
23734         (zero_imm_uses_p): Likewise.
23735         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
23736         instead of single_imm_use_p.
23737         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
23738         zero_imm_uses_p.
23739
23740 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23741
23742         PR other/27843
23743         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
23744         nested double- and backquotes.
23745
23746 2007-02-15  Roger Sayle  <roger@eyesopen.com>
23747
23748         PR middle-end/30391
23749         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
23750         should be unreachable.
23751         (build2_stat): Allow construction of MODIFY_EXPR at any time.
23752         For the time being redirect GIMPLE_MODIFY_STMT to the new
23753         (renamed) build_gimple_modify_stmt_stat.
23754         (build2_gimple_stat): Rename to...
23755         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
23756         Always build a GIMPLE_MODIFY_STMT node.
23757         * tree.h (build2_gimple, build2_gimple_stat): Delete.
23758         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
23759         declarations.
23760
23761         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
23762         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
23763         * tree-complex.c (set_component_ssa_name, expand_complex_move,
23764         expand_complex_div_wide): Likewise.
23765         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
23766         * tree-ssa-loop-im.c (schedule_sm): Likewise.
23767         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
23768         * tree-ssa-loop-manip.c (create_iv): Likewise.
23769         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
23770         abs_replacement): Likewise.
23771         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
23772         realify_fake_stores): Likewise.
23773
23774         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
23775         node rather than a GIMPLE_MODIFY_STMT node.
23776         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
23777         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
23778         Likewise.
23779         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
23780         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
23781         GIMPLE_MODIFY_STMT.
23782
23783 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23784
23785         PR middle-end/30433
23786         * fold-const.c (fold_comparison): Add back the
23787         folding of constant complex comparisions.
23788
23789 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23790
23791         PR middle-end/30729
23792         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
23793         effects unknown to this function, return early.
23794
23795 2007-02-15  Ian Lance Taylor  <iant@google.com>
23796
23797         * lower-subreg.c (move_eh_region_note): New static function.
23798         (resolve_simple_move): Call it.
23799         (decompose_multiword_subregs): Track blocks for which we resolve a
23800         simple move which is also a control flow insn.  Pass them to
23801         find_many_sub_basic_blocks.
23802         (pass_lower_subreg): Add TODO_verify_flow.
23803         (pass_lower_subreg2): Likewise.
23804
23805 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23806             Brooks Moses  <brooks.moses@codesourcery.com>
23807             Lee Millward  <lee.millward@codesourcery.com>
23808
23809         * tree.h (enum tree_code_class): Add tcc_vl_exp.
23810         (VL_EXP_CLASS_P): New.
23811         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
23812         TREE_CODE_LENGTH.
23813         (TREE_OPERAND_CHECK_CODE): Likewise.
23814         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
23815         (TREE_RTL_OPERAND_CHECK): Likewise.
23816         (tree_operand_check_failed): Make second parameter the whole tree
23817         instead of its code.  Fixed callers.
23818         (VL_EXP_CHECK): New.
23819         (TREE_OPERAND_LENGTH): New.
23820         (VL_EXP_OPERAND_LENGTH): New.
23821         (CALL_EXPR_FN): New.
23822         (CALL_EXPR_STATIC_CHAIN): New.
23823         (CALL_EXPR_ARGS): New.
23824         (CALL_EXPR_ARG): New.
23825         (call_expr_nargs): New.
23826         (CALL_EXPR_ARGP): New.
23827         (build_nt_call_list): Declare.
23828         (build_vl_exp_stat): Declare.
23829         (build_vl_exp): New.
23830         (build_call_list): Declare.
23831         (build_call_nary): Declare.
23832         (build_call_valist): Declare.
23833         (build_call_array): Declare.
23834         (call_expr_arg): Declare.
23835         (call_expr_argp): Declare.
23836         (call_expr_arglist): Declare.
23837         (fold_build_call_list): Declare.
23838         (fold_build_call_list_initializer): Declare.
23839         (fold_call_expr): Declare to replace fold_builtin.
23840         (fold_builtin_fputs): Update to agree with modified definition.
23841         (fold_builtin_strcpy): Likewise.
23842         (fold_builtin_strncpy): Likewise.
23843         (fold_builtin_memory_chk): Likewise.
23844         (fold_builtin_stxcpy_chk): Likewise.
23845         (fold_builtin_strncpy_chk): Likewise.
23846         (fold_builtin_next_arg): Likewise.
23847         (fold_build_call_expr): Declare.
23848         (fold_builtin_call_list): Declare.
23849         (fold_builtin_call_valist): Declare.
23850         (build_call_expr): Declare.
23851         (validate_arglist): Update to agree with modified definition.
23852         (tree_operand_length): New.
23853         (call_expr_arg_iterator): New.
23854         (init_call_expr_arg_iterator): New.
23855         (next_call_expr_arg): New.
23856         (first_call_expr_arg): New.
23857         (more_call_expr_args_p): New.
23858         (FOR_EACH_CALL_EXPR_ARG): New.
23859
23860         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
23861         and tcc_gimple_stmt.
23862         (tree_code_size): Update documentation.  Use sizeof (tree) rather
23863         than sizeof (char *).
23864         (tree_size): Likewise.  Add case for tcc_vl_exp.
23865         (tree_node_structure): Add case for tcc_vl_exp.
23866         (contains_placeholder_p): Likewise.
23867         (substitute_in_expr): Likewise.
23868         (substitute_placeholder_in_expr): Likewise.
23869         (stabilize_reference_1): Likewise.
23870         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
23871         to diagnose breakage of this interface for constructing CALL_EXPRs.
23872         (build_nt): Add similar assertion here.
23873         (build_nt_call_list): New.
23874         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
23875         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
23876         TREE_CODE_LENGTH.
23877         (get_callee_fndecl): Use new CALL_EXPR accessors.
23878         (tree_operand_check_failed): Change parameters to pass entire node
23879         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
23880         (process_call_operands): New.
23881         (build_vl_exp_stat): New.
23882         (build_call_list): New.
23883         (build_call_nary): New.
23884         (build_call_valist): New.
23885         (build_call_array): New.
23886         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23887         (call_expr_arglist): New.
23888
23889         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
23890         tcc_vl_exp instead of a fixed-size tcc_expression.
23891
23892         * doc/c-tree.texi (CALL_EXPR): Document new representation and
23893         accessors for CALL_EXPRs.
23894         (AGGR_INIT_EXPR): Likewise.
23895
23896 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23897             Brooks Moses  <brooks.moses@codesourcery.com>
23898             Lee Millward  <lee.millward@codesourcery.com>
23899
23900         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
23901         (expand_builtin_nonlocal_goto): Change parameter to be entire
23902         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
23903         (expand_builtin_prefetch): Likewise.
23904         (expand_builtin_classify_type): Likewise.
23905         (mathfn_built_in): Return NULL_TREE instead of 0.
23906         (expand_errno_check): Use new CALL_EXPR accessors.
23907         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
23908         Return NULL_RTX instead of 0.
23909         (expand_builtin_mathfn_2): Likewise.
23910         (expand_builtin_mathfn_3): Likewise.
23911         (expand_builtin_interclass_mathfn): Likewise.
23912         (expand_builtin_sincos): Likewise.
23913         (expand_builtin_cexpi): Likewise.
23914         (expand_builtin_int_roundingfn): Likewise.
23915         (expand_builtin_int_roundingfn_2): Likewise.
23916         (expand_builtin_pow): Likewise.
23917         (expand_builtin_powi): Likewise.
23918         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
23919         of arglist, fixing callers appropriately.  Use new CALL_EXPR
23920         accessors and constructors.  Return NULL_RTX instead of 0.
23921         (expand_builtin_strstr): Likewise.
23922         (expand_builtin_strchr): Likewise.
23923         (expand_builtin_strrchr): Likewise.
23924         (expand_builtin_strpbrk): Likewise.
23925         (expand_builtin_memcpy): Likewise.
23926         (expand_builtin_mempcpy): Likewise.
23927         (expand_builtin_mempcpy_args): New.
23928         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
23929         (expand_builtin_memmove_args): New.
23930         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
23931         (expand_movstr): Likewise.
23932         (expand_builtin_strcpy): Likewise.
23933         (expand_builtin_strcpy_args): New.
23934         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
23935         (expand_builtin_strncpy): Likewise.
23936         (expand_builtin_memset): Likewise.
23937         (expand_builtin_memset_args): New.
23938         (expand_builtin_bzero): Similarly to expand_builtin_memset.
23939         (expand_builtin_memcmp): Likewise.
23940         (expand_builtin_strcmp): Likewise.
23941         (expand_builtin_strncmp): Likewise.
23942         (expand_builtin_strcat): Likewise.
23943         (expand_builtin_strncat): Likewise.
23944         (expand_builtin_strspn): Likewise.
23945         (expand_builtin_strcspn): Likewise.
23946         (expand_builtin_args_info): Likewise.
23947         (expand_builtin_va_start): Likewise.
23948         (gimplify_va_arg_expr): Likewise.
23949         (expand_builtin_va_end): Likewise.
23950         (expand_builtin_va_copy): Likewise.
23951         (expand_builtin_frame_address): Likewise.
23952         (expand_builtin_alloca): Likewise.
23953         (expand_builtin_bswap): Likewise.
23954         (expand_builtin_unop): Likewise.
23955         (expand_builtin_fputs): Likewise.
23956         (expand_builtin_expect): Likewise.
23957         (expand_builtin_fabs): Likewise.
23958         (expand_builtin_copysign): Likewise.
23959         (expand_builtin_printf): Likewise.
23960         (expand_builtin_fprintf): Likewise.
23961         (expand_builtin_sprintf): Likewise.
23962         (expand_builtin_init_trampoline): Likewise.
23963         (expand_builtin_signbit): Likewise.
23964         (expand_builtin_fork_or_exec): Likewise.
23965         (expand_builtin_sync_operation): Likewise.
23966         (expand_builtin_compare_and_swap): Likewise.
23967         (expand_builtin_lock_test_and_set): Likewise.
23968         (expand_builtin_lock_release): Likewise.
23969         (expand_builtin): Likewise.
23970         (builtin_mathfn_code): Likewise.
23971
23972         (fold_builtin_constant_p): Pass call arguments individually instead
23973         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
23974         accessors and constructors.  Return NULL_TREE instead of 0.
23975         (fold_builtin_expect): Likewise.
23976         (fold_builtin_classify_type): Likewise.
23977         (fold_builtin_strlen): Likewise.
23978         (fold_builtin_nan): Likewise.
23979         (integer_valued_real_p): Likewise.
23980         (fold_trunc_transparent_mathfn): Likewise.
23981         (fold_fixed_mathfn): Likewise.
23982         (fold_builtin_cabs): Likewise.
23983         (fold_builtin_sqrt): Likewise.
23984         (fold_builtin_cbrt): Likewise.
23985         (fold_builtin_cos): Likewise.
23986         (fold_builtin_cosh): Likewise.
23987         (fold_builtin_tan): Likewise.
23988         (fold_builtin_sincos): Likewise.
23989         (fold_builtin_cexp): Likewise.
23990         (fold_builtin_trunc): Likewise.
23991         (fold_builtin_floor): Likewise.
23992         (fold_builtin_ceil): Likewise.
23993         (fold_builtin_round): Likewise.
23994         (fold_builtin_int_roundingfn): Likewise.
23995         (fold_builtin_bitop): Likewise.
23996         (fold_builtin_bswap): Likewise.
23997         (fold_builtin_logarithm): Likewise.
23998         (fold_builtin_hypot): Likewise.
23999         (fold_builtin_pow): Likewise.
24000         (fold_builtin_powi): Likewise.
24001         (fold_builtin_exponent): Likewise.
24002         (fold_builtin_memset): Likewise.
24003         (fold_builtin_bzero): Likewise.
24004         (fold_builtin_memory_op): Likewise.
24005         (fold_builtin_bcopy): Deleted; call site changed to invoke
24006         fold_builtin_memory_op directly.
24007         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
24008         (fold_builtin_strncpy): Likewise.
24009         (fold_builtin_memcmp): Likewise.
24010         (fold_builtin_strcmp): Likewise.
24011         (fold_builtin_strncmp): Likewise.
24012         (fold_builtin_signbit): Likewise.
24013         (fold_builtin_copysign): Likewise.
24014         (fold_builtin_isascii): Likewise.
24015         (fold_builtin_toascii): Likewise.
24016         (fold_builtin_isdigit): Likewise.
24017         (fold_builtin_fabs): Likewise.
24018         (fold_builtin_abs): Likewise.
24019         (fold_builtin_fmin_fmax): Likewise.
24020         (fold_builtin_carg): Likewise.
24021         (fold_builtin_classify): Likewise.
24022         (fold_builtin_unordered_cmp): Likewise.
24023
24024         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
24025         New functions split out from fold_builtin_1.
24026         (fold_builtin_n): New.
24027         (fold_builtin_varargs): New.
24028         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
24029         instead.
24030         (fold_call_expr): New.
24031         (build_function_call_expr): Rewrite to use new helper function.
24032         (fold_builtin_call_list): New.
24033         (build_call_expr): New.
24034         (fold_builtin_call_valist): New.
24035         (rewrite_call_expr): New.
24036         (validate_arg): New.
24037         (validate_arglist): Change parameter to be entire CALL_EXPR instead
24038         of an arglist.  Change return type to bool.  Use new CALL_EXPR
24039         accessors.
24040
24041         (fold_builtin_strstr): Pass call arguments individually instead
24042         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
24043         accessors and constructors.  Return NULL_TREE instead of 0.
24044         (fold_builtin_strchr): Likewise.
24045         (fold_builtin_strrchr): Likewise.
24046         (fold_builtin_strpbrk): Likewise.
24047         (fold_builtin_strcat): Likewise.
24048         (fold_builtin_strncat): Likewise.
24049         (fold_builtin_strspn): Likewise.
24050         (fold_builtin_strcspn): Likewise.
24051         (fold_builtin_fputs): Likewise.
24052         (fold_builtin_next_arg): Likewise.
24053         (fold_builtin_sprintf): Likewise.
24054
24055         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
24056         NULL_RTX instead of 0.
24057         (expand_builtin_memory_chk): Likewise.
24058         (maybe_emit_chk_warning): Likewise.
24059         (maybe_emit_sprintf_chk_warning): Likewise.
24060
24061         (fold_builtin_object_size): Pass call arguments individually instead
24062         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
24063         accessors and constructors.  Return NULL_TREE instead of 0.
24064         (fold_builtin_memory_chk): Likewise.
24065         (fold_builtin_stxcpy_chk): Likewise.
24066         (fold_builtin_strncpy_chk): Likewise.
24067         (fold_builtin_strcat_chk): Likewise.
24068         (fold_builtin_strcat_chk): Likewise.
24069         (fold_builtin_strncat_chk): Likewise.
24070         (fold_builtin_sprintf_chk): Likewise.
24071         (fold_builtin_snprintf_chk): Likewise.
24072         (fold_builtin_printf): Likewise.
24073         (fold_builtin_vprintf): Likewise.
24074
24075         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
24076         constructors.
24077         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
24078         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24079         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
24080         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
24081         (fold_unary): Likewise.
24082         (fold_binary): Likewise.
24083         (fold_ternary): Remove CALL_EXPR case, since they are no longer
24084         ternary expressions.
24085         (fold): Add logic for tcc_vl_exp.
24086         (fold_checksum_tree): Make it know about tcc_vl_exp.  Use
24087         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24088         (fold_build3_stat): Add assertion to flag broken interface for
24089         constructing CALL_EXPRs.
24090         (fold_build_call_list): New.
24091         (fold_build_call_list_initializer): New.
24092         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
24093         constructors.
24094         (fold_strip_sign_ops): Likewise.
24095
24096 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
24097             Brooks Moses  <brooks.moses@codesourcery.com>
24098             Lee Millward  <lee.millward@codesourcery.com>
24099
24100         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
24101         accessors and dump arguments explicitly.
24102
24103         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
24104         TREE_CODE_LENGTH.
24105         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
24106         explicitly.
24107         (print_call_name): Use new CALL_EXPR accessors.
24108
24109         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
24110         CALL_EXPR arguments explicitly instead of as a list.  Use
24111         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24112
24113         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
24114         (vrp_visit_stmt): Likewise.
24115
24116         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
24117         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
24118         TREE_CODE_LENGTH.
24119         (force_move_till_expr): Likewise.
24120
24121         * targhooks.c (default_external_stack_protect_fail): Use
24122         build_call_expr instead of build_function_call_expr.
24123         (default_hidden_stack_protect_fail): Likewise.
24124
24125         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
24126         build the call.
24127
24128         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
24129         and walk arguments explicitly.
24130
24131         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
24132         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24133         (expand_simple_operations): Likewise.
24134         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
24135
24136         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
24137         of TREE_CODE_LENGTH.
24138         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
24139
24140         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
24141         instead of TREE_CODE_LENGTH.
24142
24143         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
24144         (tree_ic_transform): Likewise.
24145         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
24146         parameter instead of arglist.  Fix callers.
24147         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
24148         (tree_stringops_transform): Likewise.
24149         (tree_indirect_call_to_profile): Likewise.
24150         (tree_stringops_values_to_profile): Likewise.
24151
24152         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
24153         (eliminate_tail_call): Likewise.
24154
24155         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
24156
24157         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24158         Use TREE_OPERAND_LENGTH and generalize to handle any number of
24159         operands.
24160         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
24161
24162         * omp-low.c (build_omp_barrier): Use build_call_expr.
24163         (lower_rec_input_clauses): Likewise.
24164         (lower_reduction_clauses): Likewise.
24165         (expand_parallel_call): Likewise.
24166         (maybe_catch_exception): Likewise.
24167         (expand_omp_for_generic): Likewise.
24168         (expand_omp_for_static_nochunk): Likewise.
24169         (expand_omp_sections): Likewise.
24170         (lower_omp_single_simple): Likewise.
24171         (lower_omp_single_copy): Likewise.
24172         (lower_omp_master): Likewise.
24173         (lower_omp_ordered): Likewise.
24174         (lower_omp_critical): Likewise.
24175
24176         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
24177         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
24178
24179         * tree-gimple.c (is_gimple_call_addr): Fix doc.
24180         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
24181         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
24182
24183         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
24184         and generalize to handle any number of operands.
24185         (chrec_contains_undetermined): Likewise.
24186         (tree_contains_chrecs): Likewise.
24187         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
24188
24189         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
24190
24191         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
24192         fold_call_expr instead of fold_builtin.
24193         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
24194         match declarations there.
24195         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
24196         updates.
24197
24198         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
24199         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24200
24201         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
24202         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
24203
24204         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
24205         accessors.
24206
24207         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
24208         (execute_cse_sincos): Use new CALL_EXPR accessors.
24209
24210         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
24211
24212         * gimple-low.c (lower_function_body): Use build_call_expr.
24213         (lower_builtin_setjmp): Likewise.
24214
24215         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
24216         (set_storage_via_libcall): Likewise.
24217         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
24218         instead of TREE_CODE_LENGTH.
24219         (expand_expr_real_1): Use new CALL_EXPR accessors.
24220
24221         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
24222         generalize to handle any number of operands.
24223         (TB_parent_eq): Likewise.
24224
24225         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
24226         (strip_builtin_expect): Likewise.
24227
24228         * function.c (gimplify_parameters): Use build_call_expr.
24229
24230         * tree-vectorizer.c (vect_is_simple_reduction): Use
24231         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24232
24233         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
24234         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
24235
24236         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
24237         iterators.
24238
24239         * gimplify.c (build_stack_save_restore): Use build_call_expr.
24240         (gimplify_decl_expr): Likewise.
24241         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
24242         Use new CALL_EXPR iterators.
24243         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
24244         (gimplify_modify_expr_to_memset): Likewise.
24245         (gimplify_variable_sized_compare): Likewise.
24246         (gimplify_omp_atomic_fetch_op): Likewise.
24247         (gimplify_omp_atomic_pipeline): Likewise.
24248         (gimplify_omp_atomic_mutex): Likewise.
24249         (gimplify_function_tree): Likewise.
24250
24251         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
24252         (call_expr_flags): Likewise.
24253         (expand_call): Likewise.
24254
24255         * except.c (expand_builtin_eh_return_data_regno): Pass entire
24256         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
24257         accessors.
24258
24259         * coverage.c (create_coverage): Use build_call_expr.
24260
24261         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
24262         (temp_call_expr_obstack): New.
24263         (pool_copy_list): Delete.
24264         (temp_copy_call_expr): New.
24265         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
24266         CALL_EXPR accessors.  Get rid of special goo for copying argument
24267         lists and use temp_copy_call_expr instead.
24268         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
24269         CALL_EXPR accessors.
24270         (create_expression_by_pieces): Likewise.  Use build_call_array
24271         to construct the result instead of fold_build3.
24272         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
24273         dealing with argument lists.
24274         (init_pre): Remove references to expression_node_pool and
24275         list_node_pool.  Init temp_call_expr_obstack instead.
24276         (fini_pre): Remove references to expression_node_pool and
24277         list_node_pool.
24278
24279         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
24280         and walk arguments explicitly instead of as a list.
24281
24282         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
24283         (mx_register_decls): Likewise.
24284         (mudflap_register_call): Likewise.
24285         (mudflap_finish_file): Likewise.
24286
24287         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
24288         (ipa_callsite_compute_param): Likewise.
24289
24290         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
24291         accessors and constructor.
24292
24293         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
24294         accessors and constructor.
24295         (convert_tramp_reference): Likewise.
24296         (convert_call_expr): Likewise.
24297         (finalize_nesting_tree_1): Likewise.
24298
24299         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
24300         accessors.
24301
24302         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
24303
24304         * tree-inline.c (initialize_inlined_parameters): Pass entire
24305         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
24306         accessors.
24307         (estimate_num_insns_1): Use new CALL_EXPR accessors.
24308         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
24309
24310         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
24311         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24312         (vectorizable_reduction): Likewise.
24313         (vectorizable_call): Use new CALL_EXPR iterators.
24314         (vectorizable_conversion): Use build_call_expr.
24315         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
24316         (vect_gen_widened_results_half): Use build_call_expr.
24317         (vect_setup_realignment): Likewise.
24318         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
24319
24320         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
24321         (pass_through_call): Likewise.
24322         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
24323         fold_builtin.
24324
24325         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
24326         (tree_gen_pow2_profiler): Likewise.
24327         (tree_gen_one_value_profiler): Likewise.
24328         (tree_gen_ic_func_profiler): Likewise.
24329         (tree_gen_average_profiler): Likewise.
24330         (tree_gen_ior_profiler): Likewise.
24331
24332         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
24333         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
24334         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
24335
24336         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
24337         of TREE_CODE_LENGTH.
24338
24339         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
24340         of TREE_CODE_LENGTH.
24341
24342         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
24343         constructor.
24344         (convert_to_integer): Likewise.
24345
24346         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
24347         accessors.
24348
24349 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
24350             Brooks Moses  <brooks.moses@codesourcery.com>
24351             Lee Millward  <lee.millward@codesourcery.com>
24352
24353         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
24354         accessors.
24355         * config/frv/frv.c (frv_expand_builtin): Likewise.
24356         * config/s390/s390.c (s390_expand_builtin): Likewise.
24357
24358         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
24359         (sparc_expand_builtin): Use new CALL_EXPR accessors.
24360
24361         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
24362         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
24363         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
24364         (ix86_expand_store_builtin): Likewise.
24365         (ix86_expand_unop_builtin): Likewise.
24366         (ix86_expand_unop1_builtin): Likewise.
24367         (ix86_expand_sse_compare): Likewise.
24368         (ix86_expand_sse_comi): Likewise.
24369         (ix86_expand_vec_init_builtin): Likewise.
24370         (ix86_expand_vec_ext_builtin): Likewise.
24371         (ix86_expand_vec_set_builtin): Likewise.
24372         (ix86_expand_builtin): Use new CALL_EXPR accessors.
24373
24374         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
24375         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
24376
24377         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
24378         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
24379         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
24380
24381         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
24382         build_call_expr.
24383         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
24384         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
24385         arglist.  Use new CALL_EXPR accessors.  Fix callers.
24386         (altivec_expand_abs_builtin): Likewise.
24387         (rs6000_expand_binop_builtin): Likewise.
24388         (altivec_expand_predicate_builtin): Likewise.
24389         (altivec_expand_lv_builtin): Likewise.
24390         (spe_expand_stv_builtin): Likewise.
24391         (altivec_expand_stv_builtin): Likewise.
24392         (rs6000_expand_ternop_builtin): Likewise.
24393         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
24394         (altivec_expand_st_builtin): Likewise.
24395         (altivec_expand_dst_builtin): Likewise.
24396         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
24397         arglist.  Use new CALL_EXPR accessors.  Fix callers.
24398         (altivec_expand_vec_set_builtin): Likewise.
24399         (altivec_expand_vec_ext_builtin): Likewise.
24400         (altivec_expand_builtin): Use new CALL_EXPR accessors.
24401         (spe_expand_builtin): Likewise.
24402         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
24403         arglist.  Use new CALL_EXPR accessors.  Fix callers.
24404         (spe_expand_evsel_builtin): Likewise.
24405         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
24406         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
24407
24408         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
24409         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
24410         (arm_expand_unop_builtin): Likewise.
24411         (arm_expand_builtin): Use new CALL_EXPR accessors.
24412
24413         * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
24414         accessors.
24415
24416         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
24417         CALL_EXPR instead of arglist.  Use new CALL_EXPR accessors.
24418         Fix callers.
24419         (bfin_expand_unop_builtin): Likewise.
24420         (bfin_expand_builtin): Use new CALL_EXPR accessors.
24421
24422 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
24423             Brooks Moses  <brooks.moses@codesourcery.com>
24424             Lee Millward  <lee.millward@codesourcery.com>
24425
24426         * c-semantics.c (build_stmt): Add internal diagnostic check.
24427
24428         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
24429         accessors.  Print arguments explicitly instead of as a list.
24430
24431         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
24432
24433         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
24434         (c_finish_omp_flish): Likewise.
24435
24436         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
24437         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
24438         instead of TREE_CODE_LENGTH.
24439         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
24440         (c_warn_unused_result): Likewise.
24441
24442 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24443
24444         PR c/26494
24445         * doc/invoke.texi (Warning Options): Remove
24446         -Werror-implicit-function-declaration.
24447         (Wimplicit-function-declaration): Update description.
24448         * opts.c (common_handle_option): Move handling of -Werror=* to...
24449         (enable_warning_as_error): ...here.
24450         * opts.h (enable_warning_as_error): Declare.
24451         * c-decl.c (implicit_decl_warning): Unless
24452         -Wno-implicit-function-declaration is given, emit a pedwarn if
24453         -std=c99 or emit a warning if -Wimplicit-function-declaration.
24454         * c.opt (Wimplicit-function-declaration): Replace
24455         mesg_implicit_function_declaration with
24456         warn_implicit_function_declaration.
24457         * c-opts.c (c_common_handle_option):
24458         -Werror-implicit-function-declaration is exactly equal as
24459         -Werror=implicit-function-declaration.
24460         (set_Wimplicit): Replace mesg_implicit_function_declaration with
24461         warn_implicit_function_declaration.
24462         (c_common_post_options): -Wimplict-function-declaration is enabled
24463         by default by -std=c99, otherwise is disabled by default.
24464         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
24465
24466 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
24467
24468         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
24469         DECL on the rhs to a DECL on the lhs for debug info purposes if the
24470         former is ignored but not the latter.
24471
24472 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
24473
24474         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
24475         is made and the reference doesn't use the alias set of its type,
24476         do not create the temporary using that type.
24477
24478 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
24479
24480         * jump.c: Remove prototypes for delete_computation and
24481         delete_prior_computation.
24482
24483 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
24484
24485         * jump.c (get_label_after): Delete.
24486         (get_label_before, delete_computation, delete_jump,
24487         delete_prior_computation, follow_jumps): Move...
24488         * reorg.c (delete_computation, delete_prior_computation): ... here...
24489         (get_label_before, delete_jump): ... making these static ...
24490         (follow_jumps): ... and simplifying this since it only runs after
24491         reload.
24492         * rtl.h (get_label_after, get_label_before, delete_jump,
24493         follow_jumps): Delete prototypes.
24494
24495 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
24496
24497         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
24498
24499 2007-02-15  Nick Clifton  <nickc@redhat.com>
24500
24501         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
24502         order to prevent it from being munged by the target.
24503
24504 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
24505
24506         * config/i386/i386.md: Remove misleading comment.
24507
24508 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24509
24510         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
24511         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
24512         invalid patterns.
24513
24514 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24515
24516         * tree-sra.c (instantiate_missing_elements): Canonicalize
24517         bit-field types.
24518         (sra_build_assignment): New.
24519         (generate_copy_inout, generate_element_copy,
24520         generate_element_zero, generate_one_element_init): Use it.
24521
24522 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24523
24524         * tree-sra.c (instantiate_missing_elements): Canonicalize
24525         bit-field types.
24526         (sra_build_assignment): New.
24527         (generate_copy_inout, generate_element_copy,
24528         generate_element_zero, generate_one_element_init): Use it.
24529
24530 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24531
24532         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
24533         limbo die nodes.
24534
24535 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
24536
24537         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
24538         types as aggregates not scalars.
24539         * function.c (assign_stack_temp_for_type): Likewise.
24540
24541 2007-02-14  Roger Sayle  <roger@eyesopen.com>
24542             Zdenek Dvorak  <dvorakz@suse.cz>
24543
24544         * tree-dump.c (dump_switch_p_1): Require exact match of the option
24545         name.
24546
24547 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
24548
24549         * passes.c (next_pass_1): Clear the next field of the copied
24550         pass structure.
24551
24552 2007-02-14  Richard Henderson  <rth@redhat.com>
24553
24554         * tree-sra.c (early_sra): New.
24555         (decl_can_be_decomposed_p): Deny va_list if early_sra.
24556         (tree_sra_early, pass_sra_early): New.
24557         * tree-pass.h (pass_sra_early): Declare.
24558         * passes.c (init_optimization_passes): Use it.
24559
24560 2007-02-14  Richard Guenther  <rguenther@suse.de>
24561
24562         * flags.h (issue_strict_overflow_warning): Convert to a macro.
24563
24564 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
24565
24566          PR tree-optimization/30771
24567         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
24568         also phi nodes.
24569         (vect_analyze_operations): Induction phis can now be marked as
24570         used_in_loop.
24571         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
24572         Update documentation accordingly.
24573
24574 2007-02-14  Nick Clifton  <nickc@redhat.com>
24575
24576         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
24577         most 3 arguments are supported.
24578         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
24579
24580 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
24581
24582         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
24583         Ensure dst->current is valid.
24584
24585 2007-02-13  Paul Brook  <paul@codesourcery.com>
24586
24587         * config.gcc: Add arm*-*-uclinux-*eabi.
24588         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
24589         (SUBTARGET_EXTRA_LINK_SPEC): Define.
24590         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
24591         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
24592         (LINK_SPEC): Define.
24593         (LIB_SPEC): Define.
24594         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
24595         register.
24596         * config/arm/uclinux-eabi.h: New file.
24597         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
24598         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
24599         based targets.
24600
24601 2007-02-13  Ian Lance Taylor  <iant@google.com>
24602
24603         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
24604         * flags.h (warn_strict_overflow): Declare.
24605         (enum warn_strict_overflow_code): Define.
24606         (issue_strict_overflow_warning): New static inline function.
24607         * opts.c (warn_strict_overflow): New variable.
24608         (common_handle_option): Handle OPT_Wstrict_overflow and
24609         OPT_Wstrict_overflow_.
24610         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
24611         OPT_Wall.
24612         * fold-const.c: Include intl.h.
24613         (fold_deferring_overflow_warnings): New static variable.
24614         (fold_deferred_overflow_warning): New static variable.
24615         (fold_deferred_overflow_code): New static variable.
24616         (fold_defer_overflow_warnings): New function.
24617         (fold_undefer_overflow_warnings): New function.
24618         (fold_undefer_and_ignore_overflow_warnings): New function.
24619         (fold_deferring_overflow_warnings_p): New function.
24620         (fold_overflow_warning): New static function.
24621         (make_range): Add strict_overflow_p parameter.  Change all
24622         callers.
24623         (extract_muldiv, extract_muldiv_1): Likewise.
24624         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
24625         tree_expr_nonnegative_p.
24626         (fold_negate_expr): Call fold_overflow_warning.
24627         (fold_range_test): Likewise.
24628         (fold_comparison): Likewise.
24629         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
24630         instead of tree_expr_nonnegative_p.
24631         (tree_expr_nonnegative_warnv_p): Rename from
24632         tree_expr_nonnegative_p, add strict_overflow_p parameter.
24633         (tree_expr_nonnegative_p): New function.
24634         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
24635         strict_overflow_p parameter.
24636         (tree_expr_nonzero_p): New function.
24637         * passes.c (verify_interpass_invariants): New static function.
24638         (execute_one_pass): Call it.
24639         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
24640         warnings.
24641         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
24642         (estimate_numbers_of_iterations): Likewise.
24643         (scev_probably_wraps_p): Likewise.
24644         * tree-ssa-ccp.c: Include "toplev.h".
24645         (evaluate_stmt): Defer fold overflow warnings until we know we are
24646         going to optimize.
24647         (struct fold_stmt_r_data): Add stmt field.
24648         (fold_stmt_r): Defer fold overflow warnings until we know we
24649         optimized.
24650         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
24651         (fold_stmt_inplace): Likewise.
24652         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
24653         (cleanup_control_expr_graph): Defer fold overflow warnings until
24654         we know we are going to optimize.
24655         * tree-cfg.c (fold_cond_expr_cond): Likewise.
24656         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
24657         Likewise.
24658         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
24659         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
24660         * tree-ssa-loop-manip.c (create_iv): Likewise.
24661         * c-typeck.c (build_conditional_expr): Likewise.
24662         (build_binary_op): Likewise.
24663         * tree-vrp.c (vrp_expr_computes_nonzero): Call
24664         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
24665         (extract_range_from_unary_expr): Likewise.
24666         * simplify-rtx.c (simplify_const_relational_operation): Warn when
24667         assuming that signed overflow does not occur.
24668         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
24669         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
24670         (fold_defer_overflow_warnings): Declare.
24671         (fold_undefer_overflow_warnings): Declare.
24672         (fold_undefer_and_ignore_overflow_warnings): Declare.
24673         (fold_deferring_overflow_warnings_p): Declare.
24674         (tree_expr_nonzero_warnv_p): Declare.
24675         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
24676         of warning options.
24677         (Warning Options): Document -Wstrict-overflow.
24678         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
24679         (tree-ssa-ccp.o): Likewise.
24680         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
24681         (fold-const.o): Depend on intl.h.
24682
24683 2007-02-13  Ian Lance Taylor  <iant@google.com>
24684
24685         PR middle-end/30751
24686         * lower-subreg.c (resolve_simple_move): Decompose subregs in
24687         addresses.
24688
24689 2007-02-13  Stuart Hastings  <stuart@apple.com>
24690
24691         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
24692
24693 2007-02-13  Richard Henderson  <rth@redhat.com>
24694
24695         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
24696         handled_component_p before looking for the indirect_ref.
24697
24698 2007-02-13  Richard Henderson  <rth@redhat.com>
24699
24700         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
24701         remove flags clobber.
24702         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
24703         (bswaphi_lowpart): New.
24704         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
24705         remove TARGET_BSWAP test.  Delete expander of the same name.
24706
24707         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
24708         (expand_unop): Use them.
24709
24710 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
24711
24712         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
24713         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
24714         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
24715         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
24716         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
24717         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
24718         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
24719         assembler dialect choice from asm templates.
24720
24721 2007-02-12  Richard Henderson  <rth@redhat.com>
24722
24723         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
24724         (fixuns_trunc<SSEMODEF>si2): Use it.
24725         * config/i386/sse.md (vec_setv4sf_0): Export.
24726         * config/i386/i386.c (ix86_build_const_vector): Export.
24727         (ix86_split_convert_uns_si_sse): Rename from
24728         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
24729         * config/i386/i386-protos.h: Update.
24730
24731 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24732
24733         PR c/29521
24734         * c-typeck.c (c_finish_return): Improve warning message.
24735
24736 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24737
24738         * alias.c (find_symbolic_term): Delete unused function.
24739
24740 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
24741
24742         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
24743         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
24744         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
24745
24746 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24747
24748         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
24749         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
24750         the function, temporarily point the debug interface to the null one.
24751
24752 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24753
24754         * dwarf2out.c (round_up_to_align): New static function.
24755         (field_byte_offset): Use it to round the offset.
24756
24757 2007-02-12  Richard Henderson  <rth@redhat.com>
24758
24759         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
24760         (inswl_const): Export.
24761
24762 2007-02-12  Richard Henderson  <rth@redhat.com>
24763
24764         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
24765         result mode of the libcall, convert back to outmode.
24766
24767 2007-02-12  Roger Sayle  <roger@eyesopen.com>
24768
24769         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
24770         (bswapdi2): New define_expand to implement 32-bit implementation.
24771
24772 2007-02-12  Nick Clifton  <nickc@redhat.com>
24773
24774         * doc/invoke.texi (Overall Options): Document --help=.
24775         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
24776         (cc1_options): Pass --help= on to cc1.
24777         (display_help): Add description of --help=.
24778         (process_command): Add code to handle --help=.  Allow translated
24779         --help and --target-help switches to be passed on to compiler
24780         sub-process.
24781         (main): Remove unused if statement.
24782         * opts.c (columns): Remove.
24783         (LEFT_COLUMN): Define.
24784         (wrap_help): Add columns argument.
24785         (print_filtered_help): Change parameters to be an include bitmask,
24786         an exclude bitmask, an any bitmask and the column width.  Move the
24787         code to display the params list here.  Add code to display the
24788         status of options rather than their descriptions if the quiet flag
24789         is not active.
24790         (print_specific_help): Change parameters to be an include bitmask,
24791         an exclude bitmask and an any bitmask.  Move code to look up the
24792         column width here.  Decide upon the title for an options listing.
24793         (common_handle_options): Add code to handle --help=.  Adapt code
24794         for --help and --target-help to use the revised form of the
24795         print_specific_help function.
24796         (print_help): Delete.
24797         (print_param_help): Delete.
24798         (print_switch): Delete.
24799         * opts.h (cl_lang_count): Add prototype.
24800         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
24801         CL_MAX_OPTION_CLASS): New defines.
24802         * optc-gen.awk: Add construction of cl_lang_count.
24803         * c.opt: Add Warning attribute to warning options and Optimization
24804         attribute to optimization options.
24805         * common.opt: Likewise.
24806         Add --help=.
24807         Add -fhelp and -ftarget-help as aliases for the transformed --help
24808         and --target-help options.
24809         * opt-functions.awk: Add code to handle Warning and Optimization
24810         attributes.
24811
24812 2007-02-12  Richard Henderson  <rth@redhat.com>
24813
24814         * config/alpha/constraints.md: New file.
24815         * config/alpha/alpha.c: Include tm-constrs.h.
24816         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
24817         alpha_extra_constraint): Remove.
24818         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
24819         * config/alpha/alpha-protos.h: Update.
24820         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
24821         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
24822         (EXTRA_CONSTRAINT): Remove.
24823         * config/alpha/alpha.md: Include constraints.md.
24824         (adddi splitter): Use satisfies_constraint_*.
24825         * config/alpha/predicates.md (add_operand): Likewise.
24826         (sext_add_operand, addition_operation): Likewise.
24827
24828 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
24829
24830         PR tree-optimization/29145
24831         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
24832         in our handling of restrict qualified pointers.
24833
24834 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24835
24836         PR middle-end/7651
24837         * doc/invoke.texi (Wunused-value): Update description.
24838         (Wextra): Delete item.
24839         * opts.c (set_Wextra): Don't use the value of Wextra to set the
24840         value of Wunused-value.
24841         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
24842         (c_finish_stmt_expr): Don't check extra_warnings.
24843         (emit_side_effect_warnings): The caller is responsible to check
24844         warn_unused_value.
24845
24846 2007-02-11  Roger Sayle  <roger@eyesopen.com>
24847             Matt Thomas  <matt@3am-software.com>
24848
24849         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
24850
24851 2007-02-11  Roger Sayle  <roger@eyesopen.com>
24852
24853         * simplify-rtx.c (simplify_relational_operation_1): Optimize
24854         comparisons of POPCOUNT against zero.
24855         (simplify_const_relational_operation): Likewise.
24856
24857 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24858
24859         * doc/invoke.texi (Wextra): Delete outdated paragraph.
24860
24861 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24862
24863         * dwarf2out.c (root_type): Delete unused function.
24864
24865 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24866
24867         * genattrtab.c (contained_in_p): Delete unused function.
24868         (write_expr_attr_cache): Likewise.
24869
24870 2007-02-11  Jan Hubicka  <jh@suse.cz>
24871
24872         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
24873         previous patch.
24874
24875 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
24876
24877         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
24878         to add the REG_EQ* note.
24879         * see.c (see_merge_one_use_extension): Likewise.
24880         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
24881         turn REG_EQUAL notes into REG_EQUIV notes if the target
24882         register may have more than one set.
24883         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
24884         * gcse.c (try_replace_reg): Likewise.
24885         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
24886         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
24887         more than one REG_EQUIV note.
24888         * reload1.c (gen_reload): Use set_unique_reg_note.
24889
24890 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
24891
24892         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
24893         (ix86_builtin_conversion): New function.
24894
24895 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
24896
24897         PR target/29487
24898         * tree.h (DECL_REPLACEABLE_P): New macro.
24899         * except.c (set_nothrow_function_flags): Likewise.
24900
24901 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
24902             Ira Rosen  <irar@il.ibm.com>
24903             Dorit Nuzman  <dorit@il.ibm.com>
24904
24905         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
24906         * targhooks.c (default_builtin_vectorized_conversion): New.
24907         * targhooks.h (default_builtin_vectorized_function): New declaration.
24908         * target.h (struct vectorize): Add builtin_conversion field.
24909         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
24910         stmt_vec_info_type value.
24911         (vectorizable_conversion): New declaration.
24912         * tree-vect-analyze.c (vect_analyze_operations): Add
24913         vectorizable_conversion call.
24914         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
24915         * tree-vect-transform.c (vectorizable_conversion): New function.
24916         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
24917         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
24918         mode.
24919         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
24920         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
24921         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
24922         or ALTIVEC_BUILTIN_VCFSX.
24923
24924 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24925
24926         PR target/30634
24927         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
24928         CONST_DOUBLE and operand 0 is a hard register.
24929         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
24930         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
24931         is a hard floating-point register.
24932
24933 2007-02-10  Richard Henderson  <rth@redhat.com>
24934             Jakub Jelinek  <jakub@redhat.com>
24935             Alexandre Oliva  <aoliva@redhat.com>
24936
24937         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
24938         * builtin-types.def (BT_WORD): Make unsigned.
24939         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
24940         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
24941         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
24942         * c-decl.c (grokdeclarator): Don't error if !have_tls.
24943         * c-parser.c (c_parser_omp_threadprivate): Likewise.
24944         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
24945         emulated tls.
24946         * expr.c (emutls_var_address): New.
24947         (expand_expr_real_1): Expand emulated tls.
24948         (expand_expr_addr_expr_1): Likewise.
24949         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
24950         * output.h (emutls_finish): Declare.
24951         * toplev.c (compile_file): Call it.
24952         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
24953         address before wrapping in CONST.
24954         * varasm.c (emutls_htab, emutls_object_type): New.
24955         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
24956         (get_emutls_object_name, get_emutls_object_type): New.
24957         (get_emutls_init_templ_addr, emutls_decl): New.
24958         (emutls_common_1, emutls_finish): New.
24959         (assemble_variable): When emulating tls, swap decls; generate
24960         constructor for the emutls objects.
24961         (do_assemble_alias): When emulating tls, swap decl and target name.
24962         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
24963         for emulated tls.
24964         * varpool.c (decide_is_variable_needed): Look at force_output.
24965         Recurse for emulated tls.
24966         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
24967         with decide_is_variable_needed.
24968         * emutls.c: New file.
24969         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
24970         tls_object for real tls.
24971
24972 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24973
24974         PR rtl-optimization/29599
24975         * reload1.c (eliminate_regs_in_insn): Take the destination
24976         mode into account when computing the offset.
24977
24978 2007-02-09  Stuart Hastings  <stuart@apple.com>
24979             Richard Henderson  <rth@redhat.com>
24980
24981         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
24982         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
24983         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
24984         fixuns_truncdfhi2): New.
24985         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
24986         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
24987         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
24988         (floatunssidf2): Allow nonimmediate source.
24989         * config/i386/sse.md (movdi_to_sse): New.
24990         (vec_concatv2di): Drop '*'.
24991         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
24992         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
24993         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
24994         New.
24995         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
24996         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
24997         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
24998         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
24999         (ix86_build_signbit_mask): Fix decl of v, refactor to call
25000         ix86_build_const_vector.
25001         (x86_emit_floatuns): Rewrite.
25002
25003 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25004
25005         * genautomata.c (longest_path_length): Delete unused function.
25006         (struct state): Delete unused longest_path_length.
25007         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
25008         (get_free_state): Delete unused.
25009
25010 2007-02-09  Jan Hubicka  <jh@suse.cz>
25011
25012         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
25013         * doc/invoke.texi (inline-unit-growth): Update default value.
25014
25015         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
25016         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
25017         (rebuild_cgraph_edges): Likewise.
25018         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
25019         (dump_cgraph_node): Dump frequencies.
25020         (cgraph_clone_edge): Add frequency scales.
25021         (cgraph_clone_node): Add freuqnecy.
25022         * cgraph.h (cgraph_edge): Add freuqnecy argument.
25023         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
25024         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
25025         * tree-pass.h (TODO_rebuild_frequencies): New constant.
25026         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
25027         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
25028         (save_inline_function_body): Likewise.
25029         * ipa-inline.c: inluce rtl.h
25030         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
25031         (cgraph_edge_badness): Use frequencies.
25032         (cgraph_decide_recursive_inlining): Update clonning.
25033         (cgraph_decide_inlining_of_small_function): Dump frequency.
25034         * predict.c (estimate_bb_frequencies): Export.
25035         * predict.h (estimate_bb_frequencies): Declare.
25036         * tree-inline.c (copy_bb): Watch overflows.
25037         (expand_call_inline): Update call of cgraph_create_edge.
25038         (optimize_inline_calls): Use TODO flags to update frequnecies.
25039         * passes.h: Include predict.h
25040         (init_optimization_passes): Move profile ahead.
25041         (execute_function_todo): Handle TODO_rebuild_frequencies.
25042
25043 2007-02-09  Roger Sayle  <roger@eyesopen.com>
25044
25045         * config/alpha/alpha.c (emit_insxl): Force the first operand of
25046         the insbl or inswl pattern into a register.
25047
25048 2007-02-09  Roger Sayle  <roger@eyesopen.com>
25049
25050         * config/ia64/ia64.md (bswapdi2): New define_insn.
25051
25052 2007-02-09  Richard Henderson  <rth@redhat.com>
25053
25054         * config/i386/constraints.md (Ym): New constraint.
25055         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
25056         (movdi_1_rex64): Split sse and xmm general register moves from
25057         memory move alternatives.  Use conditional register constraints.
25058         (movsf_1, movdf_integer): Likewise.
25059         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
25060         (movdf_integer_rex64): New.
25061         (pushsf_rex64): Fix output constraints.
25062         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
25063         (sse2_stored): Likewise.
25064         (sse2_storeq_rex64): New.
25065         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
25066         amd and not generic.
25067         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
25068         for optimize_size.  Remove SF/DFmode hack.
25069
25070 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
25071
25072         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
25073         (bit_SSE4a): New.
25074
25075 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
25076             Richard Sandiford  <richard@codesourcery.com>
25077
25078         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
25079         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
25080         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
25081         m68k/t-mlib to tmake_file.
25082         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
25083         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
25084         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
25085         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
25086         variable is not empty, add t-$m68k_arch_family to tmake_file.
25087         Add t-mlibs to tmake_file.
25088         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
25089         * config/m68k/t-cf: New file.
25090         * config/m68k/t-m68k: Likewise.
25091         * config/m68k/t-mlibs: Likewise.
25092         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
25093         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
25094         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
25095         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
25096         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
25097         Delete.
25098         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
25099         (INSTALL_LIBGCC): Delete.
25100         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
25101         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
25102         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
25103         (M68K_MLIB_CPU): Define.
25104         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
25105         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
25106         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
25107
25108 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
25109             Richard Guenther  <rguenther@suse.de>
25110
25111         PR middle-end/23361
25112         * fold-const.c (fold_comparison): Handle obfuscated comparisons
25113         against INT_MIN/INT_MAX.
25114         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
25115         file if a loop is removed.
25116
25117 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
25118
25119         * calls.c (store_one_arg): Pass correct alignment to
25120         emit_push_insn for non-BLKmode values.
25121         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
25122         unaligned stack slot via a suitably aligned slot.
25123
25124 2007-02-08  DJ Delorie  <dj@redhat.com>
25125
25126         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
25127         warnings.
25128         (legal_subregs): Use unsigned char, make const.
25129         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
25130
25131 2007-02-08  Paul Brook  <paul@codesourcery.com>
25132
25133         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
25134         special interworking needed.
25135
25136 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
25137
25138         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
25139         conditional to __SSE2__.
25140         (Entries below should have been added to first ChangeLog
25141         entry for amdfam10 dated 2007-02-05)
25142         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
25143         defined.
25144         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
25145         defined.
25146         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
25147         defined.
25148
25149 2007-02-08  DJ Delorie  <dj@redhat.com>
25150
25151         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
25152         * config/m32c/m32c.c (legal_subregs): New.
25153         (m32c_illegal_subreg_p): New.
25154         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
25155         unsupported subregs of hard regs.
25156
25157 2007-02-08  Jan Hubicka  <jh@suse.cz>
25158
25159         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
25160         the same one; always update histograms.
25161
25162 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
25163
25164         * passes.c (init_optimization_passes): Tidy comment.
25165
25166 2007-02-08  Roger Sayle  <roger@eyesopen.com>
25167
25168         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
25169         strip zero_extend, bswap and rotates from POCOUNT's argument.
25170         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
25171         zero_extend and rotates from PARITY's argument.
25172         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
25173         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
25174         of an integer constant at compile-time.
25175
25176 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
25177
25178         PR 30562
25179         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
25180         Update all users.
25181         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
25182         users.
25183         (init_alias_info):
25184         * tree-ssa-live.c (remove_unused_locals): Do not remove
25185         TREE_ADDRESSABLE variables.
25186         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
25187         * tree-ssa-operands.c (add_virtual_operand): Remove argument
25188         FOR_CLOBBER.  Update all users.
25189         If VAR has an associated alias set, add a virtual operand for
25190         it if no alias is found to conflict with the memory reference.
25191
25192 2007-02-07  Jan Hubicka  <jh@suse.cz>
25193             Robert Kidd <rkidd@crhc.uiuc.edu>
25194
25195         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
25196
25197 2007-02-07  Ian Lance Taylor  <iant@google.com>
25198
25199         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
25200
25201 2007-02-07  Roger Sayle  <roger@eyesopen.com>
25202
25203         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
25204         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
25205         tablejumpdi, movsi_to_cr_one): Remove constraints from
25206         define_expand's match_operands.
25207
25208 2007-02-07  Roger Sayle  <roger@eyesopen.com>
25209
25210         * global.c (compute_regsets): Move declatation of "i" inside of
25211         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
25212
25213 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
25214
25215         PR c++/30703
25216         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
25217         of INDIRECT_REF <RESULT_DECL>.
25218
25219         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
25220
25221 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
25222             Kaz Kojima  <kkojima@gcc.gnu.org>
25223
25224         PR target/29746
25225         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
25226         properly.
25227         (sh_initialize_trampoline): Add parentheses to avoid a warning.
25228
25229 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
25230
25231         * doc/loop.texi: Document possibility not to perform disambiguation
25232         of loops with multiple latches.
25233         * cfgloopmanip.c (alp_enum_p): Removed.
25234         (add_loop): Handle subloops.  Use get_loop_body_with_size.
25235         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
25236         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
25237         the new forwarder block.
25238         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
25239         Handle the case latch is NULL.
25240         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
25241         modifications when marking loop exits.
25242         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
25243         be modified.
25244         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
25245         disambiguate_loops_with_multiple_latches.
25246         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
25247         before fix_loop_structure.
25248         * cfgloop.c: Include pointer-set.h and output.h.
25249         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
25250         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
25251         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
25252         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
25253         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
25254         disambiguate_multiple_latches, get_loop_body_with_size,
25255         disambiguate_loops_with_multiple_latches): New functions.
25256         (flow_loop_dump): Dump multiple latch edges.
25257         (flow_loop_nodes_find): Handle loops with multiple latches.
25258         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
25259         (glb_enum_p): Modified.
25260         (get_loop_body): Use get_loop_body_with_size.
25261         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
25262         (AVOID_CFG_MODIFICATIONS): New constant.
25263         (disambiguate_loops_with_multiple_latches, add_loop,
25264         get_loop_body_with_size): Declare.
25265         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
25266
25267 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
25268
25269         PR inline-asm/28686
25270         * global.c (compute_regsets): New function.
25271         (global_alloc): Refactored ELIMINABLE_REGSET
25272         and NO_GLOBAL_ALLOC_REGS computation out.
25273         (rest_of_handle_global_alloc): Call compute_regsets()
25274         for non-optimizing case.
25275
25276 2007-02-06  Richard Henderson  <rth@redhat.com>
25277
25278         * config/i386/constraints.md (Y2): Rename from Y.
25279         (Yi): New constraint.
25280         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
25281         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
25282         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
25283         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
25284         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
25285         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
25286         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
25287         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
25288         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
25289         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
25290         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
25291         vec_extractv2si_1): Change Y constraints to Y2.
25292         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
25293         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
25294         Change Y constraints to Y2.
25295         (sse2_loadld): Change Y constraints to x.
25296
25297 2007-02-06  Roger Sayle  <roger@eyesopen.com>
25298
25299         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
25300         (parity<mode>2): New define_expand using rs6000_emit_parity.
25301         * config/rs6000/rs6000.c (rs6000_emit_popcount,
25302         rs6000_emit_parity): New functions.
25303         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
25304         rs6000_emit_parity): Prototype here.
25305
25306 2007-02-06  Ian Lance Taylor  <iant@google.com>
25307
25308         * lower-subreg.c (simple_move_operand): Reject CONST.
25309         (resolve_clobber): Call validate_change rather than directly
25310         assigning to XEXP (pat, 0).
25311
25312 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
25313
25314         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
25315         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
25316         (tree-cfg.o): Remove hashtab.h dependency.
25317
25318         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
25319         (struct ivopts_data): Change niters to pointer_map_t.
25320         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
25321         (niter_for_exit): Create pointer_map on demand.  Change for
25322         pointer_map API.
25323         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
25324         (free_loop_data): Destroy data->niters if created and reset field.
25325         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
25326         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
25327
25328         * tree-ssa-reassoc.c: Include pointer-set.h.
25329         (bb_rank): Change to long *.
25330         (operand_rank): Change to pointer_map_t.
25331         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
25332         (insert_operand_rank): Accept long.
25333         (operand_entry_hash, operand_entry_eq): Remove.
25334         (get_rank): Return long.  Adjust for changes above.
25335         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
25336         and operand_rank.
25337         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
25338
25339         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
25340         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
25341         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
25342         is not NULL.
25343         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
25344         directly since it cannot be NULL.
25345         (get_vi_for_tree): Rewrite for pointer_map API.
25346         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
25347         (init_alias_vars): Create vi_for_tree as pointer_map.
25348         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
25349
25350         * tree-cfg.c: Don't include hashtab.h.
25351         (edge_to_cases): Declare as pointer_map.
25352         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
25353         Delete.
25354         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
25355         (start_recording_case_labels): Create edge_to_cases as pointer_map.
25356         (end_recoding_case_labels): Cleanup edge_to_cases manually before
25357         destroying it.
25358         (record_switch_edge): Delete.
25359         (get_cases_for_edge): Adjust for pointer_map API, inline
25360         record_switch_edge (rewritten for new API), remove goto.
25361
25362 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
25363
25364         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
25365         * tree-nested.c: Include pointer-set.h.
25366         (var_map_elt, var_map_eq, var_map_hash): Delete.
25367         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
25368         to pointer_map_t's.
25369         (nesting_info_bitmap_obstack): New.
25370         (lookup_field_for_decl): Adjust for pointer_map API.
25371         (lookup_tramp_for_decl): Adjust for pointer_map API.
25372         (get_nonlocal_debug_decl): Adjust for pointer_map API.
25373         (get_local_debug_decl): Adjust for pointer_map API.
25374         (convert_nl_goto_reference): Adjust for pointer_map API.
25375         (convert_nl_goto_receiver): Adjust for pointer_map API.
25376         (create_nesting_tree): Create outside GGC space.  Create bitmap on
25377         the new obstack.  Create field_map and var_map as pointer_maps.
25378         (free_nesting_tree): Adjust for changes to create_nesting_tree.
25379         (root): Delete.
25380         (lower_nested_functions): Move root here, no need to NULL it.
25381         Initialize and release the obstack.
25382
25383 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
25384
25385         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
25386         Remove prototypes and make them non-static.
25387         (struct tree_int_map): Remove.
25388         * tree.h (struct tree_int_map): Move here, turning TO into an
25389         unsigned int.
25390         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
25391
25392         * tree.h (TREE_COMPLEXITY): Remove.
25393         (struct tree_exp): Remove complexity field.
25394         * tree.c (build1_stat): Don't set it.
25395
25396 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
25397             Victor Kaplansky  <victork@il.ibm.com>
25398
25399         * tree-vectorizer.c (vect_is_simple_use): Support induction.
25400         (vect_is_simple_reduction): Support reduction with induction as
25401         one of the operands.
25402         (vect_is_simple_iv_evolution): Fix formatting.
25403         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
25404         formatting.  Don't mark induction phis for vectorization.
25405         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
25406         * tree-vect-transform.c (get_initial_def_for_induction): New function.
25407         (vect_get_vec_def_for_operand): Support induction.
25408         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
25409         induction case.
25410         (vectorizable_reduction): Support reduction with induction as one of
25411         the operands.
25412         (vectorizable_type_demotion): Use def-type of stmt argument rather
25413         than dummy def-type.
25414
25415         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
25416         flag_tree_scev_cprop.
25417         * common.opt (tree-scev-cprop): New flag.
25418
25419         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
25420         call to vect_get_new_vect_var.
25421
25422 2007-02-06  Ira Rosen  <irar@il.ibm.com>
25423
25424         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
25425         vectype is not NULL.
25426         (vect_pattern_recog_1): Likewise.
25427
25428 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25429
25430         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
25431         (fold_negate_expr): Likewise.
25432
25433 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
25434
25435         PR debug/30189
25436         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
25437         even if cv-qualification is the same.
25438
25439 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
25440
25441         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
25442         __enable_execute_stack on completion.
25443
25444 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25445
25446         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
25447         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
25448         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
25449         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
25450         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
25451         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
25452         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
25453         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
25454
25455 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25456
25457         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
25458         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
25459         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
25460         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
25461         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
25462         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
25463         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
25464         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
25465         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
25466         umuldi3_highpart_rex64, umulsi3_highpart_insn,
25467         umulsi3_highpart_zext, smuldi3_highpart_rex64,
25468         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
25469         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
25470         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
25471         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
25472         sqrtextenddfxf2_i387): Added amdfam10_decode.
25473
25474         * config/i386/athlon.md (athlon_idirect_amdfam10,
25475         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
25476         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
25477         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
25478         athlon_ivector_store_amdfam10): New define_insn_reservation.
25479         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
25480         amdfam10.
25481
25482 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25483
25484         * config/i386/athlon.md (athlon_call_amdfam10,
25485         athlon_pop_amdfam10, athlon_lea_amdfam10): New
25486         define_insn_reservation.
25487         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
25488         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
25489         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
25490
25491 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25492
25493         * config/i386/athlon.md (athlon_sseld_amdfam10,
25494         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
25495         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
25496
25497 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25498
25499         * config/i386/athlon.md (athlon_sseins_amdfam10): New
25500         define_insn_reservation.
25501         * config/i386/i386.md (sseins): Added sseins to define_attr type
25502         and define_attr unit.
25503         * config/i386/sse.md: Set type attribute to sseins for insertq
25504         and insertqi.
25505
25506 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25507
25508         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
25509         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
25510         ssecomi_load_amdfam10, ssecomi_amdfam10,
25511         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
25512         define_insn_reservation.
25513         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
25514
25515 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25516
25517         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
25518         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
25519         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
25520         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
25521         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
25522         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
25523         define_insn_reservation.
25524
25525         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
25526         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
25527         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
25528         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
25529         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
25530
25531 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25532
25533         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
25534         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
25535         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
25536         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
25537         athlon_ssemul_load_k8): Added amdfam10.
25538
25539 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25540
25541         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
25542         (x86_sse_unaligned_move_optimal): New variable.
25543
25544         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
25545         m_AMDFAM10.
25546         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
25547         for unaligned vector SSE double/single precision loads for AMDFAM10.
25548
25549 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25550
25551         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
25552         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
25553         Define TARGET_CPU_DEFAULT_amdfam10.
25554         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
25555         (processor_type): Add PROCESSOR_AMDFAM10.
25556
25557         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
25558         processor_type in config/i386/i386.h.
25559         Enable imul peepholes for TARGET_AMDFAM10.
25560
25561         * config.gcc: Add support for --with-cpu option for amdfam10.
25562
25563         * config/i386/i386.c (amdfam10_cost): New variable.
25564         (m_AMDFAM10): New macro.
25565         (m_ATHLON_K8_AMDFAM10): New macro.
25566         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
25567         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
25568         x86_promote_QImode, x86_integer_DFmode_moves,
25569         x86_partial_reg_dependency, x86_memory_mismatch_stall,
25570         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
25571         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
25572         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
25573         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
25574         Enable/disable for amdfam10.
25575         (override_options): Add amdfam10_cost to processor_target_table.
25576         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
25577         processor_alias_table.
25578         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
25579         (ix86_adjust_cost): Add code for amdfam10.
25580
25581 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25582
25583         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
25584         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
25585         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
25586         * config/i386/i386.h: Add builtin definition for SSE4A.
25587         * config/i386/i386.md: Add support for ABM instructions
25588         (popcnt and lzcnt).
25589         * config/i386/sse.md: Add support for SSE4A instructions
25590         (movntss, movntsd, extrq, insertq).
25591         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
25592         Add -march=amdfam10 flag.
25593         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
25594         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
25595         and amdfam10.
25596         * doc/extend.texi: Add documentation for SSE4A builtins.
25597
25598 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
25599
25600         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
25601
25602 2007-02-05  Richard Guenther  <rguenther@suse.de>
25603
25604         * tree-vectorizer.h (vectorizable_function): Add argument type
25605         argument, change return type.
25606         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
25607         * tree-vect-transform.c (vectorizable_function): Handle extra
25608         argument, return vectorized function decl.
25609         (build_vectorized_function_call): Remove.
25610         (vectorizable_call): Handle calls with result and argument types
25611         differing.  Handle loop vectorization factor correctly.
25612         * targhooks.c (default_builtin_vectorized_function): Adjust for
25613         extra argument.
25614         * targhooks.h (default_builtin_vectorized_function): Likewise.
25615         * target.h (builtin_vectorized_function): Add argument type
25616         argument.
25617         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
25618         extra argument, allow vectorizing of lrintf.
25619         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
25620         documentation of target hook.
25621
25622 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
25623
25624         PR target/30665
25625         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
25626         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
25627         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
25628
25629 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25630
25631         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
25632         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
25633         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
25634         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
25635         before canonicalizing sincos to cexpi.
25636         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
25637
25638 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25639
25640         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
25641         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
25642         (alpha_init_builtins): Use alpha_add_builtins to process tables.
25643
25644 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25645
25646         * mips-tfile.c (initialize_init_file): Correct endianness test.
25647
25648 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
25649
25650         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
25651         the 'y' constraint.
25652
25653 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
25654
25655         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
25656         saves in a PARALLEL before the register assignments.
25657
25658 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
25659
25660         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
25661         DWARF_FRAME_RETURN_COLUMN to be a general register.
25662         * dwarf2out.c (init_return_column_size): New function, split from...
25663         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
25664         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
25665         to be nongeneral registers.
25666         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
25667         integer registers.
25668         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
25669         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
25670
25671 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
25672
25673         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
25674
25675 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
25676
25677         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
25678         (remove_path): Use can_remove_branch_p and remove_branch instead
25679         of loop_delete_branch_edge.
25680         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
25681         (tree_transform_and_unroll_loop): Remove dead branches immediately.
25682         Update profile using scale_dominated_blocks_in_loop.
25683         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
25684         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
25685         (can_remove_branch_p, remove_branch): Declare.
25686         * tree-cfg.c (tree_can_remove_branch_p): New function.
25687         (tree_cfg_hooks): Add tree_can_remove_branch_p.
25688         * cfgrtl.c (rtl_can_remove_branch_p): New function.
25689         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
25690
25691 2007-02-05  Jan Hubicka  <jh@suse.cz>
25692
25693         PR middle-end/30696
25694         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
25695         nodes in cgraph, don't remove offline copy of the function.
25696
25697 2007-02-04  Jan Hubicka  <jh@suse.cz>
25698
25699         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
25700         vectors might cause maybe_lookup_element_for_expr to be called
25701         on non-sra-candidate.
25702
25703 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25704
25705         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
25706         config/bfin/bfin.md, config/bfin/predicates.md: Follow
25707         spelling conventions.
25708
25709 2007-02-04  Richard Guenther  <rguenther@suse.de>
25710
25711         PR middle-end/30636
25712         * fold-const.c (try_move_mult_to_index): Make sure to not
25713         overflow one dimension of a multi-dimensional array access.
25714
25715 2007-02-04  Jan Hubicka  <jh@suse.cz>
25716
25717         * passes.c (init_optimization_passes): Reindent.
25718
25719 2007-02-04  Jan Hubicka  <jh@suse.cz>
25720             Eric Botcazou  <ebotcazou@adacore.com>
25721
25722         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
25723         (execute_fixup_cfg): Break out the abnormal goto code.
25724         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
25725         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
25726         (optimize_inline_calls): Call make_nonlocal_label_edges.
25727
25728 2007-02-04  Jan Hubicka  <jh@suse.cz>
25729
25730         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
25731         true when something was changed.
25732         (rename_ssa_copies): When something was changed, do
25733         TODO_remove_unused_locals.
25734         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
25735         add TODO_remove_unused_locals when instruction was removed.
25736
25737 2007-02-04  Jan Hubicka  <jh@suse.cz>
25738
25739         * ipa-inline.c (try_inline): Improve debug output; work on already
25740         inline edges too.
25741         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
25742         call try_inline for already inlined edges too when flattening;
25743         inline also functions that make callee growth but overall unit size
25744         reduce.
25745
25746 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25747
25748         * config/m32c/bitops.md, config/m32c/jump.md,
25749         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
25750         config/m32r/m32r.h, config/m32r/m32r.md,
25751         config/m32r/predicates.md, config/m68hc11/larith.asm,
25752         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
25753         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
25754         config/mips/mips-protos.h, config/mips/mips.c,
25755         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
25756         config/mn10300/mn10300.h, config/mn10300/predicates.md,
25757         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
25758         spelling conventions.
25759
25760         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
25761         Follow spelling conventions.
25762
25763 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
25764
25765         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
25766         warn about C++0x compatibility.
25767
25768 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25769
25770         * config/h8300/h8300.c, config/h8300/h8300.h,
25771         config/h8300/h8300.md: Follow spelling conventions.
25772
25773 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
25774
25775         PR middle-end/30667
25776         * combine.c (try_combine): Do not substitute source operand
25777         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
25778
25779 2007-02-03  Jan Hubicka  <jh@suse.cz>
25780
25781         PR gcov-profile/30650
25782         * value-prof.c (stringop_block_profile): Fix handling of size counter;
25783         do not divide by zero for never executed counters.
25784         (tree_find_values_to_profile): Fix counters.
25785         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
25786
25787 2007-02-03  Ian Lance Taylor  <iant@google.com>
25788
25789         * lower-subreg.c (simple_move_operand): New static function,
25790         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
25791         operands.
25792         (simple_move): Call simple_move_operand.
25793         (find_decomposable_subregs): Add special handling of MEMs.
25794         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
25795         meaning of return value.  If we see a hard register, test whether
25796         it can store a word_mode value.  Change all callers.
25797
25798 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25799
25800         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
25801         ftrapv insns and expanders.
25802         (subdi3): Change define_expand operand 1 to arith11_operand, and
25803         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
25804         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
25805         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
25806         respectively.
25807
25808         PR middle-end/30174
25809         * varasm.c (notice_global_symbol): Treat global objects as weak when
25810         flag_shlib is true.
25811
25812 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25813
25814         * emit-rtl.c (dconstpi): Delete.
25815         (dconstsqrt2): New.
25816         (init_emit_once): Delete dconstpi and init dconstsqrt2.
25817         * real.h (dconstpi): Delete.
25818         (dconstsqrt2): New.
25819         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
25820         (fold_builtin_hypot): Likewise.
25821
25822 2007-02-03  Tom Tromey  <tromey@redhat.com>
25823
25824         PR driver/30246
25825         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
25826         -gcoff3, -gxcoff3, -gvms3 implies -dD.
25827
25828 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
25829
25830         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
25831         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
25832         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
25833         config/rs6000/cell.md, config/rs6000/darwin.h,
25834         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
25835         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
25836         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
25837         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
25838         typos.  Follow spelling conventions.
25839         * doc/invoke.texi: Follow spelling conventions.
25840
25841 2007-02-03  Roger Sayle  <roger@eyesopen.com>
25842
25843         * simplify-rtx.c (simplify_relational_operation_1): Implement some
25844         canonicalization transformations that attempt to simplify integer
25845         constant comparisons to become comparisons against zero.
25846
25847 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25848
25849         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
25850         fabs(x)*sqrt(2).
25851         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
25852         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
25853
25854 2007-02-02  Mike Stump  <mrs@apple.com>
25855
25856         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
25857         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
25858         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
25859         generate a branch island.
25860
25861 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
25862
25863         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
25864         (xtensa_legitimate_address_p): New.
25865         (xtensa_legitimize_address): New.
25866         (xtensa_output_addr_const_extra): New.
25867         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
25868         (BASE_REG_P): New.
25869         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
25870         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
25871         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
25872         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
25873         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
25874         (xtensa_legitimize_address): New.
25875         (xtensa_output_addr_const_extra): New.
25876
25877 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
25878
25879         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
25880
25881 2007-02-02  Ian Lance Taylor  <iant@google.com>
25882
25883         * expmed.c (expand_divmod): Add comment.
25884
25885 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
25886
25887         * emit-rtl.c (renumber_insns): Remove.
25888         * flags.h: Remove the extern for flag_renumber_insns.
25889         * rtl.h: Remove the prototype for renumber_insns.
25890         * toplev.c (flag_renumber_insns): Remove.
25891
25892 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
25893
25894         Revert for x86 darwin:
25895         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
25896
25897         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
25898         code before the following patch under TARGET_MACHO.
25899         (ix86_function_value_regno_p): Likewise.
25900
25901 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25902
25903         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
25904         COMPLEX_EXPR.
25905
25906 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
25907
25908         PR target/29682
25909         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
25910         loads to general or fp registers.  Add comments.
25911         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
25912
25913 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
25914
25915         * pointer-set.c (insert_aux): Only return insertion slot.
25916         (pointer_set_insert): Adjust.
25917         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
25918         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
25919         pointer_map_traverse): New.
25920         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
25921         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
25922         pointer_map_contains, pointer_map_traverse): Declare.
25923
25924 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
25925
25926         PR middle-end/30473
25927         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
25928         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
25929
25930 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
25931
25932         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
25933
25934         (struct _dep): New type.
25935         (dep_t): New typedef.
25936         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
25937         (DEP_STATUS): New access macro.  The macro with the same name was
25938         renamed to DEP_LINK_STATUS.
25939         (dep_init): Declare function
25940
25941         (struct _dep_link): New type.
25942         (dep_link_t): New typedef.
25943         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
25944         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
25945         (DEP_LINK_STATUS): New macro.
25946         (debug_dep_links): New debug function.
25947
25948         (struct _deps_list): New type.
25949         (deps_list_t): New typedef.
25950         (DEPS_LIST_FIRST): New access macro.
25951         (FOR_EACH_DEP_LINK): New cycle macro.
25952         (create_deps_list, free_deps_list, delete_deps_list): Declare
25953         functions.
25954         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
25955         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
25956         (copy_deps_list_change_con): Ditto.
25957
25958         (move_dep_link): Declare function.
25959
25960         (struct _dep_node): New type.
25961         (dep_node_t): New typedef.
25962         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
25963
25964         (struct haifa_insn_data.back_deps): New field to hold backward
25965         dependencies of the insn.
25966         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
25967         to deps_list_t.
25968         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
25969         Change its type to deps_list_t.
25970         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
25971         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
25972         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
25973
25974         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
25975
25976         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
25977
25978         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
25979         and all callers.
25980         (dep_cost): Declare.
25981
25982         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
25983         (ds_to_dk, dk_to_ds): New functions.
25984
25985         (init_dep_1): New static function.
25986         (init_dep): New function.
25987         (copy_dep): New static function.
25988
25989         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
25990         functions.
25991         (detach_dep_link): New static function.
25992         (move_dep_link): New function.
25993
25994         (dep_links_consistent_p, dump_dep_links): New static functions.
25995         (debug_dep_links): New debugging function.
25996
25997         (deps_obstack, dl_obstack, dn_obstack): New static variables.
25998
25999         (alloc_deps_list, init_deps_list): New static functions.
26000         (create_deps_list): New function.
26001         (clear_deps_list): New static function.
26002         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
26003         (deps_list_consistent_p, dump_deps_list): New static functions.
26004         (debug_deps_list): New function.
26005         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
26006         functions.
26007         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
26008
26009         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
26010         use new scheduler dependencies lists.
26011         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
26012         (sched_analyze): Ditto.  Initialize dependencies lists.
26013         (add_forw_dep, compute_forward_dependences): Update to use new
26014         scheduler dependencies lists.
26015
26016         (init_dependency_caches): Init deps_obstack.
26017         (free_dependency_caches): Free deps_obstack.
26018
26019         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
26020         new scheduler dependencies lists.
26021         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
26022         (add_back_forw_dep, delete_back_forw_dep): Ditto.
26023
26024         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
26025         Update to use new scheduler dependencies lists.
26026         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
26027         (debug_dependencies): Ditto.
26028         (schedule_region): Update comments.
26029
26030         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
26031         scheduler dependencies lists.
26032         (schedule_ebb): Update comments.
26033
26034         * rtl.def (DEPS_LIST): Remove.
26035
26036         * lists.c (unused_deps_list): Remove.
26037         (free_list): Update assertions.
26038
26039         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
26040         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
26041
26042         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
26043         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
26044
26045         * haifa-sched.c (comments): Update.
26046         (insn_cost1): Remove.  Inline the code into insn_cost ().
26047         (insn_cost): Update to use new scheduler dependencies lists.  Move
26048         processing of the dependency cost to dep_cost ().
26049         (dep_cost): New function.  Use it instead of insn_cost () when
26050         evaluating cost of the dependency.  Use compatible interface to
26051         interact with the target.
26052         (priority): Update to use new scheduler dependencies lists.
26053         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
26054         with greater number of insns that depend on the insn.
26055         (schedule_insn): Update to use new scheduler dependencies lists.  Add
26056         code to free backward dependencies lists.  Inline and optimize code
26057         from resolve_dep () - see PR28071.
26058         (ok_for_early_queue_removal): Update to use new scheduler dependencies
26059         lists.  Update call to targetm.sched.is_costly_dependence hook.
26060
26061         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
26062         scheduler dependencies lists.
26063
26064         (resolve_dep): Remove.  Move the logic to schedule_insn ().
26065         (init_h_i_d): Initialize dependencies lists.
26066
26067         (process_insn_depend_be_in_spec): Rename to
26068         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
26069         dependencies lists.
26070         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
26071         Update to use new scheduler dependencies lists.
26072         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
26073
26074         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
26075         new scheduler dependencies lists.
26076         (build_intra_loop_deps): Ditto.
26077
26078         * target.h (struct _dep): Declare to use in
26079         gcc_target.sched.is_costly_dependence.
26080         (struct gcc_target.sched.adjust_cost): Fix typo.
26081         (struct gcc_target.sched.is_costly_dependence): Change signature to
26082         use single dep_t parameter instead of an equivalent triad.
26083         (struct gcc_target.sched.adjust_cost_2): Remove.
26084
26085         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
26086
26087         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
26088
26089         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
26090         documentation.
26091         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
26092
26093         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
26094         (REG_DEP_TRUE): Document.
26095
26096         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
26097         Change signature to correspond to the targetm.sched.adjust_cost hook.
26098         Update use in TARGET_SCHED_ADJUST_COST_2.
26099         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
26100         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
26101         new scheduler dependencies lists.
26102         (ia64_gen_check): Ditto.
26103
26104         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
26105         scheduler dependencies lists.
26106
26107         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
26108         signature to correspond to the targetm.sched.is_costly_dependence hook.
26109         (is_costly_group): Update to use new scheduler dependencies lists.
26110
26111         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
26112         instead of INSN_COST () macro.
26113
26114 2007-02-01  Ian Lance Taylor  <iant@google.com>
26115
26116         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
26117
26118 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
26119
26120         * pa.md (tp_load): Correct mfctl instruction syntax.
26121
26122 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
26123
26124         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
26125         altivec_padding_size calculation on AIX.  Improve comment, add
26126         assert to verify that it's right.
26127
26128         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
26129         64-bit.
26130
26131 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
26132
26133         PR inline-asm/28686
26134         * global.c (global_alloc): Add mising initialization of
26135         ELIMINABLE_REGSET.
26136
26137 2007-02-01  Roger Sayle  <roger@eyesopen.com>
26138
26139         * alias.c (init_alias_analysis): Correct whitespace.
26140         * bb-reorder.c (fix_edges_for_rarely_executed_code,
26141         partition_hot_cold_basic_blocks): Likewise.
26142         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
26143         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
26144         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
26145         fold_builtin_snprintf_chk, fold_builtin_printf,
26146         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
26147         do_mpfr_arg3, do_mpfr_sincos): Likewise.
26148         * cfgcleanup.c (cleanup_cfg): Likewise.
26149         * cfgexpand.c (tree_expand_cfg): Likewise.
26150         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
26151         * function.c (get_next_funcdef_no): Likewise.
26152         * gengtype.c (main): Likewise.
26153         * genmodes.c (main): Likewise.
26154         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
26155         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
26156         * ifcvt.c (noce_emit_move_insn): Likewise.
26157         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
26158         Likewise.
26159         * stor-layout.c (get_best_mode): Likewise.
26160         * tree-ssa-loop-niter.c (get_val_for): Likewise.
26161         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
26162         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
26163         perform_var_substitution, solve_graph): Likewise.
26164         * tree-vrp.c (vrp_finalize): Likewise.
26165
26166 2007-02-01  Ian Lance Taylor  <iant@google.com>
26167
26168         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
26169         high part of a paradoxical subreg, return a constant zero.
26170
26171 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
26172
26173         * toplev.c (lang_dependent_init): Call init_set_costs.
26174         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
26175
26176 2007-02-01  Richard Guenther  <rguenther@suse.de>
26177
26178         PR middle-end/30656
26179         * fold-const.c (fold_negate_expr): Allow negating a
26180         constant if overflow does not change.
26181
26182 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26183
26184         * doc/c-tree.texi (Expression trees): Improve markup.
26185         * doc/tm.texi (Register Classes, Addressing Modes)
26186         (Floating Point): Fix spacing after abbreviations.  Fix some
26187         typos.
26188
26189 2007-02-01  Ben Elliston  <bje@au.ibm.com>
26190
26191         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
26192         * doc/contrib.texi: Likewise.
26193         * doc/install.texi: Likewise.
26194
26195 2007-01-31  Richard Henderson  <rth@redhat.com>
26196             Ian Lance Taylor  <iant@google.com>
26197
26198         * lower-subreg.c: New file.
26199         * rtl.def (CONCATN): Define.
26200         * passes.c (init_optimization_passes): Add pass_lower_subreg and
26201         pass_lower_subreg2.
26202         * emit-rtl.c (update_reg_offset): New static function, broken out
26203         of gen_rtx_REG_offset.
26204         (gen_rtx_REG_offset): Call update_reg_offset.
26205         (gen_reg_rtx_offset): New function.
26206         * regclass.c: Revert patch of 2006-03-05, restoring
26207         reg_scan_update.
26208         (clear_reg_info_regno): New function.
26209         * dwarf2out.c (concatn_loc_descriptor): New static function.
26210         (loc_descriptor): Handle CONCATN.
26211         * common.opt (fsplit_wide_types): New option.
26212         * opts.c (decode_options): Set flag_split_wide_types when
26213         optimizing.
26214         * timevar.def (TV_LOWER_SUBREG): Define.
26215         * rtl.h (gen_reg_rtx_offset): Declare.
26216         (reg_scan_update): Declare.
26217         * regs.h (clear_reg_info_regno): Declare.
26218         * tree-pass.h (pass_lower_subreg): Declare.
26219         (pass_lower_subreg2): Declare.
26220         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
26221         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
26222         -fsplit-wide-types.
26223         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
26224         * Makefile.in (OBJS-common): Add lower-subreg.o.
26225         (lower-subreg.o): New target.
26226
26227 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
26228
26229         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
26230
26231 2007-01-31  Anatoly Sokolov <aesok@post.ru>
26232
26233         PR target/19087
26234         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
26235
26236 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26237
26238         PR middle-end/29335
26239         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
26240
26241 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
26242
26243         * cfgloop.h: Include vec-prim.h.
26244         (enum li_flags): Remove LI_ONLY_OLD.
26245         (loop_iterator): Changed.
26246         (fel_next, fel_init): Iterate over loop tree.
26247         (FOR_EACH_LOOP_BREAK): New macro.
26248         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
26249         FOR_EACH_LOOP.
26250         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
26251         * modulo-sched.c (sms_schedule): Ditto.
26252         * tree-vectorizer.c (vectorize_loops): Ditto.
26253         * doc/loop.texi: Update information on loop numbering and behavior of
26254         FOR_EACH_LOOP wrto new loops.
26255         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
26256         add_to_evolution_1): Test nestedness of loops instead of comparing
26257         their numbers.
26258         * tree-chrec.c (chrec_fold_plus_poly_poly,
26259         chrec_fold_multiply_poly_poly, chrec_evaluate,
26260         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
26261         reset_evolution_in_loop): Ditto.
26262         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
26263
26264 2007-01-31  Dirk Mueller  <dmueller@suse.de>
26265
26266         * c-common.c (warn_about_parentheses): Separate warning about
26267         un-parenthized sequence of comparison operators from the one
26268         which is supposed to warn about x <= y <= z.
26269
26270 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
26271
26272         * optabs.h (enum optab_index): Add new OTI_isinf.
26273         (isinf_optab): Define corresponding macro.
26274         * optabs.c (init_optabs): Initialize isinf_optab.
26275         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
26276         patterns.
26277         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
26278         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
26279         using isinf_optab.
26280         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
26281         expand_builtin_interclass_mathfn.
26282         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
26283         * config/i386/i386.md (UNSPEC_FXAM): New constant.
26284         (fxam<mode>2_i387): New insn pattern.
26285         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
26286         built-in functions as x87 inline asm.
26287
26288 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
26289
26290         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
26291
26292 2007-01-30  Eric Christopher  <echristo@apple.com>
26293
26294         * config.gcc: Add geode.
26295
26296 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
26297
26298         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
26299         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
26300         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
26301         value-prof.c: Fix comment typos.
26302
26303 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26304
26305         PR c++/24745
26306         * doc/invoke.texi (Wpointer-arith): Document warning.
26307
26308 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
26309
26310         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
26311         the list of discrepancies from the draft TR.
26312
26313 2007-01-30  Dirk Mueller  <dmueller@suse.de>
26314
26315         PR c++/30601
26316         * doc/invoke.texi (-Wreturn-type): Update description to
26317         match new behavior.
26318
26319 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
26320
26321         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
26322
26323 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
26324
26325         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
26326         to handle optabs that operate on floating point input argument and
26327         output to integer output.
26328         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
26329         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
26330         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
26331         expand_builtin_interclass_mathfn ().
26332         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
26333         (ilogbsi2): Remove.
26334         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
26335         ilogbl built-in functions as x87 intrinsics.
26336
26337 2007-01-30  Richard Guenther  <rguenther@suse.de>
26338
26339         PR middle-end/27657
26340         * dwarf2out.c (reference_to_unused): Query varpool if the
26341         variable was output.
26342
26343 2007-01-30  Richard Guenther  <rguenther@suse.de>
26344
26345         PR middle-end/30313
26346         * passes.c (execute_one_pass): Reset in_gimple_form to not
26347         confuse non-unit-at-a-time mode.
26348
26349 2007-01-29  Roger Sayle  <roger@eyesopen.com>
26350             Richard Guenther  <rguenther@suse.de>
26351
26352         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
26353         avoid undefined behaviour on overflow.  Use force_fit_type_double
26354         to construct the constant with the specified TREE_OVERFLOW.
26355
26356 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
26357
26358         * config/dfp-bit.c: Add parameterized support for fp exceptions.
26359         * config/dfp-bit.h: Ditto.
26360
26361 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26362
26363         * c-decl.c (pop_scope): Replace warnings with call to
26364         warn_for_unused_label.
26365         * c-common.h (warn_for_unused_label): Declare.
26366         * c-common.c (warn_for_unused_label): Define.
26367
26368 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26369
26370         * tree-optimize.c (update_inlined_to_pointers): Delete unused
26371         function.
26372
26373 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
26374
26375         * Makefile.in (USER_H): Remove decfloat.h.
26376         * ginclude/decfloat.h: Delete, moving contents to ...
26377         * ginclude/float.h: Add support for decimal floating point,
26378         guarded by __STDC_WANT_DEC_FP__.
26379
26380 2007-01-29  Mike Stump  <mrs@apple.com>
26381
26382         * doc/gccint.texi (Top): Rename Loop Representation to Loop
26383         Analysis and Representation to resolve case insensitive conflict.
26384         * doc/loop.texi (Loop Analysis and Representation): Likewise.
26385
26386 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
26387
26388         * tree.h (struct tree_memory_tag): Add aliases member.
26389         (MTAG_ALIASES): New macro.
26390         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
26391         (add_may_alias): Remove pointer-set. Update for may_aliases being
26392         a bitmap.
26393         (mark_aliases_call_clobbered): Update for may_aliases being a
26394         bitmap.
26395         (compute_tag_properties): Ditto.
26396         (create_partition_for): Ditto.
26397         (compute_memory_partitions): Ditto.
26398         (dump_may_aliases_for): Ditto.
26399         (is_aliased_with): Ditto.
26400         (add_may_alias_for_new_tag): Ditto.
26401         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
26402         (compute_is_aliased): New function.
26403         (compute_may_aliases): Call compute_is_aliased).
26404         (init_alias_info): Initialize alias_bitmap_obstack.
26405         (union_alias_set_into): New function.
26406         (compute_flow_sensitive_aliasing): Use union_aliases_into.
26407         (have_common_aliases_p): Rewrite to take two bitmaps and use
26408         intersection.
26409         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
26410         Update for bitmaps.
26411         (finalize_ref_all_pointers): Update for add_may_alias changes.
26412         (new_type_alias): Ditto.
26413         * tree-flow-inline.h (may_aliases): Return a bitmap.
26414         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
26415         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
26416         may_aliases being a bitmap.
26417         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
26418         may_aliases now returns a bitmap.
26419         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
26420         being a bitmap.
26421         * tree-ssa-operands.c (add_virtual_operand): Update for
26422         may_aliases being a bitmap.
26423
26424 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
26425
26426         PR tree-optimization/30630
26427         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
26428         variable as changed.
26429
26430 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
26431
26432         PR c++/28266
26433         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
26434         expanded only once even if an error occurs.
26435
26436 2007-01-29  Ben Elliston  <bje@au.ibm.com>
26437
26438         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
26439         (__gcov_average_profiler): Likewise.
26440         (__gcov_ior_profiler): Likewise.
26441         (__gcov_merge_ior): Likewise.
26442
26443 2007-01-28  Jan Hubicka  <jh@suse.cz>
26444
26445         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
26446         * value-prof.c (stringop_block_profile): Likewise.
26447
26448 2007-01-28  Jan Hubicka  <jh@suse.cz>
26449
26450         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
26451         Add variant handling histograms; add wrapper.
26452         (clear_storage_via_libcall): Export.
26453         (emit_block_move_hints): Break out from ...; add histograms.
26454         (emit_block_move): ... this one.
26455         (clear_storage_hints): Break out from ...; add histograms.
26456         (clear_storage): ... this one.
26457         (set_storage_via_memset): Handle histogram.
26458         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
26459         (clear_storage_hints, clear_storage_via_libcall): Declare.
26460         (set_storage_via_setmem): Update prototype.
26461         * doc/md.texi (movmem, setmem): Document new arguments.
26462
26463         * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
26464         Add new histograms.
26465         (stringop_block_profile): New global function.
26466         (tree_stringops_values_to_profile): Profile block size and alignment.
26467         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
26468         HIST_TYPE_IOR.
26469         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
26470         (stringop_block_profile): Declare.
26471         * builtins.c: Include value-prof.h.
26472         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
26473         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
26474         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
26475         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
26476         * profile.c (instrument_values): Add new counters.
26477         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
26478         calls.
26479         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
26480         (tree_init_edge_profiler): Build new profilers.
26481         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
26482         (pass_tree_profile): Add dump.
26483         (tree_profile_hooks): Update.
26484         * Makefile.in (LIBGCOV): Add new constants.
26485         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
26486         __gcov_ior_profiler): New.
26487         * i386.md (movmem/setmem expanders): Add new optional arguments.
26488
26489 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
26490
26491         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
26492
26493 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
26494
26495         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
26496         (tree_unswitch_single_loop): Pass eni_size_weights to
26497         tree_num_loop_insns.
26498         * tree-ssa-loop-manip.c: Include tree-inline.h.
26499         (can_unroll_loop_p): Pass eni_size_weights to
26500         tree_num_loop_insns.
26501         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
26502         Pass eni_size_weights to estimate_num_insns.
26503         * tree.h (init_inline_once): Export.
26504         * toplev.c (backend_init): Call init_inline_once.
26505         * cgraphunit.c (cgraph_process_new_functions,
26506         cgraph_analyze_function): Pass eni_inlining_weights to
26507         estimate_num_insns.
26508         * ipa-inline.c (compute_inline_parameters): Ditto.
26509         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
26510         to estimate_num_insns.
26511         (try_unroll_loop_completely): Pass eni_size_weights to
26512         tree_num_loop_insns.
26513         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
26514         ot estimate_num_insns.
26515         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
26516         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
26517         * tree-inline.c (eni_inlining_weights, eni_size_weights,
26518         eni_time_weights): New variables.
26519         (init_inline_once): Initialize them.
26520         (struct eni_data): Mew.
26521         (estimate_num_insns_1, estimate_num_insns): Use weights.
26522         * tree-inline.h (struct eni_weights_d): New.
26523         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
26524         (estimate_num_insns): Declaration changed.
26525         * cfgloop.h (tree_num_loop_insns): Declaration changed.
26526         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
26527         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
26528
26529 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
26530
26531         * tree-data-ref.c (conflict_fn): Assert that the number of affine
26532         relations in the conflict function is valid.
26533
26534 2007-01-27  Ian Lance Taylor  <iant@google.com>
26535
26536         * common.opt: Add fstrict-overflow.
26537         * opts.c (decode_options): Set flag_strict_overflow if -O2.
26538         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
26539         (TYPE_OVERFLOW_UNDEFINED): Define.
26540         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
26541         Replace all uses.
26542         * tree.h (TYPE_TRAP_SIGNED): Don't define.
26543         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
26544         (fold_negate_expr): Likewise.
26545         (make_range): Likewise.
26546         (extract_muldiv_1): Likewise.
26547         (maybe_canonicalize_comparison): Likewise.
26548         (fold_comparison): Likewise.
26549         (fold_binary): Likewise.
26550         (tree_expr_nonnegative_p): Likewise.
26551         (tree_expr_nonzero_p): Likewise.
26552         * tree-vrp.c (compare_values): Likewise.
26553         (extract_range_from_binary_expr): Likewise.
26554         (extract_range_from_unary_expr): Likewise.
26555         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
26556         Likewise.
26557         (nowrap_type_p): Likewise.
26558         * tree-scalar-evolution.c (simple_iv): Likewise.
26559         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
26560         (build_range_check): Likewise.
26561         (extract_muldiv_1): Likewise.
26562         (fold_comparison): Likewise.
26563         * tree-vrp.c (vrp_int_const_binop): Likewise.
26564         (extract_range_from_unary_expr): Likewise.
26565         * convert.c (convert_to_integer): Likewise.
26566         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
26567         (fold_comparison): Likewise.
26568         (fold_binary): Likewise.
26569         * optabs.c (optab_for_tree_code): Likewise.
26570         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
26571         * simplify-rtx.c (simplify_const_relational_operation): Check
26572         flag_strict_overflow and flag_trapv.
26573         (simplify_const_relational_operation): Likewise.
26574         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
26575         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
26576         -fstrict-overflow.
26577
26578 2007-01-27  Roger Sayle  <roger@eyesopen.com>
26579
26580         * tree.c (tree_fold_gcd): Delete.
26581         * tree.h (tree_fold_gcd): Remove prototype.
26582         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
26583         test whether one constant integer is a multiple of another.  Instead
26584         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
26585         * fold-const.c (multiple_of_p): We've determined both TOP and
26586         BOTTOM are integer constants so we can call int_const_binop directly
26587         instead of the more generic const_binop.
26588
26589 2007-01-27  Roger Sayle  <roger@eyesopen.com>
26590
26591         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
26592         1*X check that the constant hasn't overflowed, to preserve the
26593         TREE_OVERFLOW bit.
26594         (round_up): Provide an efficient implementation when rouding-up an
26595         INTEGER_CST to a power-of-two.
26596
26597 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26598
26599         * doc/sourcebuild.texi: Add comma for clarity.
26600         * doc/extend.texi: Fix some typos.
26601         * doc/passes.texi: Likewise.
26602         * doc/cppinternals.texi: Likewise.
26603         * doc/c-tree.texi: Likewise.
26604         * doc/tree-ssa.texi: Likewise.
26605         * doc/install.texi: Likewise.
26606
26607 2007-01-27  Jan Hubicka  <jh@suse.cz>
26608
26609         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
26610         (pass_sra): Do not require alias information.
26611         * passes.c (init_optimization_passes): Add SRA
26612
26613 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
26614
26615         * tracer.c (rest_of_handle_tracer): We already cleaned
26616         up the CFG in tracer() so don't do it here again.
26617         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
26618         cleanup_cfg here, either.  And don't call renumber_insns.
26619
26620         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
26621         and BB_HEAD are in the insn stream here.  Instead make sure
26622         that BB_INSN is valid on all insns.  Also, do check here that
26623         there are no pending branch predictions...
26624         (rtl_verify_flow_info): ...instead of doing it here.  Checks
26625         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
26626         here.
26627
26628 2007-01-26  Roger Sayle  <roger@eyesopen.com>
26629
26630         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
26631         function to simplify/factorize operand order canonicalization.
26632         (ix86_fixup_binary_operands): Reorganize using the above function.
26633         (ix86_binary_operator_ok): Likewise.
26634
26635 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
26636
26637         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
26638         file scope from optimize_attrs.
26639         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
26640         up search.
26641         (optimize_attrs): Clear insn_code_values after freeing it.
26642
26643 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
26644
26645         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
26646         a parts.base assignment.
26647
26648 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
26649
26650         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
26651         (compute_subscript_distance, initialize_data_dependence_relation,
26652         finalize_ddr_dependent, analyze_ziv_subscript,
26653         analyze_siv_subscript_cst_affine,
26654         compute_overlap_steps_for_affine_univar,
26655         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
26656         analyze_siv_subscript, analyze_miv_subscript,
26657         analyze_overlapping_iterations, subscript_dependence_tester_1,
26658         compute_self_dependence, free_dependence_relation): Work
26659         with affine_fn instead of chrecs.
26660         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
26661         common_affine_function, affine_function_base,
26662         affine_function_constant_p, affine_fn_op, affine_fn_plus,
26663         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
26664         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
26665         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
26666         (all_chrecs_equal_p): Removed.
26667         * tree-data-ref.h (affine_fn, conflict_function): New types.
26668         (struct subscript): Change type of conflicting_iterations_in_a
26669         and conflicting_iterations_in_b.
26670
26671 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
26672
26673         PR other/30182
26674         * config/pa/pa.h (TARGET_HPUX_11): New.
26675         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
26676         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
26677
26678 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
26679         Richard Guenther  <rguenther@suse.de>
26680
26681         * tree-ssa-structalias.c (solve_graph): Handle case
26682         we merged the variable to another.
26683
26684 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26685
26686         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
26687         functions.
26688
26689         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
26690         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
26691
26692 2007-01-25  DJ Delorie  <dj@redhat.com>
26693
26694         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
26695         allow changes to modes which don't fit in those registers.
26696
26697         * reload1.c (choose_reload_regs): Check for invalid subregs before
26698         computing their locations, not after.
26699
26700 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
26701
26702         PR 25127
26703         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
26704         save Altivec registers in an eh_return function.
26705         (compute_vrsave_mask): Likewise.
26706         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
26707         for saving Altivec registers.
26708         (rs6000_emit_prologue): Don't allocate stack twice in
26709         eh_return function.  Correct expected value of altivec_save_offset
26710         when using save_world.  Describe save of R0 to stack when using
26711         save_world.  Describe stack pointer adjustment when using
26712         save_world.  Remove duplicated eh_return parameter register saving.
26713         Update sp_offset variable after save_world.
26714         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
26715         darwin-world.asm.
26716         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
26717         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
26718         implies Altivec.
26719
26720 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
26721
26722         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
26723
26724 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
26725
26726         PR other/30182
26727         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
26728         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
26729
26730 2007-01-25  Richard Guenther  <rguenther@suse.de>
26731
26732         * doc/invoke.texi (-Wcoverage-mismatch): Document.
26733         * common.opt (-Wcoverage-mismatch): New warning option.
26734         * coverage.c (get_coverage_counts): Ignore coverage mismatch
26735         if -Wcoverage-mismatch is given.
26736
26737 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
26738
26739         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
26740         (ipcp_driver): Change to static definition.
26741         Add dumping of the ifunctions.
26742         (constant_val_insert): Remove unused parameter. Support for SSA.
26743         (ipcp_propagate_const): Support for SSA.
26744         (ipcp_profile_bb_print): Print only analyzed nodes.
26745         (ipcp_replace_map_create): Remove support for Fortran constant
26746         for now.
26747         * ipa-prop.c (ipa_method_modify_stmt,
26748         ipa_callsite_compute_param): Support for SSA.
26749         * ipa-prop.h (ipcp_driver): Remove declaration.
26750         (IS_VALID_TREE_MAP_INDEX): Add define.
26751
26752 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
26753
26754         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
26755
26756 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26757
26758         PR middle-end/30447
26759         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
26760         constant argument to cabs and do it without checking for
26761         -funsafe-math-optimizations.
26762
26763 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
26764
26765         * c-common.h (RID_FIRST_CXX0X): New.
26766         (RID_LAST_CXX0X): New.
26767         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
26768         by -Wall.
26769         * c.opt (Wc++0x-compat): New.
26770         * doc/invoke.texi (-Wc++0x-compat): Document.
26771
26772 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26773
26774         * builtins.c (fold_builtin_carg): New.
26775         (fold_builtin_1): Use it.
26776
26777 2007-01-24  Jan Hubicka  <jh@suse.cz>
26778
26779         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
26780
26781         * ipa-inline.c (initial_insns, max_insns): Delete.
26782         (compute_max_insns): New function.
26783         (cgraph_decide_inlining_of_small_function): Use it; take minimal
26784         amount of insns as base for code growth.
26785         (cgraph_decide_inlining): Make initial_insns local; do not compute
26786         max_insns.
26787         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
26788         * doc/invoke.texi (inline-unit-growth): Update docs.
26789
26790 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
26791
26792         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
26793         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
26794         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
26795         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
26796         for CPUs that have PTA_CX16 set.
26797
26798         PR middle-end/27416
26799         * gimplify.c (omp_check_private): New function.
26800         (gimplify_scan_omp_clauses): Use it for
26801         firstprivate/lastprivate/reduction.
26802
26803         PR middle-end/30494
26804         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
26805         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
26806
26807         PR middle-end/30421
26808         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
26809         If lower_lastprivate_clauses emits some statements, append them
26810         to dlist rather than body_p and to body_p append an initializer.
26811         (lower_omp_for): Adjust caller.
26812
26813 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
26814
26815         * target.h (globalize_decl_name): New.
26816         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
26817         * output.h (default_globalize_decl_name): New.
26818         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
26819         globalize_label.
26820         (globalize_decl): Ditto.
26821         (default_globalize_decl_name): New.
26822         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
26823         (ia64_handle_version_id_attribute): New.
26824         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
26825         (ia64_asm_output_external): Use globalize_decl_name instead
26826         of globalize_label.
26827         * doc/extend.texi (version_id): New pragma.
26828         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
26829
26830 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26831
26832         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
26833         _uleb128_t and _Unwind_SWord with _sleb128_t.
26834         * unwind-dw2.c (extract_cie_info, execute_stack_op,
26835         execute_cfa_program, uw_frame_state_for, uw_update_context_1):
26836         Likewise.
26837         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
26838         * unwind-pe.h (read_uleb128, read_sleb128,
26839         read_encoded_value_with_base): Likewise.
26840         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
26841
26842 2007-01-24  Richard Guenther  <rguenther@suse.de>
26843
26844         * builtins.c (expand_builtin_cexpi): Get the fndecl
26845         for cexp in the correct way.
26846
26847 2007-01-24  Jan Hubicka  <jh@suse.cz>
26848
26849         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
26850         of calls.
26851
26852 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26853
26854         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
26855         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
26856         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
26857         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
26858         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
26859         __SIZEOF_PTRDIFF_T__.
26860         * doc/cpp.texi: Documentation for the new builtin macros added.
26861
26862 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
26863
26864         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
26865         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
26866         instead of operands[2] to avoid access past the end of array.
26867
26868 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
26869
26870         * reload1.c (emit_reload_insns): Pass the reload register
26871         for a non-spill output reload through forget_old_reloads_1.
26872
26873 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26876         _SOFT_DOUBLE if doubles use software floating-point.
26877         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
26878         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
26879         * config/rs6000/darwin-ldouble.c: Also compile functions for
26880         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
26881         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
26882         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
26883         commented-out long double override.
26884         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
26885         * config/rs6000/eabispe.h: Likewise.
26886         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
26887         long double for non-SPE.
26888         (rs6000_handle_option): Likewise.
26889         (invalid_e500_subreg): Disallow more subregs involding DImode,
26890         DFmode, TImode or TFmode.
26891         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
26892         E500 double.
26893         (legitimate_lo_sum_address_p): Also check for TFmode for E500
26894         double.
26895         (rs6000_legitimize_address): Also handle TFmode for E500 double.
26896         (rs6000_legitimize_reload_address): Also handle TFmode for E500
26897         double.
26898         (rs6000_legitimate_address): Also check for TFmode for E500
26899         double.
26900         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
26901         (spe_build_register_parallel): Handle TFmode and TCmode.
26902         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
26903         double.
26904         (function_arg): Handle TFmode and TCmode for E500 double.
26905         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
26906         in general.
26907         (print_operand): Handle TFmode and TImode for %y.
26908         (rs6000_generate_compare): Handle TFmode comparisons for E500
26909         double.
26910         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
26911         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
26912         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
26913         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
26914         TFmode for E500 double.
26915         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
26916         (floatsidf2): Enable for E500 double.
26917         (movtf_softfloat): Use rs6000_nonimmediate_operand.
26918         (extenddftf2): Change to extenddftf2_fprs.
26919         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
26920         depending on TARGET_E500_DOUBLE.
26921         (extendsftf2): Enable for E500 double.
26922         (trunctfdf2): Enable for E500 double.
26923         (trunctfsf2): Change to trunctfsf2_fprs.
26924         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
26925         depending on TARGET_E500_DOUBLE.
26926         (floatsitf2): Enable for E500 double.
26927         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
26928         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
26929         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
26930         (negtf2): Change to negtf2_internal.
26931         (negtf2): New expander.
26932         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
26933         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
26934         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
26935         (movdi_internal32): Use rs6000_nonimmediate_operand.
26936         (unnamed splitter): Likewise.
26937         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
26938         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
26939         (SPE64TF, DITI): New mode macros.
26940         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
26941         modes.
26942         (frob_tf_ti): New.
26943         (frob_<mode>_di_2): New.
26944         (frob_tf_di_8_2): New.
26945         (frob_di_df): Change to frob_di_<mode>; allow more modes.
26946         (frob_ti_tf): New.
26947         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
26948         more modes.
26949         (frob_ti_<mode>_8_2): New.
26950         (frob_ti_tf_2): New.
26951         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
26952         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
26953         TFmode.
26954         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
26955         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
26956         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
26957         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
26958         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
26959         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
26960         tsttflt_gp): New.
26961
26962 2007-01-23  Ian Lance Taylor  <iant@google.com>
26963
26964         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
26965         insn-*.o first.
26966         (OBJS-archive): Reformat, alphabetize.
26967         (OBJS): Change out_object_file to OBJS-md.
26968
26969 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
26970
26971         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
26972         JUMP_P and CALL_P predicates where applicable.
26973         * config/i386/i386.c: Ditto.
26974         * config/i386/i386.md: Ditto.
26975         * config/i386/mmx.md: Ditto.
26976         * config/i386/predicates.md: Ditto.
26977
26978 2007-01-22  Andreas Schwab  <schwab@suse.de>
26979
26980         * config/m68k/m68k.h: Fix comment.
26981
26982 2007-01-22  Jan Hubicka  <jh@suse.cz>
26983
26984         * passes.c (init_optimization_passes): Do not rerun
26985         pass_early_warn_uninitialized.
26986
26987 2007-01-22  Richard Guenther  <rguenther@suse.de>
26988
26989         PR tree-optimization/30038
26990         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
26991         function.
26992         (execute_cse_sincos_1): Likewise.
26993         (execute_cse_sincos): Likewise.
26994         (gate_cse_sincos): Likewise.
26995         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
26996         the cexpi() canonicalization of sincos().
26997         * tree-pass.h (pass_cse_sincos): Declare.
26998         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
26999
27000 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
27001
27002         PR rtl-optimization/29329
27003         * combine.c (replaced_rhs_insn): Rename to i2mod.
27004         (replaced_rhs_value): Rename to i2mod_new_rhs.
27005         (i2mod_old_rhs): New global variable.
27006         (combine_instructions): Adjust for above change.  Save a copy of
27007         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
27008         note are substituted in the second instruction.
27009         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
27010         ditch the note if it pertains to the second eliminated register
27011         and this register is mentioned in i2mod_old_rhs.
27012
27013         Revert:
27014         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
27015
27016         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
27017         the insn to which the note was originally attached.
27018
27019 2007-01-21  Jan Hubicka  <jh@suse.cz>
27020
27021         * ipa-inline.c (inlining_mode): Comment, move up.
27022         (cgraph_decide_inlining_incrementally): Do not perform inlining
27023         itself; fix handling of flattening of self recursive functions.
27024         (cgraph_find_cycles): Remove.
27025         (cgraph_flatten_node): Remove.
27026         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
27027         (try_inline): New function.
27028         (cgraph_early_inlining): Update call of
27029         cgraph_decide_inlining_incrementally.  Apply inlining here.
27030         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
27031
27032 2007-01-21  Dirk Mueller  <dmueller@suse.de>
27033
27034         PR bootstrap/30511
27035         * tree-vrp.c (check_array_bounds): do not warn
27036         about ADDR_EXPR's of ARRAY_REF's which are immediately
27037         used in binary expressions.
27038
27039 2007-01-21  Ira Rosen  <irar@il.ibm.com>
27040
27041         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
27042         read_write_dep and macros for its access.
27043         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
27044         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
27045         argument, call vect_check_interleaving for every independent pair of
27046         data-refs. Mark loads that access the same memory location as a store
27047         in the loop.
27048         (vect_check_dependences): Remove.
27049         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
27050         call, fix the call to vect_analyze_data_ref_dependence.
27051         (vect_analyze_data_ref_access): For statements that access the same
27052         data-ref, check that they are not stores; for loads, check that there
27053         is no store that access the same location.
27054
27055 2007-01-20  Roger Sayle  <roger@eyesopen.com>
27056             Joseph Myers  <joseph@codesourcery.com>
27057
27058         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
27059         (-fdump-rtl-stack): Likewise.
27060         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
27061         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
27062         (-mpt-fixed): Use @minus{} for minus sign.
27063         (Using Precompiled Headers): Fix under/overfull hbox.
27064
27065 2007-01-20  Jan Hubicka  <jh@suse.cz>
27066
27067         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
27068         place within annotation.
27069
27070 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27071
27072         * pa.c (output_move_double): Change array size of xoperands to 4.
27073
27074 2007-01-20  Jan Hubicka  <jh@suse.cz>
27075
27076         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
27077         as temporary.
27078
27079 2007-01-19  Ian Lance Taylor  <iant@google.com>
27080
27081         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
27082         constant to unsigned HOST_WIDE_INT before negating.
27083
27084 2007-01-19  Ian Lance Taylor  <iant@google.com>
27085
27086         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
27087         to unsigned.
27088         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
27089         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
27090         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
27091         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
27092         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
27093         (realloc_vdef, realloc_vuse): Change second parameter to
27094         unsigned.
27095         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
27096         fields to unsigned.
27097         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
27098         unsigned. Change x and lim locals to unsigned.
27099         (realloc_vdef, realloc_vuse): Change num_elem parameter to
27100         unsigned.
27101         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
27102         (copy_virtual_operands): Change i and n locals to unsigned.
27103
27104 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27105
27106         PR middle-end/29335
27107         * builtins.c (fold_builtin_1): Handle builtin fdim.
27108
27109 2007-01-20  Jan Hubicka  <jh@suse.cz>
27110
27111         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
27112         * tree-ssa-structalias.c (compute_points_to_sets): Do call
27113         init_alias_heapvars.
27114         (init_alias_heapvars): Initialize only when not already initialized.
27115         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
27116
27117 2007-01-19  Roger Sayle  <roger@eyesopen.com>
27118
27119         * common.opt (fsigned-zeros): New command line option.
27120         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
27121         of flag_unsafe_math_optimizations.
27122         * opts.c (set_fast_math_flags): The -ffast-math command line option
27123         implies -fno-signed-zeros.
27124         (fast_math_flags_set_p): Likewise.
27125
27126         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
27127         the documentation of -ffast-math appropriately.  Wrap long lines.
27128
27129 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
27130
27131         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
27132         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
27133
27134 2007-01-19  Tomas Bily  <tbily@suse.cz>
27135
27136         * cgraphunit.c (cgraph_finalize_function): Updating of pid
27137         * tree-profile.c:
27138         (tree_init_ic_make_global_vars): New function
27139         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
27140         (tree_gen_ic_profiler): New function
27141         (tree_gen_ic_func_profiler): New function
27142         (tree_profiling): Added calling of tree_gen_ic_func_profiler
27143         (tree_profile_hooks): Added hook for indirec/virtual calls
27144         * value-prof.c (tree_find_values_to_profile): New case for
27145         indirect calls
27146         (tree_values_to_profile): Call for determining indirect/virtual
27147         counters
27148         (tree_indirect_call_to_profile): New function
27149         (tree_ic_transform): New function
27150         (tree_ic): New function
27151         (find_func_by_pid): New function
27152         (init_pid_map): New function
27153         (tree_value_profile_transformations): Added check for
27154         indirect/virtual call transformation
27155         * value-prof.h (enum hist_type): New counter type for
27156         indirect/virtual calls
27157         (profile_hooks): Added new hook for profiling indirect/virtual
27158         calls
27159         * profile.c (instrument_values): New case for indirect/virtual
27160         call added
27161         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
27162         (GCOV_COUNTER_V_INDIR): New counter type
27163         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
27164         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
27165         call added
27166         * cgraph.c: Definition of cgraph_max_pid
27167         (cgraph_create_node): Default init of pid attribute
27168         * cgraph.h: Declaration of cgraph_max_pid
27169         (struct cgraph_node): Added pid attribute
27170         * libgcov.c (__gcov_indirect_call_profiler): New function
27171         (__gcov_one_value_profiler_body): New function
27172         (__gcov_one_value_profiler): Body was moved to
27173         __gcov_one_value_profiler_body and calls it
27174
27175 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
27176
27177         * doc/gty.texi (Options): Document the mark_hook option to GTY.
27178         * gengtype.c (write_types_data, write_func_for_structure,
27179         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
27180         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
27181         (walk_type, write_func_for_structure): Generate the mark_hook if
27182         needed.
27183
27184 2007-01-19  Jan Hubicka  <jh@suse.cz>
27185
27186         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
27187         'early' argument take inlining mode argument specifying whether to
27188         inline for size/speeed or all functions; add support for flattening;
27189         improve dumpting.
27190         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
27191
27192 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27193
27194         PR c++/17947
27195         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
27196         the name of the declared identifier.
27197
27198 2007-01-19  Dirk Mueller  <dmueller@suse.de>
27199
27200         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
27201         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
27202         duplicate evaluation.
27203
27204 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
27205
27206         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
27207         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
27208         to XFMode, use acosxf2 and truncate result to requested mode.
27209         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
27210         (asin<mode>2): Similarly, with asin expanders.
27211         (*fscalexf4_i387): Rename from *fscalexf4.
27212         (expNcorexf3): New expander.
27213         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
27214         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
27215         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
27216         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
27217         patterns for SSE math.
27218         (exp10<mode>2): Similarly, with exp10 expanders.
27219         (exp2<mode>2): Similarly, with exp2 expanders.
27220         (expm1<mode>2): Similarly, with expm1 expanders.
27221         (ldexp<mode>3): Similarly, with ldexp expanders.
27222         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
27223         Use gen_truncxf<mode>2_i387_noop to truncate result.
27224
27225 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27226
27227         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
27228         for ColdFire targets.
27229
27230 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
27231             Richard Sandiford  <richard@codesourcery.com>
27232
27233         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
27234         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
27235         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
27236         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
27237         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
27238         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
27239
27240 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27241
27242         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
27243         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
27244         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
27245         (*adddi_dilshr32_cf): New pattern.
27246         (adddi3, subdi3): Remove first alternatives.
27247
27248 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27249
27250         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
27251         implemented using move.l, do not use its cc result for floating-point
27252         comparisons.
27253
27254 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27255
27256         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
27257         from accepting 's' constraints if flag_pic.
27258
27259 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27260
27261         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
27262         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
27263         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
27264         condition from TARGET_68881 to TARGET_HARD_FLOAT.
27265
27266 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
27267
27268         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
27269         ColdFire alternatives.
27270         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
27271         * config/m68k/m68k.md (clzsi2): Define for ColdFire
27272         architectures that support ff1 instruction.
27273
27274 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27275             Julian Brown  <julian@codesourcery.com>
27276
27277         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
27278         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
27279         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
27280         Add commentary.
27281
27282 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
27283
27284         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
27285         and return a bool.
27286         (output_move_const_into_data_reg, output_move_simode_const): Delete.
27287         * config/m68k/m68k.c (const_method, const_int_cost): Take a
27288         HOST_WIDE_INT instead of an rtx.
27289         (m68k_rtx_costs): Update call accordingly.
27290         (output_move_const_into_data_reg): Likewise.  Fix formatting.
27291         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
27292         Return a bool.
27293         (output_move_simode_const): Update calls after above changes.
27294         Rework to use automatic variables and predicates like MEM_P.
27295         * config/m68k/m68k.md (pushexthisi_const): Update call to
27296         valid_mov3q_const.
27297
27298 2007-01-19  Dirk Mueller  <dmueller@suse.de>
27299
27300         * tree-ssa-alias.c (perform_var_substitution): Fix typo
27301         in dump_flags test.
27302
27303 2007-01-19  Richard Guenther  <rguenther@suse.de>
27304
27305         * builtins.c (expand_builtin_cexpi): Fall back to expanding
27306         via cexp in case sincos is not available.
27307
27308 2007-01-19  Richard Guenther  <rguenther@suse.de>
27309
27310         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
27311         * defaults.h (TARGET_HAS_SINCOS): Default to off.
27312         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
27313         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
27314         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
27315         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
27316         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
27317         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
27318
27319 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
27320
27321         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
27322         New insn patterns.
27323         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
27324         (atan2xf3): Directly generate RTL pattern.
27325         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
27326         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
27327         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
27328         disable patterns for SSE math.
27329         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
27330         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
27331         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
27332         disable patterns for SSE math.
27333
27334 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
27335
27336         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
27337
27338 2007-01-18  Roger Sayle  <roger@eyesopen.com>
27339
27340         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
27341         VIEW_CONVERT_EXPR to the same type as it's operand.
27342
27343 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
27344
27345         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
27346         configured for long double 128.
27347
27348 2007-01-18  Mike Stump  <mrs@apple.com>
27349
27350         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
27351         error.
27352
27353 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
27354
27355         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
27356         type correct.
27357
27358 2007-01-18  Jan Hubicka  <jh@suse.cz>
27359
27360         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
27361         greater than NUM_VOP_FREE_BUCKETS.
27362
27363 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
27364
27365         * tree-ssa-structalias.c: Update comments.
27366         (ptabitmap_obstack): Removed.
27367         (pta_obstack): New.
27368         (oldpta_obstack): Ditto.
27369         (stats): Add a few members.
27370         (struct variable_info): Remove node, complex, address_taken, and
27371         indirect_target members. Add oldsolution member.
27372         (new_var_info): Do not initialize removed members.
27373         (constraint_expr_type): Remove INCLUDES.
27374         (constraint_graph): Add size, implicit_preds, rep,
27375         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
27376         (FIRST_REF_NODE): New macro.
27377         (LAST_REF_NODE): Ditto.
27378         (FIRST_ADDR_NODE): Ditto.
27379         (find): New function.
27380         (unite): Ditto.
27381         (dump_constraint): Do not handle INCLUDES.
27382         (insert_into_complex): Do not insert duplicate constraints.
27383         (condense_varmap_nodes): Renamed and rewritten into ...
27384         (merge_node_constraints): This. Also fix bug in handling of
27385         offseted copy constraints.
27386         (clear_edges_for_node): No longer need to deal with preds at all,
27387         or removing associated preds/succs.
27388         (merge_graph_nodes): Deal with indirect_cycles.
27389         Don't deal with predecessors.
27390         (add_implicit_graph_edge): New function.
27391         (add_pred_graph_edge): Ditto.
27392         (add_graph_edge): Don't deal with predecessors.
27393         (build_constraint_graph): Removed.
27394         (build_pred_graph): New function.
27395         (build_succ_graph): Ditto.
27396         (struct scc_info): Removed in_component. Added roots, dfs, and
27397         node_mapping. Remove visited_index, unification_queue.
27398         (scc_visit): Deal with union-find we do now.
27399         Deal with cycles with REF nodes.
27400         (collapse_nodes): Renamed and rewritten to ...
27401         (unify_nodes): This.
27402         (process_unification_queue): Removed.
27403         (topo_visit): Cleanup
27404         (do_da_constraint): Use find.
27405         (do_sd_constraint): Ditto.
27406         (do_ds_constraint): Ditto.
27407         (do_complex_constraint): Ditto.
27408         (init_scc_info): Update for removed and added members.
27409         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
27410         (find_indirect_cycles): This.
27411         (equivalence_class): New variable.
27412         (label_visit): New function.
27413         (perform_variable_substitution): Rewritten.
27414         (free_var_substitution_info): New function.
27415         (find_equivalent_node): Ditto.
27416         (move_complex_constraints): Ditto.
27417         (eliminate_indirect_cycles): Ditto.
27418         (solve_graph): Only propagate changed bits.
27419         Use indirect cycle elimination.
27420         Use find.
27421         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
27422         (tree_id_eq): Renamed to ...
27423         (tree_vi_eq): This. Update for member change
27424         (insert_id_for_tree): Renamed and rewritten to ...
27425         (insert_vi_for_tree): This.
27426         (lookup_id_for_tree): Renamed and rewritten to ...
27427         (lookup_vi_for_tree): This.
27428         (get_id_for_tree): Renamed and rewritten to ...
27429         (get_vi_for_tree): Ditto.
27430         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
27431         (process_constraint): Don't handle INCLUDES.
27432         Remove special ADDRESSOF case.
27433         (find_func_aliases): Rewrite to use vi functions instead of id
27434         ones.
27435         (create_function_info_for): Ditto.
27436         (create_variable_info_for): Ditto.
27437         (intra_create_variable_infos): Ditto.
27438         (merge_smts_into): Ditto.
27439         (find_what_p_points_to): Ditto.
27440         (init_base_vars): Ditto.
27441         (init_alias_vars): Ditto.
27442         (remove_preds_and_fake_succs): New function.
27443         (dump_sa_points_to_info): Dump new stats.
27444         (dump_solution_for_var): Use find.
27445         (set_used_smts): Fix formatting.
27446         (compute_points_to_sets): Updated for new functions.
27447         (ipa_pta_execute): Ditto.
27448
27449 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
27450             Richard Sandiford  <richard@codesourcery.com>
27451
27452         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
27453         parallels.
27454         * calls.c (expand_call): If the return value is a PARALLEL,
27455         extract its first member.
27456         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
27457         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
27458         use FUNCTION_EXTRA_EPILOGUE.
27459         (m68k_function_value): Return a PARALLEL if the return value
27460         is of a pointer type.
27461         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
27462         (FUNCTION_EXTRA_EPILOGUE): Remove.
27463         * config/m68k/m68k.md (D0_REG): New constant.
27464
27465 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
27466
27467         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
27468         output a NOP for empty epilogues.
27469
27470 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27471
27472         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
27473         before function.  Extend register save check to include all
27474         registers, not just integer ones.
27475
27476 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
27477
27478         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
27479         (m68k_use_return_insn): ...this.
27480         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
27481         * config/m68k/m68k.c (use_return_insn): Rename to...
27482         (m68k_use_return_insn): ...this.
27483         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
27484         of USE_RETURN_INSN.
27485
27486 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27487
27488         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
27489         nearest even, fix denormal rounding overflow.
27490
27491 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27492
27493         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
27494         f%$smove and f%$move.
27495         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
27496         (extendsfdf2_cf): Use fdmove instead of f%&move.
27497         (truncdfsf2_cf): Use fsmove instead of f%$smove.
27498         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
27499
27500 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27501
27502         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
27503         GPR<-GPR moves.
27504
27505 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27506
27507         * real.h (real_format): Add a canonical_nan_lsbs_set field.
27508         (coldfire_single_format): Declare.
27509         (coldfire_double_format): Likewise.
27510         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
27511         of qnan_msb_set to determine the lower bits of a canonical
27512         NaN significand.
27513         (encode_ieee_double): Likewise.
27514         (encode_ieee_quad): Likewise.
27515         (ieee_single_format): Initialize canonical_nan_lsbs_set.
27516         (mips_single_format): Likewise.
27517         (ieee_double_format): Likewise.
27518         (mips_double_format): Likewise.
27519         (ieee_extended_motorola_format): Likewise.
27520         (ieee_extended_intel_96_format): Likewise.
27521         (ieee_extended_intel_128_format): Likewise.
27522         (ieee_extended_intel_96_round_53_format): Likewise.
27523         (ibm_extended_format): Likewise.
27524         (mips_extended_format): Likewise.
27525         (ieee_quad_format): Likewise.
27526         (mips_quad_format): Likewise.
27527         (vax_f_format): Likewise.
27528         (vax_d_format): Likewise.
27529         (vax_g_format): Likewise.
27530         (i370_single_format): Likewise.
27531         (i370_double_format): Likewise.
27532         (decimal_single_format): Likewise.
27533         (decimal_double_format): Likewise.
27534         (decimal_quad_format): Likewise.
27535         (c4x_single_format): Likewise.
27536         (c4x_extended_format): Likewise.
27537         (real_internal_format): Likewise.
27538         (coldfire_single_format): New real_format.
27539         (coldfire_double_format): Likewise.
27540         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
27541         canonical_nan_lsbs_set.
27542         (pdp11_d_format): Likewise.
27543         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
27544         if TARGET_COLDFIRE_CPU.
27545
27546 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27547
27548         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
27549         (output_call, m68k_legitimize_call_address): Declare.
27550         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
27551         parenthesees.  Add support for a 'W' constraint.
27552         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
27553         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
27554         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
27555         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
27556         variables.
27557         (override_options): Initialize them.  Do not set flag_no_function_cse
27558         for TARGET_ID_SHARED_LIBRARY.
27559         (m68k_output_pic_call): Delete.
27560         (m68k_legitimize_call_address): New function.
27561         (print_operand): Remove the %o prefix.  Handle the %p prefix.
27562         (output_call): New function.
27563         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
27564         target address from the GOT if symbolic jumps are not allowed.
27565         * config/m68k/m68k.md (call, general_operand): Do not set
27566         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
27567         Merge separate flag_pic and !flag_pic define_insns into...
27568         (*call, *call_value): ...these new patterns.  Match the address
27569         rather than the containing MEM and require it to be a call_operand.
27570         Use output_call to generate the asm template.
27571         * config/m68k/predicates.md (const_call_operand): New predicate.
27572         (call_operand): Likewise.
27573
27574 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27575
27576         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
27577         (STACK_GROWS_DOWNWARD): Define to 1.
27578         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
27579         comments, emphasizing that these values are only defaults.
27580         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
27581         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
27582
27583 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27584
27585         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
27586
27587 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
27588             Richard Sandiford  <richard@codesourcery.com>
27589
27590         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
27591         (FP_REGNO_P): New macros.
27592         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
27593         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
27594         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
27595         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
27596
27597 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27598
27599         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
27600         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
27601         to $tmake_file.
27602         * config/m68k/t-floatlib: New file, extracting common code from...
27603         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
27604         * config/m68k/t-uclinux: Here.
27605         * config/m68k/fpgnulib.c: Do not compile extendeed precision
27606         routines on ColdFire targets.
27607
27608 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27609
27610         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
27611         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
27612         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
27613         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
27614         explicitly set MOTOROLA to 1.
27615         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
27616
27617 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27618             Nathan Sidwell  <nathan@codesourcery.com>
27619
27620         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
27621         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
27622         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
27623         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
27624         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
27625         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
27626         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
27627         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
27628         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
27629         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
27630         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
27631         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
27632         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
27633         (DBX_REGISTER_NUMBER): Delete.
27634         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
27635         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
27636         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
27637
27638 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27639
27640         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
27641         * config/flat.h: New file.
27642         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
27643         OBJECT_FORMAT_FLAT.
27644         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
27645         indirect references for -msep-data or -mid-shared-library.
27646         Do not use PC-relative code addresses either.
27647         * config/m68k/m68k.c (override_options): Restrict -fPIC error
27648         to -mpcrel.
27649         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
27650         for shared libraries and crt1.o for executables.  Use crti.o and
27651         crtbegin.o.
27652         (ENDFILE_SPEC): Use crtend.o and crtn.o.
27653         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
27654         Do not add -elf2flt or -shared-lib-id options here.
27655         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
27656         Pass -shared-lib-id if -mid-shared-library, taking the library
27657         identifier from -mshared-library-id if given, otherwise
27658         defaulting to 0.
27659         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
27660         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
27661         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
27662         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
27663         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
27664         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
27665         and crtend.o.
27666         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
27667         jump sequence for ISA A and ISA A+.
27668         (PICJUMP): Likewise.
27669
27670 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27671
27672         * config.gcc (m68k-*-uclinux*): Base the port on the common
27673         and m68k GNU/Linux files rather than on the generic ELF ones.
27674         * config/m68k/uclinux.h (TARGET_VERSION): Override.
27675         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
27676
27677 2007-01-18  Julian Brown  <julian@codesourcery.com>
27678             Richard Sandiford  <richard@codesourcery.com>
27679
27680         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
27681         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27682         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
27683         before redefining.
27684         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
27685         80 unconditionally.
27686         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27687
27688 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27689
27690         * doc/install.texi: Document m68k-uclinuxoldabi.
27691         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
27692         * config/m68k/uclinux-oldabi.h: New file, copied from
27693         config/m68k/uclinux.h.
27694
27695 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
27696
27697         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
27698         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
27699         (m32r_compute_frame_size): Use unsigned for regno.
27700         (m32r_reload_lr): Use gen_frame_mem.
27701         (pop): New.
27702         (m32r_output_function_epilogue): Don't output the function epilogue
27703         textually here.
27704         (m32r_expand_epilogue): New.
27705         (direct_return): Return false if the function has the interrupt
27706         attribute.
27707         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
27708         * config/m32r/m32r.md (epilogue): New expander.
27709         (return_lr, return_rte): New insns.
27710         (return): Make it expander.
27711         (return_normal): New expander.
27712
27713 2007-01-18  Josh Conner  <jconner@apple.com>
27714
27715         PR target/30485
27716         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
27717         support for UNLE, UNLT, UNGE, and UNGT.
27718
27719 2007-01-18  Jan Hubicka  <jh@suse.cz>
27720
27721         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
27722         * tree-tailcall (add_virtual_phis): Likewise.
27723         (optimize_tail_call): Return TODOs.
27724         (execute_tail_calls): Return TODOs.
27725         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
27726         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
27727         changed.
27728         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
27729         Cleanup cfg using TODO.
27730         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
27731         * passes.c (execute_function_todo): When cleanup did something, remove
27732         unused locals.
27733         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
27734         (make_edges): Don't cleanup_cfg.
27735
27736 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
27737
27738         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
27739         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
27740         operate on the top of stack.
27741         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
27742         register handling of instructions that output to the second
27743         stack slot.
27744         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
27745         (move_for_stack_reg): Special-case check for dead destination
27746         stack slot for constant load of 1.0 inside UNSPEC_TAN.
27747
27748         * config/i386/i386.md (UNSPEC_TAN): New constant.
27749         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
27750         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
27751         to correctly model move of constant 1.0 to top stack slot.
27752         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
27753         (unnamed peephole2 pattern): Remove corresponding peephole2
27754         pattern that optimizes tan insn and loading of constant 1.0.
27755         (tanxf2): Use fptanxf4_i387.
27756         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
27757         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
27758         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
27759         disable patterns for SSE math.
27760         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
27761         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
27762
27763 2007-01-18  Dirk Mueller  <dmueller@suse.de>
27764             Richard Guenther <rguenther@suse.de>
27765
27766         PR diagnostic/8268
27767         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
27768         * common.opt (Warray-bounds): Add new warning option.
27769         * c-opts.c (c_common_handle_option): Define -Warray-bounds
27770         if -Wall is given.
27771         * Makefile.in: make tree-vrp.o depend on toplev.h
27772         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
27773         is enabled.
27774         (check_array_refs, check_array_bounds, check_array_ref): New.
27775
27776 2007-01-18  Jan Hubicka  <jh@suse.cz>
27777
27778         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
27779         (execute_ssa_ccp): Return flags conditionally.
27780         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
27781         changed.
27782         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
27783
27784 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
27785
27786         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
27787         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
27788
27789         * Makefile.c (GTFILES): Add cfglayout.h.
27790         * gengtype.c (open_base_files): Likewise.
27791         * cfglayout.c (cfg_layout_function_footer,
27792         cfg_layout_function_header) Reindent to make gengtype happy.
27793         * cfglayout.h (cfg_layout_function_footer,
27794         cfg_layout_function_header): Add GTY(()) marker.
27795
27796         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
27797
27798 2007-01-18  Ben Elliston  <bje@au.ibm.com>
27799
27800         * genautomata.c (write_automata): Include xstrerror output in the
27801         error message if writing the DFA description file fails.
27802
27803 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27804
27805         * config/mips/mips-protos.h (mips_output_external): Make it
27806         return void.
27807         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
27808         * config/mips/mips.c (irix_output_external_libcall): Likewise.
27809         (extern_list): Likewise.
27810         (extern_head): Likewise.
27811         (TARGET_ASM_FILE_END): Likewise.
27812         (mips_file_end): Likewise.
27813         (mips_output_external): Rewritten.
27814
27815 2007-01-18  Ben Elliston  <bje@au.ibm.com>
27816
27817         * genpreds.c (write_insn_preds_c): Only write out the function
27818         body for regclass_for_constraint if we have register constraints.
27819
27820 2007-01-17  Tom Tromey  <tromey@redhat.com>
27821
27822         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
27823         * doc/install.texi (Testing): Use sourceware.org.
27824         (Binaries): Likewise.
27825         (Specific): Likewise.
27826         * doc/contrib.texi (Contributors): Use sourceware.org.
27827
27828 2007-01-17  Anatoly Sokolov <aesok@post.ru>
27829
27830         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
27831         (AVR_ENHANCED): Rename to ...
27832         (AVR_HAVE_MUL): ... new.
27833         (avr_enhanced_p): Rename to ...
27834         (avr_have_mul_p): ... new.
27835         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
27836         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
27837         * config/avr/avr.c (avr_enhanced_p): Rename to ...
27838         (avr_have_mul_p): ... new.
27839         (base_arch_s): Rename 'enhanced' to 'have_mul'.
27840         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
27841         'avr_enhanced_p' and 'enhanced'.
27842         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
27843         AVR_HAVE_MUL instead of AVR_ENHANCED.
27844         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
27845         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
27846         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
27847         instead of AVR_ENHANCED.
27848         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
27849         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
27850         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
27851
27852 2007-01-17  Ian Lance Taylor  <iant@google.com>
27853
27854         * vec.h (VEC_reserve_exact): Define.
27855         (vec_gc_p_reserve_exact): Declare.
27856         (vec_gc_o_reserve_exact): Declare.
27857         (vec_heap_p_reserve_exact): Declare.
27858         (vec_heap_o_reserve_exact): Declare.
27859         (VEC_OP (T,A,reserve_exact)): New static inline function, three
27860         versions.
27861         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
27862         negative parameter.
27863         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
27864         (VEC_OP (T,A,copy)) [all versions]: Likewise.
27865         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
27866         * vec.c (calculate_allocation): Add exact parameter.  Change all
27867         callers.
27868         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
27869         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
27870         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
27871         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
27872         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
27873         (vec_heap_p_reserve_exact): New function.
27874         (vec_heap_o_reserve_exact): New function.
27875
27876 2007-01-17  Jan Hubicka  <jh@suse.cz>
27877
27878         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
27879
27880 2007-01-17  Eric Christopher  <echristo@apple.com>
27881
27882         * config.gcc: Support core2 processor.
27883
27884 2007-01-16  Jan Hubicka  <jh@suse.cz>
27885
27886         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
27887         the names, just unlink the chain so we don't crash on dangling
27888         pointers
27889         to dead SSA names.
27890
27891 2007-01-16  Jan Hubicka  <jh@suse.cz>
27892
27893         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
27894         * tree-pass.h: Reorder to make IPA passes appear toegher.
27895         (pass_early_inline, pass_inline_parameters, pass_apply_inline):
27896         Declare.
27897         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
27898         parameters, do not call early inliner.
27899         * ipa-inline.c: Update comments.  Include tree-flow.h
27900         (cgraph_decide_inlining): Do not compute inlining parameters.
27901         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
27902         be called with function context set up.
27903         (pass_ipa_inline): Remove unreachable functions before pass.
27904         (cgraph_early_inlining): Simplify assuming to be called from the
27905         PM as local pass.
27906         (pass_early_inline): New pass.
27907         (cgraph_gate_ipa_early_inlining): New gate.
27908         (pass_ipa_early_inline): Turn into simple wrapper.
27909         (compute_inline_parameters): New function.
27910         (gate_inline_passes): New gate.
27911         (pass_inline_parameters): New pass.
27912         (apply_inline): Move here from tree-optimize.c
27913         (pass_apply_inline): New pass.
27914         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
27915         transforming.
27916         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
27917         doing them by hand.
27918         (tree_function_versioning): Do not allocate dummy struct function.
27919         * tree-inline.h (optimize_inline_calls): Update prototype.
27920         * tree-optimize.c (execute_fixup_cfg): Export.
27921         (pass_fixup_cfg): Remove
27922         (tree_rest_of_compilation): Do not apply inlines.
27923         * tree-flow.h (execute_fixup_cfg): Declare.
27924         * Makefile.in (gt-passes.c): New.
27925         * passes.c: Include gt-passes.h
27926         (init_optimization_passes): New passes.
27927         (nnodes, order): New static vars.
27928         (do_per_function_toporder): New function.
27929         (execute_one_pass): Dump current pass here.
27930         (execute_ipa_pass_list): Don't dump current pass here.
27931
27932 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
27933
27934         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
27935         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
27936
27937 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
27938
27939         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
27940         (strong_alias): Define.
27941         (__gcc_qmul): Provide non-FMA for soft-float.
27942         (__gcc_qdiv): Same.
27943         (__gcc_qneg): New.
27944         (__gcc_qeq): New.
27945         (__gcc_qle): New.
27946         (__gcc_qge): New.
27947         (__gcc_qunord): New.
27948         (__gcc_stoq): New.
27949         (__gcc_dtoq): New.
27950         (__gcc_qtos): New.
27951         (__gcc_qtod): New.
27952         (__gcc_qtoi): New.
27953         (__gcc_qtou): New.
27954         (__gcc_itoq): New.
27955         (__gcc_utoq): New.
27956         (fmsub): New.
27957         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
27958         soft-float functions.
27959         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
27960         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
27961         about long double soft float.
27962
27963 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
27964             Tehila Meyzels  <tehila@il.ibm.com>
27965
27966         * tree-vectorizer.h (is_pattern_stmt_p): New.
27967         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
27968         formatting (tabs instead of spaces). Cleanup and clarify setting
27969         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
27970         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
27971         (vectorizable_type_demotion): Check that types are integral.
27972         (vectorizable_type_promotion): Likewise.
27973         (vectorizable_store): Fix typo.  Eliminate new-line at end of
27974         comments.
27975
27976 2007-01-16  Jan Hubicka  <jh@suse.cz>
27977
27978         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
27979         cgraph edges too.
27980
27981 2007-01-15  Eric Christopher  <echristo@apple.com>
27982
27983         * ifcvt.c: Include vec.h, vecprim.h.
27984         (check_cond_move_block): New argument regs.
27985         Reorganize. Add registers used to regs.
27986         (cond_move_process_if_block): Use regs set above as
27987         loop bounds.
27988
27989 2007-01-15  Eric Christopher  <echristo@apple.com>
27990
27991         * config/darwin.h: Update copyright.
27992         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
27993         (LINK_COMMAND_SPEC): Add -u.
27994         (LINK_SPEC): Fix umbrella for above.
27995
27996 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
27997
27998         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
27999         glibc CVS.
28000
28001 2007-01-15  Tom Tromey  <tromey@redhat.com>
28002
28003         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
28004         * doc/install.texi (Testing): Don't mention jacks.
28005         (Configuration): Document --enable-java-maintainer-mode.  Move
28006         --with-java-home to libgcj-specific section.  Document
28007         --with-ecj-jar.
28008         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
28009
28010 2007-01-15  Jan Hubicka  <jh@suse.cz>
28011
28012         * tree-ssa-dce.c (DCE_TODOs): New.
28013         (propagate_necessity): Return if something changed.
28014         (eliminate_unnecessary_stmts): Likewise.
28015         (perform_tree_ssa_dce): Return TODO flags when needed.
28016         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
28017
28018 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
28019
28020         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
28021         (fyl2x_extend<mode>xf3_i387): New insn pattern.
28022         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
28023         patterns using X87MODEF12 mode macro.  Extend operand 1
28024         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
28025         (log10<mode>2): Ditto.
28026         (log2<mode>2): Ditto.
28027         (log1p<mode>2): Ditto.
28028         (logb<mode>2): Ditto.
28029         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
28030         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
28031         (*fxtractxf3_i387): Rename from *fxtractxf3.
28032         (fxtract_extend<mode>xf3_i387): New insn pattern.
28033         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
28034         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
28035         and gen_fyl2xxf3_i387().
28036
28037 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
28038
28039         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
28040         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
28041         get_loop_exit_edges.  Changed return type to bool.
28042         * cfgloop.h (fix_loop_placement): Declaration removed.
28043
28044 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
28045
28046         * param.h (MIN_VECT_LOOP_BOUND): New.
28047         * params.def (MIN_VECT_LOOP_BOUND): New.
28048         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
28049         argument - minimum threshold for number of iterations.
28050         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
28051         argument to declaration.
28052         * tree-vect-analyze.c (vect_analyze_operations): Check value of
28053         MIN_VECT_LOOP_BOUND.
28054         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
28055         slpeel_tree_peel_loop_to_edge with additional argument.
28056         (vect_do_peeling_for_alignment): Likewise.
28057         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
28058
28059 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
28060
28061         PR target/30413
28062         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
28063         operands of size 1.
28064
28065 2007-01-14  Jan Hubicka  <jh@suse.cz>
28066
28067         * tree-dfa.c (remove_referenced_var): New function.
28068         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
28069         prune referenced vars list too.
28070         * tree-flow.h (remove_referenced_var): Declare.
28071
28072 2007-01-14  Jan Hubicka  <jh@suse.cz>
28073
28074         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
28075         separately.
28076         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
28077         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
28078         * except.h (verify_eh_throw_table_statements): Kill prototype.
28079         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
28080         into call exrepssions.
28081         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
28082         eh trhow verifier.
28083         * tree-cfg.c: Include pointer-set.h.
28084         (verify_node_sharing): Work on pointer set.
28085         (verify_eh_throw_stmt_node): New.
28086         (verify_stmts): Use pointers sets, verify throw_stmt.
28087
28088 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
28089
28090         * ipa-reference.c (analyze_function): Consider also addresses taken
28091         in phi nodes.
28092
28093 2007-01-12  Roger Sayle  <roger@eyesopen.com>
28094
28095         * c-typeck.c (null_pointer_constant_p): Replace use of
28096         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
28097         (build_c_cast): Likewise.
28098
28099 2007-01-12  Roger Sayle  <roger@eyesopen.com>
28100
28101         * tree.h (force_fit_type_double): Remove unused final argument.
28102         * c-common.c (constant_expression_warning): Replace use of
28103         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
28104         (convert_and_check): Likewise.
28105         (shorten_compare): Update call to force_fit_type_double.
28106         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
28107         * convert.c (convert_to_pointer): Update call to
28108         force_fit_type_double.
28109         * fold-const.c (force_fit_type_double): Remove overflowed_const
28110         argument.
28111         (int_const_binop, fold_convert_const_int_from_int,
28112         fold_convert_const_int_from_real, fold_div_compare,
28113         fold_sign_changed_comparison, fold_unary, fold_negate_const,
28114         fold_abs_const, fold_not_const): Remove the final argument from
28115         calls to force_fit_type_double.
28116
28117 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28118
28119         * configure.ac: Set insn to "nop" for spu-*-* also.
28120         * configure: Regenerate.
28121
28122 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
28123
28124         * builtins.def : Add BUILT_IN_FREE.
28125
28126 2007-01-12  Jan Hubicka  <jh@suse.cz>
28127
28128         PR tree-optimization/30443
28129         * tree-inline.c (tree_function_versioning): Do not optimize when
28130         cloning for inlining.
28131
28132 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
28133
28134         * doc/loop.texi: Document recording of loop exits.
28135         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
28136         (update_single_exits_after_duplication,
28137         update_single_exit_for_duplicated_loop,
28138         update_single_exit_for_duplicated_loops): Removed.
28139         (duplicate_loop_to_header_edge): Do not call
28140         update_single_exits_after_duplication and
28141         update_single_exit_for_duplicated_loops.
28142         (loop_version): Do not update single_exit information.
28143         (fix_loop_structure): Use record_loop_exits instead of
28144         mark_single_exit_loops.
28145         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
28146         the lists of loop exits.
28147         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
28148         split_edge, merge_blocks): Update the lists of loop exits.
28149         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
28150         loop_optimizer_init.
28151         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
28152         of mark_single_exit_loops.
28153         (loop_optimizer_finalize): Call release_recorded_exits.
28154         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
28155         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
28156         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
28157         update single exit information.
28158         * lambda-code.c (perfect_nestify): Ditto.
28159         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
28160         (mark_single_exit_loops): Removed.
28161         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
28162         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
28163         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
28164         functions.
28165         (get_loop_exit_edges, single_exit): Use recorded exit lists.
28166         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
28167         (verify_loop_structure): Verify consistency of the exit lists.
28168         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
28169         (set_single_exit): Removed.
28170         * cfgloop.h (struct loop_exit): New function.
28171         (struct loop): single_exit_ field replaced by exits field.
28172         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
28173         LOOPS_HAVE_RECORDED_EXITS.
28174         (struct loops): Added exits hash.
28175         (mark_single_exit_loops, set_single_exit): Declaration removed.
28176         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
28177
28178 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28179
28180         * doc/invoke.texi: Avoid use of @headitem.
28181
28182 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28183
28184         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
28185
28186 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28187
28188         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
28189         list of targets.
28190
28191 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
28192             Richard Sandiford  <richard@codesourcery.com>
28193
28194         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
28195         * config/m68k/m68k.opt: Resort options.
28196         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
28197
28198 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
28199             Richard Sandiford  <richard@codesourcery.com>
28200
28201         * doc/invoke.texi: Document the macros that are defined by
28202         m68k's -mtune and -mhard-float options.
28203         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
28204         (m68k_cpp_cpu_family): Likewise.
28205         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
28206         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
28207         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
28208         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
28209         (m68k_cpp_cpu_family): Likewise.
28210
28211 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28212
28213         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
28214         macros besides mc68000 as tuning macros.  Use a switch statement
28215         to set them and mcpu32.
28216
28217 2007-01-12  Julian Brown  <julian@codesourcery.com>
28218
28219         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
28220         (TARGET_68040_ONLY): Rename to...
28221         (TARGET_68040): ...this.
28222         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
28223         * config/m68k/m68k.md: Likewise.
28224
28225 2007-01-12  Julian Brown  <julian@codesourcery.com>
28226             Nathan Sidwell  <nathan@codesourcery.com>
28227             Richard Sandiford  <richard@codesourcery.com>
28228
28229         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
28230         the -mcpu= argument associated with the --with-cpu setting.
28231         Define M68K_DEFAULT_TUNE to the default -mtune= option,
28232         if different from the one implied by the -mcpu setting.
28233         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
28234         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
28235         * doc/invoke.texi: Mention ColdFire in the introduction to the
28236         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
28237         -mno-div and -mhard-float options.  Make -m68881 a synonym for
28238         -mhard-float.  Document the previously-undocumented -m5206e,
28239         -m528x, -m5307 and -m5407 options.  Tweak the existing option
28240         documentation for consistency.
28241         * doc/install.texi: Mention new --with-cpu arguments.
28242         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
28243         default CPU if neither -mcpu nor -march are specified.
28244         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
28245         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
28246         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
28247         using m68k_tune to decide between families that implement the
28248         same ISA.  Use m68k_tune to set __mcfv4e__.
28249         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
28250         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
28251         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
28252         (FL_ISA_C, FL_ISA_MMU): New macros.
28253         (MASK_COLDFIRE): Delete.
28254         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
28255         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
28256         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
28257         (TARGET_HARD_FLOAT): Do not define here.
28258         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
28259         (TUNE_68000): New macro.
28260         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
28261         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
28262         (TUNE_CFV2): Redefine in terms of m68k_tune.
28263         (uarch_type, target_device, fpu_type): New enums.
28264         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
28265         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
28266         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
28267         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
28268         (FL_FOR_isa_c): New macros.
28269         (m68k_isa): New enum.
28270         (m68k_target_selection): New structure.
28271         (all_devices, all_isas, all_microarchs): New tables.
28272         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
28273         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
28274         (MASK_ALL_CPU_BITS): Delete.
28275         (m68k_find_selection): New function.
28276         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
28277         Map the legacy target options to a combination of the new ones.
28278         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
28279         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
28280         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
28281         settings.
28282         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
28283         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
28284         properties.
28285         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
28286         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
28287         * config/m68k/m68k-devices.def: New file.
28288
28289 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28290             Nathan Sidwell  <nathan@codesourcery.com>
28291
28292         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
28293         (SUBTARGET_EXTRA_SPECS): New macros.
28294         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
28295         use %(asm_cpu_spec) instead.
28296         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
28297         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28298         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28299         (EXTRA_SPECS): Rename to...
28300         (SUBTARGET_EXTRA_SPECS): ...this.
28301
28302 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
28303             Richard Sandiford  <richard@codesourcery.com>
28304             Julian Brown  <julian@codesourcery.com>
28305
28306         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
28307         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
28308         to the configuration's default CPU.
28309         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
28310         Remove default masks.
28311         (m680[012]0-*-*): Set the default with_cpu to the first part of
28312         the target name.
28313         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
28314         (m68k*-*-linux): Extend the --with-cpu handling to...
28315         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
28316         and m68010.  Don't set target_cpu_default2.
28317         * doc/install.texi: Document --with-cpu for m68k.
28318         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
28319         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
28320         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
28321         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
28322         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
28323         (ASM_SPEC): Remove use of %(asm_cpu_default).
28324         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
28325         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
28326         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
28327         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
28328         __HAVE_FPU__ if TARGET_HARD_FLOAT.
28329         (TARGET_DEFAULT): Delete.
28330         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
28331         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
28332         (CPP_CPU_SPEC): Delete.
28333         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
28334         the appropriate string.
28335         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
28336         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
28337         (ASM_SPEC): Don't use %(asm_default_spec).
28338         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
28339         TARGET_DEFAULT and add MASK_68881.
28340         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
28341
28342 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28343
28344         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
28345         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
28346         MASK_68010 alongside MASK_68020.
28347         * doc/invoke.texi: Document -m68010.
28348         * config/m68k/m68k.opt (m68010): New.
28349         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
28350         if TUNE_68010.
28351         (TUNE_68010): New macro.
28352         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
28353         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
28354         (M68K_CPU_m68332): Add MASK_68010.
28355         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
28356         fallback definition.
28357         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
28358         defines.
28359         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
28360         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
28361         to all entries that use MASK_68020.
28362         (output_move_simode_const, output_move_himode, output_move_qimode)
28363         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
28364         instead of TARGET_68020 to select clr behavior.  Remove comment
28365         about there being no TARGET_68010.
28366         * config/m68k/m68k.md: Likewise throughout.
28367
28368 2007-01-12  Julian Brown  <julian@codesourcery.com>
28369
28370         * config/m68k/m68k.h (TARGET_ISAB): New macro.
28371         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
28372         * config/m68k/m68k.md: Likewise.
28373
28374 2007-01-12  Julian Brown  <julian@codesourcery.com>
28375
28376         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
28377         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
28378
28379 2007-01-12  Julian Brown  <julian@codesourcery.com>
28380
28381         * config/m68k/m68k.h (TUNE_68040_60): New macro.
28382         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
28383         * config/m68k/m68k.md: Likewise.
28384
28385 2007-01-12  Julian Brown  <julian@codesourcery.com>
28386             Richard Sandiford  <richard@codesourcery.com>
28387
28388         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
28389         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
28390         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
28391         TARGET_CPU32.
28392         (TARGET_CPU32): Rename to...
28393         (TUNE_CPU32): ...this.
28394         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
28395         (TUNE_CFV2): New macros.
28396         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
28397         remove conditions that are implied by TARGET_68020.
28398         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
28399         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
28400         (m68k_output_function_epilogue): Likewise.
28401         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
28402         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
28403         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
28404         non-68000 timings.  Refactor multiplication and division costs.
28405         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
28406         TUNE_CPU32 instead of TARGET_CPU32.
28407         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
28408         and TUNE_68060 instead of TARGET_68060.
28409         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
28410         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
28411         TARGET_CPU32.
28412         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
28413         && !TARGET_COLDFIRE" to choose between moveq and clr.
28414         Likewise in the unnamed movsf pattern.
28415         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
28416         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
28417         ashiftrt pattern.
28418
28419 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
28420
28421         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
28422         of tabbing before backslashes.
28423
28424 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28425
28426         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
28427         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
28428         (ASM_OUTPUT_INTERNAL_LABEL): Define.
28429
28430 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
28431
28432         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
28433         find_interesting_uses_cond.
28434         (find_interesting_uses_cond): Use extract_cond_operands.
28435         (rewrite_use_compare): Use extract_cond_operands and
28436         force_gimple_operand_bsi.  Do not call update_stmt.
28437         (determine_use_iv_cost_condition): Use extract_cond_operands.
28438         Return cheaper of using original bound and changing the exit bound.
28439
28440 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
28441
28442         PR tree-optimization/29516
28443         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
28444         most_expensive_mult_to_index, addr_to_parts,
28445         create_mem_ref, maybe_fold_tmr): Make the type of
28446         fields of TARGET_MEM_REF sizetype.
28447         (move_fixed_address_to_symbol, move_pointer_to_base):
28448         New functions.
28449         * tree.def (TARGET_MEM_REF): Add comment on types of
28450         the operands.
28451
28452 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
28453
28454         * c-common.c (vector_types_convertible_p): Treat opaque types as
28455         always convertible if they have the same size, but not otherwise.
28456
28457 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
28458
28459         * ifcvt.c (struct noce_if_info): Add comments to the fields.
28460         Remove the b_unconditional field.
28461         (noce_try_sign_mask): Do not look at b_unconditional.
28462         (noce_process_if_block): Do not use merge_if_blocks.  Update
28463         the CFG here.  Do not set b_unconditional.
28464         (cond_move_process_if_block): Likewise.
28465         (find_cond_trap): Likewise.
28466         (check_cond_move_block): Require simple jump insns at the end
28467         of the basic block.
28468
28469 2007-01-11  Jan Hubicka  <jh@suse.cz>
28470
28471         PR tree-optimization/1046
28472         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
28473         when alias info is not ready.
28474         (pass_tail_recursion): Do not require aliasing.
28475         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
28476         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
28477         * tree-ssa-copy.c (pass_copy_prop): Likewise.
28478         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
28479         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
28480         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
28481         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
28482         before inlining.
28483         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
28484         When aliasing is not build, mark statement as volatile.
28485
28486 2007-01-11  Tom Tromey  <tromey@redhat.com>
28487
28488         PR preprocessor/15185, PR preprocessor/20989:
28489         * doc/cppopts.texi <-MT>: Update description of algorithm for
28490         computing default target.
28491         <-M, -MD>: Reword "basename" text.
28492
28493 2007-01-11  Roger Sayle  <roger@eyesopen.com>
28494
28495         * builtins.c (expand_builtin_pow, expand_builtin_powi,
28496         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
28497         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
28498         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
28499         fold_builtin_bswap, real_constp, fold_builtin_pow,
28500         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
28501         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
28502         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
28503         * convert.c (convert_to_pointer): Likewise.
28504         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
28505         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
28506         const_binop, fold_convert_const_int_from_int,
28507         fold_convert_const_int_from_real,
28508         fold_convert_const_real_from_real, sign_bit_p,
28509         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
28510         fold_sign_changed_comparison, fold_unary, fold_comparison,
28511         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
28512         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
28513         * print-tree.c (print_node_brief, print_node): Likewise.
28514         * stor-layout.c (place_field, layout_type): Likewise.
28515         * tree-chrec.c (keep_cast): Likewise.
28516         * tree.c (build_vector, build_real, build_real_from_int_cst,
28517         build_complex): Likewise.
28518
28519 2007-01-11  Roger Sayle  <roger@eyesopen.com>
28520
28521         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
28522         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
28523
28524 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
28525
28526         * configure.ac (strict1_warn): Rename to strict_warn.
28527         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
28528         cc_set_by_configure, quoted_cc_set_by_configure,
28529         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
28530         all_boot_languages, all_stagestuff): Remove.
28531         (target_list): Remove bootstrap targets.
28532         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
28533         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
28534         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
28535         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
28536         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
28537         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
28538         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
28539         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
28540         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
28541         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
28542         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
28543         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
28544         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
28545         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
28546         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
28547         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
28548         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
28549         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
28550         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
28551         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
28552         (mostlyclean): Adjust.
28553         (clean, distclean): Don't mention bootstrap stuff.
28554         * configure: Regenerate.
28555         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
28556         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
28557         treelang/config-lang.in (stagestuff): Remove.
28558         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
28559         stageprofile, stagefeedback, stagestuff): Remove mention.
28560
28561 2007-01-11  Nick Clifton  <nickc@redhat.com>
28562
28563         * config/mcore/predicates.md (mcore_general_movesrc_operand):
28564         Accept CONSTs.
28565         (mcore_general_movdst_operand): Do not accept CONST_INTs.
28566         (mcore_arith_K_S_operand): Run the test for the S constraint not
28567         the test for the M constraint.
28568         (mcore_addsub_operand): Do not accept integer values that are
28569         larger than 32 bits.
28570         * config/mcore/mcore.md: Remove unused constraints from split.
28571         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
28572         (addsi3): Likewise.
28573         (allocate_stack): Likewise.
28574         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
28575         operands to 32 bits.
28576         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
28577         INTVAL.
28578         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
28579         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
28580         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
28581         mcore_output_bclri, mcore_output_andn, output_inline_const,
28582         mcore_output_move, mcore_output_movedouble): Likewise.
28583         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
28584         (output_inline_const): Likewise.
28585         (output_inline_const): Fix format strings used in sprintf
28586         statements.
28587         * config/mcore/mcore-protos.h: Update prototypes for changed
28588         functions in mcore.c.
28589         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
28590         HOST_WIDE_INT and not int.
28591         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
28592         CONST_OK_FOR_N): Likewise.
28593         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
28594         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
28595         an INTVAL.
28596
28597 2007-01-10  Jan Hubicka  <jh@suse.cz>
28598
28599         * tree-vrp.c (remove_range_assertions): Release defs.
28600         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
28601         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
28602
28603 2007-01-10  Paul Brook  <paul@codesourcery.com>
28604
28605         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
28606         * config/arm/arm.md (mulsi3subsi): New insn.
28607
28608 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
28609
28610         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
28611         (tree_transform_and_unroll_loop): New.
28612         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
28613         Declare.
28614
28615 2007-01-10  Robert Kennedy <jimbob@google.com>
28616
28617         * fold-const.c (fold_comparison): Fold comparisons like (x *
28618         1000 < 0) to (x < 0).
28619
28620 2007-01-10  Ian Lance Taylor  <iant@google.com>
28621
28622         * tree-pretty-print.c (dump_generic_node): Print parentheses when
28623         operands have the same priority.
28624
28625 2007-01-10  Tom Tromey  <tromey@redhat.com>
28626
28627         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
28628         (fold_binary): Likewise.
28629         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
28630         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
28631         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
28632         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
28633         * langhooks.h (struct lang_hooks): Removed field
28634         'can_use_bit_fields_p'.
28635
28636 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
28637
28638         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
28639
28640 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
28641
28642         * function.c (get_last_funcdef_no): New function.
28643         * function.h (get_last_funcdef_no): Declare.
28644         * tree-inline.c (initialize_cfun): Add initialization.
28645         (tree_function_versioning): Cleanup.
28646
28647 2007-01-10  Jan Hubicka  <jh@suse.cz>
28648
28649         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
28650         PHIs.
28651
28652 2007-01-10  Sa Liu  <saliu@de.ibm.com>
28653             Ben Elliston  <bje@au.ibm.com>
28654
28655         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
28656         for SAVE_NONLOCAL and Pmode for any other save level.
28657         * spu-protos.h (spu_restore_stack_block): Declare.
28658         * spu.md (save_stack_block): Remove.
28659         (restore_stack_block): Call spu_restore_stack_block.
28660         * spu.c (spu_restore_stack_block): New function.
28661         (spu_expand_epilogue): Remove old comment.
28662
28663 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
28664
28665         PR tree-optimization/30322
28666         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
28667         (cand_value_at): Return the value as aff_tree.
28668         (may_eliminate_iv): Convert the bound from aff_tree to tree.
28669         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
28670         aff_combination_mult): New functions.
28671         (aff_combination_add): Use aff_combination_add_cst.
28672         (aff_combination_convert): Allow conversions to a wider type.
28673         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
28674         * tree-affine.h (aff_combination_mult): Declare.
28675
28676 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
28677
28678         * doc/tm.texi: Update documentation to reflect reality of exec
28679         and start file search behaviours. Update copyright year.
28680         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
28681         header file directories.
28682
28683 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
28684
28685         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
28686         (*cosxf2): Rename to cosxf2_i387.
28687         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
28688         using X87MODEF12 mode macro. Rename patterns to
28689         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
28690         for SSE math.
28691         (*cosdf2, *cossf2): Ditto.
28692         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
28693         to match extended input operands.
28694         (sincos<mode>3): New expander.
28695         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
28696         insn patterns and corresponding splitters.
28697
28698 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
28699
28700         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
28701         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
28702
28703 2007-01-09  Nicolas Pitre  <nico@cam.org>
28704
28705         PR target/30173
28706         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
28707
28708 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
28709
28710         * target.h (struct gcc_target): New field library_rtti_comdat.
28711         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
28712         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
28713         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
28714         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
28715
28716 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
28717
28718         * doc/invoke.texi (Optimize Options): Correct description of -O0.
28719
28720 2007-01-08  Richard Guenther  <rguenther@suse.de>
28721
28722         * tree.h (force_fit_type_double): Export.
28723         (force_fit_type): Remove.
28724         * fold-const.c (force_fit_type_double): New function.
28725         (force_fit_type): Remove.
28726         (int_const_binop): Use it.
28727         (fold_convert_const_int_from_int): Likewise.
28728         (fold_convert_const_int_from_real): Likewise.
28729         (fold_div_compare): Likewise.
28730         (fold_sign_changed_comparison): Likewise.
28731         (fold_unary): Likewise.
28732         (fold_negate_const): Likewise.
28733         (fold_abs_const): Likewise.
28734         (fold_not_const): Likewise.
28735         * c-common.c (shorten_compare): Use force_fit_type_double.
28736         * convert.c (convert_to_pointer): Likewise.
28737
28738 2007-01-08  Richard Guenther  <rguenther@suse.de>
28739
28740         * tree.h (build_int_cst_wide_type): Export.
28741         * tree.c (build_int_cst_wide_type): New function.
28742         (build_int_cst_wide): Fix comment.
28743         * builtins.c (fold_builtin_object_size): Use build_int_cst
28744         to build -1 or 0 of the correct type.  Use fit_double_type
28745         to check for overflow.
28746         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
28747         to build the mask.
28748         (decode_field_reference): Likewise.
28749         (all_ones_mask_p): Likewise.
28750         (native_interpret_int): Use build_int_cst_wide_type.
28751         (fold_binary): Use build_int_cst_type to build an all-ones
28752         value.
28753         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
28754
28755 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
28756
28757         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
28758
28759 2007-01-09  Ben Elliston  <bje@au.ibm.com>
28760
28761         * genautomata.c (STATS_OPTION): New option.
28762         (stats_flag): New flag.
28763         (gen_automata_option): Handle it.
28764         (initiate_automaton_gen): Ditto.
28765         (write_automata): Output statistics only if stats_flag is
28766         set. Likewise, output time statistics only if time_flag is set.
28767         * doc/md.texi (Processor pipeline description): Document new flag.
28768
28769 2007-01-08  Richard Guenther  <rguenther@suse.de>
28770
28771         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
28772         * tree.c (build_int_cst_type): Likewise.
28773         (size_in_bytes): Don't call force_fit_type on the result.
28774         (int_fits_type_p): Use fit_double_type.
28775         * fold-const.c (fit_double_type): New function.
28776         (force_fit_type): Use it.
28777         * tree.h (fit_double_type): Export.
28778
28779 2007-01-08  Jan Hubicka  <jh@suse.cz>
28780
28781         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
28782         * ipa.c (function_and_variable_visibility): Fix return type.
28783
28784 2007-01-08  Richard Guenther  <rguenther@suse.de>
28785
28786         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
28787         of offset to build the index.
28788         * tree-pretty-print.c (dump_generic_node): Don't build negated
28789         const just for printing.
28790         * c-pretty-print.c (pp_c_integer_constant): Likewise.
28791         * builtins.c (fold_builtin_int_roundingfn): Check if result
28792         fits the type by using force_fit_type and comparing the result.
28793         * predict.c (predict_loops): Use compare_tree_int for comparison.
28794         * tree.c (build_int_cst): Fall back to integer_type_node for
28795         NULL_TREE type.
28796         (build_int_cst_wide): Assert type is non-null.
28797
28798 2007-01-08  Roberto Costa  <roberto.costa@st.com>
28799
28800         * tree-vrp.c (extract_range_from_cond_expr): New.
28801         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
28802         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
28803         as expressions.
28804         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
28805         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
28806         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
28807         used as expressions.
28808         * tree-object-size.c (cond_expr_object_size): New.
28809         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
28810
28811 2007-01-08  Jan Hubicka  <jh@suse.cz>
28812
28813         * tree-ssa-forwprop.c (forward_propagate_into_cond,
28814         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
28815         statement.
28816
28817 2007-01-08  Richard Guenther  <rguenther@suse.de>
28818
28819         PR tree-optimization/23603
28820         * tree-vrp.c (set_value_range_to_truthvalue): New function.
28821         (extract_range_from_binary): Fall back to truthvalue instead of
28822         varying for TRUTH_*_EXPR.
28823         (extract_range_from_comparison): Fall back to truthvalue instead of
28824         varying.
28825         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
28826         if all visited PHI values were constant.
28827
28828 2007-01-08  Jan Hubicka  <jh@suse.cz>
28829
28830         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
28831         (cgraph_analyze_function): break out from ...
28832         (cgraph_finalize_compilation_unit): ... here.
28833         (cgraph_expand_function): Remove forgoten commented out line.
28834         (cgraph_optimize): Analyze functions.
28835
28836 2007-01-08  Jan Hubicka  <jh@suse.cz>
28837
28838         * tree-pas.h (TODO_remove_function): New flag.
28839         (TODO_update*): Renumber.
28840         (pass_ipa_increase_alignment,
28841         pass_ipa_function_and_variable_visibility): New passes.
28842         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
28843         (cgraph_function_and_variable_visibility): Move to ipa.c
28844         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
28845         cgraph_increase_alignment.
28846         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
28847         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
28848         calling tree-inline.
28849         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
28850         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
28851         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
28852         (gate_increase_alignment): New function.
28853         (pass_ipa_increase_alignment): New pass.
28854         * ipa.c: Inline tree-pass.h and timevar.h
28855         (function_and_variable_visibility): Move here from cgraphunit.c
28856         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
28857         * passes.c (init_optimization_passes): Add the two new passes.
28858         (execute_todo): Handle cgraph_remove_functions.
28859
28860 2007-01-08  Nick Clifton  <nickc@redhat.com>
28861
28862         * config/frv/predicates.md (reg_or_0_operand): Accept
28863         CONST_DOUBLEs.
28864
28865 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
28866
28867         * config/bfin/rtems.h, config/bfin/t-rtems: New.
28868         * config.gcc: Add bfin*-rtems*.
28869
28870 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
28871
28872         * c.opt: Add -flax-vector-conversions.
28873         * c-typeck.c (convert_for_assignment): Pass flag to
28874         vector_types_convertible_p to allow emission of note.
28875         (digest_init): Likewise.
28876         * c-opts.c: Handle -flax-vector-conversions.
28877         * c-common.c (flag_lax_vector_conversions): New.
28878         (vector_types_convertible_p): Unless -flax-vector conversions
28879         has been passed, disallow conversions between vectors with
28880         differing numbers of subparts and/or element types.  If such
28881         a conversion is disallowed, possibly emit a note on the first
28882         occasion only to inform the user of -flax-vector-conversions.
28883         The new last argument specifies this.
28884         * c-common.h (flag_lax_vector_conversions): New.
28885         (vector_types_convertible_p): Add extra argument.
28886         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
28887         char_type_node for V*QI type vectors.
28888         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
28889         Update to satisfy new typechecking rules.
28890         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
28891         C and C++ variants.
28892         * doc/invoke.texi (C Dialect Options): Document
28893         -flax-vector-conversions.
28894
28895 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
28896
28897         PR tree-optimization/29877
28898         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
28899         a register variable on the RHS to not be replaceable.
28900
28901 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
28902         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
28903         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
28904         const_simm15, const_pow2, const_npow2): Added.
28905         * config/score/misc.md (insv, extv, extzv, movmemsi,
28906         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
28907         * config/score/score.c (score_address_cost, score_select_cc_mode):
28908         Added.
28909         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
28910         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
28911         Update score_print_operand.
28912         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
28913         Adjust register allocate order and update some macro define.
28914         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
28915         mdx_block_move_straight, mdx_block_move_loop_head,
28916         mdx_block_move_loop_body, mdx_block_move_loop_foot,
28917         mdx_block_move_loop, mdx_block_move): Added.
28918         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
28919         mdp_limm): Updated and fix some bug and typo.
28920         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
28921         (movsf, movdf, doloop_end): Added.
28922
28923 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
28924
28925         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
28926         config/arm/thumb2.md: Fix comment typos.
28927         * doc/extend.texi: Fix a typo.
28928
28929 2007-01-07  Eric Christopher  <echristo@apple.com>
28930
28931         * configure.ac: Check for __stack_chk_fail for darwin.
28932         * configure: Regenerate.
28933
28934 2007-01-07  Richard Guenther  <rguenther@suse.de>
28935
28936         * tree-vrp.c (extract_range_from_assert): CSE calls to
28937         compare_values where possible.
28938         (extract_range_from_unary_expr): Likewise.
28939
28940 2007-01-07  Anatoly Sokolov <aesok@post.ru>
28941
28942         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
28943         * config/avr/avr.c (call_insn_operand): Delete function.
28944         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
28945         instead of register number. Use predicates.
28946         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
28947         call_insn_operand): Add.
28948
28949 2007-01-06  Jan Hubicka  <jh@suse.cz>
28950
28951         * tree-pass.h (pass_build_cgraph_edges): Declare.
28952         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
28953         (visited_nodes): Remove.
28954         (cgraph_create_edges): Move to cgraphbuild.c; rename to
28955         build_cgrpah_edges; make visited_nodes local.
28956         (cgraph_process_new_functions): DO not call initialize_inline_failed.
28957         (record_references_in_initializer): Move to cgraphbuild.c
28958         (initialize_inline_failed, rebuild_cgraph_edges,
28959         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
28960         (verify_cgraph_node): Make visited_nodes local.
28961         (cgraph_analyze_function): Do not call cgraph_create_edges and
28962         initialize_inline_failed.
28963         (cgraph_expand_function): Do not call cgraph_lower_function;
28964         assert that function is already lowered.
28965         * Makefile.in (cgraphbuild.o): New.
28966         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
28967         at the end of lowering passes.
28968
28969 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
28970
28971         * ifcvt.c (cond_move_convert_if_block): New function, code
28972         factored out from...
28973         (cond_move_process_if_block): ...here.  Call the new function
28974         on the THEN and ELSE blocks.
28975         (merge_if_block): Do not copy global_live_at_end, merge_blocks
28976         already takes care of this.
28977
28978 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28979
28980         PR c/19978
28981         * tree.h (TREE_OVERFLOW_P): New.
28982         * c-typeck.c (parser_build_unary_op): Warn only if result
28983         overflowed and operands did not.
28984         (parser_build_binary_op): Likewise.
28985         (convert_for_assignment): Remove redundant overflow_warning.
28986         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
28987
28988 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28989
28990         * c-typeck.c (store_init_value): Split over two lines to follow
28991         the GNU coding style.
28992
28993 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
28994
28995         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
28996         __GXX_EXPERIMENTAL_CXX0X__.
28997         * doc/cpp.texi: Same.
28998
28999 2007-01-05  Richard Guenther  <rguenther@suse.de>
29000
29001         PR middle-end/27826
29002         * tree.c (get_narrower): Do not construct COMPONENT_REFs
29003         with mismatched types.  Instead explicitly build a
29004         conversion NOP_EXPR.
29005
29006 2007-01-05  Ian Lance Taylor  <iant@google.com>
29007
29008         * c-common.c (decl_with_nonnull_addr_p): New function.
29009         (c_common_truthvalue_conversion): Call it.
29010         * c-typeck.c (build_binary_op): Likewise.
29011         * c-common.h (decl_with_nonnull_addr_p): Declare.
29012
29013 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
29014
29015         PR c/30360
29016         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
29017         denom against 0.0.
29018
29019 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
29020
29021         * doc/install.texi (Final install): Document the fact that
29022         the GNAT runtime should not be stripped.
29023
29024 2007-01-04  Jan Hubicka  <jh@suse.cz>
29025
29026         * tree-inline.c (fold_marked_statements): Update operand caches
29027         and EH after folding
29028
29029 2007-01-04  Ian Lance Taylor  <iant@google.com>
29030
29031         * c-common.c (check_function_nonnull): Whitespace fix.
29032
29033 2007-01-04  Jan Hubicka  <jh@suse.cz>
29034
29035         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
29036         comitted older version of patch.
29037         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
29038         function, celanup cfg and collect garbage.
29039
29040 2007-01-04  Mike Stump  <mrs@apple.com>
29041
29042         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
29043         (clean): Likewise.
29044
29045 2007-01-04  Eric Christopher  <echristo@apple.com>
29046
29047         * libgcc2.c (__bswapsi2): Use SItype.
29048         (__bswapdi2): Use DItype.
29049         * libgcc2.h: Update for above.
29050
29051 2007-01-04  Paul Brook  <paul@codesourcery.com>
29052
29053         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
29054         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
29055         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
29056         umulsidi3, umulsidi3adddi, smulsi3_highpart,
29057         umulsi3_highpart): Make conditional on !arm_arch6.
29058         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
29059         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
29060         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
29061         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
29062         umulsi3_highpart_v6): New insns.
29063
29064 2007-01-04  Roger Sayle  <roger@eyesopen.com>
29065
29066         * fold-const.c (fold_convert): When casting an expression to void,
29067         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
29068         have a type.  Instead of attempting to build a NOP_EXPR, return
29069         these "special" trees directly.
29070
29071 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
29072
29073         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
29074         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
29075         rs6000_cost->fp not 0 as adjustment for outer NEG.
29076
29077 2007-01-04  Jan Hubicka  <jh@suse.cz>
29078
29079         * cgraph.c (cgraph_release_function_body): New function.
29080         (cgraph_remove_node): Use it.
29081         * cgraph.h (cgraph_release_function_body): Declare.
29082         * cgraphunit.c (cgraph_expand_function): Use it.
29083         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
29084         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
29085         is initialized and while compilation of other function is running.
29086         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
29087         statement CFG annotations from here to ...
29088         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
29089
29090 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
29091
29092         * cfgloop.h (enum li_flags): Make the constants powers of two.
29093
29094 2007-01-04  Jan Hubicka  <jh@suse.cz>
29095
29096         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
29097         set.
29098         (fold_marked_statements): New function.
29099         (optimize_inline_calls, tree_function_versioning): Fold new statements.
29100         * tree-inline.h (copy_body_data): Add statements_to_fold.
29101
29102 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
29103
29104         * config.gcc: Mention libgcc/config.host.
29105         * Makefile.in: Update comments mentioning libgcc.
29106         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
29107         (all.cross, start.encap, rest.encap, rest.cross): Update
29108         dependencies for libgcc move.
29109         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
29110         (clean-target, clean-target-libgcc): Delete.
29111         (srcdirify, GCC_EXTRA_PARTS): New macros.
29112         (libgcc-support, libgcc.mvars): New rules.
29113         (distclean): Remove mention of mklibgcc.
29114         (install): Don't reference INSTALL_LIBGCC.
29115         (install-common): Don't reference EXTRA_PARTS.
29116         (install-libgcc, install-multilib): Delete rules.
29117         * mklibgcc.in: Delete file.
29118         * doc/configfiles.texi: Don't mention mklibgcc.
29119
29120         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
29121         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
29122         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
29123         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
29124         (mklibgcc, ldblspecs): Likewise.
29125
29126         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
29127         (posixpre.def): Use $(T).
29128         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
29129         (SHLIB_SRC, SHLIB_INSTALL): Delete.
29130         (SHLIB_LINK): Make dummy.
29131         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
29132
29133         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
29134
29135         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
29136         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
29137         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
29138         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
29139
29140         * configure.ac (all_outputs): Remove mklibgcc.
29141         * configure: Regenerated.
29142
29143 2007-01-03  Josh Conner  <jconner@apple.com>
29144
29145         PR middle-end/29683
29146         * calls.c (compute_argument_addresses): Set stack and stack_slot
29147         for partial args, too.
29148         (store_one_arg): Use locate.size.constant for the size when
29149         generating a save_area.
29150
29151 2007-01-03  Robert Kennedy <jimbob@google.com>
29152
29153         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
29154         whose definitions are deleted due to basic block merging.
29155
29156 2007-01-03  Paul Brook  <paul@codesourcery.com>
29157
29158         PR target/16634
29159         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
29160         functions.
29161         (use_return_insn): Return 0 for Thumb interrupt functions.
29162         (print_multi_reg): Add rfe argument for IRQ returns.
29163         (arm_output_epilogue): Pop interrupt return address directly into PC.
29164         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
29165
29166 2007-01-03  Paul Brook  <paul@codesourcery.com>
29167
29168         Merge from sourcerygxx-4_1.
29169         * config/arm/thumb2.md: New file.
29170         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
29171         Thumb-2.
29172         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
29173         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
29174         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
29175         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
29176         tables.
29177         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
29178         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
29179         comptibility.
29180         * config/arm/ieee754-sf.S: Ditto.
29181         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
29182         (thumb1_base_register_rtx_p): ... to this.
29183         (thumb_index_register_rtx_p): Rename...
29184         (thumb1_index_register_rtx_p): ... to this.
29185         (thumb_output_function_prologue): Rename...
29186         (thumb1_output_function_prologue): ... to this.
29187         (thumb_legitimate_address_p): Rename...
29188         (thumb1_legitimate_address_p): ... to this.
29189         (thumb_rtx_costs): Rename...
29190         (thumb1_rtx_costs): ... to this.
29191         (thumb_compute_save_reg_mask): Rename...
29192         (thumb1_compute_save_reg_mask): ... to this.
29193         (thumb_final_prescan_insn): Rename...
29194         (thumb1_final_prescan_insn): ... to this.
29195         (thumb_expand_epilogue): Rename...
29196         (thumb1_expand_epilogue): ... to this.
29197         (arm_unwind_emit_stm): Rename...
29198         (arm_unwind_emit_sequence): ... to this.
29199         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
29200         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
29201         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
29202         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
29203         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
29204         thumb2_output_casesi): New functions.
29205         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
29206         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
29207         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
29208         THUMB2_WORK_REGS): Define.
29209         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
29210         arm_condexec_mask, arm_condexec_masklen)): New variables.
29211         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
29212         (arm_override_options): Check new CPU capabilities.
29213         Set new architecture flag variables.
29214         (arm_isr_value): Handle v7m interrupt functions.
29215         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
29216         Thumb-2.
29217         (const_ok_for_arm): Handle Thumb-2 constants.
29218         (arm_gen_constant): Ditto.  Use movw when available.
29219         (arm_function_ok_for_sibcall): Return false for v7m interrupt
29220         functions.
29221         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
29222         (thumb_find_work_register, arm_load_pic_register,
29223         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
29224         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
29225         print_multi_reg, output_mov_long_double_fpa_from_arm,
29226         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
29227         output_mov_double_fpa_from_arm, output_move_double,
29228         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
29229         output_return_instruction, arm_output_function_prologue,
29230         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
29231         arm_output_mi_thunk, thumb_set_return_address): Ditto.
29232         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
29233         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
29234         (arithmetic_instr, shift_op): Use arm_shift_nmem.
29235         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
29236         '!' and 'L'.
29237         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
29238         (thumb_expand_prologue): Use thumb_set_frame_pointer.
29239         (arm_file_start): Output directive for unified syntax.
29240         (arm_unwind_emit_set): Handle stack alignment instruction.
29241         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
29242         Add v6t2, v7, v7a, v7r and v7m.
29243         (RETLDM): Add Thumb-2 code.
29244         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
29245         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
29246         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
29247         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
29248         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
29249         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
29250         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
29251         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
29252         ADJUST_INSN_LENGTH): Define.
29253         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
29254         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
29255         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
29256         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
29257         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
29258         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
29259         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
29260         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
29261         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
29262         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
29263         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
29264         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
29265         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
29266         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
29267         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
29268         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
29269         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
29270         cortex-m3.
29271         * config/arm/arm-tune.md: Regenerate.
29272         * config/arm/arm-protos.h: Update prototypes.
29273         * config/arm/vfp.md: Enable patterns for Thumb-2.
29274         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
29275         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
29276         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
29277         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
29278         * config/arm/libunwind.S: Add Thumb-2 code.
29279         * config/arm/constraints.md: Update include Thumb-2.
29280         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
29281         * config/arm/ieee754-df.S: Ditto.
29282         * config/arm/bpabi.S: Ditto.
29283         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
29284         * config/arm/predicates.md (low_register_operand,
29285         low_reg_or_int_operand, thumb_16bit_operator): New.
29286         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
29287         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
29288         * config/arm/t-arm-elf: Add armv7 multilib.
29289         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
29290         Include thumb2.md.
29291         (UNSPEC_STACK_ALIGN, ce_count): New.
29292         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
29293         arm_zero_extendsidi2, arm_zero_extendqidi2): New
29294         insns/expanders.
29295         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
29296         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
29297         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
29298         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
29299         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
29300         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
29301         insns.
29302         * doc/extend.texi: Document ARMv7-M interrupt functions.
29303         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
29304
29305 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
29306
29307         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
29308         (struct _Unwind_Context): Rename args_size to flags, remove
29309         signal_frame field, add a new args_size field and version field.
29310         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
29311         _Unwind_IsExtendedContext): New inline functions.
29312         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
29313         Assume by_value array is only present if _Unwind_IsExtendedContext.
29314         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
29315         _Unwind_IsSignalFrame.
29316         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
29317         (uw_update_context_1): Use _Unwind_SetSignalFrame.
29318         (uw_init_context_1): Initialize context->flags to
29319         EXTENDED_CONTEXT_BIT.
29320         * config/rs6000/linux-unwind.h (frob_update_context): Use
29321         _Unwind_SetSignalFrame.
29322
29323 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29324
29325         PR middle-end/30353
29326         * gimplify.c (gimplify_modify_expr_complex_part): Move below
29327         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
29328         the value.
29329
29330 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
29331
29332         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
29333         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
29334         RET, AT_SP): Remove.
29335         * config/i386/i386.md (*sse_prologue_save_insn): Use return
29336         instead of RET.
29337
29338         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
29339         * cfgbuild.c (find_basic_blocks): Likewise.
29340         * cfgrtl.c (rtl_create_basic_block): Likewise.
29341         * function.c (temp_slots_at_level): Likewise.
29342         * reg-stack.c (stack_regs_mentioned): Likewise.
29343         * regclass.c (allocate_reg_info): Likewise.
29344         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
29345         set_bb_for_stmt, move_block_to_fn): Likewise.
29346         * tree-complex.c (tree_lower_complex): Likewise.
29347         * vec.h (VEC_safe_grow_cleared): New.
29348
29349         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
29350
29351 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
29352
29353         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
29354         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
29355         to loop_version.
29356         * cfgloopmanip.c (scale_loop_frequencies): Export.
29357         (loopify): Scale the frequencies by prescribed coefficients.
29358         (set_zero_probability): New function.
29359         (duplicate_loop_to_header_edge): Improve updating of frequencies.
29360         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
29361         and frequencies according to arguments.
29362         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
29363         correctly.
29364         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
29365         * modulo-sched.c (sms_schedule): Set probabilities for entering
29366         versioned loop correctly.
29367         * tree-vect-transform.c (vect_transform_loop): Ditto.
29368         * cfgloop.h (loopify, loop_version): Declaration changed.
29369         (scale_loop_frequencies): Declared.
29370
29371 2007-01-02  Jan Hubicka  <jh@suse.cz>
29372
29373         * cgraph.c: Include tree-flow.h
29374         (cgraph_add_new-function): Handle IPA_SSA mode; execute
29375         early_local_passes.
29376         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
29377         * tree-pass.h (pass_all_early_optimizations): Declare.
29378         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
29379         early_local_passes.
29380         (cgraph_analyze_function): Do early_local_passes.
29381         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
29382         Do not add referenced vars.
29383         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
29384         SSA form.
29385         (gate_all_early_local_passes): New gate.
29386         (pass_early_local_passes): Use new gate.
29387         (execute_early_local_optimizations): New functions.
29388         (gate_all_early_optimizations): New gate.
29389         (pass_all_early_optimizations): New pass.
29390         (execute_free_datastructures): Free SSA only when initialized.
29391         (gate_init_datastructures): Init only when optimizing.
29392         (tree_lowering_passes): Do early local passes when called late.
29393         * tree-profile.c (do_tree_profiling): Don't profile functions added
29394         late.
29395         (do_early_tree_profiling, pass_early_tree_profile): Kill.
29396         * tree-cfg.c (update_modified_stmts): Do not update when operands are
29397         not active.
29398         * passes.c (init_optimizations_passes): Reorder so we go into SSA
29399         during early_local_passes.
29400         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
29401
29402
29403 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
29404
29405         * Makefile.in: Update copyright year.
29406
29407 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
29408
29409         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
29410         in $(lang_checks) and check-consistency targets.
29411
29412 2007-01-02  Jan Hubicka  <jh@suse.cz>
29413
29414         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
29415         Do not add referenced vars.
29416         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
29417         are not active.
29418         * passes.c (init_optimization_passes): Put mudflap_2 after
29419         free_datastructures.
29420
29421 2007-01-02  Jan Hubicka  <jh@suse.cz>
29422
29423         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
29424         Set NOTHROW flag on call statements proved to be nothrow.
29425         Update statement of local calls so new pure/const functions are
29426         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
29427         goto receivers.
29428         (tree_rest_of_compilation): Register hooks and initialize bitmap
29429         early. Do not set after_inlining flag.
29430
29431 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
29432
29433         * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
29434         HOST_BITS_PER_LONGLONG
29435
29436 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29437
29438         PR c/19977
29439         * c-typeck.c (store_init_value): Don't emit pedantic overflow
29440         warning for non-static initializers.
29441
29442 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
29443
29444         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
29445         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
29446         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
29447         Always use set_unique_reg_note to add REG_EQUAL notes.
29448
29449 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
29450
29451         Revert:
29452         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
29453
29454         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
29455         * cfgbuild.c (find_basic_blocks): Likewise.
29456         * cfgrtl.c (rtl_create_basic_block): Likewise.
29457         * function.c (temp_slots_at_level): Likewise.
29458         * reg-stack.c (stack_regs_mentioned): Likewise.
29459         * regclass.c (allocate_reg_info): Likewise.
29460         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
29461         set_bb_for_stmt, move_block_to_fn): Likewise.
29462         * tree-complex.c (tree_lower_complex): Likewise.
29463         * vec.h (VEC_safe_grow_cleared): New.
29464
29465 2007-01-02  Ian Lance Taylor  <iant@google.com>
29466
29467         * c-common.c (c_common_truthvalue_conversion): When warning about
29468         using an assignment as a truth value, set TREE_NO_WARNING.
29469
29470 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
29471
29472         PR middle-end/7651
29473         * c.opt (Wold-style-declaration): New.
29474         * doc/invoke.texi (C-only Warning Options): New.
29475         (Wold-style-declaration): Document it.
29476         (Wextra): Enabled by -Wextra.
29477         * c-opts.c (c_common_post_options): Enabled by -Wextra.
29478         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
29479         -Wold-style-declaration.
29480
29481 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
29482
29483         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
29484         * cfgbuild.c (find_basic_blocks): Likewise.
29485         * cfgrtl.c (rtl_create_basic_block): Likewise.
29486         * function.c (temp_slots_at_level): Likewise.
29487         * reg-stack.c (stack_regs_mentioned): Likewise.
29488         * regclass.c (allocate_reg_info): Likewise.
29489         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
29490         set_bb_for_stmt, move_block_to_fn): Likewise.
29491         * tree-complex.c (tree_lower_complex): Likewise.
29492         * vec.h (VEC_safe_grow_cleared): New.
29493
29494 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
29495
29496         * c-common.c (c_common_nodes_and_builtins): Since variants of
29497         void_type_node get built before it is given a name, we need to
29498         give those variants the name, too.
29499         (complete_array_type): We need to work with the canonical main
29500         type of the array, from which we will build the qualified version.
29501         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
29502         * print-tree.c (print_node): Display canonical type information
29503         for each type.
29504         * stor-layout.c (layout_type): When we don't know the
29505         alignment of a type for which we're building an array, we end up
29506         guessing wrong, so make the type require structural equality.
29507         * tree.c (make_node_stat): When we build a new type, it is its
29508         own canonical type.
29509         (build_type_attribute_qual_variant): When building an attribute
29510         variant, its canonical type is the non-attribute variant. However,
29511         if the attributes are target-dependent and they differ, we need to
29512         use structural equality checks for this type.
29513         (build_qualified_type): A qualified type is not equivalent to its
29514         unqualified variant; set the canonical type appropriately.
29515         (build_distinct_type_copy): When building a distinct type from
29516         another type, the new type is its own canonical type.
29517         (build_variant_type_copy): When building a new type variant, we
29518         assume that it is equivalent to the original type.
29519         (build_pointer_type_for_mode): When building a pointer type, also
29520         build a canonical type pointer.
29521         (build_reference_type_for_mode): When building a reference type,
29522         also build a canonical type reference.
29523         (build_index_type): When we can't hash an index type (e.g.,
29524         because its maximum value is negative), the index type requires
29525         structural equality tests.
29526         (build_array_type): Build the canonical form of an array type.
29527         (build_function_type): Function types require structural equality,
29528         because they contain default arguments, attributes, etc.
29529         (build_method_type_directly): Ditto for method types.
29530         (build_offset_type): Build the canonical offset type.
29531         (build_complex_type): Build the canonical vector type.
29532         (make_vector_type): Build the canonical vector type.
29533         * tree.h (TYPE_CANONICAL): New.
29534         (TYPE_STRUCTURAL_EQUALITY_P): New.
29535         (SET_TYPE_STRUCTURAL_EQUALITY): New.
29536         (struct tree_type): Added "canonical" field.
29537         * params.h (VERIFY_CANONICAL_TYPES): New.
29538         * doc/c-tree.texi (TYPE_CANONICAL): Document.
29539         (TYPE_STRUCTURAL_EQUALITY_P): Document.
29540         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
29541         * doc/invoke.texi (verify-canonical-types): Document --param
29542         parameter for verifying canonical types.
29543
29544 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29545
29546         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
29547         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
29548         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
29549         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
29550         tm_file.
29551         * config/rs6000/e500.h: New.
29552         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
29553         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
29554         Remove.
29555         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
29556         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
29557         TARGET_E500_DOUBLE): Remove.
29558         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
29559         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
29560         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
29561         * config/rs6000/rs6000.c (rs6000_override_options): Use
29562         CHECK_E500_OPTIONS.
29563
29564 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29565
29566         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
29567         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
29568         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
29569         rs6000_emit_cmove): Don't check TARGET_E500.
29570         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
29571         sordered): Don't check TARGET_E500.
29572
29573 2007-01-01  Eric Christopher  <echristo@apple.com>
29574
29575         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
29576         HARD_REGISTER_NUM_P.
29577
29578 2007-01-01  Roger Sayle  <roger@eyesopen.com>
29579
29580         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
29581         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
29582         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
29583         eq/ne Y".
29584
29585 2007-01-01  Mike Stump  <mrs@apple.com>
29586
29587         * configure.ac: Remove support for building with Apple's gcc-3.1.
29588
29589 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29590
29591         PR middle-end/30311
29592         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
29593         REG is a hard register.  Do not modify REG before calling
29594         subreg_nregs.
29595         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
29596         multiple of the size of YMODE for certain lowpart cases.
29597
29598 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29599
29600         PR middle-end/30253
29601         * gimplify (voidify_wrapper_expr): Update for
29602         GIMPLE_MODIFY_STMT.
29603
29604 2007-01-01  Andreas Schwab  <schwab@suse.de>
29605
29606         PR target/29166
29607         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
29608         save of BR0 in extra_spill_size instead of spill_size.
29609         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
29610         area.
29611         (ia64_expand_epilogue): Restore BR0 from its new location.
29612
29613 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29614
29615         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
29616         Use a temporary variable if the left hand side is not a gimple
29617         register.
29618
29619 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29620
29621         * gimplify.c (gimplify_return_expr): Make the temporary variable
29622         for the return expression, a gimple register variable.
29623
29624 2007-01-01  Jan Hubicka  <jh@suse.cz>
29625
29626         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
29627         INSN_LIST.
29628
29629 2007-01-01  Mike Stump  <mrs@apple.com>
29630
29631         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
29632         .literal16.
29633         * config/darwin.c (machopic_select_rtx_section): Use
29634         HAVE_GAS_LITERAL16.
29635         (darwin_mergeable_constant_section): Likewise.
29636         * configure: Regenerate.
29637         * config.in: Regenerate.
29638
29639 2007-01-01  Jan Hubicka  <jh@suse.cz>
29640             Andrew Pinski  <pinskia@gmail.com>
29641
29642         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
29643         before starting IPA passes.