]> xenbits.xensource.com Git - people/julieng/freebsd.git/commit
Fix a strange macro re-definition compile error. If the VM_MAXUSER_ADDRESS
authorian <ian@FreeBSD.org>
Sun, 18 Oct 2015 01:03:43 +0000 (01:03 +0000)
committerian <ian@FreeBSD.org>
Sun, 18 Oct 2015 01:03:43 +0000 (01:03 +0000)
commit522b95ca9c9cefc2ee62bf1650ed2f2909d42886
tree7eb4d6739ad696c3fc91fa8616694d4b66cd6516
parent88a4a1403b18f1c162ce780a04ea5884aa2c2afa
Fix a strange macro re-definition compile error.  If the VM_MAXUSER_ADDRESS
value is defined as a config option the definition is emitted into
opt_global.h which is force-included into everything.  In addition, the
symbol is emitted by the genassym mechanism, but that by its nature reduces
the value to a 0xnnnnnnnn number.  When compiling a .S file you end up
with two different definitions of the macro (they evaluate to the same
number, but the text is different, upsetting the compiler).

Nothing has changed about this code for a while but the compile error is
new, so this must be fallout from the clang 3.7 update or something.
sys/arm/mv/std-pj4b.mv