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

Re: [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


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