middle-end/98070 - fix realloc builtin fnspec
authorRichard Biener <rguenther@suse.de>
Tue, 1 Dec 2020 08:19:52 +0000 (09:19 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 1 Dec 2020 09:42:24 +0000 (10:42 +0100)
realloc clobbers errno, note that.

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

PR middle-end/98070
* builtins.c (builtin_fnspec): realloc is ".Cw ".

gcc/builtins.c

index 83b0c1c8fd6e319eeeb9f56d5d94ebf6a27c9aad..e37732fbc8c69d830b1725e07c375a142753cc38 100644 (file)
@@ -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: