This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 11/08/13 10:45, pinskia@gmail.com wrote:
Also note that other patches have gone in recently which include those files for exactly the same reason. I don't think Andrew did anything wrong here.On Nov 8, 2013, at 9:20 AM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:On Wed, Oct 30, 2013 at 5:03 AM, Andrew Pinski wrote: Here is what I applied in the end; Jeff told me just to remove the testcase. I added the comment trying to explain why it was the opposite order of PHI-opt. Thanks, Andrew Pinski ChangeLog: * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.Eh, why??? The file has this comment: 25 /* rtl is needed only because arm back-end requires it for 26 BRANCH_COST. */ 27 #include "rtl.h" 28 #include "tm_p.h" Can you please clarify why this is not something to be fixed in the ARM back end?Really BRANCH_COST should be a target hook rather than a macro which should fix this issue. fold-const.c has the same include for the same reason. I thought I had saw a patch which changes it into a hook. Next week if I get time, I will do that. I knew it was the wrong direction which is why I added a comment.
Clearly those can/should/will go away when BRANCH_COST turns into a target hook. I'd like to do it myself, but I'm buried right now.
jeff
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |