Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] revdep-rebuild (gawk) issues
Date: Tue, 29 May 2012 21:14:38
Message-Id: 20120529230937.13e48154@khamul.example.com
In Reply to: Re: [gentoo-user] revdep-rebuild (gawk) issues by Rafa Griman
1 On Tue, 29 May 2012 22:56:07 +0200
2 Rafa Griman <rafagriman@×××××.com> wrote:
3
4 > Hi Vaeth :)
5 >
6 > On Tue, May 29, 2012 at 7:02 PM, Vaeth
7 > <vaeth@××××××××××××××××××××××××.de> wrote:
8 > > On Tue, 29 May 2012, Rafa Griman wrote:
9 > >>
10 > >> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
11 > >
12 > >
13 > > Your gawk is broken. This happens if you emerged gawk with
14 > > current gcc and aggressive FLAGS like -DNDEBUG or -flto.
15 > > Not sure whether it is a bug of gawk or gcc.
16 >
17 >
18 > So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
19 > "experimenting" a bit with them ... I'll be more conservative ;)
20
21 Well, on the one hand the flags don;t seem to be too bad overall, but
22 on the other hand there's the golden rule of Gentoo:
23
24 Don't stuff around with CFLAGS
25
26 Why not? Well, there's the ricer phenomenon where changed CFLAGS
27 worsen performance and stability but the user's own bias convinces
28 him/her that it's actually vastly improved.
29
30 Some tweaks are perfectly OK, like the multimedia and cpu-specific
31 stuff (sse, mmx and all their related cousins). These are normally safe
32 and can give huge gains with video playback. Likewise for the GPU tweaks
33 once those hit mainline usage.
34
35 One last tweak, if the code is built on the machine that will run it
36 (the usual case, replace -march and -mtune with just "-march=native".
37 It has exactly the same effect but is easier to read, is
38 self-documenting and allows the compiler to attempt it's best (the
39 compiler usually does know much better what to do than you do)
40
41 --
42 Alan McKinnnon
43 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] revdep-rebuild (gawk) issues Rafa Griman <rafagriman@×××××.com>