tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Stack Overflow question about jmp


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] Stack Overflow question about jmp
Date: Sun, 22 Sep 2013 20:07:08 +0200
User-agent: KMail/4.10.5 (Linux/3.10-3-amd64; KDE/4.10.5; x86_64; ; )

Le dimanche 22 septembre 2013 19:55:11 Thomas Preud'homme a écrit :
> Le dimanche 22 septembre 2013 18:16:06 grischka a écrit :
> 
> > Beyond that
> > 
> >      error: unknown opcode 'jmp'
> > 
> > is just a rather bad message.  Maybe it could say something like
> > 
> >      error: bad operand '%eax' with opcode 'jmp'
> 
> A test could be added with a TOK_ASM_allfirst and TOK_ASM_alllast to
> distinguish between incorrect operand and incorrect opcode.

Would a patch like the one attach be ok? I didn't named the operand because 
when several alternatives exist for an opcode it's difficult to know which 
operand is at fault (which of the alternative didn't match but was intended 
to?).

Best regards,

Thomas

Attachment: fix_error_msg_bad_operand.diff
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]