[gcc r17-3312] build: Add stdatomic.h to USER_H on OpenBSD

Pietro Monteiro via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:d32c1f0238f33b0f6a3ef1b5b228678a92585094

commit r17-3312-gd32c1f0238f33b0f6a3ef1b5b228678a92585094
Author: Pietro Monteiro <[email protected]>
Date:   Sat Aug 15 14:28:10 2026 -0400

    build: Add stdatomic.h to USER_H on OpenBSD
    
    Otherwise libatomic build fails with:
    ../../../gcc/libatomic/fence.c:27:10: fatal error: stdatomic.h: No such file or directory
       27 | #include <stdatomic.h>
          |          ^~~~~~~~~~~~~
    compilation terminated.
    ../../../gcc/libatomic/flag.c:27:10: fatal error: stdatomic.h: No such file or directory
       27 | #include <stdatomic.h>
    
    gcc/ChangeLog:
    
            * config/t-openbsd (USER_H): Add $(srcdir)/ginclude/stdatomic.h.
    
    Signed-off-by: Pietro Monteiro <[email protected]>

Diff:
---
 gcc/config/t-openbsd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/config/t-openbsd b/gcc/config/t-openbsd
index 3b625d62b30d..eba06fdd5c4c 100644
--- a/gcc/config/t-openbsd
+++ b/gcc/config/t-openbsd
@@ -1,5 +1,6 @@
-# We don't need GCC's own include files.
-USER_H = $(EXTRA_HEADERS)
+# We need stdatomic.h from GCC's include files.
+USER_H = $(srcdir)/ginclude/stdatomic.h \
+	$(EXTRA_HEADERS)
 
 # OpenBSD-specific D support.
 openbsd-d.o: $(srcdir)/config/openbsd-d.cc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.