public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17751] New: Undefined .LCTOC0 symbol
@ 2004-09-30 17:17 jakub at gcc dot gnu dot org
  2004-09-30 17:22 ` [Bug target/17751] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-09-30 17:17 UTC (permalink / raw)
  To: gcc-bugs

/* { dg-do link } */
/* { dg-options "-m64 -mminimal-toc" { target powerpc64-*-* } } */

char *strchr (const char *, int);

int
foo (int a)
{
  int b;

  b = 0;
  if ("/"[1] != '\0')
    if (strchr ("/", a))
      b = 1;
  return b;
}

int
main (void)
{
  return 0;
}

does not link on ppc64.  There is ld 30,.LCTOC0@toc(2) in the code, but
no .LCTOC0 definition.

-- 
           Summary: Undefined .LCTOC0 symbol
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-redhat-linux


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


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

* [Bug target/17751] Undefined .LCTOC0 symbol
  2004-09-30 17:17 [Bug target/17751] New: Undefined .LCTOC0 symbol jakub at gcc dot gnu dot org
@ 2004-09-30 17:22 ` pinskia at gcc dot gnu dot org
  2004-11-24 22:11 ` cvs-commit at gcc dot gnu dot org
  2005-01-24 17:39 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-30 17:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-30 17:22 -------


*** This bug has been marked as a duplicate of 13018 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug target/17751] Undefined .LCTOC0 symbol
  2004-09-30 17:17 [Bug target/17751] New: Undefined .LCTOC0 symbol jakub at gcc dot gnu dot org
  2004-09-30 17:22 ` [Bug target/17751] " pinskia at gcc dot gnu dot org
@ 2004-11-24 22:11 ` cvs-commit at gcc dot gnu dot org
  2005-01-24 17:39 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-24 22:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-24 22:11 -------
Subject: Bug 17751

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-rhl-branch
Changes by:	jakub@gcc.gnu.org	2004-11-24 22:11:00

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: rs6000.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: ppc64-toc.c 

Log message:
	PR target/17751
	* config/rs6000/rs6000.c (rs6000_file_start): Create toc section
	for AIX ABI or ELF -fPIC.
	(rs6000_emit_load_toc_table): Don't create toc_section here.
	(rs6000_xcoff_file_start): Nor here.
	
	* gcc.dg/ppc64-toc.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=2.2326.2.399.2.53&r2=2.2326.2.399.2.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.576.2.15.2.12&r2=1.576.2.15.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.3389.2.170.2.26&r2=1.3389.2.170.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/ppc64-toc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug target/17751] Undefined .LCTOC0 symbol
  2004-09-30 17:17 [Bug target/17751] New: Undefined .LCTOC0 symbol jakub at gcc dot gnu dot org
  2004-09-30 17:22 ` [Bug target/17751] " pinskia at gcc dot gnu dot org
  2004-11-24 22:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-24 17:39 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-24 17:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-24 17:39 -------
Subject: Bug 17751

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jakub@gcc.gnu.org	2005-01-24 17:39:37

Modified files:
	gcc            : ChangeLog 
	gcc/testsuite  : ChangeLog 
	gcc/config/rs6000: rs6000.c 
Added files:
	gcc/testsuite/gcc.dg: ppc64-toc.c 

Log message:
	PR target/17751
	* config/rs6000/rs6000.c (rs6000_file_start): Create toc section
	for AIX ABI or ELF -fPIC.
	(rs6000_emit_load_toc_table): Don't create toc_section here.
	(rs6000_xcoff_file_start): Nor here.
	
	* gcc.dg/ppc64-toc.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7262&r2=2.7263
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4930&r2=1.4931
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&r1=1.781&r2=1.782
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/ppc64-toc.c.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


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

end of thread, other threads:[~2005-01-24 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30 17:17 [Bug target/17751] New: Undefined .LCTOC0 symbol jakub at gcc dot gnu dot org
2004-09-30 17:22 ` [Bug target/17751] " pinskia at gcc dot gnu dot org
2004-11-24 22:11 ` cvs-commit at gcc dot gnu dot org
2005-01-24 17:39 ` cvs-commit at gcc dot gnu dot org

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).