musl/arch/x86_64
Rich Felker 150747b41e reduce impact of REG_* namespace pollution in x86[_64] signal.h
when _GNU_SOURCE is defined, which is always the case when compiling
c++ with gcc, these macros for the the indices in gregset_t are
exposed and likely to clash with applications. by using enum constants
rather than macros defined with integer literals, we can make the
clash slightly less likely to break software. the macros are still
defined in case anything checks for them with #ifdef, but they're
defined to expand to themselves so that non-file-scope (e.g.
namespaced) identifiers by the same names still work.

for the sake of avoiding mistakes, the changes were generated with sed
via the command:

sed -i -e 's/#define  *\(REG_[A-Z_0-9]\{1,\}\)  *\([0-9]\{1,\}\)'\
'/enum { \1 = \2 };\n#define \1 \1/' \
arch/i386/bits/signal.h arch/x86_64/bits/signal.h arch/x32/bits/signal.h
2017-01-04 17:08:19 -05:00
..
bits reduce impact of REG_* namespace pollution in x86[_64] signal.h 2017-01-04 17:08:19 -05:00
atomic_arch.h fix regression disabling use of pause instruction for x86 a_spin 2016-03-29 21:27:28 -04:00
crt_arch.h dynamic linker bootstrap overhaul 2015-04-13 03:04:42 -04:00
ksigaction.h work around gdb issues recognizing sigreturn trampoline on x86_64 2016-11-12 19:54:43 -05:00
pthread_arch.h properly access mcontext_t program counter in cancellation handler 2015-11-02 12:41:49 -05:00
reloc.h new dlstart stage-2 chaining for x86_64 and x32 2015-09-17 07:28:44 +00:00
syscall_arch.h add sched_getcpu vDSO support 2016-03-02 21:35:40 -05:00