Thiago Adams

Results 89 comments of Thiago Adams

To be able to parse header files in the same way of GCC or MSVC, cake "clones" the compiler. I think GCC "__attribute_deprecated_msg__" was not cloned. Workaround: define it as...

If you send me small samples (can be web version) I can implement the missing bits from GCC. I think in your scenario you want do reuse the same make...

I can also document GCC extensions that are already implemented in cake.

Cake may also had to clone something from other compiler WatCom for instance. In any case, cloning GCC and fixing GCC is on the road map.

The web sample didn't help too much because it is incomplete. missing some macros. A -E output from GCC also can help.

This works in cake (select x86-x64-gcc) http://cakecc.org/playground.html?code=dHlwZWRlZiB2b2lkICgqX19zaWdoYW5kbGVyX3QpIChpbnQpOw0KDQpleHRlcm4gaW50IHNpZ2lnbm9yZSAoaW50IF9fc2lnKQ0KICBfX2F0dHJpYnV0ZV9fICgoX19kZXByZWNhdGVkX18gKCJVc2UgdGhlIHNpZ25hbCBmdW5jdGlvbiBpbnN0ZWFkIikpKTsNCg0KDQpleHRlcm4gX19zaWdoYW5kbGVyX3Qgc2lnc2V0IChpbnQgX19zaWcsIF9fc2lnaGFuZGxlcl90IF9fZGlzcCkNCiAgX19hdHRyaWJ1dGVfXyAoKF9fZGVwcmVjYXRlZF9fICgiVXNlIHRoZSBzaWduYWwgYW5kIHNpZ3Byb2NtYXNrIGZ1bmN0aW9ucyBpbnN0ZWFkIikpKTsNCiAgDQo%3D&to=-2&options= Then the problem may be on __glibc_has_attribute something related with preprocessor.

thanks..you found a bug in cake. https://github.com/thradams/cake/issues/343 I will fix that. (the problem is new line between function-like macro and the argument list)

343 fixed at Cake 0.12.37

https://github.com/thradams/cake/issues/344

GCC asm has been implemented in Cake 0.12.38 Instead of complete parsing (that would not be used) I am just collecting all tokens between `_asm ( .... );` that works...