This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
AW: [g++] RFH: Is there a way to make gcc place global const class objects in .rodata ?
- From: "Haase Bjoern (PT-BEU/EMT)" <Bjoern dot Haase at de dot bosch dot com>
- To: "David Edelsohn" <dje at watson dot ibm dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 10 Aug 2006 16:23:37 +0200
- Subject: AW: [g++] RFH: Is there a way to make gcc place global const class objects in .rodata ?
> >>>>> Haase Bjoern (PT-BEU/EMT) writes:
>
> Haase> Meanwhile, I have reduced a test case for the issue. It's 6
lines long.
>
> Haase> #include <complex>
>
> Haase> using namespace std;
> Haase> const complex<double> should_be_in_rodata (42,-42);
> Haase> complex<double> should_be_in_data (-42,42);
> Haase> complex<double> should_be_in_bss;
>
>
> Haase> Presently all of them end up in bss.
> Has this been opened as a GCC Bugzilla PR? I believe that this
is
> a regression.
>
>David
Yes, this is
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131
Bjoern.