glibc/libio/bits
Tulio Magno Quites Machado Filho 2a44960cbc Apply asm redirections in stdio.h before first use [BZ #27087]
Compilers may not be able to apply asm redirections to functions after
these functions are used for the first time, e.g. clang 13.
Fix [BZ #27087] by applying all long double-related asm redirections
before using functions in bits/stdio.h.
However, as these asm redirections depend on the declarations provided
by libio/bits/stdio2.h, this header was split in 2:

 - libio/bits/stdio2-decl.h contains all function declarations;
 - libio/bits/stdio2.h remains with the remaining contents, including
   redirections.

This also adds the access attribute to __vsnprintf_chk that was missing.

Tested with build-many-glibcs.py.

Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
(cherry picked from commit d0fa09a770)
2022-08-31 10:29:46 +02:00
..
types Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stdio2-decl.h Apply asm redirections in stdio.h before first use [BZ #27087] 2022-08-31 10:29:46 +02:00
stdio2.h Apply asm redirections in stdio.h before first use [BZ #27087] 2022-08-31 10:29:46 +02:00
stdio-ldbl.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stdio.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00