* [PATCH] middle-end/98070 - fix realloc builtin fnspec
@ 2020-12-01 9:42 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-12-01 9:42 UTC (permalink / raw)
To: gcc-patches
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 --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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-01 9:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 9:42 [PATCH] middle-end/98070 - fix realloc builtin fnspec Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).