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 c/17167] New: FATAL:Symbol L_foo$stub already defined.


% uname -a
Darwin varro 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug  5 19:26:16 PDT 2004; 
root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC  Power Macintosh powerpc
% gcc -v
Reading specs from /private/var/automount/usr/local/gcc-3.4.1/powerpc-
Darwin/bin/../lib/gcc/powerpc-apple-darwin7.3.0/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --enable-languages=c --
prefix=/usr/local/gcc-3.4.1/powerpc-Darwin
Thread model: posix
gcc version 3.4.1
% cat foo.c
/* On powerpc-apple-darwin7.5.0 gcc-3.4.1 gives

% gcc -c foo.c
/var/tmp//ccdpYiCe.s:24:FATAL:Symbol L_foo$stub already defined.

This is a regression from gcc-3.3.3.  It does not seem
to happen on other architectures that I have tried.

It seems to be fixed in gcc-3.5-20040530.
*/

int foo(a)
  int a;
{
    int    foo();  /* if you remove this line, the bug disappears */

    foo(a);
    return 0;
}

%

-- 
           Summary: FATAL:Symbol L_foo$stub already defined.
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kminola at eng dot umd dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.5.0
  GCC host triplet: powerpc-apple-darwin7.5.0
GCC target triplet: powerpc-apple-darwin7.5.0


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


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