Am 07.01.2015 um 11:22 schrieb Sergey Korshunoff:
I'm agree. But what to do with the described bug? How to fix it?

cd tcc-source
./configure --cc=tcc; make; make install; make test
tcc -o tcctest.cc tcctest.c -I.. -I..  -w  -DTCC_TARGET_I386
-std=gnu99 -O0 -fno-omit-frame-pointer
tcc: error: invalid option -- '-std=gnu99'

Multiple solutions:
* declare this a non-problem by requiring that the reference compiler
  in the testsuite has to be GCC (in that case configure could perhaps
  error out if CC != tcc).
* if tcc is to be accepted as test reference then the Makefile and
  possibly configure need to be changed to not pass -std=gnu99 to it
  without checking if it is accepted (I don't have tcc code here to say
  if it's only the Makefile that hardcodes that option, or if it comes
  from configure).


Ciao,
Michael.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to