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

Alexandre Oliva aoliva@redhat.com
Thu May 17 20:24:00 GMT 2001


On May 17, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:

I've just realized that I had failed to post this to gcc-patches.
Oops.

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

> 	* configure.target (ATOMICITYH): Don't use AIX 4.3-specific code
> 	on earlier versions of AIX.

> Index: libstdc++-v3/configure.target
> ===================================================================
> RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.target,v
> retrieving revision 1.19
> diff -u -p -r1.19 configure.target
> --- libstdc++-v3/configure.target 2001/05/13 22:17:11 1.19
> +++ libstdc++-v3/configure.target 2001/05/17 22:22:04
> @@ -105,7 +105,7 @@ esac
>  # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 
>  case "${target}" in
> -   *-*-aix*)
> +   *-*-aix4.[3456789]* | *-*-aix[56789]*)
>       ATOMICITYH=$os_include_dir
>       ;;
>     *-*-irix*)

Anyway, this was not enough to get AIX 4.1.5 to build again.  Now the
assembler (GNU as from current CVS) complains:

/tmp/cckjmKfs.s:651: Error: Unrecognized opcode: `lwarx'
/tmp/cckjmKfs.s:653: Error: Unrecognized opcode: `stwcx.'

These opcodes are indeed used in config/cpu/powerpc/bits/atomicity.h,
but they aren't available in the common subset of ppc instructions, as
required by the -mcom flag passed to the assembler by GCC in this
configuration.  Unfortunately, I'm totally unfamiliar with PPC
assembly, but I see the same instructions are used for test_and_set in
boehm-gc.  Is it hopeless?

-- 
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



More information about the Gcc-bugs mailing list