diff mbox series

middle-end/98070 - fix realloc builtin fnspec

Message ID nycvar.YFH.7.76.2012011042050.16470@elmra.sevgm.obk
State New
Headers show
Series middle-end/98070 - fix realloc builtin fnspec | expand

Commit Message

Richard Biener Dec. 1, 2020, 9:42 a.m. UTC
realloc clobbers errno, note that.

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

2020-12-01  Richard Biener  <rguenther@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 mbox series

Patch

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: