realloc clobbers errno, note that.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

2020-12-01  Richard Biener  <rguent...@suse.de>

        PR middle-end/98070
        * builtins.c (builtin_fnspec): realloc is ".Cw ".
---
 gcc/builtins.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/builtins.c b/gcc/builtins.c
index 83b0c1c8fd6..e37732fbc8c 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -13583,7 +13583,7 @@ builtin_fnspec (tree callee)
        return ".cO ";
       /* Realloc serves both as allocation point and deallocation point.  */
       case BUILT_IN_REALLOC:
-       return ".cw ";
+       return ".Cw ";
       case BUILT_IN_GAMMA_R:
       case BUILT_IN_GAMMAF_R:
       case BUILT_IN_GAMMAL_R:
-- 
2.26.2

Reply via email to