This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] Help find "atomicity.h" for target "mingw32"
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 19 Dec 2002 17:42:30 +0530
- Subject: [Patch] Help find "atomicity.h" for target "mingw32"
Hi,
While trying to bootstrap the latest GCC 3.3 snapshot
for target "mingw32", I ran into compilation errors about
"Undefined macro __GTHREAD_MUTEX_INIT". It turns out
that "atomicity.h" was being picked up from "cpu/generic"
rather than "cpu/i486" ("mingw32" is an alias for
"i386-pc-mingw32", so target_cpu is set to "i386").
The solution was to either define "cpu_include_dir" to
"cpu/i486" or define "ATOMICITYH" to "cpu/i486" - I'm
submitting the latter as this is what I tested with,
though I guess the former is more correct and generic.
I'm including a small patch that proposes to fix this
problem - I'm also putting in Danny's name because he
was the one who gave me the solution - see this message
and its followups on the "mingw-devel" list for more
details:
http://article.gmane.org/gmane.comp.gnu.mingw.devel/282
ChangeLog:
2002-12-19 Danny Smith <dannysmith@users.sourceforge.net>
Ranjit Mathew <rmathew@hotmail.com>
* configure.target: Define ATOMICITYH to "cpu/i486"
when target_os is "mingw32*".
------------------------------ 8< ------------------------------
--- configure.target Thu Dec 19 17:25:23 2002
+++ configure.target Thu Dec 19 17:26:17 2002
@@ -157,4 +157,5 @@
mingw32*)
os_include_dir="os/mingw32"
+ ATOMICITYH="cpu/i486"
;;
netbsd*)
------------------------------ 8< ------------------------------
Sincerely Yours,
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/