diff options
author | Ludovic Brenta <ludovic@ludovic-brenta.org> | 2015-12-06 14:00:16 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-12-06 14:00:16 +0000 |
commit | f1b7620802b03045c0833de64f793624212545c8 (patch) | |
tree | f2f7206465d1f14d075d5e03824bf0b99e42a477 /gcc/ada | |
parent | f78590bb4cf69fb450a19bb6760071c9d22b7639 (diff) | |
download | gcc-f1b7620802b03045c0833de64f793624212545c8.zip gcc-f1b7620802b03045c0833de64f793624212545c8.tar.gz gcc-f1b7620802b03045c0833de64f793624212545c8.tar.bz2 |
re PR ada/49940 (Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined")
PR ada/49940
* s-osinte-kfreebsd-gnu.ads (lwp_self): New imported function.
From-SVN: r231330
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/s-osinte-kfreebsd-gnu.ads | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8485781..2370222 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2015-12-06 Ludovic Brenta <ludovic@ludovic-brenta.org> + + PR ada/49940 + * s-osinte-kfreebsd-gnu.ads (lwp_self): New imported function. + 2015-12-01 Jan Sommer <soja-lists@aries.uberspace.de> PR ada/68169 diff --git a/gcc/ada/s-osinte-kfreebsd-gnu.ads b/gcc/ada/s-osinte-kfreebsd-gnu.ads index be46c2e..e4c7bd0 100644 --- a/gcc/ada/s-osinte-kfreebsd-gnu.ads +++ b/gcc/ada/s-osinte-kfreebsd-gnu.ads @@ -7,7 +7,7 @@ -- S p e c -- -- -- -- Copyright (C) 1991-1994, Florida State University -- --- Copyright (C) 1995-2014, Free Software Foundation, Inc. -- +-- Copyright (C) 1995-2015, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -236,6 +236,16 @@ package System.OS_Interface is function getpid return pid_t; pragma Import (C, getpid, "getpid"); + --------- + -- LWP -- + --------- + + function lwp_self return System.Address; + -- lwp_self does not exist on this thread library, revert to pthread_self + -- which is the closest approximation (with getpid). This function is + -- needed to share 7staprop.adb across POSIX-like targets. + pragma Import (C, lwp_self, "pthread_self"); + ------------- -- Threads -- ------------- |