From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/weak-pragmas.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 devdocs/gcc~13/weak-pragmas.html (limited to 'devdocs/gcc~13/weak-pragmas.html') diff --git a/devdocs/gcc~13/weak-pragmas.html b/devdocs/gcc~13/weak-pragmas.html new file mode 100644 index 00000000..04a9c865 --- /dev/null +++ b/devdocs/gcc~13/weak-pragmas.html @@ -0,0 +1,9 @@ +

6.62.11 Weak Pragmas

For compatibility with SVR4, GCC supports a set of #pragma directives for declaring symbols to be weak, and defining weak aliases.

+#pragma weak symbol +
+

This pragma declares symbol to be weak, as if the declaration had the attribute of the same name. The pragma may appear before or after the declaration of symbol. It is not an error for symbol to never be defined at all.

#pragma weak symbol1 = symbol2

This pragma declares symbol1 to be a weak alias of symbol2. It is an error if symbol2 is not defined in the current translation unit.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Weak-Pragmas.html +

+
-- cgit v1.2.3