[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc 3.0 removes function calls
From: |
Raymond Toy |
Subject: |
gcc 3.0 removes function calls |
Date: |
21 Sep 2001 18:04:09 -0400 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (asparagus) |
Consider the code in the attached file, bug.c.
gcc -v says
Reading specs from
/apps/gnu/solaris2.7/gcc-3.0/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs
Configured with: ./configure --prefix=/apps/gnu/solaris2.7/gcc-3.0
--enable-shared --enable-version-specific-runtime-libs : (reconfigured)
./configure --prefix=/apps/gnu/solaris2.7/gcc-3.0 --enable-shared
--enable-version-specific-runtime-libs --enable-lang=c++,f77,java
Thread model: posix
gcc version 3.0
Compile this file with "gcc -O -c bug.c". Then use nm to look at the
contents of the object file. You'll see that only a handful of the
functions are actually in the object file. Most of them have been
deleted.
This looks like a bug to me. Even "gcc -O0 -g" does this.
Ray
P.S. This file is from CMUCL which uses this technique to make sure
all C functions that CMUCL uses is defined.
bug.c
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gcc 3.0 removes function calls,
Raymond Toy <=