Re: extern const and all that

2005-06-10 Thread Zack Weinberg
Gabriel Dos Reis <[EMAIL PROTECTED]> writes: > gensupport.c:1122: undefined reference to `insn_elision_unavailable' > gensupport.c:975: undefined reference to `n_insn_conditions' > gensupport.c:977: undefined reference to `insn_conditions' > collect2: ld returned 1 exit status > > > This is an ins

Re: extern const and all that

2005-06-09 Thread Gabriel Dos Reis
Gabriel Dos Reis <[EMAIL PROTECTED]> writes: [...] | /* In order to avoid dragging in all the headers that are needed to |declare things that gensupport.h uses, we duplicate the declaration |of struct c_test here. (In particular we do not want to have to |include tm.h nor rtl.h in th

extern const and all that

2005-06-09 Thread Gabriel Dos Reis
Hi, In the message http://gcc.gnu.org/ml/gcc/2005-05/msg01265.html you said > Fifth, there is a slight difference between "const" in C and in C++. > In C++, a const variable implicitly has an internal linkage; so a > C++ compiler tends to optimize it out when its address is not tak