mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
2122f732c0
Add support for using gcc's visibility pragma to treat all function and method declarations as "hidden" unless declared otherwise. Create wrappers for system headers that cause them to be treated as default-visibility declarations. This gives a substantial code size and performance win on compilers that support it. r=darin sr=dbaron. Modified Files: configure configure.in config/Makefile.in config/autoconf.mk.in config/config.mk pr/include/prtypes.h pr/src/md/unix/uxproces.c pr/tests/sel_spd.c Added Files: config/gcc_hidden.h config/make-system-wrappers.pl config/system-headers
3 lines
79 B
C
3 lines
79 B
C
/* Begin all files as hidden visibility */
|
|
#pragma GCC visibility push(hidden)
|