This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/34925] New: -fno-merge-constants doesn't work.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 20:08:37 -0000
- Subject: [Bug other/34925] New: -fno-merge-constants doesn't work.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat sections.c
extern void f( char const* );
__attribute__(( section( ".text.g" ))) void g( void ) { f( "test" ); }
__attribute__(( section( ".text.h" ))) void h( void ) { f( "test" ); }
$ /opt/gcc43/bin/gcc -S -Os -fno-merge-constants sections.c
.section .rodata
.LC0: .string "test"
(...)
.section .text.h,"ax",@progbits
h: movl $.LC0, %edi
jmp f
(...)
.section .text.g,"ax",@progbits
g: movl $.LC0, %edi
jmp f
--
Summary: -fno-merge-constants doesn't work.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
GCC host triplet: x86_64-gnu-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34925