[Bug 227723] clang 6.0 breaks php56/opcache
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Apr 24 08:10:01 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227723
--- Comment #3 from lampa at fit.vutbr.cz ---
Patch seems to be ok. I've only changed installed header files in
/usr/local/include/php/Zend, recompiled/reinstalled opcache, restarted apache
and it runs.
I've reduced problem to:
#include <stdio.h>
#include <stdlib.h>
#define EX_TMP_VAR(ex, n) ((temp_variable*)(((char*)(ex)) +
((int)(n))))
#define EX_TMP_VAR_NUM(ex, n) (EX_TMP_VAR(ex, 0) - (1 + (n)))
#define VAR_NUM(v) ((unsigned int)(EX_TMP_VAR_NUM(0, 0) - EX_TMP_VAR(0, v)))
typedef struct TV {
long tmp;
char tmp3[30];
} temp_variable;
int num;
int main()
{
printf("%x\n", VAR_NUM(-100));
return 0;
}
cc -O2 t.c
f999999c
clang50 -O2 t.c
1
gcc -O2 t.c
1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list