W3cubDocs

/GCC 7

6.62.8 Solaris Pragmas

The Solaris target supports #pragma redefine_extname (see Symbol-Renaming Pragmas). It also supports additional #pragma directives for compatibility with the system compiler.

align alignment (variable [, variable]...)

Increase the minimum alignment of each variable to alignment. This is the same as GCC’s aligned attribute see Variable Attributes). Macro expansion occurs on the arguments to this pragma when compiling C and Objective-C. It does not currently occur when compiling C++, but this is a bug which may be fixed in a future release.

fini (function [, function]...)

This pragma causes each listed function to be called after main, or during shared module unloading, by adding a call to the .fini section.

init (function [, function]...)

This pragma causes each listed function to be called during initialization (before main) or during shared module loading, by adding a call to the .init section.

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