libgomp: Add '__attribute__((unused))' to variables used only in 'assert(...)' (was: [PATCH] libgomp: avoid unused-variable-error when configured with CFLAGS=-DNDEBUG)

2025-02-22 Thread Thomas Schwinge
Hi! On 2025-02-17T16:40:05+, "shynur ." wrote: >> As part of the Git commit message, please include a ChangeLog update (see >> and 'git log'). > > I've written a new patch which is attached. Pushed to trunk branch commit e759ff08e2e2e71

Re: [PATCH] libgomp: avoid unused-variable-error when configured with CFLAGS=-DNDEBUG

2025-02-17 Thread shynur .
> As part of the Git commit message, please include a ChangeLog update (see > and 'git log'). I've written a new patch which is attached. > Basically, 'contrib/gcc-changelog/git_check_commit.py --print-changelog' > needs to accept your commi

Re: [PATCH] libgomp: avoid unused-variable-error when configured with CFLAGS=-DNDEBUG

2025-02-17 Thread Thomas Schwinge
Hi! On 2025-02-16T05:25:35+, "shynur ." wrote: > (The *new* patch is attached.) > > Hi, Jakub and Thomas~ I found some problems when compiling GCC, and it turns > out it was related to libgomp. > > $ git clone ... > $ mkdir gcc-build > $ cd gcc-build > > If I configure GCC

Re: [PATCH] libgomp: avoid unused-variable-error when configured with CFLAGS=-DNDEBUG

2025-02-15 Thread shynur .
(The *new* patch is attached.) Hi, Jakub and Thomas~ I found some problems when compiling GCC, and it turns out it was related to libgomp. $ git clone ... $ mkdir gcc-build $ cd gcc-build If I configure GCC with $ CC=gcc-14 CXX=g++-14 CFLAGS=-DNDEBUG ../gcc/conf

[PATCH] libgomp: avoid unused-variable-error when configured with CFLAGS=-DNDEBUG

2025-01-08 Thread shynur .
>From 929fb2091ffe50a35a1b2dae1f1ce20357bc435b Mon Sep 17 00:00:00 2001 From: shynur Date: Thu, 9 Jan 2025 14:11:38 +0800 Subject: [PATCH] Avoid unused-variable-error when configured with 'CFLAGS=-DNDEBUG' --- libgomp/target.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --g