GCC 4.5
Hello, all. I've noticed that GCC 4.5 is released and is available in debian. With this version -mregparam=3 bug is fixed. So I intend to remove all NESTED_FUNC_ATTR and use -mregparm=3 only on gcc >=4.5 and -mregparam=1 otherwise. This has the disadvatantage of increasing binary size with pre-4.5 gcc but it also greatly reduces the bug surface and so will eventually result in better quality. Any oppositions?
I do not intend to require gcc 4.5, only highly recommend it.
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 7 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Hello, all. I've noticed that GCC 4.5 is released and is available in debian. With this version -mregparam=3 bug is fixed. So I intend to remove all
NESTED_FUNC_ATTRand use -mregparm=3 only on gcc >=4.5 and -mregparam=1 otherwise. This has the disadvatantage of increasing binary size with pre-4.5 gcc but it also greatly reduces the bug surface and so will eventually result in better quality. Any oppositions?
I do not intend to require gcc 4.5, only highly recommend it.
There have been reports of problems with -Os in gcc-4.5.0. In one case, the linux kernel is not functional. Specifically the file arch/x86/kernel/tsc.c causes a kernel panic.
I advise caution in this area.
-- Bruce