public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11434] New: How to config gcc under AIX 4.2.1
@ 2003-07-04 14:57 lq2001ca at yahoo dot ca
  2003-07-04 15:11 ` [Bug c++/11434] " lq2001ca at yahoo dot ca
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-04 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: How to config gcc under AIX 4.2.1
           Product: gcc
           Version: 3.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lq2001ca at yahoo dot ca
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: gcc 3.1.1
  GCC host triplet: AIX 4.2.1
GCC target triplet: c/c++

I built gcc 3.1.1 compiler under aix 4.3 successfully when I used following 
configuration:
../gcc-3.1.1/configure --prefix=/p/benjamin/usr/gcc-311-mlib-aixthread \
        --enable-languages=c,c++ \                                      
        --enable-threads=aix \                                          
        --disable-shared
My c++ multithreading program works properly. But My c++ multithreading program 
works properly, It gets core dump And I built gcc 3.1.1 under aix 4.2.1 
successfully wiht same configuration with aix 4.3. And I build my c++ 
multithreading program using -O2 -pthread -fexceptions -fstack-check 
compilation optione and -pthread link option. So I want to know correct 
configuration for gcc 3.1.1 compiler which support mulithtreading or 
compilation/link option under aix 4.2.1.  And I also found aix 4.2.1 missing 
pthread directory under lib(gcc 3.1.1) directory, aix 4.3 has this directory. 
So I wonder aix 4.2.1 need this directory or not or Maybe I'm missing some 
setting to build gcc 3.1.1 compiler. Any suggestion or help will be appreciated.

Thanks in advance.

Dave


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
@ 2003-07-04 15:11 ` lq2001ca at yahoo dot ca
  2003-07-04 15:16 ` pinskia at physics dot uc dot edu
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-04 15:11 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From lq2001ca at yahoo dot ca  2003-07-04 15:11 -------
My c++ multithreading program works properly undier aix 4.3. But it
does not work properly under aix 4.2.1, It gets core dump .


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
  2003-07-04 15:11 ` [Bug c++/11434] " lq2001ca at yahoo dot ca
@ 2003-07-04 15:16 ` pinskia at physics dot uc dot edu
  2003-07-07 17:04 ` lq2001ca at yahoo dot ca
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-04 15:16 UTC (permalink / raw)
  To: gcc-bugs

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-04 15:16 -------
First, 3.1.1 is no longer being updated and is almost a year old, can you try a newer gcc?

Second, we need more information, can you provide the preprocessed source files, read <http://
gcc.gnu.org/bugs.html> on how to get them?

Third, can you provide the back trace where you get the core dump?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
  2003-07-04 15:11 ` [Bug c++/11434] " lq2001ca at yahoo dot ca
  2003-07-04 15:16 ` pinskia at physics dot uc dot edu
@ 2003-07-07 17:04 ` lq2001ca at yahoo dot ca
  2003-07-07 17:13 ` pinskia at physics dot uc dot edu
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-07 17:04 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From lq2001ca at yahoo dot ca  2003-07-07 17:04 -------
Failed to build gcc 3.3 under aix 4.2.1.
I'm trying to build gcc 3.3 under aix 4.2.1 with following configuration:
../gcc-3.3/configure --prefix=/p/benjamin/usr/gcc-3.3 --enable-languages=c,c++ -
-enable-threads=aix --disable-shared
I got following error:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.3/libiberty/../include  -W -Wall
 -Wtraditional -pedantic ../../gcc-3.3/libiberty/physmem.c -o physmem.o         
../../gcc-3.3/libiberty/physmem.c: In function `physmem_total':                 
../../gcc-3.3/libiberty/physmem.c:149: structure has no member named `physmem'  
make[1]: *** [physmem.o] Error 1                                                
make[1]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gcc33/o
bjdir/libiberty'                                                                
make: *** [all-libiberty] Error 2


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (2 preceding siblings ...)
  2003-07-07 17:04 ` lq2001ca at yahoo dot ca
@ 2003-07-07 17:13 ` pinskia at physics dot uc dot edu
  2003-07-09 13:30 ` lq2001ca at yahoo dot ca
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-07 17:13 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-07 17:13 -------
The problem with 3.3 and AIX < 4.3.3 has been fixed for 3.3.1, can you try a snapshot?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (3 preceding siblings ...)
  2003-07-07 17:13 ` pinskia at physics dot uc dot edu
