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]

Re: libstdc++-v3 won't build on AIX 4.1 any more (3.0 branch)


On May 18, 2001, Benjamin Kosnik <bkoz@redhat.com> wrote:

> Oh damn. Talk to david edelson. This came up before. AIX and IRIX use 
> kernel or os headers for atomicity.h, not cpu-specific ones. That's 
> probably where the os vs. cpu confusion comes in WRT the configure process.

> The current os/aix/bits/atomicity.h only works for 4.3. AIX 4.1 should 
> probably punt to cpu/generic/bits/atomicity.h.

> You can't use cpu-specific atomicity.h files for AIX. Some of the 
> machines are POWER, not POWERPC and thus missing opcodes for the inline 
> asm for powerpc. Also, they want it that way. And, david paid me off with 
> one of those cool flat pannel monitors that IBM has stacked up outside 
> his office, and threatened to sic Mark Mitchell on me unless I figured 
> out how to do it his way.

I suppose I won't get one of those for fixing this problem, am I? :-D

Ok to install?

Index: libstdc++-v3/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* configure.target (ATOMICITYH): Use cpu/generic code on earlier
	versions of AIX.

Index: libstdc++-v3/configure.target
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.target,v
retrieving revision 1.20
diff -u -p -r1.20 configure.target
--- libstdc++-v3/configure.target 2001/05/17 22:38:13 1.20
+++ libstdc++-v3/configure.target 2001/05/18 04:05:01
@@ -108,6 +108,9 @@ case "${target}" in
    *-*-aix4.[3456789]* | *-*-aix[56789]*)
      ATOMICITYH=$os_include_dir
      ;;
+   *-*-aix*)
+     ATOMICITYH=config/cpu/generic
+     ;;
    *-*-irix*)
      ATOMICITYH=$os_include_dir
      ;;
@@ -115,5 +118,3 @@ case "${target}" in
      ATOMICITYH=$cpu_include_dir
      ;;
 esac
-    
-

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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