This is the mail archive of the gcc-help@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]

O1 optimization problem(undefined references)


HI, 

I am having a lot of "undefined references" after I added O1 flag.  But if I
add the flags documented at 

http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Optimize-Options.html#index-O2-3
63 indivudually, everything links okay. 

-O turns on the following optimization flags: 
          -fdefer-pop 
          -fmerge-constants 
          -fthread-jumps 
          -floop-optimize 
          -fif-conversion 
          -fif-conversion2 
          -fdelayed-branch 
          -fguess-branch-probability 
          -fcprop-registers

Anybody kindly know why?

Thanks!

Shaobin Tao



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