All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure.ac: Fix typo
@ 2026-11-24 21:33 Richard Weinberger (sigma star gmbh)
  2026-11-25  5:45 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger (sigma star gmbh) @ 2026-11-24 21:33 UTC (permalink / raw)
  To: xenomai; +Cc: jan.kiszka, upstream+xenomai, Richard Weinberger

From: Richard Weinberger <richard@nod.at>

It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
With the misnamed variable, xenomai was never built with -O2
on my side and caused funny performance regressions.

Fixes: 89c1436b3 ("configure: Propagate debug build settings also to plain applications")
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0d6dd87b6..d707fb11d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -743,7 +743,7 @@ fi
 if test x$use_assert = x; then
    XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
 fi
-XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
+XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
 
 XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] configure.ac: Fix typo
  2026-11-24 21:33 [PATCH] configure.ac: Fix typo Richard Weinberger (sigma star gmbh)
@ 2026-11-25  5:45 ` Jan Kiszka
  2026-11-25  9:13   ` Florian Bezdeka
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2026-11-25  5:45 UTC (permalink / raw)
  To: Richard Weinberger (sigma star gmbh), xenomai
  Cc: upstream+xenomai, Richard Weinberger

On 24.11.26 22:33, Richard Weinberger (sigma star gmbh) wrote:
> From: Richard Weinberger <richard@nod.at>
> 
> It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
> With the misnamed variable, xenomai was never built with -O2
> on my side and caused funny performance regressions.
> 
> Fixes: 89c1436b3 ("configure: Propagate debug build settings also to plain applications")

At least no stable regression.

> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 0d6dd87b6..d707fb11d 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -743,7 +743,7 @@ fi
>  if test x$use_assert = x; then
>     XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
>  fi
> -XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
> +XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
>  
>  XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
>  XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"

Thanks, applied.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] configure.ac: Fix typo
  2026-11-25  5:45 ` Jan Kiszka
@ 2026-11-25  9:13   ` Florian Bezdeka
  2026-11-25 11:10     ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Bezdeka @ 2026-11-25  9:13 UTC (permalink / raw)
  To: Jan Kiszka, Richard Weinberger (sigma star gmbh), xenomai
  Cc: upstream+xenomai, Richard Weinberger

On Wed, 2026-11-25 at 06:45 +0100, Jan Kiszka wrote:
> On 24.11.26 22:33, Richard Weinberger (sigma star gmbh) wrote:
> > From: Richard Weinberger <richard@nod.at>
> > 
> > It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
> > With the misnamed variable, xenomai was never built with -O2
> > on my side and caused funny performance regressions.
> > 
> > Fixes: 89c1436b3 ("configure: Propagate debug build settings also to plain applications")
> 
> At least no stable regression.

Shouldn't the optimization level be separated from the debug settings?
-02 inside a variable named XENO_USER_CFLAGS_DEBUG looks a bit strange.

> 
> > Signed-off-by: Richard Weinberger <richard@nod.at>
> > ---
> >  configure.ac | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/configure.ac b/configure.ac
> > index 0d6dd87b6..d707fb11d 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -743,7 +743,7 @@ fi
> >  if test x$use_assert = x; then
> >     XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
> >  fi
> > -XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
> > +XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
> >  
> >  XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
> >  XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"
> 
> Thanks, applied.
> 
> Jan
> 
> -- 
> Siemens AG, Foundational Technologies
> Linux Expert Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] configure.ac: Fix typo
  2026-11-25  9:13   ` Florian Bezdeka
@ 2026-11-25 11:10     ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2026-11-25 11:10 UTC (permalink / raw)
  To: Florian Bezdeka, Richard Weinberger (sigma star gmbh), xenomai
  Cc: upstream+xenomai, Richard Weinberger

On 25.11.26 10:13, Florian Bezdeka wrote:
> On Wed, 2026-11-25 at 06:45 +0100, Jan Kiszka wrote:
>> On 24.11.26 22:33, Richard Weinberger (sigma star gmbh) wrote:
>>> From: Richard Weinberger <richard@nod.at>
>>>
>>> It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
>>> With the misnamed variable, xenomai was never built with -O2
>>> on my side and caused funny performance regressions.
>>>
>>> Fixes: 89c1436b3 ("configure: Propagate debug build settings also to plain applications")
>>
>> At least no stable regression.
> 
> Shouldn't the optimization level be separated from the debug settings?
> -02 inside a variable named XENO_USER_CFLAGS_DEBUG looks a bit strange.
> 

XENO_USER_CFLAGS_DEBUG is not simply appended when debugging is on, it
controls what kind of debugging-affecting switches we inject. And the
optimization level can affect debugging, thus is kept here.

But that has nothing to do with this typo.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-25 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 21:33 [PATCH] configure.ac: Fix typo Richard Weinberger (sigma star gmbh)
2026-11-25  5:45 ` Jan Kiszka
2026-11-25  9:13   ` Florian Bezdeka
2026-11-25 11:10     ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.