This is the mail archive of the gcc-bugs@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]

[Bug c++/11434] How to config gcc under AIX 4.2.1


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.


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