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 target/45476] libgcc should contain TCmode functions



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2010-09-01 10:21 -------
It partially does. But TC functions are missing:

$ cat a.c
typedef _Complex float __attribute__((mode(TC))) __complex128;

__complex128 foo (__complex128 z1, __complex128 z2) {
  return z1 * z2; }

__complex128 bar (__complex128 z1, __complex128 z2) {
  return z1 / z2; }

int main (void) {
  (void) foo (0, 0);
  return 0;
}
$ ./bin/gcc a.c -W -Wall
Undefined symbols:
  "___divtc3", referenced from:
      _bar in ccqf0ZEK.o
  "___multc3", referenced from:
      _foo in ccqf0ZEK.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

$ ./bin/gcc -v          
Using built-in specs.
COLLECT_GCC=./bin/gcc
COLLECT_LTO_WRAPPER=/Users/fx/devel/gcc/irun/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.4.0
Configured with: ../trunk/configure --prefix=/Users/fx/devel/gcc/irun
--with-gmp=/Users/fx/devel/gcc/deps --enable-languages=c,fortran --without-ppl
Thread model: posix
gcc version 4.6.0 20100901 (experimental) [trunk revision 163721] (GCC) 


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Summary|libgcc should contain TFmode|libgcc should contain TCmode
                   |functions                   |functions


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


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