Re: [Tinycc-devel] Preprocessor directive "pragma"

2021-08-20 Thread Suote127
On Fri, Aug 20, 2021 at 01:51:26PM +0200, grischka wrote: > That's good, but as you may guess, none of the tests that so far > exist was made specifically to test your new feature. See for > example: > > #pragma pack(push+1) > #pragma pack(pop) > #pragma pack(push) > struct foo { char c;

Re: [Tinycc-devel] Preprocessor directive "pragma"

2021-08-20 Thread grischka
suote127 wrote: I made a small patch to fix this problem.All tests are passed(with make test). That's good, but as you may guess, none of the tests that so far exist was made specifically to test your new feature. See for example: #pragma pack(push+1) #pragma pack(pop) #pragma

[Tinycc-devel] Preprocessor directive "pragma"

2021-08-19 Thread suote127
Hello, At first,I am sorry for my poor English. I am compiling a program which processes binary data package.To avoid excess padding,it uses "#pragma" to disable padding.But an error occurred while compiling with TCC.TCC does not accept pragma option "pack" with only an operator