Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gnulib/import PR/56153: Rin Okuyama: ...



details:   https://anonhg.NetBSD.org/src/rev/8e120085125d
branches:  trunk
changeset: 1021100:8e120085125d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 08 12:23:47 2021 +0000

description:
PR/56153: Rin Okuyama: alpha miscompiles malloca() macro.

diffstat:

 external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 93192e3488ef -r 8e120085125d external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c
--- a/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c  Sat May 08 10:08:33 2021 +0000
+++ b/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c  Sat May 08 12:23:47 2021 +0000
@@ -114,6 +114,13 @@
    holds the same value as the value returned.  */
 
 char *
+#ifdef __alpha__
+/*
+ * toolchain/56153
+ * GCC 10 and 9 miscompile malloca() macro for alpha.
+ */
+__attribute__((optimize("O0")))
+#endif
 __realpath (const char *name, char *resolved)
 {
   char *rpath, *dest, *extra_buf = NULL;



Home | Main Index | Thread Index | Old Index