This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11434] How to config gcc under AIX 4.2.1
- From: "lq2001ca at yahoo dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2003 14:27:59 -0000
- Subject: [Bug c++/11434] How to config gcc under AIX 4.2.1
- References: <20030704145733.11434.lq2001ca@yahoo.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11434
lq2001ca at yahoo dot ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
------- Additional Comments From lq2001ca at yahoo dot ca 2003-07-18 14:27 -------
Hi Everyone,
I figured out to how to make GCC3.3 release for aix 4.2 to support pthread.
Modify ./gcc-3.3/gcc/config.gcc file and create two new patch files
===========================================================================
1. The change of the ./gcc-3.3/gcc/config.gcc(new file is in attachment):
*** config.gcc new
--- config.gcc old
rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
tmake_file=rs6000/t-newas
use_collect2=yes
extra_headers=
;;
2208c2208
--- rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
*** rs6000-ibm-aix4.[1]* | powerpc-ibm-aix4.[1]*)
2213,2220d2212
*** rs6000-ibm-aix4.[2]* | powerpc-ibm-aix4.[2]*)
*** xm_defines=POSIX
*** tm_file="${tm_file} rs6000/aix.h rs6000/aix42.h rs6000/xcoff.h"
*** tmake_file=rs6000/t-aix42
*** use_collect2=yes
*** thread_file='aix'
*** extra_headers=
*** ;;
2. The two new patch files are ./gcc-3.3/gcc/config/rs6000/aix42.h and ./gcc-
3.3/gcc/config/rs6000/t-aix42. they are in attachments.
After I built GCC3.3 with my changes I tested it with my c++ multithreading
program it works properly. Could somebody help me to verify it and if it's
correct please apply this patch to next release.
Thanks.