This applies to MySQL 3.23.32 + BerkeleyDB 3.2.3h.
The --enable-assembler options of configure allows for
compiling in x86 (and sparc) versions of common string
operations, which should result in more performance.
Apparently, the 2 involved files (for x86) strings-x86.s and
longlong2str-x86.s won't compile on OpenBSD 2.8 / i686 / gcc 2.95.3.
I've patched these 2, so they will compile:
Removed C-style comments not starting on Pos 1 of line with
Shell-style comments aka '#')
modified "clrl %eax" to "movl $0, %eax" and the like ..
added a period to a segment size specifier
modified ".p2align 4,,7" pseudo-op to ".align 4"
NOTE. All tests from the _mysql-test_ dir run successfully (except
the one's related to Master-Slave replication), that are 94 tests.
WARNING: As I'm _not_ a x86 assembler guru, I'm not 100% sure if these
modifications are safe. Any comments are welcome.
The patched versions are included.
"Anyone who considers arithmetical methods of producing random digits
is, of course, in a state of sin." John von Neumann