[Bug 239266] clang poisons namespace on powerpc by defining vec_step without any trigger (GCC fails to build: tree-vect-loop.c:4979:12: error: expected unqualified-id)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 May 2026 06:28:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266

--- Comment #40 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Linimon from comment #39)

Summary: Just the lang/gcc13*/files/patch-clang-vec_step should be deleted.

Details . . .

Reminder (ignoring the -devel alternatives that should match):

# ls -lodT /usr/ports/lang/gcc??/
drwxr-xr-x  4 root wheel uarch 9 May 22 23:11:17 2026 /usr/ports/lang/gcc12/
drwxr-xr-x  4 root wheel uarch 9 May 22 23:09:47 2026 /usr/ports/lang/gcc13/
drwxr-xr-x  4 root wheel uarch 9 May 22 23:09:04 2026 /usr/ports/lang/gcc14/
drwxr-xr-x  4 root wheel uarch 9 May 22 23:08:34 2026 /usr/ports/lang/gcc15/
drwxr-xr-x  4 root wheel uarch 9 May 22 22:58:23 2026 /usr/ports/lang/gcc16/

Before fetching and extracting for lang/gcc?? :

# grep -r vec_step /usr/ports-alt/lang/gcc??/
/usr/ports-alt/lang/gcc12/files/patch-clang-vec_step:Until that changes (or GCC
changes) we need to avoid using vec_step
/usr/ports-alt/lang/gcc12/files/patch-clang-vec_step:+#define vec_step
vec_step_
vec_step_
/usr/ports-alt/lang/gcc13/files/patch-clang-vec_step:Until that changes (or GCC
changes) we need to avoid using vec_step
/usr/ports-alt/lang/gcc13/files/patch-clang-vec_step:+#define vec_step
vec_step_

So only lang/gcc1[23] have files/patch-clang-vec_step now.

lang/gcc?? fetching and extractions have:

# grep -r '\<vec_step_\>' /usr/ports/lang/gcc??/work/ | less
/usr/ports/lang/gcc13/work/gcc-13.3.0/gcc/system.h:#define vec_step vec_step_
/usr/ports/lang/gcc13/work/gcc-13.3.0/gcc/ChangeLog:    * system.h (vec_step):
Define to vec_step_ when compiling
/usr/ports/lang/gcc14/work/gcc-14.2.0/gcc/ChangeLog:    * system.h (vec_step):
Define to vec_step_ when compiling
/usr/ports/lang/gcc14/work/gcc-14.2.0/gcc/system.h:#define vec_step vec_step_
/usr/ports/lang/gcc15/work/gcc-15.2.0/gcc/system.h:#define vec_step vec_step_
/usr/ports/lang/gcc15/work/gcc-15.2.0/gcc/ChangeLog-2024:       * system.h
(vec_step): Define to vec_step_ when compiling
/usr/ports/lang/gcc16/work/gcc-16.1.0/gcc/ChangeLog-2024:       * system.h
(vec_step): Define to vec_step_ when compiling
/usr/ports/lang/gcc16/work/gcc-16.1.0/gcc/system.h:#define vec_step vec_step_

So it appears that:

) lang/gcc12* needs files/patch-clang-vec_step [no change].
) lang/gcc13* does not need files/patch-clang-vec_step [A CHANGE].
) lang/gcc1[456]* are fine as is [no change].

Also:

) lang/gcc17-devel likely is fine as is [no change].

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.