]> sourceware.org Git - glibc.git/commit
Apply asm redirections in stdio.h before first use [BZ #27087]
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Thu, 7 Jul 2022 21:12:58 +0000 (18:12 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Thu, 14 Jul 2022 19:01:14 +0000 (16:01 -0300)
commitd0fa09a7701956036ff36f8ca188e9fff81553d8
tree26e7f93e4d5bd5a291ee139cced70688751d2c03
parent779aa039fc4151bdc0d79ef2e141604863856a60
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>
include/bits/stdio2-decl.h [new file with mode: 0644]
libio/Makefile
libio/bits/stdio2-decl.h [new file with mode: 0644]
libio/bits/stdio2.h
libio/stdio.h
This page took 0.038273 seconds and 5 git commands to generate.