coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libgcc / generic-morestack-thread.c
index db912cffc0a1fbf4ac1c1c2997ffaf1862e97dd4..f42b91f5779b542fcb95408479605d5d7dfd580c 100644 (file)
@@ -1,5 +1,5 @@
 /* Thread library support for -fsplit-stack.  */
-/* Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2017 Free Software Foundation, Inc.
    Contributed by Ian Lance Taylor <iant@google.com>.
 
 This file is part of GCC.
@@ -136,7 +136,8 @@ int __wrap_pthread_create (pthread_t *, const pthread_attr_t *,
   __attribute__ ((visibility ("hidden")));
 
 extern int __real_pthread_create (pthread_t *, const pthread_attr_t *,
-                                 void *(*start_routine) (void *), void *);
+                                 void *(*start_routine) (void *), void *)
+  __attribute__ ((weak));
 
 int
 __wrap_pthread_create (pthread_t *tid, const pthread_attr_t *attr,