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

optimization/3513: GCC doesn't merge substrings



>Number:         3513
>Category:       optimization
>Synopsis:       GCC doesn't merge substrings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 01 09:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     herbert@gondor.apana.org.au
>Release:        3.0 (Debian GNU/Linux) and HEAD 20010701
>Organization:
The Debian project
>Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: i686
	
host: i386-linux
build: i386-linux
target: i386-linux
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #88959.
  Please CC 88959-quiet@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/88959 ]
 	

GCC doesn't merge the two strings in this program:

char *a = "This is a string";
char *b = "string";

        .file   "bug-88959.c"
.globl a
        .section        .rodata
.LC0:
        .string "This is a string"
        .data
        .align 4
        .type   a,@object
        .size   a,4
a:
        .long   .LC0
.globl b
        .section        .rodata
.LC1:
        .string "string"
        .data
        .align 4
        .type   b,@object
        .size   b,4
b:
        .long   .LC1
        .ident  "GCC: (GNU) 3.1 20010701 (experimental)"

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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