OSDN Git Service

* config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2
3         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
4         (DO_GLOBAL_DTORS_BODY): Likewise.
5
6 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7             Nigel Stephens  <nigel@mips.com>
8
9         * config/mips/mips.c (mips_classify_symbol): Don't return
10         SYMBOL_SMALL_DATA for constant pool addresses if
11         TARGET_EMBEDDED_DATA is true.
12
13 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
14
15         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
16         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
17         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
18         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
19         __builtin_ia32_storehps, __builtin_ia32_storelps,
20         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
21         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
22         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
23         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
24         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
25         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
26         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
27         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
28         using def_builtin_const.
29
30 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
31
32         PR tree-optimization/32705
33         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
34         (simplify_binary_expression): Use SSA_VAL consistently.
35
36 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
37
38         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
39         (SPEFSCR_REGNO): Delete definition.
40         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
41         COUNT_REGISTER_REGNUM -> CTR_REGNO.
42         * config/rs6000/rs6000.h: Do not define *_REGNO.
43         LINK_REGISTER_REGNUM -> LR_REGNO.
44         COUNT_REGISTER_REGNUM -> CTR_REGNO.
45         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
46         COUNT_REGISTER_REGNUM -> CTR_REGNO.
47         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
48         R_VRSAVE, R_VSCR. Use them.
49         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
50         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
51         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
52         * config/rs6000/aix.h: Define R_LR.  Use it.
53         
54 2007-07-13  Caroline Tice  <ctice@apple.com>
55         
56         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
57         flag_var_tracking is explicitly turned off (i.e. when variable
58         tracking is not feasible); otherwise, turn flag_var_tracking on when
59         flag_var_tracking_uninit is on.
60         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
61         note definitions, to allow recording of initialization status in the
62         notes.
63         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
64         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
65         determine if two note locations are equal.
66         (output_loc_list): Don't output list entries whose start & end labels
67         are the same.
68         (reg_loc_descriptor): Add parameter for initialization status; pass it
69         to other loc descriptor functions.
70         (one_reg_loc_descriptor): Add parameter for initialization status;
71         check its value and add DW_OP_GNU_uninit to returned loc descr if
72         appropriate.
73         (multiple_reg_loc_descriptor): Add parameter for initialization
74         status;
75         pass init status argument to other loc descriptor functions; check
76         value of intialization parameter and add DW_OP_GNU_uninit to returned
77         loc descr if appropriate.
78         (based_loc_descr): Add parameter for initialization status; add new
79         variable for return value; check value of initialization parameter and
80         add DW_OP_GNU_uninit to returned loc descr if appropriate.
81         (concatn_mem_loc_descriptor): Add parameter for initialization status;
82         pass init status argument to other loc descriptor functions; check
83         value of intialization parameter and add DW_OP_GNU_uninit to returned
84         loc descr if appropriate.
85         (mem_loc_descriptor): Likewise.
86         (concat_loc_descriptor): Likewise.
87         (concatn_loc_descriptor): Likewise.
88         (loc_descriptor): Add parameter for initialization status; pass it as
89         argument to other loc descriptor function calls.
90         (loc_descriptor_from_tree_1): Add appropriate initialization status
91         to loc descriptor function calls.
92         (add_location_or_const_value_attribute): Get initialization status
93         from VAR_LOCATION note; add initialization status to loc descriptor
94         function calls.
95         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
96         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
97         status is uninitialized, add "[uninint]" to output.
98         * common.opt (fvar-tracking-uninit): New option, similar to
99         fvar-tracking, to turn on tracking of uninitialized variables; creates
100         a new global flag, flag_var_tracking_uninit.
101         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
102         (enum var_init_status): New type, for var initialization status field.
103         * var-tracking.c (struct location_chain_def): Two new fields, init,
104         for initialization status, and set_src for the assignment value expr.
105         (unshare_variable): New parameter for initialization status;
106         initialize new init and set_src fields.
107         (var_reg_set): New parameters for initialization status and value;
108         pass them to set_variable_part.
109         (var_mem_set): Likewise.
110         (get_init_value): New function.
111         (var_reg_delete_and_set): New initialization status & value
112         parameters; add call to get_init_value if status is unknown; pass new
113         parameters to clobber_variable_part and var_reg_set.
114         (var_mem_delete_and_set): Likewise.
115         (var_reg_delete): Pass null set_src value to clobber_variable_part.
116         (var_mem_delete): Likewise.
117         (variable_union): Pass status to unshare_variable; initialize new init
118         and set_src fields. If flag_var_tracking_uninit is not set, force
119         status to initialized.
120         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
121         used later to get the set_src value.
122         (find_src_status): New function.
123         (find_src_set_src): New function.
124         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
125         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
126         MO_SET, get set_src value and pass it to var_reg_delete_and_set
127         and var_mem_delete_and_set.
128         (dump_variable): Print out "[uninit]" if appropriate.
129         (set_variable_part): Add new initialization and set_src parameters;
130         pass status to unshare_variable; set node->init and node- >set_src
131         fields and modify slot in hash table appropriately; save the init and
132         set_src values if appropriate and assign to the new node.
133         (clobber_variable_part): New set_src parameter; if two nodes have
134         same variable and same location but different set_src (assignment)
135         values, clobber old node.
136         (delete_variable_part): Pass init status to unshare_variable.
137         (emit_note_insn_var_location): Add initialized var; assign var's init
138         status to new 'initialized'; pass new init status field to calls to
139         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
140         status to initialized.
141         (emit_notes_in_bb): Pass initialization status to calls to
142         var_reg_set, var_mem_set, var_reg_delete_and_set and
143         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
144         var_reg_delete_and_set and var_mem_delete_and_set; call
145         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
146         make up for change in add_stores.
147         (vt_add_function_parameters): Add status to calls to
148         set_variable_part.
149         * config/darwin.c (darwin_override_options): Turn on uninitialized
150         tracking automatically, if var_tracking is on and the system is
151         10.5 or higher.
152         
153 2007-07-13  Sa Liu  <saliu@de.ibm.com>
154
155         * config.gcc: Add options for arch and tune on SPU.
156         * config/spu/predicates.md: Add constant operands 0 and 1.
157         * config/spu/spu-builtins.def: Add builtins for double precision 
158         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
159         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
160         spu_testsv.
161         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
162         a CELLEDP target.
163         * config/spu/spu-protos.h: Add new function prototypes. 
164         * config/spu/spu.c (spu_override_options): Check options -march and
165         -mtune.
166         (spu_comp_icode): Add comparison code for DFmode and vector mode.
167         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
168         mode comparison.
169         (spu_const_from_int): New.  Create a vector constant from 4 ints.
170         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
171         (spu_emit_vector_compare): New.  Emit vector compare.
172         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
173         * config/spu/spu.h: Add options -march and -mtune.  Define processor
174         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
175         CANONICALIZE_COMPARISON.
176         * config/spu/spu.md: Add new insns for double precision compare
177         and double precision vector compare.  Add vcond and smax/smin patterns
178         to enable DFmode vector conditional expression.
179         * config/spu/spu.opt: Add options -march and -mtune.
180         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
181         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
182         both CELL and CELLEDP targets: spu_testsv.
183         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
184         values.
185
186 2007-07-13  Richard Guenther  <rguenther@suse.de>
187
188         PR tree-optimization/32721
189         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
190         TREE_THIS_VOLATILE on the folded reference.
191         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
192         if the array reference has TREE_THIS_VOLATILE set.
193
194 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
195
196         PR other/32188
197         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
198
199 2007-07-13  Andreas Schwab  <schwab@suse.de>
200
201         * gengtype-lex.l: Allow declarations to be indented.
202
203 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
204
205         * ginclude/tgmath.h: New.
206         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
207         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
208         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
209         * configure: Regenerate.
210
211 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
212
213         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
214         correct index when setting register save state for xd
215         registers.
216
217 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
218
219         * config/sh/sh.c (mark_use): Remove.
220
221 2007-07-12  Paul Brook  <paul@codesourcery.com>
222
223         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
224         reg does not overlap return value.
225
226 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
227
228         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
229         (set_expression_vuses): Ditto.
230         (init_pre): Initialize expression_vuses.
231
232 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
233
234         * config/i386/sse.md (storentdf, storentsf): New.
235
236 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
237
238         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
239         FUNCTION_DECL.
240         * tree.c (build_decl_stat): Move code from here...
241         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
242         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
243         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
244         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
245         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
246         FUNCTION_BOUNDARY.
247
248 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
249             Devang Patel  <dpatel@apple.com>
250
251         PR tree-optimization/25413
252         * targhooks.c (default_builtin_vector_alignment_reachable): New.
253         * targhooks.h (default_builtin_vector_alignment_reachable): New.
254         * tree.h (contains_packed_reference): New.
255         * expr.c (contains_packed_reference): New.
256         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
257         (vect_enhance_data_refs_alignment): Call
258         vector_alignment_reachable_p.
259         * target.h (vector_alignment_reachable): New builtin.
260         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
261         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
262         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
263
264 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
265
266         * target.h (builtin_vectorization_cost): Add new target builtin.
267         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
268         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
269         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
270         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
271         uninitialized variables.
272         * tree-vect-transform.c (cost_for_stmt): New function.
273         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
274         using cost 1 for all scalar stmts. Be less conservative when
275         estimating the number of prologue/epulogue iterations. Call
276         targetm.vectorize.builtin_vectorization_cost. Return
277         min_profitable_iters-1.
278         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
279         initialization cost instead of TARG_VEC_STMT_COST. Use
280         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
281         epilogue code. Fix epilogue cost computation.
282         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
283         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
284         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
285         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
286         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
287         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
288
289 2007-07-12  Richard Guenther  <rguenther@suse.de>
290
291         * gimplify.c (gimplify_conversion): Make sure that the result
292         from maybe_fold_offset_to_reference is trivially convertible
293         to the desired type before doing the simplification.
294         (gimplify_expr): Likewise.
295         * fold-const.c (fold_binary): Use the correct types for
296         building the simplified expression.
297
298 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
299
300         PR rtl-optimization/32729
301         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
302         that fallthru to exit.
303
304 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
305
306         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
307         (symDTPOFF2reg): Likewise.
308
309 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
310
311         PR tree-optimization/32663
312         
313         * tree.h (VALUE_HANDLE_VUSES): Remove.
314         (struct tree_value_handle): Remove vuses.
315
316         * tree-vn.c (create_value_handle_for_expr): Don't set
317         VALUE_HANDLE_VUSES. 
318
319         * tree-ssa-pre.c (expression_vuses): New.
320         (alloc_expression_id): Set up expression_vuses.
321         (get_expression_vuses): New.
322         (set_expression_vuses): Ditto.
323         (clear_expression_ids): Modify for expression_vuses.
324         (phi_translate_1): Ditto.
325         (phi_translate_set): Ditto.
326         (value_dies_in_block_x): Ditto
327         (valid_in_sets): Ditto.
328         (add_to_sets): Ditto.
329         (find_existing_value_expr): Ditto.
330         (create_value_handle_for_expr): Ditto.
331         (make_values_for_stmt): Ditto.
332         (vuse_equiv): Remove.
333
334 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
335
336         * Makefile.in (mostlyclean): Remove object files.
337
338 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
339
340         * toplev.c (no_new_pseudos): Deleted.
341         * rtl.h (no_new_pseudos): Deleted.
342         * tree-pass.h (pass_no_new_pseudos): Deleted. 
343         * passes.c (pass_no_new_pseudos): Deleted.
344         * final.c (rest_of_clean_state): Removed no_new_pseudos.
345         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
346         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
347         reload_completed.
348         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
349         * rtlhooks.c (gen_lowpart_general): Ditto.
350         * optabs.c (prepare_operand): Ditto.
351         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
352         no_new_pseudos.
353         * modulo-sched.c (rest_of_handle_sms): Ditto.
354         * see.c (rest_of_handle_see): Ditto.
355         * ifcvt.c (if_convert): Ditto.
356         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
357         reload_completed.
358         * init-regs.c (gate_initialize_regs): Deleted set of
359         no_new_pseudos.
360         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
361         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
362         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
363         
364 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
365
366         PR target/32661
367         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
368         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
369         (*vec_extractv2di_1_rex64): New insn pattern.
370
371 2007-07-11  David Daney  <ddaney@avtrex.com>
372
373         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
374         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
375         for SIGNAL_UNWIND_RETURN_COLUMN.
376         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
377         (DWARF_FRAME_REGNUM): Rewrite.
378         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
379
380 2007-07-11  Nick Clifton  <nickc@redhat.com>
381
382         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
383         delta and use gen_int_mode in place of GET_INT instead.
384
385 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
386
387         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
388         and letter field.
389
390 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
391
392         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
393         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
394         types or not.
395         * params.h (VERIFY_CANONICAL_TYPES): Remove.
396         (USE_CANONICAL_TYPES): New.
397         * doc/invoke.texi (verify-canonical-types): Remove.
398         (use-canonical-types): Add.
399
400 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
401
402         * config/spu/spu.c (spu_optimization_options): Remove setting of
403         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
404         (spu_override_options): Move it here.
405
406 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
407
408         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
409         * config/mips/mips.c (mips_cpu_info_table): Mention
410         MIPS_ISA_LEVEL_SPEC in the comment.
411
412 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
413
414         PR tree-optimization/32713
415         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
416
417 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
418
419         PR middle-end/30482
420         * c-opts.c (c_common_post_options): Do not change flag_complex_method
421         conditional to flag_isoc99.
422         (c_common_init_options): Do it here, unconditionally.
423
424 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
425
426         PR tree-optimization/32589
427         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
428         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
429         * tree-ssa-propagate.c (valid_gimple_expression_p): New
430         predicate, extracted from...
431         (set_rhs): ...here.  Call it for the expression on entry.
432         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
433         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
434         (simplify_binary_expression): Use valid_gimple_expression_p
435         to validate the simplification.
436         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
437
438 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
439
440         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
441         DWARF2_DEBUG on 32 bit target too.
442         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
443
444 2007-07-11  Nick Clifton  <nickc@redhat.com>
445
446         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
447         version for 64-bit hosts.
448
449 2007-07-10  David Daney  <ddaney@avtrex.com>
450
451         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
452         predicate.
453         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
454         call.
455         * config/mips/mips.c (mips_expand_synci_loop): New function.
456         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
457         (UNSPEC_RDHWR): Same.
458         (UNSPEC_SYNCI): Same.
459         (UNSPEC_SYNC): Same.
460         (clear_cache): New expand.
461         (sync): New insn.
462         (synci): Same.
463         (rdhwr): Same.
464         (clear_hazard): Same.
465         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
466         function.
467         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
468         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
469
470 2007-07-10  Ian Lance Taylor  <iant@google.com>
471
472         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
473         no_new_pseudos.
474
475 2007-07-10  David Daney  <ddaney@avtrex.com>
476
477         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
478         * builtins.c (expand_builtin___clear_cache): New function.
479         (expand_builtin): Call expand_builtin___clear_cache for
480         BUILT_IN_CLEAR_CACHE case.
481         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
482         * doc/md.texi (clear_cache): Document new instruction pattern.
483         * testsuite/gcc.dg/builtins-64.c: New test.
484
485 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
486
487         * config/cris/cris.md ("movsi"): Fix typo in last change.
488
489 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
490
491         PR 32617
492         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
493         FUNCTION_DECLs.
494         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
495         * varasm.c (assemble_start_function): Honor DECL_ALIGN
496         for FUNCTION_DECLs.  Don't use align_functions_log if
497         DECL_USER_ALIGN.
498         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
499         even for FUNCTION_DECLs.
500         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
501         FUNCTION_DECLs.
502         * tree.h (DECL_ALIGN): Update for new location of 'align'.
503         (DECL_FUNCTION_CODE): Update for new location and name of
504         'function_code'.
505         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
506         (struct tree_decl_common): Move 'align' and 'off_align' out
507         of union, ensure they're still on a 32-bit boundary.  Remove
508         other fields in union 'u1'.
509         (struct tree_function_decl): Add field 'function_code' replacing
510         'u1.f' in tree_decl_common.
511         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
512         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
513         (Variable Attributes): Cross-reference 'aligned' attribute
514         to Function Attributes.
515         * flags.h (force_align_functions_log): Delete.
516         * toplev.c (force_align_functions_log): Delete.
517
518 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
519
520         PR target/32708
521         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
522         (*vec_concatv2di_rex): New insn pattern.
523
524 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
525
526         PR target/32538
527         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
528
529 2007-07-10  Ian Lance Taylor  <iant@google.com>
530
531         Replace no_new_pseudos in backends.
532         * rtl.h (can_create_pseudo_p): Define.
533         * config/darwin.c (machopic_indirect_data_reference): Use
534         can_create_pseudo_p () instead of no_new_pseudos.
535         (machopic_indirect_data_reference): Likewise.
536         (machopic_legitimize_pic_address): Likewise.
537         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
538         (alpha_emit_set_const_1): Likewise.
539         (alpha_emit_set_const): Likewise.
540         (alpha_emit_conditional_move): Likewise.
541         (alpha_split_conditional_move): Likewise.
542         * config/alpha/alpha.md (various splitters): Likewise.
543         (movti): Likewise.
544         * config/arm/arm.c (legitimize_pic_address): Likewise.
545         (arm_load_pic_register): Likewise.
546         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
547         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
548         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
549         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
550         * config/cris/cris.md (movsi): Likewise.
551         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
552         (symGOTOFF2reg_hilo): Likewise.
553         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
554         * config/h8300/h8300.md (insv, extzv): Likewise.
555         * config/i386/i386.c (ix86_expand_move): Likewise.
556         (ix86_expand_vector_move): Likewise.
557         (ix86_prepare_fp_compare_args): Likewise.
558         (ix86_expand_carry_flag_compare): Likewise.
559         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
560         (tls_dynamic_gnu2_combine_32): Likewise.
561         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
562         * config/ia64/ia64.c (ia64_expand_move): Likewise.
563         (ia64_expand_movxf_movrf): Likewise.
564         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
565         (m32c_split_move): Likewise.
566         (m32c_expand_insv): Likewise.
567         * config/m68k/m68k.md (movsi): Likewise.
568         * config/mips/mips.c (mips_force_temporary): Likewise.
569         (mips_split_symbol): Likewise.
570         (mips_move_integer): Likewise.
571         (mips_legitimize_const_move): Likewise.
572         * config/mn10300/mn10300.md (movsi): Likewise.
573         * config/pa/pa.c (emit_move_sequence): Likewise.
574         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
575         (rs6000_got_register): Likewise.
576         (create_TOC_reference): Likewise.
577         (rs6000_machopic_legitimize_pic_address): Likewise.
578         * config/rs6000/rs6000.md (add<mode>3): Likewise.
579         (various splitters): Likewise.
580         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
581         (movsi_got): Likewise.
582         * config/s390/s390.c (emit_symbolic_move): Likewise.
583         * config/s390/s390.md (movhi, movqi): Likewise.
584         (load_multiple, store_multiple): Likewise.
585         * config/score/score.c (score_force_temporary): Likewise.
586         * config/sh/sh.c (prepare_move_operands): Likewise.
587         (prepare_cbranch_operands): Likewise.
588         (emit_fpu_switch): Likewise.
589         (fpscr_set_from_mem): Likewise.
590         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
591         (adddi3, subsi3): Likewise.
592         (various splitters): Likewise.
593         (divsi_inv_fp_combine): Likewise.
594         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
595         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
596         (sne): Likewise.
597         * config/sh/predicates.md (xor_operand): Likewise.
598         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
599         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
600         (movdi_pic_label_ref): Likewise.
601         * config/spu/spu.c (spu_split_immediate): Likewise.
602         * config/alpha/alpha.md (various splitters): Remove test
603         !no_new_pseudos || reload_completed.
604         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
605         no_new_pseudos.
606         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
607         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
608         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
609         * config/score/score.c (th_output_mi_thunk): Likewise.
610         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
611         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
612
613 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
614
615         PR rtl-optimization/32664
616         * mode-switching.c (create_pre_exit): Skip barrier insns.
617
618 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
619
620         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
621         force_gimple_operand_bsi.
622         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
623         rewrite_use_compare): Ditto.
624         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
625         Ditto.
626         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
627         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
628         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
629         * tree-profile.c (prepare_instrumented_value,
630         tree_gen_interval_profiler, tree_gen_pow2_profiler,
631         tree_gen_one_value_profiler, tree_gen_ic_profiler,
632         tree_gen_ic_func_profiler, tree_gen_average_profiler,
633         tree_gen_ior_profiler): Ditto.
634         * tree-ssa-reassoc.c (negate_value): Ditto.
635         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
636         Use force_gimple_operand_bsi.
637         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
638         * tree-if-conv.c (add_to_dst_predicate_list,
639         find_phi_replacement_condition): Ditto.
640         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
641         Call mark_symbols_for_renaming for new statements.
642         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
643
644 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
645
646         * cfghooks.c (remove_edge): New function.
647         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
648         loop exit rescans.
649         * cfghooks.h (remove_edge): Declare.
650         * cfg.c (remove_edge): Renamed to remove_edge_raw.
651         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
652
653 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
654
655         * optabs.h: Added declaration for signbit_optab.  
656         * optabs.c: (init_optabs): Added initialization for signbit_optab.
657         * genoptinit.c (optabs): Added entry for signbit insns.  
658         * builtins.c (expand_builtin_signbit): Added code to use a signbit
659         insn, if available.  
660         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
661         * config/s390/s390.md (signbit<mode>2): New expander.  
662
663 2007-07-09  Richard Guenther  <rguenther@suse.de>
664
665         PR middle-end/32698
666         * fold-const.c (fold_plusminus_mult_expr): Move constant
667         arguments second to allow decomposing.
668
669 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
670
671         Revert:
672         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
673         PR debug/23551
674         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
675         Disregard DECL_FROM_INLINE.
676
677 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
678
679         PR target/27855
680         * doc/invoke.texi: Add ftree-reassoc flag.
681         * common.opt (ftree-reassoc): New flag.
682         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
683         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
684
685 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
686
687         PR tree-optimization/32681
688         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
689         saved in second_edge->aux when first_bb is a loop header.
690
691 2007-07-09  Jan HUbicka  <jh@suse.cz>
692
693         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
694
695 2007-07-09  Richard Guenther  <rguenther@suse.de>
696
697         * c-decl.c (start_function): Do not promote return type.
698
699 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
700
701         * function.c (do_warn_unused_parameter): Do not warn if
702         TREE_NO_WARNING is set.
703
704 2007-07-08  Andreas Schwab  <schwab@suse.de>
705
706         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
707
708 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
709
710         Revert this patch:
711         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
712
713         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
714         apply to assembly language, too.
715         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
716
717 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
718
719         Revert (note the sccvn portions are *not* reverted)
720         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
721
722         Fix PR tree-optimization/23488
723
724         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
725         handles.
726         * tree-flow-inline.h (get_value_handle): Ditto.
727         * tree-ssa-pre.c (decl_vh_map): New.
728         (decl_node_pool): New.
729         (can_value_number_operation): Support DECL_P.
730         (can_PRE_operation): Ditto.
731         (create_expression_by_pieces): Ditto.
732         (find_existing_value_expr): Modify to differnetiate between
733         addressing and top level.
734         (create_value_handle_for_expr): Handle DECL's.
735         (poolify_tree): Ditto.
736         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
737         (make_values_for_stmt): Handle DECL's properly.
738         (init_pre): Reorg to not init useless things during FRE.
739         (fini_pre): Ditto.
740         * tree-flow.h: Include pointer-set.h.
741         (decl_vh_map): Declare.
742         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
743
744 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
745
746         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
747         the constraint description.
748         * doc/md.texi: Update documentation of AVR constraints.
749
750 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
751
752         * auto-inc-dec.c, config/arm/arm.c,
753         config/m32r/constraints.md, config/mips/mips.md,
754         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
755         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
756         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
757         typos.  Follow spelling conventions.
758         * doc/invoke.texi, doc/rtl.texi: Fix typos.
759
760         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
761         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
762
763         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
764         realloc_vuse): Remove.
765         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
766         and realloc_vuse.
767
768 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
769
770         Fix PR tree-optimization/23488
771
772         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
773         (try_to_simplify): Ditto.
774         (visit_use): Ditto.
775         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
776         handles.
777         * tree-flow-inline.h (get_value_handle): Ditto.
778         * tree-ssa-pre.c (decl_vh_map): New.
779         (decl_node_pool): New.
780         (can_value_number_operation): Support DECL_P.
781         (can_PRE_operation): Ditto.
782         (create_expression_by_pieces): Ditto.
783         (find_existing_value_expr): Modify to differnetiate between
784         addressing and top level.
785         (create_value_handle_for_expr): Handle DECL's.
786         (poolify_tree): Ditto.
787         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
788         (make_values_for_stmt): Handle DECL's properly.
789         (init_pre): Reorg to not init useless things during FRE.
790         (fini_pre): Ditto.
791         * tree-flow.h: Include pointer-set.h.
792         (decl_vh_map): Declare.
793         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
794                 
795 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
796
797         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
798         apply to assembly language, too.
799         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
800
801 2007-07-06  Ian Lance Taylor  <iant@google.com>
802             Zack Weinberg  <zackw@panix.com>
803
804         PR middle-end/32441
805         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
806
807 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
808
809         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
810         (prefetch): Likewise if "pref" would be used.
811
812 2007-07-06  Josh Conner  <jconner@apple.com>
813
814         PR middle-end/32602
815         PR middle-end/32603
816         * calls.c (store_one_arg): Handle arguments which are partially
817         on the stack when detecting argument overlap.
818
819 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
820
821         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
822         chosen during find_reloads.
823
824 2007-07-06  Richard Guenther  <rguenther@suse.de>
825
826         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
827         TYPE_ARG_TYPES for verification of argument types.  Use
828         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
829         parameters as variable arguments.
830
831 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
832
833         * libgcc2.h (word_type): Type definition removed.
834         (cmp_return_type, shift_count_type): Type definitions added.
835         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
836         replaced with shift_count_type.
837         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
838         cmp_return_type.
839         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
840         changed from word_type to Wtype.
841         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
842         replaced with shift_count_type.
843         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
844         cmp_return_type.
845         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
846         and libgcc_shift_count attribute added.
847         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
848         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
849         (TARGET_INITIALIZER): New target hooks added.
850         * targhooks.c (default_libgcc_cmp_return_mode,
851         default_libgcc_shift_count_mode): Default implementations for the new
852         target hooks added.
853         * targhooks.h (default_libgcc_cmp_return_mode,
854         default_libgcc_shift_count_mode): Function prototypes added.
855         * target.h (struct gcc_target): Fields for the new target hooks added.
856         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
857         as library call.
858         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
859         library call.
860
861         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
862         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
863
864         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
865         s390_libgcc_shift_count_mode): Functions added.
866         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
867         Target hooks defined.
868
869 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
870
871         * config/mips/mips.c (compute_frame_size): Restore the original
872         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
873         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
874         Document why the difference is needed.
875
876 2007-07-06  Richard Guenther  <rguenther@suse.de>
877
878         * c-common.c (boolean_increment): Use correctly typed
879         constant.
880
881 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
882
883         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
884         the topmost argument register is not also included in the save mask.
885         (mips16e_collect_argument_save_p): Take a pointer to the argument
886         register, rather than a pointer to the number of arguments.
887         (mips16e_collect_argument_saves): Only include argument saves
888         that aren't in the register mask.
889
890 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
891
892         PR rtl-optimization/32450
893         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
894         to ensure that instructions are not moved into the prologue when
895         profiling is on.  Remove unused prologue_end variable.
896         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
897         as a scheduling barrier.
898
899 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
900
901         PR debug/23551
902         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
903         Disregard DECL_FROM_INLINE.
904
905 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
906
907         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
908         IORing with a constant.
909
910 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
911
912         PR rtl-optimization/32475
913         * df-scan.c (df_def_record_1): Add a use of the stack pointer
914         for every definition of the stack pointer.
915
916 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
917
918         * arm.c (vfp3_const_double_index): Copy signed results of
919         REAL_VALUE_TO_INT into unsigned vars.
920
921 2007-07-05  Richard Guenther  <rguenther@suse.de>
922
923         PR middle-end/32639
924         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
925         FUNCTION_TYPE.
926         * tree-ssa.c (useless_type_conversion_p): Check canonical
927         types early.
928
929 2007-07-05 Anatoly Sokolov <aesok@post.ru>
930
931         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
932         zero_extendhisi2): Change to define_insn_and_split. 
933         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
934
935 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
936
937         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
938         pass_match_asm_constraints): New.
939         * passes.c (init_optimization_passes): Add new pass.
940         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
941         * function.h (struct function): Add has_asm_statement bit.
942         (current_function_has_asm_statement): New.
943         * tree-pass.h (pass_match_asm_constraints): New.
944
945 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
946
947         * config/mips/mips.c (mips_file_start): Avoid declaration
948         after code.
949
950 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
951
952         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
953
954 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
955
956         * rtl.def (NOTE): Change print format string to print
957         operand 5 as a note insn name.
958
959 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
960             David Ung  <davidu@mips.com>
961
962         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
963         * doc/invoke.texi: (MIPS Options): Document them.
964
965 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
966             David Ung  <davidu@mips.com>
967
968         Add support for SmartMIPS ASE.
969
970         * optabs.c (expand_binop_directly): New, broken out from...
971         (expand_binop): Here.  Make it try rotating in the other
972         direction even when the second operand isn't constant.
973         * config/mips/mips.md (*lwxs): New.
974         * config/mips/mips.opt (msmartmips): New.
975         * config/mips/mips.c (mips_lwxs_address_p): New.
976         (mips_rtx_costs): Make it recognize scaled indexed addressing.
977         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
978         __mips_smartmips when compiling for TARGET_SMARTMIPS.
979         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
980         (ISA_HAS_LWXS): New.
981         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
982         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
983         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
984         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
985         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
986         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
987         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
988
989 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
990
991         * tree-vectorizer.c (new_loop_vec_info): Initialize
992         LOOP_VINFO_COST_MODEL_MIN_ITERS.
993         * tree-vectorizer.h (_loop_vec_info): Added new filed
994         min_profitable_iters.
995         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
996         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
997         * tree-vect-analyze.c (vect_analyze_operations): Set
998         LOOP_VINFO_COST_MODEL_MIN_ITERS.
999         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
1000         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
1001         Fix calculation of peel_iters_prologue. Move consideration of epilogue
1002         and prologue cost to after they are computed.
1003         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
1004         TARG_VEC_STMT_COST.
1005         (vect_model_simple_cost): Takes additional argument dt. Consider cost
1006         of creating vectors from scalars according to dt.
1007         (vect_model_store_cost): Likewise.
1008         (vectorizable_call): Use dt array instead of scalar dt. Call
1009         vect_model_simple_cost with additional argument dt.
1010         (vectorizable_assignment): Likewise.
1011         (vectorizable_operation): Likewise.
1012         (vectorizable_type_demotion): Likewise.
1013         (vectorizable_type_promotion): Likewise.
1014         (vectorizable_store): Use dt array instead of scalar dt. Call
1015         vect_model_store_cost with additional argument dt.
1016         (vect_do_peeling_for_loop_bound): Don't call
1017         vect_estimate_min_profitable_iters. Instead, lookup
1018         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
1019         "may not be profitable".
1020
1021 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
1022
1023         PR testsuite/32014
1024         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
1025         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
1026         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
1027         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
1028
1029 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
1030
1031         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
1032         addressing modes cheaper.
1033
1034 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
1035
1036         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
1037         (dw_ranges_struct): Rename block_num to num.  Adjust.
1038         (dw_ranges_by_label_struct): New.
1039         (ranges_by_label, ranges_by_label_allocated,
1040         ranges_by_label_in_use): New variables.
1041         (add_ranges_num): Factored most of the code out of...
1042         (add_ranges): ... this one.  Rewrite in terms of the former.
1043         (add_ranges_by_labels): New.
1044         (output_ranges): Output by-label ranges.
1045         (dwarf2out_finish): Output range for multiple-section
1046         compile_unit.  Output standard DW_AT_low_pc in addition to
1047         unexpected DW_AT_entry_pc.
1048
1049 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
1050
1051         PR tree-optimization/32604
1052         PR tree-optimization/32606
1053
1054         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
1055         (compute_antic_safe): Removed.
1056         (ANTIC_SAFE_LOADS): Ditto.
1057         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
1058         (execute_pre): Don't call compute_antic_safe.
1059         (vuse_equiv): New function.
1060         (make_values_for_stmt): Use it
1061         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
1062         not always true.
1063
1064 2007-07-04 Anatoly Sokolov <aesok@post.ru>
1065
1066         PR target/31331
1067         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
1068         rather than a decl. 
1069         (avr_attribute_table): Make "naked" attribute apply to function types
1070         rather than to decls.
1071         (avr_handle_fntype_attribute): New function.
1072
1073 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
1074
1075         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
1076         after \.
1077
1078 2007-07-04  David Ung  <davidu@mips.com>
1079             Joseph Myers  <joseph@codesourcery.com>
1080
1081         * config/mips/mips.md (type): Add logical, signext and move.
1082         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
1083         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
1084         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
1085         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
1086         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
1087         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
1088         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
1089         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
1090         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
1091         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
1092         movv2sf_hardfloat_64bit): Use the new types.
1093         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
1094         *movdf_softfloat, *movdf_mips16): Use "multi".
1095         (extendqihi2): Replace with a define_expand.
1096         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
1097         Based on extend<SHORT:mode><GPR:mode>2 patterns.
1098         * config/mips/74k.md (r74k_int_logical): New reservation and
1099         bypasses.
1100         (r74k_int_arith): Remove "slt".
1101         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
1102         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
1103         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
1104         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
1105         reservations for "arith".
1106
1107 2007-07-04  Richard Guenther  <rguenther@suse.de>
1108
1109         * tree-ssa.c (useless_type_conversion_p): Add handling for
1110         scalar float and vector types.  Only call the types_compatible_p
1111         langhook for aggregate types as last resort.  Follow the
1112         rules.
1113
1114 2007-07-04  Richard Guenther  <rguenther@suse.de>
1115
1116         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
1117         the same as NOP_EXPR.
1118
1119 2007-07-04  Nick Clifton  <nickc@redhat.com>
1120
1121         * target.h (struct gcc_target): Add target_help field.
1122         * target-def.h (TARGET_HELP): New.
1123         (TARGET_INITIALIZER): Use TARGET_HELP.
1124         * opts.c (command_handle_option): Invoke target_help function, if
1125         defined, when the user has specified --target-help on the command
1126         line.
1127         * doc/invoke.texi: Mention that --target-help might print
1128         additional information.
1129         * doc/tm.texi: Document TARGET_HELP hook.
1130
1131         * arm.c (TARGET_HELP): Override default definition.
1132         (arm_target_help): New - display a wrapped list of cores and
1133         architectures supported.
1134
1135 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1136
1137         * config/gcc/v850/v850.c (expand_prologue): Make sure
1138         GEN_INT() argument is sign extended rather than zero extended.
1139         (expand_epilogue): Likewise.
1140         (output_move_double): Delete.
1141         * config/gcc/v850/v850-protos.h (output_move_double): Delete.
1142         * config/gcc/v850/v850.md (movdi): Delete.
1143         (*movdi_internal): Delete.
1144         (movdf): Delete.
1145         (*movdf_internal): Delete.
1146
1147 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
1148
1149         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
1150         unless compiling RTP PIC.
1151
1152 2007-07-04  Richard Guenther  <rguenther@suse.de>
1153
1154         PR tree-optimization/32482
1155         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
1156         original ssa name if we didn't find a shift expression.
1157         Fix shift constant for bit zero test.
1158
1159 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
1160
1161         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
1162
1163 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
1164
1165         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
1166         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
1167         * config/arm/vxworks.h (ASM_SPEC): Delete.
1168         (SUBTARGET_EXTRA_ASM_SPEC): Define.
1169
1170 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
1171
1172         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
1173         (DDR_REVERSED_P): New.
1174         * tree-data-ref.c (initialize_data_dependence_relation,
1175         build_classic_dist_vector): Set DDR_REVERSED_P.
1176
1177 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
1178
1179         PR middle-end/32457
1180         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
1181         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
1182         init_omega_for_ddr_1): Use non conservative number of iterations
1183         estimations.
1184         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
1185         (analyze_siv_subscript): Remove FIXME and reinitialization of 
1186         last_conflicts to chrec_dont_know.
1187         * testsuite/gfortran.dg/vect/pr32457.f90: New.
1188
1189 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
1190
1191         * tree.c (maybe_canonicalize_argtypes): Improve description.
1192
1193 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
1194
1195         * tree.c (maybe_canonicalize_argtypes): New.
1196         (build_function_type): Set canonical type.
1197         (build_method_type_directly): Ditto.
1198         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
1199         properly.
1200
1201 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1202
1203         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
1204         like PLUS_EXPR.
1205         (rewrite_use_nonlinear_expr): Likewise.
1206
1207 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
1208
1209         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
1210
1211 2007-07-04  Ben Elliston  <bje@au.ibm.com>
1212
1213         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
1214         of this file.
1215
1216         * c-objc-common.c (c_types_compatible_p): Fix indentation.
1217
1218         * doc/tm.texi (Run-time Target): Capitalise "CPU".
1219         (Exception Handling): Likewise.
1220
1221 2007-07-03  Jan Hubicka  <jh@suse.cz>
1222
1223         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
1224
1225 2007-07-03  Eric Christopher  <echristo@apple.com>
1226
1227         * doc/cppopts.texi: Add conflicting option note to -dM.
1228         * doc/invoke.texi: Add note about possible conflicts with
1229         -E for -dCHARS and note that -dM will not produce
1230         any results if there is no machine dependent reorg.
1231         
1232 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
1233
1234         * tree.h (DECL_ALIGN): Back out previous change.
1235
1236 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
1237
1238         * configure.ac: Test for .dtprelword support on MIPS.
1239         * configure, config.in: Regenerate.
1240         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
1241         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
1242
1243 2007-07-03  Julian Brown  <julian@codesourcery.com>
1244
1245         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
1246         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
1247         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
1248         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
1249         capability.
1250         (all_fpus): Add FPUTYPE_VFP3.
1251         (fp_model_for_fpu): Add VFPv3 field.
1252         (arm_rtx_costs_1): Give cost to VFPv3 constants.
1253         (vfp3_const_double_index): New function. Return integer index of
1254         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
1255         isn't suitable.
1256         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
1257         and argument represents a valid RTX for a VFPv3 constant.
1258         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
1259         two instructions.
1260         (vfp_emit_fstmd): Similar, for fstmd.
1261         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
1262         constants, represented as integer indices.
1263         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
1264         VFP_REGNO_OK_FOR_DOUBLE macros.
1265         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
1266         (arm_file_start): Set float-abi attribute for VFPv3, and output
1267         correct ".fpu" assembler directive.
1268         (arm_dbx_register_numbering): Add FIXME.
1269         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
1270         (fputype): Add FPUTYPE_VFP3.
1271         (FIXED_REGISTERS): Add 32 registers for D16-D31.
1272         (CALL_USED_REGISTERS): Likewise.
1273         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
1274         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
1275         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
1276         (D7_VFP_REGNUM): New.
1277         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
1278         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
1279         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
1280         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
1281         (REG_ALLOC_ORDER): Adjust for VFPv3.
1282         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
1283         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
1284         VFP_LO_REGS, VFP_HI_REGS.
1285         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
1286         (IS_VFP_CLASS): Define macro.
1287         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
1288         IS_VFP_CLASS.
1289         (REGISTER_MOVE_COST): Likewise.
1290         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
1291         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
1292         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
1293         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
1294         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
1295         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
1296         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
1297         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
1298         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
1299         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
1300         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
1301         where appropriate for single-word registers.
1302         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
1303         As above. Fix type attributes.
1304         * config/arm/constraints.md (register_contraint "t"): Define.
1305         (register_constraint "w"): Change to D0-D15, or D0-D31 for
1306         VFPv3/NEON.
1307         (register_constraint "x"): Define.
1308         (constraint "Dv"): Define.
1309
1310 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
1311
1312         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
1313
1314 2007-07-03  Tom Tromey  <tromey@redhat.com>
1315
1316         * c-parser.c (objc_pq_context): Removed.
1317         (objc_need_raw_identifier): Likewise.
1318         (c_parser) <objc_pq_context>: New field.
1319         <objc_need_raw_identifier>: Likewise.
1320         (OBJC_NEED_RAW_IDENTIFIER): Removed.
1321         (c_lex_one_token): Update.
1322         (c_parser_objc_protocol_definition): Update.
1323         (c_parser_objc_method_definition): Update.
1324         (c_parser_objc_methodproto): Update.
1325         (c_parser_declspecs): Update.
1326
1327 2007-07-03  David Ung  <davidu@mips.com>
1328
1329         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
1330
1331 2007-07-03  David Ung  <davidu@mips.com>
1332             Richard Sandiford  <richard@codesourcery.com>
1333
1334         * doc/invoke.texi: Document -march=74kf3_2.
1335         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
1336         (TUNE_74K): Check for it.
1337         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
1338         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
1339         * config/mips/mips.md (cpu): Add 74kf3_2.
1340         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
1341         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
1342         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
1343         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
1344         74kf3_2 to the CPU list.
1345         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
1346         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
1347         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
1348         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
1349         (r74kf3_2_fxfer_from_c1): New insn reservations.
1350
1351 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
1352             David Ung  <davidu@mips.com>
1353
1354         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
1355         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
1356         and 74k[fx].  Document aliases for the new options.
1357         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
1358         (PROCESSOR_24KF2_1): ...this.
1359         (PROCESSOR_24KX): Rename to...
1360         (PROCESSOR_24KF1_1): ...this.
1361         (PROCESSOR_74KF): Rename to...
1362         (PROCESSOR_74KF2_1): ...this.
1363         (PROCESSOR_74KX): Rename to...
1364         (PROCESSOR_74KF1_1): ...this.
1365         (TUNE_74K): Update PROCESSOR_* names.
1366         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
1367         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
1368         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
1369         (mips_rtx_cost_data): Update processor names in comments.
1370         (mips_issue_rate): Update PROCESSOR_* names.
1371         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
1372         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
1373         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
1374         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
1375         Update cpu attribute names.
1376         (r24k_fpu_iss): Rename this reservation to...
1377         (r24kf2_1_fpu_iss): ...this and update all uses.
1378         (r24kx_fpu_iss): Rename this reservation to...
1379         (r24kf1_1_fpu_iss): ...this and update all uses.
1380         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
1381         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
1382         Update cpu attribute names.
1383
1384 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1385
1386         * config/m32r/constraints.md: New file.
1387         * config/m32r/m32r.c: Include tm-constrs.h.
1388         (small_data_operand): Use satisfies_constraint_* instead of macro.
1389         (addr24_operand, gen_compare): Likewise.
1390         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
1391         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
1392         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1393         EXTRA_CONSTRAINT): Likewise.
1394         * config/m32r/m32r.md: Include constraints.md.
1395         (*movsi_insn): Use satisfies_constraint_* instead of macro.
1396         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
1397         * config/m32r/predicates.md (conditional_move_operand): Likewise.
1398         (two_insn_const_operand, int8_operand, uint16_operand,
1399         reg_or_int16_operand, reg_or_uint16_operand,
1400         reg_or_cmp_int16_operand, cmp_int16_operand,
1401         seth_add3_operand): Likewise.
1402
1403 2007-07-03  Eric Christopher  <echristo@gmail.com>
1404
1405         * libgcc2.h: Conditionally declare __bswapsi2 and
1406         __bswapdi2.
1407         
1408 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
1411         defined.
1412
1413 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1414
1415         PR target/28307
1416         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
1417         (__gthrw_pragma): Provide default definition.
1418         (__gthrw2): Use it.
1419         * gthr-posix.c (__gthrw_pragma): Define.
1420
1421 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
1422
1423         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
1424         before declaring inequality.
1425
1426 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1427
1428         * combine.c (recog_for_combine): Log the success or failure of
1429           matching new insn patterns against the machine description in
1430           detailed dumps.
1431
1432 2007-07-03  Revital Eres  <eres@il.ibm.com>
1433
1434         * ddg.c (print_sccs): New function.
1435         (check_sccs): New function.
1436         (create_ddg_all_sccs): Use it.
1437         * ddg.h (print_sccs): Declare.
1438         * modulo-sched.c (sms_order_nodes): Call print_sccs.
1439
1440 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
1441
1442         * targhooks.h (default_mode_for_suffix): New function declaration.
1443         * targhooks.c (default_mode_for_suffix): New default target hook.
1444         * target.h (struct c): New structure in the targetm struct.
1445         (mode_for_suffix): New target hook as part of struct c.
1446         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
1447         default_mode_for_suffix.
1448         (TARGET_C): New define.
1449         * c-lex.c: Include "target.h".
1450         (interpret_float): Use targetm.c.mode_for_suffix to determine
1451         the mode for a given non-standard suffix.
1452         Makefile.in (c-lex.o): Depend on $(TARGET_H).
1453
1454         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
1455         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
1456
1457         * doc/extend.texi (Floating Types): New node.  Document __float80 and
1458         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
1459
1460 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1461
1462         PR target/32506
1463         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
1464         predicate instead of target_operand.
1465         (divsi3_i1_media, divsi3_media_2): Likewise.
1466
1467 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1468
1469         * tree.h (alias_sets_might_conflict_p): Rename into
1470         alias_sets_must_conflict_p.
1471         * alias.c (alias_sets_might_conflict_p): Likewise.
1472         (alias_sets_conflict_p): Use it.
1473         (objects_must_conflict_p): Likewise.
1474         * c-common.c (strict_aliasing_warning): Adjust.
1475
1476 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1477
1478         * rtlhooks.c (gen_lowpart_if_possible): Check for
1479         invalid subreg before calling gen_lowpart_SUBREG.
1480
1481 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
1482
1483         * config/darwin9.h: Add copyright notice.
1484         (LINK_COMMAND_SPEC): Add comment.
1485         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
1486         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
1487         DARWIN_LIBSYSTEM_HAS_UNWIND.
1488
1489 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1490
1491         PR libgomp/32468
1492         * omp-low.c (check_combined_parallel): New function.
1493         (lower_omp_parallel): Call it via walk_stmts, set
1494         OMP_PARALLEL_COMBINED if appropriate.
1495         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
1496         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
1497         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
1498         don't consider it as combined parallel.
1499
1500 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
1501
1502         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1503         (gcc_tooldir): Likewise.
1504         * configure: Regenerate.
1505         * Makefile.in (libsubdir_to_prefix): New variable, based on the
1506         old configure.ac gcc_tooldir setting.
1507         (prefix_to_exec_prefix): New variable.
1508         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1509         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1510
1511 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
1512
1513         Fix PR tree-optimization/32583
1514         Fix PR tree-optimization/32584
1515         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
1516         (phi_translate_set): Use phi_translate directly now.
1517         (make_values_for_stmt): Don't value number RHS if we already know
1518         it is constant.
1519
1520 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
1521             Jim Wilson <wilson@specifix.com>
1522
1523         PR target/31684
1524         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
1525         copy_insn.
1526
1527 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1528             Richard Sandiford  <richard@codesourcery.com>
1529             Nigel Stephens  <nigel@mips.com>
1530
1531         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
1532         (mips16e_output_save_restore): Declare.
1533         (mips16e_save_restore_pattern_p): Likewise.
1534         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
1535         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
1536         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
1537         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
1538         (BITSET_P): New global macro, extracted from...
1539         (mips_for_each_saved_reg): ...here.
1540         (mips16e_save_restore_info): New struct.
1541         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
1542         (mips16e_save_restore_regs): New variable.
1543         (mips_split_plus, mips16e_find_first_register): New functions.
1544         (mips16e_mask_registers): New function.
1545         (compute_frame_size): Expand the commentary before the function.
1546         Enforce the MIPS16e save and restore register range restrictions.
1547         Pad the general register save area at the low end.
1548         (mips16e_save_restore_reg, mips16e_build_save_restore)
1549         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
1550         (mips16e_output_save_restore, mips16e_collect_propagate_value)
1551         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
1552         New functions.
1553         (mips_expand_prologue, mips_expand_epilogue): Handle
1554         GENERATE_MIPS16E_SAVE_RESTORE.
1555         * config/mips/mips.md (*mips16e_save_restore): New pattern.
1556
1557 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
1558
1559         PR tree-optimization/31966
1560         PR tree-optimization/32533
1561         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
1562         "basic_block" description as its third argument.  Update function
1563         calls to get destination bb from "edge" argument.  Save "cond" into
1564         aux field of the edge.  Update prototype for changed arguments.
1565         (if_convertible_loop_p): Clear aux field of incoming edges if bb
1566         contains phi node.
1567         (find_phi_replacement_condition): Operate on incoming edges, not
1568         on predecessor blocks.  If there is a condition saved in the
1569         incoming edge aux field, AND it with incoming bb predicate.
1570         Return source bb of the first edge.
1571         (clean_predicate_lists): Clean aux field of outgoing node edges.
1572         (tree_if_conversion): Do not initialize cond variable. Move
1573         variable declaration into the loop.
1574         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
1575         initializations of new_stmt, arg0 and arg1 variables.
1576
1577 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
1580         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
1581
1582 2007-07-02  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-ssa.c (useless_type_conversion_p): Document
1585         future intent as defining the middle-end type system.
1586         Re-structure to call langhook last, group by type class,
1587         mark questionable parts.
1588
1589 2007-07-02  Richard Guenther  <rguenther@suse.de>
1590
1591         * tree-flow.h (types_compatible_p): Declare.
1592         * tree-ssa.c (types_compatible_p): New function.
1593         * ipa-type-escape.c (discover_unique_type): Use
1594         types_compatible_p instead of lang_hooks.types_compatible_p.
1595         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1596         * tree-vn.c (expressions_equal_p): Likewise.
1597         * tree.c (fields_compatible_p): Likewise.
1598         * tree-ssa-dom.c (avail_expr_eq): Likewise.
1599         (cprop_operand): Use useless_type_conversion_p instead of
1600         lang_hooks.types_compatible_p.
1601         * tree-inline.c (setup_one_parameter): Likewise.
1602         (declare_return_variable): Likewise.
1603         * tree-nrv.c (tree_nrv): Likewise.
1604         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
1605         (maybe_fold_offset_to_component_ref): Likewise.
1606         (maybe_fold_offset_to_reference): Likewise.
1607         * tree-ssa-copy.c (may_propagate_copy): Likewise.
1608         (merge_alias_info): Likewise.
1609         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1610         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1611         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
1612         * tree-tailcall.c (find_tail_calls): Likewise.
1613         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1614         * gimplify.c (canonicalize_addr_expr): Likewise.
1615         (fold_indirect_ref_rhs): Likewise.
1616         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
1617         (cpt_same_type): Likewise.
1618         (check_pointer_types_r): Swap parameters to cpt_same_type
1619         where appropriate.
1620         * fold-const.c (fold_convert): Revert fix for PR15988.
1621         * tree-inline.c (setup_one_parameter): Instead fix it here by
1622         using fold_build1 instead of fold_convert and checking for
1623         error_mark_node.  Convert only if the conversion is necessary.
1624
1625 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
1626
1627         * configure.ac: Check for .gnu_attribute on Power.
1628         * configure: Regenerate.
1629         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
1630         attribute for floating-point ABI.
1631
1632 2007-07-02  Ira Rosen  <irar@il.ibm.com>
1633
1634         PR tree-optimization/32230
1635         PR tree-optimization/32477
1636         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
1637         address is a constant.
1638
1639 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
1640
1641         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
1642         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
1643         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
1644         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
1645         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
1646         64-bit targets.  Add support for *-elfoabi*.
1647         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
1648         different settings if $(tm_defines) does not select the EABI.
1649         (MULTILIB_EXCLUSIONS): Define in those circumstances.
1650         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
1651         (MIPS_ARCH_OPTION_SPEC): Likewise.
1652         (MIPS_ISA_LEVEL_SPEC): Likewise.
1653         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
1654         * config/mips/elfoabi.h: New file.
1655
1656 2007-07-02  Richard Guenther  <rguenther@suse.de>
1657
1658         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
1659         (useless_type_conversion_p): ... this.
1660         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
1661         (useless_type_conversion_p): ... this.
1662         * builtins.c (fold_builtin_memory_op): Rename
1663         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
1664         * tree-cfg.c (verify_expr): Likewise.
1665         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
1666         * tree-ssa-ccp.c (ccp_fold): Likewise.
1667         * tree-ssa-copy.c (may_propagate_copy): Likewise.
1668         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1669         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1670         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
1671         * tree-ssa-pre.c (eliminate): Likewise.
1672         * tree-ssa.c (delete_tree_ssa): Likewise.
1673         (tree_ssa_useless_type_conversion): Likewise.
1674         * tree.c (build2_stat): Likewise.
1675
1676 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
1677
1678         Fix PR tree-optimization/32571
1679         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
1680         simplifying them.
1681
1682 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
1683
1684         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
1685         and other expected operations explicitly, change default to
1686         gcc_unreachable. 
1687
1688 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1689
1690         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
1691         PARALLEL.
1692         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
1693         (tls_load_dot_plus_eight): Move the label number into the unspec.
1694         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
1695
1696 2007-07-01  Andreas Schwab  <schwab@suse.de>
1697
1698         * dwarf2out.c (initial_return_save): Define only if used.
1699
1700 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
1701
1702         Unreverting Richard's Revert of:
1703
1704         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
1705
1706         * dce.c (deletable_insn_p_1): New function, split out from...
1707         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
1708         specially, not those inside PARALLELs.  Remove BODY argument
1709         and adjust recursive call accordingly.
1710         (prescan_insns_for_dce): Update call to delete_insn_p.
1711
1712 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
1713             Revital Eres  <eres@il.ibm.com>
1714
1715         * ddg.c (create_ddg_all_sccs): Fix missed
1716         initialization of scc_nodes.
1717
1718 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
1719
1720         PR middle-end/32559
1721         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
1722         X + ~X to 1 only for INTEGRAL_TYPE_P type.
1723
1724 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
1725
1726         * configure.ac: Check for .gnu_attribute on MIPS.
1727         * configure, config.in: Regenerate.
1728         * config/mips/mips.c (mips_file_start): If supported, output
1729         attribute for floating-point ABI.
1730
1731 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
1732
1733         PR target/32433
1734         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
1735         (ffs_cmove): New expander to expand using ctz pattern.
1736         (*ffs_cmove): Remove pattern.
1737         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
1738         (ffsdi2): Expand using ctz pattern.
1739         (*ffs_rex64): Remove pattern.
1740
1741 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1742
1743         PR rtl-optimization/32296
1744         * pa.md (return): Delete pattern.
1745         (return_internal): Remove "(const_int 1)" from pattern.
1746         (epilogue): Use return_internal pattern for trivial returns.
1747         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
1748         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
1749
1750 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
1751
1752         * tree-ssa-pre.c (is_exception_related): New function
1753         (can_value_number_operation): Use it.
1754
1755 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
1756         
1757         Fix PR tree-optimization/32540
1758         Fix PR tree-optimization/31651
1759
1760         * tree-ssa-sccvn.c: New file.
1761
1762         * tree-ssa-sccvn.h: Ditto.
1763         
1764         * tree-vn.c: Include tree-ssa-sccvn.h
1765         (val_expr_paid_d): Removed.
1766         (value_table): Ditto.
1767         (vn_compute): Ditto.
1768         (val_expr_pair_hash): Ditto.
1769         (val_expr_pair_expr_eq): Ditto.
1770         (copy_vuses_from_stmt): Ditto.
1771         (vn_delete): Ditto.
1772         (vn_init): Ditto.
1773         (shared_vuses_from_stmt): Ditto.
1774         (print_creation_to_file): Moved up.
1775         (sort_vuses): Ditto.
1776         (sort_vuses_heap): Ditto.
1777         (set_value_handle): Make non-static.
1778         (make_value_handle): Ditto.
1779         (vn_add): Rewritten to use sccvn lookups.
1780         (vn_add_with_vuses): Ditto.
1781         (vn_lookup): Ditto (and second argument removed).
1782         (vn_lookup_with_vuses): Ditto.
1783         (vn_lookup_or_add): Ditto (and second argument removed);
1784         (vn_lookup_or_add_with_vuses): Ditto.
1785         (vn_lookup_with_stmt): New.
1786         (vn_lookup_or_add_with_stmt): Ditto.
1787         (create_value_handle_for_expr): Ditto.
1788
1789         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
1790         (seen_during_translate): New function.
1791         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
1792         (phi_trans_add): Ditto.
1793         (constant_expr_p): FIELD_DECL is always constant.
1794         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
1795         Use constant_expr_p.
1796         Avoid infinite recursion on mutually valued expressions.
1797         Change callers of vn_lookup_or_add.
1798         (phi_translate): New function.
1799         (compute_antic_safe): Allow phi nodes.
1800         (create_component_ref_by_pieces): Update for FIELD_DECL change.
1801         (find_or_generate_expression): Rewrite slightly.
1802         (create_expression_by_pieces): Updated for vn_lookup_or_add
1803         change.
1804         Update VN_INFO for new names.
1805         (insert_into_preds_of_block): Update for new names.
1806         (add_to_exp_gen): New function.
1807         (add_to_sets): Use vn_lookup_or_add_with_stmt.
1808         (find_existing_value_expr): Rewrite to changed vn_lookup.
1809         (create_value_expr_from): Ditto, and use add_to_exp_gen.
1810         (try_look_through_load): Removed.
1811         (try_combine_conversion): Ditto.
1812         (get_sccvn_value): New function.
1813         (make_values_for_phi): Ditto.
1814         (make_values_for_stmt): Ditto.
1815         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
1816         SCCVN.
1817         (init_pre): Update for SCCVN changes.
1818         (fini_pre): Ditto.
1819         (execute_pre): Ditto.
1820
1821         * tree-flow.h (make_value_handle): Declare.
1822         (set_value_handle): Ditto.
1823         (sort_vuses_heap): Ditto.
1824         (vn_lookup_or_add_with_stmt): Ditto.
1825         (vn_lookup_with_stmt): Ditto.
1826         (vn_compute): Remove.
1827         (vn_init): Ditto.
1828         (vn_delete): Ditto.
1829         (vn_lookup): Update arguments.
1830
1831         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
1832         (tree-vn.o): Ditto.
1833         (tree-ssa-sccvn.o): New.
1834         (OBJS-common): Add tree-ssa-sccvn.o
1835         
1836 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1837
1838         PR c/4076
1839         * c-typeck.c (build_external_ref): Don't mark as used if called
1840         from itself.
1841         * calls.c (rtx_for_function_call): Likewise.
1842         
1843 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
1844
1845         Revert:
1846
1847         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
1848
1849         * dce.c (deletable_insn_p_1): New function, split out from...
1850         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
1851         specially, not those inside PARALLELs.  Remove BODY argument
1852         and adjust recursive call accordingly.
1853         (prescan_insns_for_dce): Update call to delete_insn_p.
1854
1855 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
1856
1857         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
1858         (try_combine): Move potential calls to undo_all() so they happen
1859         before we commit to using the combined insns.
1860
1861 2006-06-30  Jan Hubicka  <jh@suse.cz>
1862
1863         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
1864         code.
1865
1866 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
1867
1868         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
1869         (cgraph_remove_unreachable_nodes): Likewise.
1870         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
1871         * ipa-inline.c (update_caller_keys): Cast according to the coding
1872         conventions.
1873         (cgraph_decide_recursive_inlining): Likewise.
1874         (cgraph_decide_inlining_of_small_function): Likewise.
1875         (try_inline): Likewise.
1876         (cgraph_decide_inlining_incrementally): Likewise.
1877         * ipa-pure-const.c (get_function_state): Likewise.
1878         (scan_function): Likewise.
1879         (analyze_function): Likewise.
1880         (static_execute): Likewise.
1881         * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
1882         (merge_callee_local_info): Likewise.
1883         (analyze_function): Use type safe memory macros.
1884         (static_execute): Likewise. Cast according to the coding conventions.
1885         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
1886         conventions.
1887         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
1888         names.
1889         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
1890         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
1891         variable names.
1892
1893 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1894
1895         PR middle-end/30024
1896         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
1897         for complex modes (both int and real).
1898
1899 2007-06-29  Jan Hubicka  <jh@suse.cz>
1900
1901         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
1902
1903 2007-06-29  Jan Hubicka  <jh@suse.cz>
1904
1905         PR middle-end/32372
1906         * cse.c (cse_insn): Avoid invalid sharing in between register note and
1907         the insn pattern.
1908
1909 2007-06-29  Anatoly Sokolov <aesok@post.ru>
1910
1911         PR target/32335
1912         * config/avr/avr.c: Include dataflow header file.
1913         (expand_prologue): Adjust for prologue insn change.
1914         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
1915         inside a insn.
1916
1917 2007-06-29  Richard Guenther  <rguenther@suse.de>
1918
1919         PR middle-end/32493
1920         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
1921         during type verification.
1922
1923 2007-06-29  Jan Hubicka  <jh@suse.cz>
1924
1925         * recog.c (validate_change_rtx_1): Unshare TO argument.
1926
1927 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
1928
1929         PR tree-optimization/24659
1930         * tree-vect-transform.c (vectorizable_call): Handle
1931         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1932
1933         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
1934         * config/i386/i386.c (enum ix86_builtins)
1935         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
1936         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
1937         description.
1938         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
1939         const using def_builtin_const.
1940         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
1941         input operands in the same modes as the result.
1942         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
1943
1944 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
1945
1946         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
1947         (df_set_dead_notes_for_mw): Likewise.
1948
1949 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1950
1951         * c-common.c (pointer_int_sum): Do the negation in sizetype.
1952
1953 2007-06-28  DJ Delorie  <dj@redhat.com>
1954
1955         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
1956
1957 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
1958
1959         * doc/invoke.texi (C++ Dialect Options): Document
1960         fvisibility-ms-compat.
1961         * c.opt (fvisibility-ms-compat): New.
1962
1963 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1964
1965         PR tree-opt/32417
1966         * tree-affine.c (aff_combination_add_elt): Handle
1967         pointer addition specially.
1968
1969 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
1970
1971         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
1972         decl is non-external for AIX ABI.
1973
1974 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
1975
1976         * config/rs6000/predicates.md (current_file_function_operand):
1977         Ensure the symbol is non-external for AIX ABI.
1978
1979 2007-06-28  Nick Clifton  <nickc@redhat.com>
1980
1981         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
1982         (fdce, fdse, fpredictive-commoning): Likewise.
1983
1984 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1985
1986         PR other/31400
1987         * gcc.c (process_command): Recognize the new -static-libgfortran
1988         option.
1989
1990 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1991
1992         PR target/32418
1993         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
1994         Use a call clobbered hard reg instead of a pseudo reg.
1995
1996 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1997
1998         * config/sh/sh.md (load_gbr): Use correct operand constraint.
1999
2000 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2001
2002         PR target/32479
2003         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
2004         REG_LIBCALL and REG_RETVAL notes.
2005         (divsi3, mulsi3): Likewise.
2006         (mulhisi3): Likewise.  Use emit_libcall_block.
2007         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
2008
2009 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
2010
2011         PR rtl-optimization/32481
2012         * combine.c (adjust_for_new_dest): Rescan the changed insn.
2013
2014 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
2015
2016         * dce.c (deletable_insn_p_1): New function, split out from...
2017         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
2018         specially, not those inside PARALLELs.  Remove BODY argument
2019         and adjust recursive call accordingly.
2020         (prescan_insns_for_dce): Update call to delete_insn_p.
2021
2022 2007-06-27  Richard Guenther  <rguenther@suse.de>
2023
2024         PR middle-end/32492
2025         * tree.h (fold_convertible_p): Declare.
2026         * fold-const.c (fold_convertible_p): New function.
2027         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
2028         instead of lang_hooks.types_compatible_p.
2029
2030 2007-06-26  Jan Hubicka  <jh@suse.cz>
2031
2032         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
2033         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
2034         early use validate_unshare_change.
2035         (reload_combine): Likewise.
2036         * recog.c (change_t): New field unshare.
2037         (validate_change_1): Rename from validate_change; add argument unshare.
2038         (validate_change): Turn into wrapper of validate_change_1; update
2039         prototype for bools.
2040         (validate_unshare_change): New.
2041         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
2042         calls of df_insn_rescan.
2043         * recog.h (validate_change): Replace ints by bools.
2044         (validate_unshare_change): Declare.
2045
2046 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
2047
2048         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
2049         
2050 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
2051
2052         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
2053
2054 2007-06-25  Jan Hubicka  <jh@suse.cz>
2055
2056         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
2057         uninlinable call.
2058         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
2059         cgraph_decide_inlining_incrementally): Move uninlinability checks to
2060         places other call site specific checks are performed.
2061
2062 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2063
2064         PR tree-opt/32421
2065         * tree-vect-transform.c (vectorizable_operation): Convert
2066         POINTER_PLUS_EXPR over to PLUS_EXPR.
2067
2068 2007-06-25  Chao-ying Fu  <fu@mips.com>
2069
2070         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
2071         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
2072         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
2073         Document GET_MODE_IBIT, and GET_MODE_FBIT.
2074
2075         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
2076         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2077         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
2078         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
2079         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
2080         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
2081         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
2082         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
2083         ALL_FIXED_POINT_MODE_P): New define.
2084         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2085         MODE_UACCUM.
2086         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
2087
2088         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
2089         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2090         MODE_VECTOR_UACCUM): New mode classes.
2091
2092         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
2093         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
2094         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
2095         USA, UDA, and UTA.
2096
2097         * genmodes.c (struct mode_data): Add ibit and fbit fields.
2098         (blank_mode): Initialize ibit and fbit.
2099         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
2100         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2101         MODE_UACCUM.
2102         (new_adjust): Change required_class to required_class_from and
2103         required_class_to for testing within a range.
2104         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2105         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2106         MODE_VECTOR_UACCUM.
2107         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
2108         (make_fixed_point_mode): New.
2109         (_ADD_ADJUST): Change C to C1 and C2.
2110         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
2111         use a range for machine classes.
2112         (ADJUST_IBIT, ADJUST_FBIT): New.
2113         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
2114         CONST_MODE_FBIT.
2115         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
2116         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2117         Emit adjustment for ibit and fbit.
2118         (emit_mode_ibit, emit_mode_fbit): New.
2119         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
2120
2121 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
2122
2123         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
2124         as the source of the set.
2125
2126 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
2127
2128         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
2129         FP_REGNO_P): Use IN_RANGE.
2130         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
2131         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
2132         (DATA_REG_P): Use DATA_REGNO_P.
2133         (FP_REG_P): Use FP_REGNO_P.
2134         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
2135         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
2136         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
2137
2138 2007-06-24  Jan Hubicka  <jh@suse.cz>
2139
2140         PR middle-end/30563
2141         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
2142
2143 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
2144
2145         PR middle-end/32461
2146         * fold-const.c (fold_binary): Strip nops of operand 0
2147         of BIT_NOT_EXPR before calling operand_equal_p.
2148         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
2149         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
2150
2151 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
2152
2153         * doc/extend.texi: Document that dllimport and dllexport imply
2154         default visibility.
2155         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
2156         imported or exported declaration, including type declarations.
2157         * c-common.c (handle_visibility_attribute): Check for conflicts
2158         with dllimport/dllexport.
2159         (c_determine_visibility): Handle dllimport/dllexport as an
2160         explicit visibility atttribute.
2161
2162 2007-06-23  Richard Guenther  <rguenther@suse.de>
2163
2164         PR tree-optimization/16876
2165         PR middle-end/29478
2166         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
2167         for CALL_EXPRs.
2168         * tree-inline.c (initialize_inlined_parameters): Do not call
2169         lang_hooks.tree_inlining.convert_parm_for_inlining.
2170         * cgraphbuild.c (initialize_inline_failed): Set inline failed
2171         reason for mismatched types.
2172         * gimplify.c (gimplify_call_expr): Verify the call expression
2173         arguments match the called function type signature.  Otherwise
2174         mark the call expression to be not considered for inlining
2175         using CALL_CANNOT_INLINE_P flag.
2176         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
2177         edges call expression.
2178         (cgraph_decide_inlining_of_small_function): Likewise.
2179         (cgraph_decide_inlining): Likewise.
2180         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2181         Remove define.
2182         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
2183         * c-typeck.c (c_convert_parm_for_inlining): Remove.
2184         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
2185         Remove declaration.
2186         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
2187         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
2188         Remove.
2189         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2190         convert_parm_for_inlining member.
2191
2192 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
2193
2194         PR target/31152
2195         * arm.md (negscc): Match the correct operand for optimized LT0 test.
2196         Remove optimization for GT.
2197
2198 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
2199
2200         PR middle-end/32437
2201         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
2202         is a PARALLEL.
2203         (prescan_insns_for_dce): Add extra parameter.
2204         
2205 2007-06-23  Jan Hubicka  <jh@suse.cz>
2206
2207         PR middle-end/31541
2208         * gimplify.c (mark_addressable): New function.
2209         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
2210
2211 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
2212
2213         PR middle-end/32374
2214         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
2215
2216 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
2217
2218         PR target/32413
2219         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
2220         moves between MMX/SSE registers to at least 8 units to prevent
2221         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
2222
2223 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
2224
2225         * config/i386/i386.c (override_options): Correct x86_sahf
2226         setting condition.
2227
2228 2007-06-21  David Daney  <ddaney@avtrex.com>
2229
2230         PR target/32406
2231         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
2232         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
2233         (exception_receiver): Renamed to ...
2234         (nonlocal_goto_receiver): ... this.
2235
2236 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
2237
2238         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
2239         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
2240         partial register accesses.
2241
2242 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
2243
2244         * fold-const.c (debug_fold_checksum): Move it under
2245         ENABLE_FOLD_CHECKING.
2246
2247 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
2248
2249         PR middle-end/20623
2250         * tree.h (debug_fold_checksum): Declared.
2251         * fold-const.c (build_fold_addr_expr_with_type_1): New.
2252         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
2253         build_fold_addr_expr_with_type_1.
2254         (fold_addr_expr, debug_fold_checksum): New.
2255         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
2256         (fold_unary, fold_comparison, split_address_to_core_and_offset):
2257         Use fold_addr_expr.
2258         
2259 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
2260
2261         PR tree-optimization/19590
2262         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
2263         of scev is a constant.
2264         * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
2265
2266 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
2267
2268         * df-problems.c (df_note_bb_compute): Made computation of live
2269         info consistent with df_lr.
2270
2271 2007-06-21  Richard Guenther  <rguenther@suse.de>
2272
2273         PR tree-optimization/32453
2274         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
2275         for pointer anti-range.
2276
2277 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2278
2279         * config/i386/i386.c (processor_target_table): Increase maximum
2280         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
2281         default 64bit.
2282
2283         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
2284         byte alignment if > 8 byte alignment is preferred.
2285         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2286
2287 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2288
2289         PR tree-optimization/31866
2290         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
2291         if ASM_EXPR's input is not a SSA_NAME.
2292
2293         PR middle-end/32362
2294         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
2295         but decl is a global var, instead return decl.
2296         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
2297         even for is_global_var decls, if they are private in some outer
2298         context.
2299
2300 2007-06-21  Richard Guenther  <rguenther@suse.de>
2301
2302         PR tree-optimization/32451
2303         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
2304
2305 2007-06-21  Christian Bruel  <christian.bruel@st.com>
2306
2307         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
2308         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
2309         (push_regs): Changed saving order or banked registers.
2310         (sh_expand_epilogue): Likewise.
2311         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
2312         (FIRST_BANKED_REG): Likewise.
2313         (LAST_BANKED_REG): Likewise.
2314         * config/sh/sh.md (banked) New attribute.
2315         (in_delay_slot): Check banked attribute.
2316         
2317 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
2318
2319         PR tree-optimization/32075
2320         * tree-data-ref.c (subscript_dependence_tester_1, 
2321         analyze_miv_subscript, analyze_overlapping_iterations,
2322         add_distance_for_zero_overlaps, build_classic_dist_vector,
2323         subscript_dependence_tester_1, analyze_overlapping_iterations,
2324         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
2325         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
2326         to evolution_function_is_affine_multivariate_p.
2327
2328 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2329
2330         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
2331
2332 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2333
2334         PR target/32335
2335         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
2336         for TARGET_A16.
2337         * config/m32c/prologue.md (epilogue_exitd_16): New.
2338         (epilogue_reit_16): New.
2339         (epilogue_exitd): Rename to epilogue_exitd_24.
2340         (epilogue_reit): Rename to epilogue_reit_24.
2341
2342 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
2343             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2344
2345         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
2346         New counters.
2347         * haifa-sched.c (queue_to_ready): Don't requeue next insn
2348         if dbg_cnt (sched_insn) reaches the limit.
2349         (choose_ready): New parameter INSN_PTR and new return value.
2350         (schedule_block): Handle dbg_cnt (sched_insn). Handle
2351         the new return value from choose_ready.
2352         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
2353         (rest_of_handle_global_alloc): New global_alloc_at_func.
2354
2355 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
2356
2357         PR tree-optimization/25737
2358         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
2359         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
2360         * tree-flow.h (struct fieldoff): Add new field alias_set.
2361         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
2362         argument addressable_type.  Set alias_set of fieldoff.
2363         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
2364         (create_overlap_variables_for): Pass alias_set from fieldoff to
2365         create_sft.
2366         * alias.c (get_alias_set): Use alias_set from SFT if set.
2367
2368 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
2369
2370         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
2371         of a variable as an unsigned HOST_WIDE_INT integer.
2372
2373 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
2374
2375         PR rtl-optimization/32405
2376         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
2377
2378 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
2379
2380         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
2381
2382         PR middle-end/31959
2383         * builtins.c: Include diagnostic.h.
2384         (expand_builtin_expect): Make gcc_assert more permissive.
2385         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
2386
2387         PR inline-asm/32109
2388         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
2389         and !allows_mem.
2390
2391         PR middle-end/32285
2392         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
2393         if ACCUMULATE_OUTGOING_ARGS.
2394
2395 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2396
2397         * config/m68hc11/m68hc11.c: Include dataflow header file.
2398         (m68hc11_reorg): Port to dataflow.
2399
2400 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2401
2402         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
2403         (struct df_problem.free_blocks_on_set_blocks): New field.
2404         (struct dataflow.optional_p): New field.
2405         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
2406         (df_live_set_all_dirty): New function.
2407         * df-scan.c (df_scan_alloc): Initialize optional_p.
2408         (problem_SCAN): Initialize free_blocks_on_set_blocks.
2409         * df-core.c (df_set_blocks): Removed use of
2410         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
2411         df_problem.free_blocks_on_set_blocks to determine which blocks are
2412         recycled.
2413         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
2414         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
2415         uses dataflow.optional_p to determine if problem should be
2416         deleted.
2417         (rest_of_handle_df_initialize): Only start live problem if 
2418         -02 or above.
2419         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
2420         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
2421         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
2422         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
2423         problem_NOTE):  Initialize free_blocks_on_set_blocks.
2424         (df_lr_bb_local_compute): Recompute luids if df_live problem is
2425         not active.
2426         (df_live_set_all_dirty, df_note_alloc): New function.
2427         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
2428         df_get_live_*.
2429         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
2430         * postreload.c (reload_combine): Ditto.
2431         * cse.c (cse_extended_basic_block): Ditto.
2432         * regmove.c (mark_flags_life_zones): Ditto.
2433         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
2434         erase_matching_seqs): Ditto.
2435         * bt-load.c (compute_defs_uses_and_gen): Ditto.
2436         * integrate (allocate_initial_values): Ditto.
2437         * combine.c (reg_dead_at_p): Ditto.
2438         * resource.c (mark_target_live_regs): Ditto.
2439         * sched-rgn.c (check_live_1, update_live_1): Ditto.
2440         * config/sh/sh.c (find_r0_life_regions): Ditto.
2441         * global.c (rest_of_handle_global_alloc): Only add back df_live
2442         for -O > 1.
2443         * local-alloc.c (rest_of_handle_local_alloc): Only remove
2444         df_live for -O > 1.
2445         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
2446         df_get_live_*.
2447         (if_convert): Make sure df_live is there at -O == 1.
2448         (pass_if_after_combine): Cleanup flags.
2449         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
2450         is there at -O == 1.
2451         
2452 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
2453
2454         * config/arm/arm.c (arm_get_frame_offsets): Set
2455         offsets->locals_base to avoid negative stack size.
2456         (thumb1_expand_prologue): Assert on negative stack size.
2457
2458 2007-04-19  Sebastian Pop  <sebpop@gmail.com>
2459
2460         PR tree-optimization/32367
2461         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
2462         of the chrec has no evolution in that loop.
2463         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
2464
2465 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
2466
2467         * config/xtensa/xtensa.c: Include "df.h".
2468         (xtensa_builtin_saveregs): Use adjust_address instead of
2469         change_address.
2470         (xtensa_va_start): Invoke make_tree with sizetype for
2471         expand_builtin_saveregs and then convert the result to a pointer.
2472         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
2473         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
2474         Subtract argument size from index value as integers and then use
2475         POINTER_PLUS_EXPR to add the result to the array address.
2476         
2477 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2478
2479         PR target/32335
2480         * config/m32c/m32c.c: Include dataflow header file.
2481         (m32c_emit_prologue): Adjust for prologue insn change.
2482         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
2483         once inside a PARALLEL. Assume frame size passed in operand 0
2484         includes space to save the fb register.
2485         (prologue_enter_24): Likewise.
2486         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
2487
2488 2007-06-19  David Daney  <ddaney@avtrex.com
2489
2490         PR target/32313
2491         * config/mips/mips.md (cprestore): Mark $gp as used.
2492
2493 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2494
2495         PR target/32369
2496         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
2497         (frv_ifcvt_modify_insn): Likewise.
2498
2499 2007-06-19  Richard Guenther  <rguenther@suse.de>
2500
2501         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
2502         only handle positive offsets that fit in a HOST_WIDE_INT.
2503
2504 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
2505
2506         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
2507         result of rsqrt insn for zero input argument to avoid NaN.
2508
2509 2007-06-19  Richard Guenther  <rguenther@suse.de>
2510
2511         PR middle-end/31950
2512         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
2513
2514 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
2515
2516         PR tree-optimization/32353
2517         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
2518
2519 2007-06-19  Nick Clifton  <nickc@redhat.com>
2520
2521         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
2522
2523 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
2524
2525         PR target/32389
2526         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
2527         * config/i386/i386.c (assign_386_stack_local): Assert that
2528         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
2529         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
2530         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
2531         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
2532
2533 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
2534
2535         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
2536
2537 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
2538
2539         PR rtl-optimization/32321
2540         * gcse.c (replace_store_insn): Update the note before
2541         calling emit_insn_after.
2542
2543 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
2544
2545         PR middle-end/32355
2546         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
2547         cse_main.
2548         * df-problems.c (df_note_bb_compute): Fix dumping info.
2549         
2550 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
2551
2552         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
2553         insn with emit_jump_insn.
2554
2555 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
2556
2557         PR tree-optimization/32383
2558         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
2559         * targhooks.h (default_builtin_reciprocal): Update prototype.
2560         * target.h (struct gcc_target): Update builtin_reciprocal.
2561         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
2562         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
2563         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
2564         when fndecl is in BUILT_IN_MD class.
2565         (execute_convert_to_rsqrt): Ditto.
2566
2567         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
2568         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
2569         Convert BUILT_IN_SQRTF code only  when md_fn is false.
2570
2571 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2572
2573         * bt-load.c (move_btr_def): Fix the order of arguments
2574         to validate_replace_rtx.
2575
2576 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
2577
2578         * config/m68k/m68k-devices.def: Add 54450..54455.
2579
2580 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
2581
2582         PR rtl-optimization/32366
2583         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
2584         FLOAT_EXTEND]: Prevent non-scalar modes from entering
2585         significand_size.
2586
2587 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
2588
2589         PR middle-end/32349
2590         * modulo-sched (generate_reg_moves): Added rescan parameter and if
2591         this is true, rescan insn being modified.
2592         (sms_schedule): Added rescan parameter.
2593         (rest_of_handle_sms): Moved freeing of dominance info to before
2594         getting out of cfg_layout.
2595         
2596 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
2597
2598         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
2599         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
2600         appropriate.
2601
2602         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
2603         FL_CF_EMAC from the entry for isac.
2604
2605         * config/m68k/predicates.md (const_call_operand): Adjust comment.
2606         (const_sibcall_operand): New.
2607         (sibcall_operand): Use it.
2608         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
2609         (m68k_isas): ISAC does not imply FPU or EMAC.
2610         (override_options): Add ISA_C logic for symbolic jump & call.
2611
2612 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2613
2614         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
2615         return mode from the builtin itself.
2616         (sparc_fold_builtin): Fix cast of zero constant.
2617
2618 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
2619
2620         * targhooks.c (default_builtin_reciprocal): New default target hook.
2621         * targhooks.h (default_builtin_reciprocal): Add prototype.
2622         * hooks.c (hook_tree_tree_bool_null): Remove hook.
2623         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
2624         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
2625         default_builtin_reciprocal.
2626
2627 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
2628
2629         PR middle-end/31723
2630         * hooks.c (hook_tree_tree_bool_null): New hook.
2631         * hooks.h (hook_tree_tree_bool_null): Add prototype.
2632         * tree-pass.h (pass_convert_to_rsqrt): Declare.
2633         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
2634         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
2635         and convert it to reciprocal a*rfunc(b).
2636         (execute_convert_to_rsqrt): New function.
2637         (gate_convert_to_rsqrt): New function.
2638         (pass_convert_to_rsqrt): New pass definition.
2639         * target.h (struct gcc_target): Add builtin_reciprocal.
2640         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
2641         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
2642         TARGET_BUILTIN_RECIPROCAL.
2643         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
2644
2645         * config/i386/i386.h (TARGET_RECIP): New define.
2646         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
2647         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2648         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2649         and not optimizing for size.
2650         (*rcpsf2_sse): New insn pattern.
2651         (*rsqrtsf2_sse): Ditto.
2652         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
2653         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2654         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2655         and not optimizing for size.
2656         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
2657         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2658         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2659         and not optimizing for size.
2660         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
2661         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2662         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2663         and not optimizing for size.
2664         (*sse_rsqrtv4sf2): Do not export.
2665         (sqrtv4sf2): Ditto.
2666         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
2667         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2668         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2669         and not optimizing for size.
2670         (sqrtv4sf2): Ditto.
2671         * config/i386/i386.opt (mrecip): New option.
2672         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
2673         (ix86_emit_swsqrtsf): Ditto.
2674         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
2675         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
2676         builtin definition.
2677         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
2678         ix86_expand_unop1_builtin.
2679         (ix86_emit_swdivsf): New function.
2680         (ix86_emit_swsqrtsf): Ditto.
2681         (ix86_builtin_reciprocal): New function.
2682         (TARGET_BUILTIN_RECIPROCAL): Use it.
2683         (ix86_vectorize_builtin_conversion): Rename from
2684         ix86_builtin_conversion.
2685         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
2686         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
2687         "i386 and x86_64 Options" section.
2688         (Intel 386 and AMD x86_64 Options): Document -mrecip.
2689
2690 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
2691             Zdenek Dvorak <dvorakz@suse.cz>
2692             Richard Guenther  <rguenther@suse.de>
2693             Kaz Kojima  <kkojima@gcc.gnu.org>
2694
2695         * tree-vrp.c (compare_values_warnv): Convert val2 to
2696         the type of val1.
2697         (extract_range_from_assert): Create
2698         POINTER_PLUS_EXPR for pointer types.
2699         (extract_range_from_binary_expr): Handle
2700         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
2701         for pointer types.
2702         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
2703         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
2704         POINTER_PLUS_EXPR as PLUS_EXPR.
2705         (number_of_iterations_lt_to_ne):
2706         For pointer types, use sizetype when
2707         creating MINUS_EXPR/PLUS_EXPRs.
2708         (assert_loop_rolls_lt): For pointer types, use sizetype when
2709         creating MINUS_EXPR/PLUS_EXPRs.
2710         (number_of_iterations_le): Likewise.
2711         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
2712         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
2713         like PLUS_EXPR and MINUS_EXPR.
2714         * tree-pretty-print.c (dump_generic_node): Handle
2715         POINTER_PLUS_EXPR.
2716         (op_prio): Likewise.
2717         (op_symbol_1): Likewise.
2718         * optabs.c (optab_for_tree_code): Likewise.
2719         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
2720         specially.
2721         * tree-tailcall.c (process_assignment): Mention
2722         POINTER_PLUS_EXPR in a TODO comment.
2723         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
2724         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
2725         not used with a pointer and an integer type.
2726         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
2727         increment using chrec_convert_rhs instead of chrec_convert.
2728         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
2729         PLUS_EXPR except for the right hand side's type will be
2730         sizetype.
2731         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
2732         (fold_used_pointer_cast): Kill.
2733         (pointer_offset_p): Kill.
2734         (fold_used_pointer): Kill.
2735         (pointer_used_p): Kill.
2736         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
2737         call fold_used_pointer.
2738         (instantiate_parameters_1): Convert the increment
2739         using chrec_convert_rhs instead of chrec_convert.
2740         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
2741         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
2742         instead of PLUS_EXPR.
2743         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
2744         PLUS_EXPR for pointers.
2745         (std_gimplify_va_arg_expr): Likewise.
2746         (fold_builtin_memory_op): Likewise.
2747         (fold_builtin_strstr): Likewise.
2748         (fold_builtin_strchr): Likewise.
2749         (fold_builtin_strrchr): Likewise.
2750         (fold_builtin_strpbrk): Likewise.
2751         (expand_builtin_memory_chk): Likewise.
2752         (fold_builtin_memory_chk): Likewise.
2753         (std_expand_builtin_va_start): Use
2754         sizetype for the call to make_tree and then convert
2755         to the pointer type.
2756         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
2757         instead of PLUS_EXPR for adding to a pointer.
2758         (std_gimplify_va_arg_expr): Use fold_build2 for
2759         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
2760         the operands to sizetype first and then cast the BIT_AND_EXPR
2761         back to the pointer type.
2762         * fold-const.c (build_range_check): Handle pointer types
2763         specially.
2764         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
2765         of PLUS_EXPR's. Make sure the offset is converted to
2766         sizetype.
2767         (try_move_mult_to_index): Strip the NOPs from the offset.
2768         Remove code argument and replace all uses with PLUS_EXPR.
2769         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
2770         specially. Don't use a pointer type for MINUS_EXPR.
2771         (fold_unary): Handle for (T1)(X op Y),
2772         only p+ as that is the only as that can be handled for
2773         binary operators now.
2774         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
2775         POINTER_PLUS_EXPR.
2776         <case PLUS_EXPR>: Add folding of PTR+INT into
2777         PTR p+ INT.
2778         Don't call try_move_mult_to_index.
2779         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
2780         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
2781         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
2782         Don't call try_move_mult_to_index.
2783         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
2784         (tree_expr_nonzero_p): Likewise.
2785         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
2786         of PLUS_EXPR for the complex expression folding.
2787         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
2788         first chrec is a pointer type, then the second should
2789         be sizetype and not the first's type.
2790         For POINTER_PLUS_EXPR, use a different right hand side type.
2791         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2792         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
2793         different right hand side type.
2794         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2795         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
2796         instead of PLUS_EXPR.
2797         When either operand is zero, convert the other operand.
2798         (chrec_apply): Use chrec_convert_rhs
2799         on the argument x instead of chrec_convert.
2800         (reset_evolution_in_loop): For pointer types, the new_evol
2801         should be sizetype.
2802         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
2803         different right hand side type.
2804         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2805         (chrec_convert_rhs): New function.
2806         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
2807         different right hand side type.
2808         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2809         * tree-chrec.h (chrec_convert_rhs): New prototype.
2810         (build_polynomial_chrec): For pointer types, the right hand
2811         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
2812         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
2813         Remove subtraction case as it is always addition now.
2814         Make sure the offset is converted to sizetype.
2815         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
2816         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
2817         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
2818         PLUS_EXPR in pointer type.
2819         Handle POINTER_PLUS_EXPR.
2820         (tree_to_aff_combination): Likewise.
2821         (force_expr_to_var_cost): Likewise.
2822         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
2823         instead of PLUS_EXPR for pointers.
2824         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
2825         instead of PLUS_EXPR of pointer types.
2826         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
2827         as PLUS_EXPR.
2828         (check_va_list_escapes): Likewise.
2829         (check_all_va_list_escapes): Likewise.
2830         * dwarf2out.c (loc_descriptor_from_tree_1):
2831         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
2832         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
2833         (string_constant): Likewise.
2834         * tree-ssa-address.c (tree_mem_ref_addr): When adding
2835         the offset to the base, use POINTER_PLUS_EXPR.
2836         (add_to_parts): Convert the index to sizetype.
2837         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
2838         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
2839         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
2840         Offset only holds something for PLUS_EXPR.
2841         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
2842         a PLUS_EXPR.
2843         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
2844         and not PLUS_EXPR.
2845         (analyze_accesses_for_modify_stmt): Likewise.
2846         Remove comment about the type being integral type as it is
2847         wrong now.
2848         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
2849         PLUS_EXPR.
2850         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
2851         and not PLUS_EXPR.
2852         Correct the type which the artimentic is done in (is now
2853         sizetype).
2854         Reindent one loop.
2855         * tree-data-ref.c (split_constant_offset): Handle
2856         POINTER_PLUS_EXPR
2857         * tree-affine.c (tree_to_aff_combination): Likewise.
2858         * c-typeck.c (build_unary_op): For pointers create the increment
2859         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
2860         for pointers.
2861         * gimplify.c (gimplify_self_mod_expr): Create a
2862         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2863         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
2864         * tree.def (POINTER_PLUS_EXPR): New tree code.
2865         * tree-predcom.c (ref_at_iteration): If we have a pointer
2866         type do the multiplication in sizetype.
2867         * tree-mudflap.c (mf_xform_derefs_1): Create a
2868         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2869         * tree-ssa-forwprop.c 
2870         (forward_propagate_addr_into_variable_array_index):
2871         Don't expect there to be a cast for the index as that
2872         does not exist anymore.
2873         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
2874         instead of PLUS_EXPR.
2875         Don't check for the first operand of the POINTER_PLUS_EXPR
2876         was the index as it cannot be.
2877         Call forward_propagate_addr_into_variable_array_index with
2878         the SSA_NAME instead of the statement.
2879         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
2880         (compare_constant): Likewise.
2881         (copy_constant): Likewise.
2882         (compute_reloc_for_constant): Likewise.
2883         (output_addressed_constants): Likewise.
2884         (initializer_constant_valid_p): Likewise.
2885         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
2886         Convert the MIN/MAX of the inner type to the outer
2887         type before comparing them.
2888         * tree-ssa-loop-prefetch.c (idx_analyze_ref):  Handle
2889         POINTER_PLUS_EXPR instead of PLUS_EXPR.
2890         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
2891         of PLUS_EXPR for pointers.
2892         * tree-inline.c (estimate_num_insns_1): Handle
2893         POINTER_PLUS_EXPR.
2894         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
2895         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2896         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
2897         instead of PLUS_EXPR for the pointer increment statement.
2898         (vect_update_ivs_after_vectorizer): For pointer types, create
2899         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
2900         MULT_EXPR in sizetype.
2901         (vect_gen_niters_for_prolog_loop): Add a cast when creating
2902         byte_misalign.
2903         * tree-object-size.c (plus_expr_object_size): Handle
2904         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
2905         code which is trying to figure out which side is a pointer and 
2906         is the index.
2907         (check_for_plus_in_loops_1): Likewise.
2908         (check_for_plus_in_loops): Likewise.
2909         * c-common.c (pointer_int_sum): Create a
2910         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2911         * tree-ssa-structalias.c (handle_ptr_arith): Handle
2912         only POINTER_PLUS_EXPR.  Removing all the extra
2913         code which is trying to figure out which side is a pointer and 
2914         is the index.
2915         * tree-cfg.c (verify_expr): Add extra checking for pointers and
2916         PLUS_EXPR and MINUS_EXPR.
2917         Also add checking to make sure the operands of POINTER_PLUS_EXPR
2918         are correct.
2919         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
2920         with make_tree, instead of a pointer type.
2921         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
2922         for pointers instead of PLUS_EXPR.
2923         (s390_gimplify_va_arg): Likewise.
2924         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
2925         instead of PLUS_EXPR when doing addition on pointer
2926         types.  Use sizetype for the second operand.
2927         (spu_gimplify_va_arg_expr): Likewise.
2928         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
2929         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
2930         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
2931         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
2932         for the pointer addition and also use size_int/sizetype
2933         for the offset.
2934         (ix86_gimplify_va_arg): Likewise.
2935         Perform BIT_AND_EXPR on sizetype arguments.
2936         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
2937         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
2938         for the pointer additions and also use size_int for the offsets.
2939         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
2940         additions and also use size_int for the offsets.  Perform
2941         BIT_AND_EXPR on sizetype arguments.
2942         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
2943         POINTER_PLUS_EXPR for pointers and create the
2944         BIT_AND_EXPR in sizetype.
2945         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
2946         instead of PLUS_EXPR for pointer addition.
2947         (rs6000_va_start): Likewise.
2948         Also use sizetype for the offset.
2949         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
2950         as PLUS_EXPR/MINUS_EXPR.
2951         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
2952         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
2953         Don't use BIT_AND_EXPR on a pointer type, convert the
2954         expression to sizetype first.
2955         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
2956         for pointers.
2957         (mips_gimplify_va_arg_expr): Likewise.
2958         Don't create BIT_AND_EXPR in a pointer type.
2959
2960 2007-06-15  Eric Christopher  <echristo@apple.com>
2961
2962         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
2963         (x86_64-*-darwin*): Ditto.
2964         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
2965         for above.
2966
2967 2007-06-15  Matthew Wilcox <matthew@wil.cx>
2968
2969         * doc/extend.texi: Document behavior of __attribute__((aligned))
2970         on typedefs.
2971
2972 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
2973
2974         * rtlanal.c (note_stores): Improve documentation.
2975
2976 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2977
2978         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
2979         LOCAL_LABEL_PREFIX): Delete.
2980         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
2981         (bfin_internal_label): Delete.
2982
2983 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
2984
2985         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
2986         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
2987         otherwise define to LIBGCC2_TF_CEXT.
2988         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
2989         (LIBGCC_TF_CEXT): Ditto.
2990         (TF_SIZE): Ditto.
2991
2992 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
2993
2994         PR rtl-optimization/32339
2995         * df-scan.c (df_uses_record): Don't modify flags but just add to
2996         it for df_ref_record.
2997
2998 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2999
3000         * tree-mudflap.c: Fix whitespace issues.
3001
3002 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
3003
3004         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
3005
3006 2007-06-14  Eric Christopher  <echristo@apple.com>
3007
3008         * config/i386/sse.md (movdi_to_sse): Rewrite body.
3009         (movv4sf): Use gcc_unreachable instead of abort.
3010
3011 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
3012
3013         PR target/32268
3014         * config/i386/sfp-machine.h (CMPtype): New define.
3015         (mach stubs): Use CMPtype instead of int as a return type.
3016
3017 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
3018
3019         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
3020         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
3021         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
3022         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
3023         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
3024         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
3025         config/soft-fp/soft-fp.h: Update from glibc CVS.
3026
3027 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3028
3029         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
3030
3031 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3032
3033         PR target/32341
3034         * config/v850/v850.c: Include dataflow header file.
3035         (substitute_ep_register): Fix typo.
3036
3037 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
3038
3039         * configure.ac: Fix earlier checkin.
3040         * configure: Regenerated.
3041
3042 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
3043
3044         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
3045         * aclocal.m4: Regenerate.
3046         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
3047         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
3048         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
3049         * configure: Regenerate.
3050         * Makefile.in (LOOSE_WARN): Subst loose_warn.
3051
3052         * Makefile.in (quickstrap): Build libgcc too.
3053
3054 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
3055
3056         * configure.ac: Add --enable-checking=df.  Explicitly mention that
3057         the variables are initialized as for "release".
3058         * df-core.c: Use it.
3059         * configure: Regenerate.
3060         * config.in: Regenerate.
3061
3062 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
3063
3064         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
3065         validate_replace_rtx instead of replace_rtx.
3066         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
3067
3068 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
3069
3070         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
3071         (DWARF2_UNWIND_INFO): Override default if configured with
3072         SJLJ EH disabled.
3073         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
3074         (ENDFILE_SPEC): Add crtend.o.
3075         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
3076         (ENDFILE_SPEC): Add crtend.o.
3077         (TARGET_USE_JCR_SECTION): Define.
3078         (MD_UNWIND_SUPPORT): Define for 32-bit target.
3079
3080         * config/i386/cygming-crtbegin.c: New file.
3081         * config/i386/cygming-crtend.c: New file.
3082
3083 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
3084
3085         * config/i386/w32-unwind.h: New file.
3086
3087 2007-06-13  Eric Christopher  <echristo@apple.com>
3088
3089         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
3090         the user set a value below STACK_BOUNDARY.
3091
3092 2007-06-13  Thiemo Seufer  <ths@networkno.de>
3093
3094         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
3095         imply -lpthread for -pthread.
3096
3097 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
3098
3099         * basic-block.h: Remove the prototype for
3100         free_basic_block_vars.
3101         * cfglayout.h: Remove the prototype for
3102         insn_locators_initialize.
3103         * tree.h: Remove the prototype for emit_line_note.
3104
3105         * tree-ssa-pre.c (mergephitemp): Remove.
3106         (init_pre): Don't use mergephitemp.
3107
3108 2007-06-13  Eric Christopher  <echristo@apple.com>
3109
3110         * config/i386/i386.c (override_options): If we've specified
3111         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
3112
3113 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
3114
3115         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
3116         is defined.
3117
3118 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3119
3120         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
3121         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
3122         (eh_store_handler): New pattern.
3123         (eh_return): Emit it instead of a plain move.
3124
3125 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
3126
3127         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
3128         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
3129         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
3130         def_builtin_const.
3131
3132 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3133
3134         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
3135         (find_next_insn_start, find_load): New functions.
3136         (bfin_reorg): Use them to deal with the fact that parallel insns are
3137         no longer represented as a SEQUENCE.
3138
3139 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3140
3141         * config/sparc/sparc.c (sparc_override_options): Initialize
3142         fpu mask correctly.
3143
3144 2007-06-13  Dave Korn  <dave.korn@artimi.com>
3145
3146         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
3147         df_get_live_out.
3148
3149 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
3150
3151         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
3152         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
3153         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
3154         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
3155         tree-vect-transform.c: Fix comment typos.  Follow spelling
3156         conventions.
3157
3158 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
3159
3160        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
3161        to the exit block use set.
3162        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
3163        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
3164        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
3165
3166 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
3167
3168         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
3169         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
3170         to indicate an error.
3171         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
3172         New functions.
3173         (dbg_cnt_process_opt): Print an error on a bad argument.
3174         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
3175         * common.opt (-fdbg-cnt-list): New.
3176         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
3177
3178 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3179
3180         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
3181         flag on ref-all pointers.
3182
3183 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3184
3185         PR middle-end/31579
3186         * expr.c (expand_expr_addr_expr_1): Call expand_expr
3187         for the offset with the modifier as EXPAND_INITIALIZER
3188         if the modifier is EXPAND_INITIALIZER.
3189         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
3190         a register if we had an overflow.
3191
3192 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3193
3194         * real.c (real_isfinite): New.
3195         (real_sqrt): Use it.
3196         * real.h (real_isfinite): New.
3197         * builtins.c: Use it.
3198
3199 2007-06-12  Ian Lance Taylor  <iant@google.com>
3200             Daniel Berlin  <dberlin@dberlin.org>
3201
3202         PR libstdc++/29286
3203         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
3204         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
3205         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
3206         (DECL_NO_TBAA_P): Define.
3207         (struct tree_decl_common): Add no_tbaa_flag field.
3208         * tree-ssa-structalias.c (struct variable_info): Add
3209         no_tbaa_pruning field.
3210         (new_var_info): Initialize no_tbaa_pruning field.
3211         (unify_nodes): Copy no_tbaa_pruning field.
3212         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
3213         (dump_solution_for_var): Print no_tbaa_pruning flag.
3214         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
3215         callers.
3216         (compute_tbaa_pruning): New static function.
3217         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
3218         Call compute_tbaa_pruning.
3219         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
3220         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
3221         * gimple-low.c (lower_stmt): Likewise.
3222         * tree-gimple.c (is_gimple_stmt): Likewise.
3223         * tree-ssa-operands.c (get_expr_operands): Likewise.
3224         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3225         * tree-inline.c (estimate_num_insns_1): Likewise.
3226         (copy_result_decl_to_var): Likewise.
3227         * expr.c (expand_expr_real_1): Likewise.
3228         * tree-pretty-print.c (dump_generic_node): Likewise.
3229         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
3230         * omp-low.c (omp_copy_decl_2): Likewise.
3231         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
3232         * doc/c-tree.texi (Expression trees): Document
3233         CHANGE_DYNAMIC_TYPE_EXPR.
3234
3235 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3236
3237         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
3238         with !HONOR_NANS and !HONOR_INFINITIES.
3239         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3240
3241 2007-06-12  Tristan Gingold  <gingold@adacore.com>
3242
3243         * gcov.c: Comments updated.
3244         (source_info): Add file_time field.
3245         (source_index): New variable.
3246         (mutiple_files): New variable.
3247         (generate_results): New function extracted from process_file.
3248         (process_file): Save and restore chain of functions, generate
3249         results and free structures only if not merging results.
3250         (release_structures): File names are now freed in create_file_names
3251         (create_file_names): Free previous file names.
3252         (find_source): File date is now read here and modifications in
3253         source files is checked here.
3254         (read_graph_file): Only reverse order of functions for the current
3255         object file.
3256         (make_gcov_file_name): Do not generate long names if input_name is
3257         NULL.
3258         (output_lines): If merging results do not display graph, data and
3259         runs informations.
3260         Checking source file modification is done in find_source.
3261
3262         * doc/gcov.texi: Append an s to sourcefile.
3263
3264 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3265
3266         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
3267         (forced_nop): New pattern.
3268         * config/bfin/bfin.c: Include "df.h".
3269         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
3270         (bfin_discover_loop): Use df_get_live_in instead of
3271         global_live_at_start.
3272         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
3273         df_analyze when done.
3274         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
3275         the insns.  Use QImode for the final insn in a bundle.  Call
3276         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
3277         gen_nop.
3278         (reorder_var_tracking_notes): New function.
3279         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
3280         update_life_info.  Call df_analyze after scheduling and bundle
3281         generation.  Call reorder_var_tracking_notes if generating these
3282         notes.  Call df_finish_pass at the end.
3283
3284 2007-06-12  Dirk Mueller  <dmueller@suse.de>
3285
3286         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
3287         a comparison, not an assignment.
3288
3289 2007-06-12  Olivier Hainque  <hainque@adacore.com>
3290
3291         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
3292         Request walking the subtrees only, leaving the current is_lhs/val_only
3293         untouched.
3294         (convert_non_local_reference): Likewise.
3295
3296 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
3297
3298         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
3299
3300 2007-06-12  Richard Guenther  <rguenther@suse.de>
3301
3302         PR tree-optimization/15353
3303         PR tree-optimization/31657
3304         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
3305         * timevar.def: Add TV_TREE_IFCOMBINE.
3306         * tree-pass.h (pass_tree_ifcombine): Declare.
3307         * tree-ssa-ifcombine.c: New file.
3308         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
3309         * tree-flow.h (blocks_in_phiopt_order): Declare.
3310         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
3311         (tree-ssa-ifcombine.o): New dependencies.
3312
3313 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
3314
3315         PR rtl-optimization/32293
3316         * combine.c (simplify_if_then_else): Truncate return from
3317         nonzero_bits() to correct mode.
3318
3319 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
3320
3321         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
3322         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
3323
3324 2007-06-11  Diego Novillo  <dnovillo@google.com>
3325
3326         * Makefile.in (reload1.o-warn): Remove.
3327
3328 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
3329
3330         * combine.c (subst): Use reg_overlap_mentioned_p
3331         instead of comparing register numbers directly.
3332
3333 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
3334
3335         * reload1.c (mark_home_live_1): Use the mode parameter.
3336
3337 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
3338
3339         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
3340         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
3341         word "deferred".
3342         * df-core.c: Ditto.
3343
3344 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
3345
3346         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
3347
3348 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
3349
3350         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
3351         from integer registers.
3352         (FP mode splitters): Handle TFmode.
3353
3354 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3355
3356         * tree-ssa-structalias.c (find_what_p_points_to): Return false
3357         for ref-all pointers that point-to anything.
3358
3359 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
3360
3361         * config/arm/arm.c (arm_output_dwarf_dtprel,
3362         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
3363
3364 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3365
3366         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
3367         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
3368         to memory moves.
3369
3370 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
3371
3372         * gcc/tree.c (signed_or_unsigned_type_for): New.
3373         (unsigned_type_for): Use signed_or_unsigned_type_for.
3374         (signed_type_for): Use signed_or_unsigned_type_for.
3375         * gcc/tree.h (signed_or_unsigned_type_for): New.
3376         (get_signed_or_unsigned_type): Remove.
3377         * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
3378         lang_hooks.types.signed_type
3379         (size_diffop): Likewise.
3380         (all_ones_mask_p): Likewise.
3381         (build_range_check): Likewise.
3382         (fold_cond_expr_with_comparison): Likewise.
3383         (fold_cond_expr_with_comparison): Likewise.
3384         (unextend): Likewise.
3385         (extract_muldiv_1): Likewise.
3386         (fold_single_bit_test_into_sign_test): Likewise.
3387         (fold_binary): Likewise.
3388         (fold_ternary): Likewise.
3389         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
3390         instead of get_signed_or_unsigned_type.
3391         * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
3392         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
3393         * gcc/expr.c (signed_or_unsigned_type_for): Use
3394         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
3395         * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
3396         (lhd_signed_or_unsigned_type): Remove.
3397         * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
3398         signed_or_unsigned_type.
3399         (lhd_signed_or_unsigned_type): Remove.
3400         * gcc/expmed.c (make_tree): Use signed_type_for instead of
3401         lang_hooks.types.signed_type.
3402         * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
3403         c_common_signed_type instead of lang_hooks.types.signed_type.
3404         (c_common_unsigned_type): New.
3405         (c_common_signed_type): Ju