-frecord-gcc-switches as default CFLAG?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I noticed on my Fedora 13 box that in the RPM macro %__global_cflags
that -frecord-gcc-switches is missing, which is a nifty compiler
feature that will record the flags passed to gcc in a section in the
object file, thus aiding in the "how in the world was this compiled?"
problem. An example:

[jstanley@hawtness ~]$ gcc -O2 -frecord-gcc-switches -g -o hello hello.c
[jstanley@hawtness ~]$ readelf -p .GCC.command.line hello

String dump of section '.GCC.command.line':
  [     0]  hello.c
  [     8]  -mtune=generic
  [    17]  -g
  [    1a]  -O2
  [    1e]  -frecord-gcc-switches

What do folks think about adding this as a default? Any reason not to
(other than possibly a few bytes extra in the object files)?
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux