This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] rms-tm bug report
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Patrick Marlier <patrick dot marlier at unine dot ch>, Richard Henderson <rth at redhat dot com>, FELBER Pascal <pascal dot felber at unine dot ch>, Javier Arias <javier dot arias at bsc dot es>, "gokcen dot kestor at bsc dot es" <gokcen dot kestor at bsc dot es>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 May 2010 21:32:41 +0200
- Subject: Re: [trans-mem] rms-tm bug report
- References: <4BF4DD38.3080708@unine.ch> <20100524171655.GA19900@redhat.com> <20100524171812.GB19900@redhat.com>
On Mon, May 24, 2010 at 7:18 PM, Aldy Hernandez <aldyh@redhat.com> wrote:
>> Index: trans-mem.c
>> ===================================================================
>> --- trans-mem.c ? ? ? (revision 159601)
>> +++ trans-mem.c ? ? ? (working copy)
>> @@ -38,6 +38,8 @@
>> ?#include "params.h"
>> ?#include "target.h"
>> ?#include "langhooks.h"
>> +#include "expr.h"
>> +#include "optabs.h"
Could you be so kind to not do these includes, but...
>> +static inline bool
>> +mode_available_p (enum machine_mode mode)
>> +{
>> + ?return (optab_handler (mov_optab, mode)->insn_code != CODE_FOR_nothing);
>> +}
>> +
Put this in target.c or some place like expr.c and a prototype in tree.h?
Ciao!
Steven