This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] [SH] Including "iostream" header file produces "undefined references" errors


Hi,
Please find below a patch for SH target, for including correct
"atomicity.h" while compiling with "iostream.h".

We have successfully applied and tested the below mentioned patch on GCC
4.0.0 release, which works fine.
No new regressions found.

=============================Start of
Patch=================================
gcc\ChangeLog

2005-07-25 Ravindra Gandhi <ravindrag@kpitcummins.com>
	* configure.host: Update CPU_HOST for correct "atomicity.h".

========================================================================
====
--- gcc-4.0.0/libstdc++-v3/configure.host.original    2005-07-25
15:31:28.000000000 +0530
+++ gcc-4.0.0/libstdc++-v3/configure.host     2005-07-25
15:33:22.000000000 +0530
@@ -104,7 +104,7 @@ case "${host_cpu}" in
     try_cpu=sparc
     ;;
   *)
-    if test -d ${glibcxx_srcdir}/config/cpu/${host_cpu}; then
+    if test -f ${glibcxx_srcdir}/config/cpu/${host_cpu}/atomicity.h;
+ then
       try_cpu=${host_cpu}
     else
       try_cpu=generic

==============================End Of
Patch==================================

Regards,
Ravindra Gandhi,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on June 1, 2005.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]