@ 2003-07-09 13:30 ` lq2001ca at yahoo dot ca
  2003-07-10 19:04 ` lq2001ca at yahoo dot ca
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-09 13:30 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From lq2001ca at yahoo dot ca  2003-07-09 13:30 -------
I fixed previous bug and I Failed to build gcc 3.3(release) again under aix 
4.2.1. Following is error information:
Making all in include                                                      
make[7]: Entering directory `/techsupport/benjamin/LinkFromScoservf/setup/g
objdir/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/include'             
make[7]: *** No rule to make target `/techsupport/benjamin/LinkFromScoservf
p/gcc33/gcc-3.3/libstdc++-v3/config//ctype_base.h', needed by `stamp-target
top.                                                                       
make[7]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/include'              
make[6]: *** [all-recursive] Error 1                                       
make[6]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3'                      
make[5]: *** [all-recursive-am] Error 2                                    
make[5]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3'                      
make[4]: *** [multi-do] Error 1                                            
make[4]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/libstdc++-v3'                                 
make[3]: *** [all-multi] Error 2                                           
make[3]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/libstdc++-v3'                                 
make[2]: *** [all-recursive-am] Error 2                                    
make[2]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir/powerpc-ibm-aix4.2.1.0/libstdc++-v3'                                 
make[1]: *** [all-target-libstdc++-v3] Error 2                             
make[1]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/gc
bjdir'                                                                     
make: *** [bootstrap] Error 2  

-------------------------------------------------------------------------------
And I also try to build gcc 3.3.1(snapshot gcc-3.3.1-20030623) under aix 4.2.1. 
I got following error:
make[2]: Entering directory `/techsupport/benjamin/LinkFromScoservf/setup/pre-gc
c331/objdir/libiberty/testsuite'                                                
make[2]: *** No rule to make target `all'.  Stop.                               
make[2]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/pre-gcc
331/objdir/libiberty/testsuite'                                                 
make[1]: *** [all-subdir] Error 2                                               
make[1]: Leaving directory `/techsupport/benjamin/LinkFromScoservf/setup/pre-gcc
331/objdir/libiberty'                                                           
make: *** [all-libiberty] Error 2


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (4 preceding siblings ...)
  2003-07-09 13:30 ` lq2001ca at yahoo dot ca
@ 2003-07-10 19:04 ` lq2001ca at yahoo dot ca
  2003-07-12  4:51 ` neroden at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-10 19:04 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From lq2001ca at yahoo dot ca  2003-07-10 19:03 -------
I figureed out the reason why do we fail to build gcc 3.3 under aix 4.2.1. the 
reason is the Makefile is not correct for the target_srcdir = 
${glibcpp_srcdir}/config. because there is no the file ctype_base.h under the 
directory ${glibcpp_srcdir}/config. so target_srcdir should be set to 
${glibcpp_srcdir}/config/os/generic. I don't know why we run ./configure it 
doesnot generate correct Makefile. for temperary solution I just mannully 
modify Makefile like what I mentioned about. Now I successfully finished 
building gcc 3.3 under aix 4.2.1.
$ gcc -v                                                                        
Reading specs from /p/benjamin/usr/gcc-3.3/lib/gcc-lib/powerpc-ibm-aix4.2.1.0/3.
3/specs                                                                         
Configured with: ../gcc-3.3/configure --prefix=/p/benjamin/usr/gcc-3.3 --enable-
languages=c,c++ --enable-threads=aix --disable-shared                           
Thread model: aix                                                               
gcc version 3.3

But when I tested my multithreading program with new gcc 3.3 I got the same 
problem(segmentation fault-core dump)problem with gcc 3.1.1.

following is my source code(test.cpp)
/* Demonstrate socket server: single process multiple threads */

#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <pthread.h>
#include <string>
#include <iostream>
#include <fstream>

const short SERVERPORT = 8001;
const char* SERVERNAME = "aix42";

using namespace std;

namespace
{
    class PTHREAD_ATTRIBUTE
    {

    public:
        pthread_attr_t Attr;

        PTHREAD_ATTRIBUTE(void)
        {
            pthread_attr_init(&Attr);
        }

        ~PTHREAD_ATTRIBUTE(void)
        {
            pthread_attr_destroy(&Attr);
        }
    };

};

void *Service(void *);

int main()
{
    char LineBuf[1024];
    fstream fin("test.txt", ios::in);
    if (fin.is_open())
        while(!fin.eof() && fin.good())
        {
            fin.getline(LineBuf, 1024);
            cout << LineBuf << endl;
        }

    const int ServerSocket = socket(PF_INET, SOCK_STREAM, 0);

    if (ServerSocket < 0)
    {
        cout << "Failed to get server socket." << endl;
        exit(1);
    }

    const hostent *hp = ::gethostbyname(SERVERNAME);  // network byte order
    if (hp == 0)
    {
        cout << "Failed to get host entry." << endl;
        exit(1);
    }

    long ip;
    memcpy((void *)&ip, hp->h_addr, hp->h_length);

    sockaddr_in Address;
    memset((void *)&Address, 0, sizeof(Address));
    Address.sin_family = AF_INET;
    Address.sin_port   = htons(SERVERPORT);
    memcpy((void*)&Address.sin_addr, (void*)&ip, sizeof(Address.sin_addr));

    if (bind(ServerSocket, (sockaddr *)&Address, sizeof(Address)) < 0)
    {
        cout << "Failed to bind socket." << endl;
        exit(1);
    }

    if (listen(ServerSocket, 5) < 0)
    {
        cout << "Failed to listen to port " << SERVERPORT << endl;
        exit(1);
    }

    cout << "Server is listening to port " << SERVERPORT << "." << endl;

    while (true)
    {
        // Wait for a new connection
        const int ConnSocket = accept(ServerSocket, NULL, NULL);
        if (ConnSocket < 0)
        {
            cout << "Failed to accept a new connection." << endl;
            continue;
        }

        // Having accepted a connection.
        cout << "Having accepted new connection " << ConnSocket << endl;

        // create a child thread to receive/send data for this connection
        PTHREAD_ATTRIBUTE ThreadAttr;
        pthread_attr_setdetachstate(&ThreadAttr.Attr, PTHREAD_CREATE_DETACHED);

        pthread_t thread;
        if (pthread_create(&thread, &ThreadAttr.Attr, Service, (void*)
ConnSocket) < 0)
        {
            cout << "Failed to create a child thread." << endl;
            close(ConnSocket);
        }
        
        cout <<"The main thread continues waiting for new connections." << endl;
    }
    
    cout << "Finished testing." << endl;
}

         
void * Service(void *arg)
{

    cout << "1. Succeed lock" << endl;

    const int ConnSocket = (int)arg;
    
    char Buffer[1025];
    while (true)
    {
        const int len = recv(ConnSocket, (void*)Buffer, 1024, 0);
        if (len <= 0 )
            break;

        Buffer[len] = '\0';
        cout << "    Thread " << pthread_self() << " Socket " << ConnSocket 
<< " received: " << Buffer << endl;

        for (int i = 0; i < len; i++)
        {
            Buffer[i] = toupper(Buffer[i]);
        }

        cout << "    Thread " << pthread_self() << " Socket " << ConnSocket 
<< "     sent: " << Buffer << endl;
        send(ConnSocket, (void*)Buffer, len, 0);
	
	//sleep(10);
    }

    cout << "    Thread " << pthread_self() << " Socket " << ConnSocket << " 
disconnected!" << endl;
    close(ConnSocket);
    pthread_exit(0);    // quit after the client closed the connection
}


How to duplicate:
1. To compile it:
    g++ -o test -g -O2 -pthread -D_THREAD_SAFE -fstack-check -fexceptions -
lpthreads -L/usr/lib/threads test.cpp
2. run it:
   ./test
