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]

gcc -fprofile-arcs



Hi folks,

I cannot get even a simple source file (see below) to link
when using the following command-line
gcc -fprofile-arcs foo.c


GCC Version
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)

System Type
Windows NT4.0 (Service Pack 3 -- I think) + cygwin (Can't find
a version number).


Compiler Options
gcc -fprofile-arcs foo.c

Exception Log
C:\TEMP\ccgvRZUU.o(.text+0x80):bill.c: undefined reference to
`__bb_init_func'
collect2: ld returned 1 exit status

Source file is as follows:
  #include <stdio.h>

  int main(void) {
   if(1) {
     printf("foo\n") ;
   }
   else {
     printf("bar\n") ;
   }
   return 0 ;
}

Preprocessed output of the source file is attached

regards,
daire.
-- 
Daire McNamara, Research Fellow, ECE, Foundation Building, 
University of Limerick, Ireland.
Ph: +353 61 202703, Fax: +353 61 202572
E-mail Daire.McNamara@ul.ie,  http://oak.ece.ul.ie/~namarad

foo.s


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