https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
Andrew Pinski changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
David Edelsohn changed:
What|Removed |Added
Status|NEW |WAITING
--- Comment #34 from David Edel
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
---
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.
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?
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
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
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?
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
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.
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
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
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
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?
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.
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 /
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
David Edelsohn changed:
What|Removed |Added
Depends on||33704
--- Comment #19 from Dav
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
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
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.
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
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
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
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
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
David Edelsohn changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
,... 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=
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
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
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
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
___
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
Paolo Carlini changed:
What|Removed |Added
CC||dje at gcc dot gnu.org
36 matches
Mail list logo