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

Unified Diff: src/untrusted/nosys/warning.h

Issue 22923022: Make libnosys function stubs part of libnacl (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Code review feedback Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/untrusted/nosys/waitpid.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nosys/warning.h
diff --git a/src/untrusted/nosys/warning.h b/src/untrusted/nosys/warning.h
deleted file mode 100644
index 5ea6d5e1f4510ab9b945ed74c866f0f53b49919c..0000000000000000000000000000000000000000
--- a/src/untrusted/nosys/warning.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 2008 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
- */
-
-/*
- * NaCl libnosys stub_warning macro. Note: can only be used with GCC & ELF.
- */
-
-#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_NOSYS_WARNING_H_
-#define NATIVE_CLIENT_SRC_UNTRUSTED_NOSYS_WARNING_H_
-
-/* We want the .gnu.warning.SYMBOL section to be unallocated.
- Tacking on "\n\t#" to the section name makes gcc put it's bogus
- section attributes on what looks like a comment to the assembler. */
-/* This hack does not work with PNaCl, and section attributes are not
- allowed on globals in the bitcode ABI, so we just define it away.
-*/
-
-#ifndef __pnacl__
-#define link_warning(symbol, msg) \
- static const char __evoke_link_warning_##symbol[] \
- __attribute__((__used__, section (".gnu.warning." #symbol "\n\t#"))) = msg
-/* A canned warning for sysdeps/stub functions.
- The GNU linker prepends a "warning: " string. */
-#define stub_warning(name) \
- link_warning(name, \
- "the `" #name "\' function is not implemented and will always fail")
-#else
-#define link_warning(symbol, msg)
-#define stub_warning(symbol)
-#endif
-
-#endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NOSYS_WARNING_H_ */
« no previous file with comments | « src/untrusted/nosys/waitpid.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698