This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

GCC 4.1.0 build error (as doesn't like code produced by xgcc)


Hi,

I have an interesting problem with compiling gcc 4.1.0 on
i386-unknown-linux-gnu. Building xgcc (with gcc 3.4.3) works fine.
But rebuilding the compiler with xgcc the 2nd time (with -fprofile-use)
fails with an assembler error:

  $ stage1/xgcc -Bstage1/ -B/usr/i386-unknown-linux-gnu/bin/ -c   -O2 -g -fomit-frame-pointer -fprofile-use -freorder-blocks-and-partition -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/attribs.c -o attribs.o
  
  /tmp/cc9Aywrx.s: Assembler messages:
  /tmp/cc9Aywrx.s:1256: Error: can't resolve `.text.unlikely' {.text.unlikely section} - `.LCFI70' {.text section}

The assembler code generated by xgcc can be found here:

  http://www.clifford.at/priv/gcc410-attribs.s.gz

My assembler is a GNU as, version 2.16.91.0.7 (i.e. HJLs linux binutils).
I've also tried it with the bit older 2.16.91.0.3 and got the same error.

It can be easily reproduced by calling `as' directly on the assembler code:

  $ as --traditional-format attribs.s

  attribs.s: Assembler messages:
  attribs.s:1256: Error: can't resolve `.text.unlikely' {.text.unlikely section} - `.LCFI70' {.text section}

Is this a known problem? I (better said: google) was unable to find
anything about it.

I also do not really understand the error message. The assembler is trying
to look up a symbol `.text.unlikely' in the .text.unlikely section? Sounds
strange to me and according to the assember code it should try to look up
`.LCFI71' instead. Is this a bug in binutils or gcc? Or am I doing
something wrong?

yours,
 - clifford

--
bash -c "gcc -o mysdldemo -Wall -O2 -lSDL -lm -pthread -x c <( echo -e '
#include <SDL/SDL.h>\n#include <complex.h>\nint main(){SDL_Surface*s;SDL_Event
e;int x,y,n;SDL_Init(SDL_INIT_VIDEO);s=SDL_SetVideoMode(640,480,32,0);for(x=0;
x<640;x++)for(y=0;y<480;y++){float _Complex z=0, c=((x-400)/200.0) + ((y-240)/
200.0)*1.0fi;for(n=1;n<64;n++){z=z*z+c;if(cabsf(z)>2){((Uint32*)s->pixels)[x+y
*640]=n<<3;n=99;}}}SDL_UpdateRect(s,0,0,s->w,s->h);do SDL_WaitEvent(&e); while
(e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN);SDL_Quit();return 0;}' ); ./mysdldemo"
 
A: No.
Q: Should I include quotations after my reply?
 

Attachment: pgp00000.pgp
Description: PGP signature


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