[Bug target/54791] AIX-only: Constructors are not called in main program.

2016-08-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/54791] AIX-only: Constructors are not called in main program.

2015-03-18 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 David Edelsohn changed: What|Removed |Added Status|NEW |WAITING --- Comment #34 from David Edel

[Bug target/54791] AIX-only: Constructors are not called in main program.

2015-03-18 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 Bug 54791 depends on bug 33704, which changed state. Bug 33704 Summary: AIX runs c++ constructors in incorrect order https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33704 What|Removed |Added ---

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-12-01 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #33 from David Edelsohn 2012-12-01 21:42:10 UTC --- You cannot ask legal questions and expect to receive an answer.

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-29 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #32 from Adi 2012-11-29 09:43:45 UTC --- One more question: If I intend to use the patch from PR 33704 to modify my gcc and then build commercial applications with it, is that ok? Would that raise any copyright/legal issues?

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-29 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #31 from Adi 2012-11-29 09:34:54 UTC --- OK I finally managed to get it working. The problem was I was using the rpm packages from perlz.org for mpfr,gmp and libmpc. Both gmp 4.3.2 and 5.0 gave me the gcc errors. But when

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-28 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #30 from David Edelsohn 2012-11-28 19:35:36 UTC --- > 1) how did you install the gcc(you said it works on your aix) ? I mean what > mpfr,gmp, libmpc did you use and how did you install them? I built gmp, mpfr and mpc from sou

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-28 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #29 from Adi 2012-11-28 14:00:55 UTC --- Ok... if you are so kind please tell me exactly 1) how did you install the gcc(you said it works on your aix) ? I mean what mpfr,gmp, libmpc did you use and how did you install them?

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-27 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #28 from David Edelsohn 2012-11-27 20:42:06 UTC --- Is the executable size due to debugging information? Do the RPMs contain stripped executables? I do not know why your build is failing. It looks like a conflict due to your

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-27 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #27 from Adi 2012-11-27 19:00:53 UTC --- I have put gmp 4.3.2 and still I get the errors when it builds libstdc++-v3.

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-27 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #26 from Adi 2012-11-27 18:55:08 UTC --- One more question: Do you know why cc1plus and cc1 have around 300 Mb after I build them ? I just did configure and make on the official sources.(now other options) I see that on the of

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-27 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #25 from Adi 2012-11-27 15:54:30 UTC --- One more question: Do you know why cc1plus and cc1 have around 300 Mb after I build them ? I just did configure and make on the official sources.(now other options) I see that on the of

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-14 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #24 from David Edelsohn 2012-11-14 14:20:06 UTC --- I successfully built GCC 4.7 earlier this week. You may need to use GMP 4.3.2, not GMP 5.0

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-13 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #23 from Adi 2012-11-13 14:08:42 UTC --- I did not put the patch yet. This is just gcc 4.7.2 original sources. Why would they not compile?

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-13 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #22 from David Edelsohn 2012-11-13 14:02:48 UTC --- The patch in PR 33704 makes no changes to libstdc++ or to any GCC , so I have no idea why you are seeing C++ errors compiling c-lang.c. Something else was modified.

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-13 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #21 from Adi 2012-11-13 08:29:51 UTC --- I am trying to build gcc 4.7.2 in order to apply the patch you suggested. I did the following: -download the gcc 4.7.2 -unzip and untar to to the root directory. mkdir /gcc-build cd /

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-13 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #20 from Adi 2012-11-13 08:21:12 UTC --- Created attachment 28672 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28672 the error while building gcc the error while building gcc 4.7.2

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-07 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 David Edelsohn changed: What|Removed |Added Depends on||33704 --- Comment #19 from Dav

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-07 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #18 from Adi 2012-11-07 15:25:27 UTC --- Follow up on comment 17: 1) I did try to set the priority on the shared lib (via -binitfini) and it does not work. I mean the priority is set but the exe is still the one that is g

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-07 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #17 from Adi 2012-11-07 14:45:59 UTC --- Finally I got it working. You are right, there are _GLOBAL* symbols generated for each constructor, but only when you specify the init_priority attr for that object. (otherwise there is

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-06 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #16 from David Edelsohn 2012-11-07 01:27:00 UTC --- G++ should create one specially named _GLOBAL__I_N_X function per constructor. collect2 sorts the constructors based on the N priority number encoded in the name.

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-06 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #15 from Adi 2012-11-06 21:49:47 UTC --- This is a follow up on comment 14. It seems that -fPIC dramatically improved the way constructors are called. It seems that the linker has some logic and is initializing the globals fr

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-06 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #14 from Adi 2012-11-06 16:22:37 UTC --- Regarding the __attribute__ ((init_priority ())). Are you sure this works on AIX at namespace level. I think it might work on linux. But on AIX I see no way of that ever working. H

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-06 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #13 from David Edelsohn 2012-11-06 14:46:34 UTC --- > Because if you have a function declared as inline in a header file that gets propagated to multiple source files is ok, but in my case that inline keyword was removed by som

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-05 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #12 from Adi 2012-11-05 21:14:22 UTC --- (In reply to comment #11) > I believe that the G++ front end tries to create a unique name from the first > symbol it sees. I do not now if this is related to the constructor name > co

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-05 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #11 from David Edelsohn 2012-11-05 18:54:47 UTC --- I believe that the G++ front end tries to create a unique name from the first symbol it sees. I do not now if this is related to the constructor name collision that you are s

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-05 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #10 from Adi 2012-11-05 14:34:25 UTC --- I found the real problem ! Now it can be reproducible even with a small test case. I can summarize it like this: If you have a global object/function defined in "n" different object

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-03 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 David Edelsohn changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-03 Thread adivilceanu at yahoo dot com
,... that's why I am asking. From: dje at gcc dot gnu.org To: adivilce...@yahoo.com Sent: Saturday, November 3, 2012 3:48 PM Subject: [Bug target/54791] AIX-only: Constructors are not called in main program. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-03 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #7 from David Edelsohn 2012-11-03 13:48:46 UTC --- The New York area has experienced a major natural disaster. I am located near NYC. GCC support is provided by volunteers. Repeatedly resending your message will not elicit a f

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-02 Thread adivilceanu at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #6 from Adi 2012-11-03 06:24:03 UTC --- This is the 5thmail I am sending(I got 4 delivery errors because of MIME attachments). After more investigation I saw that I managed to get the constructors called by removing the "inline" k

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-02 Thread adivilceanu at yahoo dot com
org Sent: Friday, November 2, 2012 4:48 PM Subject: Re: [Bug target/54791] AIX-only: Constructors are not called in main program. After more investigation I saw that I managed to get the constructors called by removing the "inline" keyword from just one constructor of a class that

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-02 Thread adivilceanu at yahoo dot com
November 2, 2012 4:48 PM Subject: Re: [Bug target/54791] AIX-only: Constructors are not called in main program. After more investigation I saw that I managed to get the constructors called by removing the "inline" keyword from just one constructor of a class that resides in my master h

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-11-02 Thread adivilceanu at yahoo dot com
___ From: dje at gcc dot gnu.org To: adivilce...@yahoo.com Sent: Wednesday, October 3, 2012 4:46 PM Subject: [Bug target/54791] AIX-only: Constructors are not called in main program. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #2 from David

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-10-03 Thread dje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 --- Comment #2 from David Edelsohn 2012-10-03 13:46:44 UTC --- Constructors are working because they work without your big header. I would try using divide and conquer techniques to reduce the big header and find out what is interfering w

[Bug target/54791] AIX-only: Constructors are not called in main program.

2012-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791 Paolo Carlini changed: What|Removed |Added CC||dje at gcc dot gnu.org