public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: debug/5770: undefined reference to `.LC0'
@ 2002-02-26 16:30 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-02-26 16:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jakub, michael

Synopsis: undefined reference to `.LC0'

State-Changed-From-To: analyzed->closed
State-Changed-By: jakub
State-Changed-When: Tue Feb 26 14:47:11 2002
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5770


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: debug/5770: undefined reference to `.LC0'
@ 2002-02-25  9:02 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-02-25  9:02 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jakub, michael, nobody

Synopsis: undefined reference to `.LC0'

Responsible-Changed-From-To: unassigned->jakub
Responsible-Changed-By: jakub
Responsible-Changed-When: Mon Feb 25 08:59:16 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Mon Feb 25 08:59:16 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01762.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5770


^ permalink raw reply	[flat|nested] 3+ messages in thread

* debug/5770: undefined reference to `.LC0'
@ 2002-02-24 12:46 michael
  0 siblings, 0 replies; 3+ messages in thread
From: michael @ 2002-02-24 12:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5770
>Category:       debug
>Synopsis:       undefined reference to `.LC0'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 24 12:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     michael@ritzert.de
>Release:        gcc version 3.1 20020224 (experimental)
>Organization:
>Environment:
Reading specs from /3/gcc/HEAD/install/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /3/gcc/HEAD/gcc/configure --enable-threads=posix --prefix=/3/gcc/HEAD/install
Thread model: posix
gcc version 3.1 20020224 (experimental)
>Description:
# cat bug.cpp
static const char foo[] = "bar";

int
main( int, char* )
{
        return 0;
}

# c++ -O2 -g -o bug bug.cpp
/tmp/ccwmyhBY.o(.debug_info+0x95): undefined reference to `.LC0'
collect2: ld returned 1 exit status

Does not happen when I omit either of '-O2' or '-g'.

Also does not happen with gcc version 3.1 20020123 (experimental) on hppa1.1-hp-hpux11.00 or 2.95.3 and 3.0.2 on i686-pc-linux-gnu.
>How-To-Repeat:
Compile attached file with -O2 -g and try to link the object file.
>Fix:
Use static const char* foo = "bar", omit -O2 or -g.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"

c3RhdGljIGNvbnN0IGNoYXIgZm9vW10gPSAiYmFyIjsKCmludAptYWluKCBpbnQsIGNoYXIqICkK
ewoJcmV0dXJuIDA7Cn0KCg==


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-26 22:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-26 16:30 debug/5770: undefined reference to `.LC0' jakub
  -- strict thread matches above, loose matches on Subject: below --
2002-02-25  9:02 jakub
2002-02-24 12:46 michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).