Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: newlib/libc/machine/i386/i386mach.h

Issue 961083002: Make x86-32 assembly compatible with LLVM's integrated assembler (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: review Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | newlib/libm/machine/i386/f_ldexp.S » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This file was based on the modified setjmp.S performed by 1 /* This file was based on the modified setjmp.S performed by
2 * Joel Sherill (joel@OARcorp.com) which specified the use 2 * Joel Sherill (joel@OARcorp.com) which specified the use
3 * of the __USER_LABEL_PREFIX__ and __REGISTER_PREFIX__ macros. 3 * of the __USER_LABEL_PREFIX__ and __REGISTER_PREFIX__ macros.
4 ** 4 **
5 ** This file is distributed WITHOUT ANY WARRANTY; without even the implied 5 ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
6 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 6 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 */ 7 */
8 8
9 /* These are predefined by new versions of GNU cpp. */ 9 /* These are predefined by new versions of GNU cpp. */
10 10
11 #ifndef __USER_LABEL_PREFIX__ 11 #ifndef __USER_LABEL_PREFIX__
12 #define __USER_LABEL_PREFIX__ _ 12 #define __USER_LABEL_PREFIX__ _
13 #endif 13 #endif
14 14
15 /* x86 nacl-gas has a builtin symbol NACLENTRYALIGN (which the .S files were
16 * written to use), but llvm's assembler does not. So use a define for
17 * compatibility with both. */
18 #define NACLENTRYALIGN 5
19
15 #define __REG_PREFIX__ % 20 #define __REG_PREFIX__ %
16 21
17 /* ANSI concatenation macros. */ 22 /* ANSI concatenation macros. */
18 23
19 #define CONCAT1(a, b) CONCAT2(a, b) 24 #define CONCAT1(a, b) CONCAT2(a, b)
20 #define CONCAT2(a, b) a##b 25 #define CONCAT2(a, b) a##b
21 26
22 /* Use the right prefix for global labels. */ 27 /* Use the right prefix for global labels. */
23 28
24 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) 29 #define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #define SOTYPE_FUNCTION(sym) 79 #define SOTYPE_FUNCTION(sym)
75 #endif 80 #endif
76 81
77 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS 82 #ifdef _I386MACH_ALLOW_HW_INTERRUPTS
78 #define __CLI 83 #define __CLI
79 #define __STI 84 #define __STI
80 #else 85 #else
81 #define __CLI cli 86 #define __CLI cli
82 #define __STI sti 87 #define __STI sti
83 #endif 88 #endif
OLDNEW
« no previous file with comments | « no previous file | newlib/libm/machine/i386/f_ldexp.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698