Module Name:    src
Committed By:   christos
Date:           Sat May  8 12:23:47 UTC 2021

Modified Files:
        src/external/gpl3/gdb/dist/gnulib/import: canonicalize-lgpl.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c
diff -u src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.1.1.1 src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.2
--- src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.1.1.1	Mon Sep 14 21:43:50 2020
+++ src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c	Sat May  8 08:23:47 2021
@@ -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;

Reply via email to