OSDN Git Service

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