[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] stdlib.h include fails
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2018-03-08 12:24:57
Message-ID: 688b2233-f723-b1b1-7ed1-48412f2d661d () ludd ! ltu ! se
[Download RAW message or body]

I've checked in a simple fix for this.  pcc now parses TC/TF/TI 
(128-bit) but cannot make use of them.
Enabled on i386 and amd64 as seems to be the targets based on gcc docs.

-- R

Den 2018-03-05 kl. 16:08, skrev Susi Lehtola:
> Hello,
>
> as reported at
> https://bugzilla.redhat.com/show_bug.cgi?id=1551537
>
> pcc fails to compile code that has
> #include <stdlib.h>
>
> on Fedora. The result is
>
> $ pcc -c tst.c
> /usr/include/bits/floatn.h, line 61: warning: unknown mode arg __TC__
> /usr/include/bits/floatn.h, line 73: invalid function definition
> /usr/include/bits/floatn.h, line 73: syntax error
> /usr/include/bits/floatn.h, line 73: invalid function definition
> /usr/include/bits/byteswap.h, line 47: cannot recover from earlier 
> errors: goodbye!
> error: /usr/libexec/ccom terminated with status 1
> $
>
> even with the 20180228 snapshot.
>
>
> In the above bug report, the reporter states: I traced this back to 
> pcc not having the __float128 type used in a typedef in the header. It 
> is an alias for long double in gcc/clang. A workaround is to add:
>
>   pcc -D__float128="long double" ...
>
>
> Indeed, this removes the error:
>
> $ pcc -D __float128="long double" -c tst.c
> /usr/include/bits/floatn.h, line 61: warning: unknown mode arg __TC__
> $
>

_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic