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

[Bug other/31043] New: duplicated data in .rodata / .rodata.cst sections.


$ cat pi.cpp
#include <cmath>
extern double const pi = M_PI;
extern double foo() { return pi; }


        .section        .rodata.cst8,"aM",@progbits,8
        .align 8

.LC0:   .long   1413754136
        .long   1074340347

.globl pi
        .section        .rodata
        .align 8

pi:     .long   1413754136
        .long   1074340347

_Z3foov:
        pushl   %ebp
        movl    %esp, %ebp
        fldl    .LC0
        popl    %ebp
        ret


-- 
           Summary: duplicated data in .rodata / .rodata.cst sections.
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: x86*-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31043


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