Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

2024-02-25 Thread pluto--- via Discussion list for the autoconf build system
Jeffrey Walton wrote: > On Sun, Feb 25, 2024 at 2:09???AM Jeffrey Walton wrote: > > Is it safe to use ax_gcc_builtin to detect __builtin_offsetof? > Cancel. We can't use AX_GCC_BUILTIN in production. Using > AX_GCC_BUILTIN produces broken configure's: > ... > ./configure: line 15023: syntax error

Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

2024-02-25 Thread Peter Hull
On Sun, 25 Feb 2024 at 07:29, Jeffrey Walton wrote: > > Cancel. We can't use AX_GCC_BUILTIN in production. Using > AX_GCC_BUILTIN produces broken configure's: That's weird it didn't work. I tried with this minimal file (autoconf 2.71) and it was fine: #

Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

2024-02-25 Thread Zack Weinberg
On Sun, Feb 25, 2024, at 2:09 AM, Jeffrey Walton wrote: > > Is it safe to use ax_gcc_builtin to detect __builtin_offsetof? Why do you need to do that? What's wrong with including stddef.h and then using plain offsetof? It's part of C1989. Not a rhetorical question, I really would like to know ho

Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

2024-02-25 Thread Nick Bowler
On 2024-02-25 02:28, Jeffrey Walton wrote: > On Sun, Feb 25, 2024 at 2:09 AM Jeffrey Walton wrote: >> The page >> does not list __builtin_offsetof in the list of documented builtins. >> But the page says "Unsupported built-ins wil

Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

2024-02-25 Thread Jacob Bachmeyer
Jeffrey Walton wrote: On Sun, Feb 25, 2024 at 2:09 AM Jeffrey Walton wrote: The page does not list __builtin_offsetof in the list of documented builtins. But the page says "Unsupported built-ins will be tested with an empty