address of labels in the symbol table

Andreas Wortmann andreas.wortmann@ohb-system.de
Wed Nov 30 18:45:00 GMT 2011


Hi, 

I'm using gcc 4.2.1 for the SPARC V8 architecture and I want to access the address of labels placed in the c code from the symbol table. 
This is working fine if I do not optimize (-O0) or optimize with -O1. 
But when optimizing with -O2 or -Os the unused labels (event though they are still listed in the symbol table) have a wrong address.
What is happening here ?

Thanks,
Andreas



More information about the Gcc-help mailing list