tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Fwd: Bug#322913: tcc: _Bool exists but doesn't comply


From: Romain Francoise
Subject: Re: [Tinycc-devel] Fwd: Bug#322913: tcc: _Bool exists but doesn't comply with C99
Date: Fri, 02 Sep 2005 19:59:10 +0200

Marcelo Jimenez <address@hidden> writes:

> Index: tcc.c
> ===================================================================
> RCS file: /cvsroot/tinycc/tinycc/tcc.c,v
> retrieving revision 1.172
> diff -u -r1.172 tcc.c
> --- tcc.c     17 Jun 2005 22:05:58 -0000      1.172
> +++ tcc.c     30 Aug 2005 05:23:36 -0000
> @@ -5822,6 +5822,7 @@
>              /* we handle char/short/etc... with generic code */
>              if (dbt != (VT_INT | VT_UNSIGNED) &&
>                  dbt != (VT_LLONG | VT_UNSIGNED) &&
> +                dbt != VT_BOOL &&
>                  dbt != VT_LLONG)
>                  dbt = VT_INT;
>              if (c) {
> @@ -5836,6 +5837,10 @@
>                      case VT_DOUBLE: vtop->c.ui = (unsigned
> int)vtop->c.d; break;
>                      case VT_LDOUBLE: vtop->c.ui = (unsigned
> int)vtop->c.d; break;
>                      }
> +                    break;
> +             case VT_BOOL:
> +                    vpushi(0);
> +                    gen_op(TOK_NE);
>                      break;
>                  default:
>                      /* int case */

Thanks, that does the trick indeed.

-- 
  ,''`.
 : :' :        Romain Francoise <address@hidden>
 `. `'         http://people.debian.org/~rfrancoise/
   `-




reply via email to

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