On Jun 20, 2026, at 3:35 AM, Jose E. Marchesi <[email protected]> wrote:
> Hi Andrea, Kanishka.
> 
>> On Fri, Jun 19, 2026 at 2:18 PM Kanishka Solanki
>> <[email protected]> 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.

Algol likely wants non strict aliasing in general. But, makes a nice research 
question on how to add TBAA to as much as possible to get as much benefit as 
you can. :-)

Reply via email to