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/27f43d3d8c1b
branches:  trunk
changeset: 379069:27f43d3d8c1b
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 56c913ac04ab -r 27f43d3d8c1b 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 @@ alloc_failed (void)
    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