Re: [systemd-devel] [PATCH] macro: allow assert_se() assertions to also be optimized when NDEBUG is set

2015-04-01 Thread Lennart Poettering
On Tue, 31.03.15 11:09, Shawn Landden (sh...@churchofgit.com) wrote: > On Mon, Mar 30, 2015 at 8:24 PM, Shawn Landden wrote: > > replaces log with abort() to remove strings. > > > > saves 3kB from text section of systemd. > and 7kB from rodata. The saving in text is probably because abort() is >

Re: [systemd-devel] [PATCH] macro: allow assert_se() assertions to also be optimized when NDEBUG is set

2015-03-31 Thread Shawn Landden
On Mon, Mar 30, 2015 at 8:24 PM, Shawn Landden wrote: > replaces log with abort() to remove strings. > > saves 3kB from text section of systemd. and 7kB from rodata. The saving in text is probably because abort() is no_return. > --- > src/shared/macro.h | 16 ++-- > 1 file changed, 10

[systemd-devel] [PATCH] macro: allow assert_se() assertions to also be optimized when NDEBUG is set

2015-03-30 Thread Shawn Landden
replaces log with assert() to remove strings. saves 3kB from text section of systemd. --- src/shared/macro.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/shared/macro.h b/src/shared/macro.h index 7f89951..8cbff01 100644 --- a/src/shared/macro.h +++ b/s