Memory fault(coredump)
3. backtrace by gdb5.3
GNU gdb 5.3                                                                
Copyright 2002 Free Software Foundation, Inc.                              
GDB is free software, covered by the GNU General Public License, and you ar
welcome to change it and/or distribute copies of it under certain condition
Type "show copying" to see the conditions.                                 
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix4.2.1.0"...                     
(gdb) r                                                                    
Starting program: /techsupport/benjamin/tmp/sc/test                        
                                                                           
Program received signal SIGSEGV, Segmentation fault.                       
0xd05bd888 in fetch_and_add () from /usr/lib/libc_r.a(shr.o)               
(gdb) bt                                                                        
#0  0xd05bd888 in fetch_and_add () from /usr/lib/libc_r.a(shr.o)                
#1  0x100258b4 in std::locale::operator=(std::locale const&) (                  
    this=<incomplete type>, __other=<incomplete type>) at  _start_ :360         
#2  0x10031b1c in std::ios_base::_M_init() (this=<incomplete type>)             
    at  _start_ :299                                                            
#3  0x10031a14 in std::basic_ios<char, std::char_traits<char> >::init(std::basic
_streambuf<char, std::char_traits<char> >*) (this=<incomplete type>,            
    __sb=<incomplete type>) at  _start_ :150                                    
#4  0x100003f4 in main ()                                                       
    at /p/benjamin/usr/gcc-3.3/include/c++/3.3/istream:106                      
#5  0x100001b4 in __start ()                                                    
(gdb)


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (5 preceding siblings ...)
  2003-07-10 19:04 ` lq2001ca at yahoo dot ca
@ 2003-07-12  4:51 ` neroden at gcc dot gnu dot org
  2003-07-12 23:44 ` dje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-12  4:51 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From neroden at gcc dot gnu dot org  2003-07-12 04:51 -------
I can't figure out what you said about the Makefile/configury issue.  Could you try to explain it again, in clearer English and more detail?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (6 preceding siblings ...)
  2003-07-12  4:51 ` neroden at gcc dot gnu dot org
@ 2003-07-12 23:44 ` dje at gcc dot gnu dot org
  2003-07-14 13:51 ` lq2001ca at yahoo dot ca
  2003-07-18 14:27 ` lq2001ca at yahoo dot ca
  9 siblings, 0 replies; 11+ messages in thread
From: dje at gcc dot gnu dot org @ 2003-07-12 23:44 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From dje at gcc dot gnu dot org  2003-07-12 23:44 -------
GCC for AIX 4.2 does not include pthread support.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (7 preceding siblings ...)
  2003-07-12 23:44 ` dje at gcc dot gnu dot org
@ 2003-07-14 13:51 ` lq2001ca at yahoo dot ca
  2003-07-18 14:27 ` lq2001ca at yahoo dot ca
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-14 13:51 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From lq2001ca at yahoo dot ca  2003-07-14 13:51 -------
Hi David,

Could you give me some explaination. does it mean under aix4.2 we can not 
compile multithreading program with GCC even if we have multithreading library? 
Thanks.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11434] How to config gcc under AIX 4.2.1
  2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
                   ` (8 preceding siblings ...)
  2003-07-14 13:51 ` lq2001ca at yahoo dot ca
@ 2003-07-18 14:27 ` lq2001ca at yahoo dot ca
  9 siblings, 0 replies; 11+ messages in thread
From: lq2001ca at yahoo dot ca @ 2003-07-18 14:27 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-07-18 14:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04 14:57 [Bug c++/11434] New: How to config gcc under AIX 4.2.1 lq2001ca at yahoo dot ca
2003-07-04 15:11 ` [Bug c++/11434] " lq2001ca at yahoo dot ca
2003-07-04 15:16 ` pinskia at physics dot uc dot edu
2003-07-07 17:04 ` lq2001ca at yahoo dot ca
2003-07-07 17:13 ` pinskia at physics dot uc dot edu
2003-07-09 13:30 ` lq2001ca at yahoo dot ca
2003-07-10 19:04 ` lq2001ca at yahoo dot ca
2003-07-12  4:51 ` neroden at gcc dot gnu dot org
2003-07-12 23:44 ` dje at gcc dot gnu dot org
2003-07-14 13:51 ` lq2001ca at yahoo dot ca
2003-07-18 14:27 ` lq2001ca at yahoo dot ca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).