]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
patch ../103227463.patch
authorDoug Evans <dje@google.com>
Thu, 10 Dec 2015 20:00:34 +0000 (12:00 -0800)
committerDoug Evans <dje@google.com>
Thu, 10 Dec 2015 20:00:34 +0000 (12:00 -0800)
README.google
gdb/testsuite/gdb.base/gcore.c

index 3db46cf70d1ef90d4ec39e1051bdbcc78e00af19..d2e60cdc6727da8d58715e73a300289566b4d1fe 100644 (file)
@@ -497,3 +497,10 @@ they are an ongoing maintenance burden.
 +      (canonicalize_source_path): New function.
 +      (_initialize_source): New parameter "canonicalize-source-paths".
 +      * source.h (canonicalize_source_path): Declare.
+--- README.google      2015-09-15 16:46:29.000000000 -0700
++++ README.google      2015-09-16 14:07:50.000000000 -0700
++
++2015-09-15  Doug Evans  <dje@google.com>
++
++      testsuite/
++      * gdb.base/gcore.c (array_func): Add reference to static_array.
index d6acc1f9b9c0a1f1b2a008855da0fd5b0382cccb..b6d8d54e5df06d2e03fe61d9a74ba375ed8236e6 100644 (file)
@@ -46,6 +46,8 @@ array_func ()
       un_initialized_array[i] = extern_array[i] + 8;
       local_array[i] = extern_array[i] + 12;
     }
+  /* Reference static_array so that clang doesn't discard it.  */
+  (void) static_array[0];
   terminal_func ();
 }