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

Side by Side Diff: ports/m4/nacl.patch

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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 | « ports/lua/build.sh ('k') | ports/make/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff --git a/configure b/configure 1 diff --git a/configure b/configure
2 --- a/configure 2 --- a/configure
3 +++ b/configure 3 +++ b/configure
4 @@ -7563,7 +7563,6 @@ $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } 4 @@ -7563,7 +7563,6 @@ $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
5 -Wattributes \ 5 -Wattributes \
6 -Wbad-function-cast \ 6 -Wbad-function-cast \
7 -Wbuiltin-macro-redefined \ 7 -Wbuiltin-macro-redefined \
8 - -Wcast-align \ 8 - -Wcast-align \
9 -Wchar-subscripts \ 9 -Wchar-subscripts \
10 -Wclobbered \ 10 -Wclobbered \
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 { "os2", "__os2__", "" }, 175 { "os2", "__os2__", "" },
176 #endif 176 #endif
177 -#if !UNIX && !W32_NATIVE && !OS2 177 -#if !UNIX && !W32_NATIVE && !OS2
178 +#if !UNIX && !W32_NATIVE && !OS2 && !defined(__native_client__) 178 +#if !UNIX && !W32_NATIVE && !OS2 && !defined(__native_client__)
179 # warning Platform macro not provided 179 # warning Platform macro not provided
180 #endif 180 #endif
181 { NULL, "__gnu__", "" }, 181 { NULL, "__gnu__", "" },
182 diff --git a/src/m4.c b/src/m4.c 182 diff --git a/src/m4.c b/src/m4.c
183 --- a/src/m4.c 183 --- a/src/m4.c
184 +++ b/src/m4.c 184 +++ b/src/m4.c
185 @@ -362,7 +362,11 @@ process_file (const char *name)
186 #endif
187
188 int
189 +#if defined(__native_client__)
190 +nacl_main (int argc, const char *argv[])
191 +#else
192 main (int argc, char *const *argv)
193 +#endif
194 {
195 struct sigaction act;
196 macro_definition *head; /* head of deferred argument list */
197 @@ -403,7 +407,11 @@ main (int argc, char *const *argv) 185 @@ -403,7 +407,11 @@ main (int argc, char *const *argv)
198 sigemptyset (&act.sa_mask); 186 sigemptyset (&act.sa_mask);
199 /* One-shot - if we fault while handling a fault, we want to revert 187 /* One-shot - if we fault while handling a fault, we want to revert
200 to default signal behavior. */ 188 to default signal behavior. */
201 +#if defined(__native_client__) && defined(_NEWLIB_VERSION) 189 +#if defined(__native_client__) && defined(_NEWLIB_VERSION)
202 + act.sa_flags = SA_NODEFER; 190 + act.sa_flags = SA_NODEFER;
203 +#else 191 +#else
204 act.sa_flags = SA_NODEFER | SA_RESETHAND; 192 act.sa_flags = SA_NODEFER | SA_RESETHAND;
205 +#endif 193 +#endif
206 act.sa_handler = fault_handler; 194 act.sa_handler = fault_handler;
207 sigaction (SIGSEGV, &act, NULL); 195 sigaction (SIGSEGV, &act, NULL);
208 sigaction (SIGABRT, &act, NULL); 196 sigaction (SIGABRT, &act, NULL);
OLDNEW
« no previous file with comments | « ports/lua/build.sh ('k') | ports/make/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698