Hey Sergey,

Good point. I use the expressesion "v < SYM_EXTENDED" and "(v &
~SYM_EXTENDED) == v" interchangeably, as they *mean* the exact same thing
for an unsigned integer. I got the idea because inequalities are used with
SYM_FIRST_ANOM, so I assumed that inequalities would be safe. I'll fix mine
to bit checks.

@Everybody, Might there be a subtle bug in tcc's anonymous symbol checking,
since it uses inequalities rather than querying bits directly?

David

On Mon, May 18, 2015 at 6:52 AM, Sergey Korshunoff <sey...@gmail.com> wrote:

> 0x80000000 is a sign bit. If v == 0x80000000 then v < 0x40000000
>
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>



-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to