GCC 4 ? (aka 'oops, they did it again)
Posted: Wed Dec 07, 2005 6:37 am
just to let you know: i'm reinstalling workstation (SuSE->ubuntu). First bad surprise: kubuntu comes with no compiler or even /usr/include preinstalled... second bad surprise, default version of GCC is GCC 4 ...
and my main concern with GCC 4.x is that it appears to generate code that uses "memset" or "memcpy" regardless of locally-defined inline functions ... As a result my good old "memops.h" are no longer protecting me from "missing 'memset' in .thread.o ..." error messages ...
The code i write that triggers such code generation is structure initialization, e.g.
and my main concern with GCC 4.x is that it appears to generate code that uses "memset" or "memcpy" regardless of locally-defined inline functions ... As a result my good old "memops.h" are no longer protecting me from "missing 'memset' in .thread.o ..." error messages ...
The code i write that triggers such code generation is structure initialization, e.g.
Code: Select all
*ptr = (struct MyStruct) {
.field1=val1,
// field2 will be initialized to a nul value by the compiler.
.field3=val3,
};