Re: Three patches for 0.9.14

Shiro Kawai <[email protected]> Thu, 4 Apr 2024 21:02:58 -1000
Newsgroups gmane.lisp.scheme.gauche
Message-ID <CALN0JNGfe0DQs_+QO3agh6XNMMtCSngYEvAmY7dUHOAgt_xR0A@mail.gmail.com>
Hmm, alignas() seems to be applied to variable definition but not in a part
of typedef, so it can't be easily used with the current SCM_ALIGN8 macro,
which is expanded into __attribute__((aligned(8))) if __GNUC__.

We'll track this issue in https://github.com/shirok/Gauche/issues/1011

On Thu, Apr 4, 2024 at 4:34 PM Shiro Kawai <[email protected]> wrote:

> Thanks, I realized we already checked the existence of stdalign.h, so we
> can assume availability of _Alignas if the header exists.
>
>
>
> On Thu, Apr 4, 2024 at 3:08 PM NIIBE Yutaka <[email protected]> wrote:
>
>> Hello, again,
>>
>> Shiro Kawai <[email protected]> wrote:
>> > I applied the fixes and pushed the commits.
>>
>> Thank you for your quick work.
>>
>>
>> After I submitted the patches, I leaned that C11 supports "_Alignas" in
>> the declaration syntax.  Similarly, C23 has "alignas".
>>
>>     https://en.cppreference.com/w/c/language/_Alignas
>>
>> So, if/when needed for some newer compilers other than GCC, use of
>> "_Alignas" or "alignas" would be good.
>>
>> I checked autoconf and autoconf-archive for checking the feature, but I
>> haven't found any existing macro for that.
>>
>>
>> And I found that signed integer overflow is specifically addressed in
>> the GNU C Reference Manual:
>>
>>     https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Overflow
>>
>> I learned that it's from the Autoconf manual.
>>
>>
>> It's fun to see there are still things to learn in the language (or any
>> languages).  Well, it's a season to start something in Japan.  I just
>> bought the textbook of NHK radio program for Chinese language.
>> --
>>
>

_______________________________________________
Gauche-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gauche-devel