Hi
I've fix my problem,
cleanup should now work correctly on my github(I've push -f)
I will now work on a new branch to remove the dual parsing.
Matthias.
On Sun, Jan 6, 2019 at 7:35 PM uso ewin wrote:
>
> On Fri, Jan 4, 2019 at 10:27 AM uso ewin wrote:
> >
> > On Thu, Jan 3, 2019 at 6:51 PM
1.CROSS_TARGET option don't work correctly.
I added arm-xxx_FILES in Makefile so we can build cross target by using command
like this:
make libtcc.a CROSS_TARGET=arm-vfp
2.function 'lexpand_nr' seems doing the same thing as 'lexpand'. So I remove
lexpand_nr function and change the reference
> Maybe add a global variable
Not global but a new member of TCCState, for example cversion
If (s->cversion >= 201112) {
/* Hello C11 */
}
Diff becomes:
jullien@sims3:~/new-tcc $ git diff
diff --git a/libtcc.c b/libtcc.c
index df7adab..7883734 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1790,8
On Tue, Jan 8, 2019 at 5:06 PM Christian Jullien wrote:
>
> If no one protests, I can push this patch:
> jullien@sims3:~/new-tcc $ git diff
> diff --git a/libtcc.c b/libtcc.c
> index df7adab..eb55d8a 100644
> --- a/libtcc.c
> +++ b/libtcc.c
> @@ -1790,8 +1790,15 @@ reparse:
>
If no one protests, I can push this patch:
jullien@sims3:~/new-tcc $ git diff
diff --git a/libtcc.c b/libtcc.c
index df7adab..eb55d8a 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1790,8 +1790,15 @@ reparse:
s->static_link = 1;
break;
case TCC_OPTION_std:
-
On Tue, Jan 8, 2019 at 2:35 PM Christian Jullien wrote:
>
> IMHO,
>
> The right solution is to start to implement C11 features and surround them
> with right #if _STDC_VERSION >= xxx.
> This is how gcc/Linux handle differences between C/C++/POSIX/...
>
> Even gcc is not totally fair when it
IMHO,
The right solution is to start to implement C11 features and surround them
with right #if _STDC_VERSION >= xxx.
This is how gcc/Linux handle differences between C/C++/POSIX/...
Even gcc is not totally fair when it claims it supports a given version.
I spent several hours to figure out why
As for allowing features conditionally, there's no harm in always
allowing things like _Generic or _Alignof (always reserved identifiers).
The max_align_t could be defined and protected by an `#if
__STDC_VERSION__ >= 201101L` as long as -std= were changed so that
-std=c11 set that macro. I think