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]

Re: [trans-mem] rms-tm bug report


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]