comparison gcc/auto-inc-dec.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
31 #include "regs.h" 31 #include "regs.h"
32 #include "flags.h" 32 #include "flags.h"
33 #include "output.h" 33 #include "output.h"
34 #include "function.h" 34 #include "function.h"
35 #include "except.h" 35 #include "except.h"
36 #include "toplev.h" 36 #include "diagnostic-core.h"
37 #include "recog.h" 37 #include "recog.h"
38 #include "expr.h" 38 #include "expr.h"
39 #include "timevar.h" 39 #include "timevar.h"
40 #include "tree-pass.h" 40 #include "tree-pass.h"
41 #include "df.h" 41 #include "df.h"
1066 } 1066 }
1067 1067
1068 /* For the post_add to work, the result_reg of the inc must not be 1068 /* For the post_add to work, the result_reg of the inc must not be
1069 used in the mem insn since this will become the new index 1069 used in the mem insn since this will become the new index
1070 register. */ 1070 register. */
1071 if (count_occurrences (PATTERN (mem_insn.insn), inc_insn.reg_res, 1) != 0) 1071 if (reg_overlap_mentioned_p (inc_insn.reg_res, PATTERN (mem_insn.insn)))
1072 { 1072 {
1073 if (dump_file) 1073 if (dump_file)
1074 fprintf (dump_file, "base reg replacement failure.\n"); 1074 fprintf (dump_file, "base reg replacement failure.\n");
1075 return false; 1075 return false;
1076 } 1076 }