[PATCH] disable strict aliasing in Algol 68 frontend
Jose E. Marchesi
jemarch@gnu.org
Sat Jun 20 10:35:23 GMT 2026
Hi Andrea, Kanishka.
> On Fri, Jun 19, 2026 at 2:18 PM Kanishka Solanki
> <kanishkasolanki456s@gmail.com> wrote:
>>
>> Hi,
>>
>> This patch disables strict aliasing in the Algol 68 frontend by setting
>> flag_strict_aliasing to 0 in a68_post_options().
>>
>> The frontend builds successfully and make check-algol68 passes with this
>> change.
>
> I am not sure that is the correct approach. If a68 does not want TBAA,
> the front-end should return 0 from LANG_HOOKS_GET_ALIAS_SET.
We need to reflect a bit on whether Algol 68 can benefit from
optimizations based on strict aliasing, and in fact on whether the
optimizations are correct with respect to the language's rules.
>
> Thanks,
> Andrea
>
>>
>> Thanks,
>> Kanishka Solanki
>>
>>
More information about the Algol68
mailing list