This is the mail archive of the cgen@sourceware.org mailing list for the CGEN 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]

Gas error messages


I'm parsing an operand with a custom parser, e.g.:

(define-operand
   ...
   ...
   (handlers (parse "my_parser"))
)

And then in the .opc file:

Parse_my_parser(...)
{
    if (error)
        return "an error occurred";
}

However, when the error message is returned, instead of printing my
error message, as expected, gas spits out:

test.s:28: Error: unrecognized keyword/register name

Am I doing something wrong or is this a bug?


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