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.

Thanks,
Kanishka Solanki
From f3174dd8524b57f10aa53d8dc4c13f334d0d4944 Mon Sep 17 00:00:00 2001
From: Kanishka Solanki <[email protected]>
Date: Sat, 20 Jun 2026 02:25:49 +0530
Subject: [PATCH] disable strict aliasing in Algol 68 frontend

The Algol 68 frontend does not want strict aliasing rules.

Disable strict aliasing in a68_post_options() by setting
flag_strict_aliasing to 0.

Strict aliasing had been enabled temporarily while investigating
test failures with it disabled. The frontend now builds correctly and
the Algol 68 testsuite passes with strict aliasing disabled.

gcc/algol68/ChangeLog

	* a68-lang.cc (a68_post_options): Disable strict aliasing.

Signed-off-by: Kanishka Solanki <[email protected]>
---
 gcc/algol68/a68-lang.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/algol68/a68-lang.cc b/gcc/algol68/a68-lang.cc
index 0fa38c210e4..8de5b35367c 100644
--- a/gcc/algol68/a68-lang.cc
+++ b/gcc/algol68/a68-lang.cc
@@ -640,6 +640,8 @@ a68_post_options (const char **filename ATTRIBUTE_UNUSED)
   if (flag_bounds_check)
     OPTION_BOUNDS_CHECKING (&A68_JOB) = true;
 
+  flag_strict_aliasing = 0;
+
   /* No psABI change warnings for Algol 68.  */
   warn_psabi = 0;
 
-- 
2.43.0

Reply via email to