maintMakefile MAKE_CFLAGS: Does the `-C` option do anything?

2024-11-29 Thread Pete Dietl
In commit `1dfd55ca`, the added comment in `maintMakefile` reads: > # Also force comments to be preserved. This helps when using ccache, in > # combination with GCC 7's implicit-fallthrough warning. I am curious how this helps ccache. I tried running GCC with and without the flags and it seems t

Re: [PATCH] Add arithmetic builtin functions

2024-11-29 Thread Pete Dietl
Gisle Vanem wrote: > > +#define generic_math_op(a, b, op) > >\ > > + ((void)sizeof ( > >\ > > + char[__builtin_types_compatible_p (typeof (a), typeof (b)) ? 1 : > > -1]), \ > > + _G

Re: [PATCH] Add arithmetic builtin functions

2024-11-29 Thread Gisle Vanem
Pete Dietl wrote: Here I submit to you a patch that adds the following builtin functions to make: `add` (addition), `sub` (subtraction), `mul` (multiplication), `div` (division), `mod` (modulus), `max` (maximum), `min` (minimum), and `abs` (absolute value). The implementation I provide supports

[PATCH] Add arithmetic builtin functions

2024-11-29 Thread Pete Dietl
Here I submit to you a patch that adds the following builtin functions to make: `add` (addition), `sub` (subtraction), `mul` (multiplication), `div` (division), `mod` (modulus), `max` (maximum), `min` (minimum), and `abs` (absolute value). The implementation I provide supports both integers and flo