1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

There no longer seems to be this bug in gcc(1). Remove the

badly implemented workaround that caused a workaround to be
applied to all architectures, not only amd64.
This commit is contained in:
Ruslan Ermilov 2005-12-04 09:47:20 +00:00
parent 2c05ef0cff
commit 44dbe53f04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153080

View File

@ -1015,17 +1015,8 @@ struct path {
#define pos_in_item(path) ((path)->pos_in_item)
#if (_MACHINE_ARCH == amd64)
/* To workaround a bug in gcc. He generates a call to memset() which
* is a inline function; this causes a compile time error. */
#define INITIALIZE_PATH(var) \
struct path var; \
bzero(&var, sizeof(var)); \
var.path_length = ILLEGAL_PATH_ELEMENT_OFFSET;
#else
#define INITIALIZE_PATH(var) \
struct path var = { ILLEGAL_PATH_ELEMENT_OFFSET, }
#endif
/* Get path element by path and path position. */
#define PATH_OFFSET_PELEMENT(p_s_path, n_offset) \