[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] [PATCH] Don't break compilation process with unknow o

From: Michael Matz
Subject: Re: [Tinycc-devel] [PATCH] Don't break compilation process with unknow option
Date: Wed, 07 Jan 2015 16:56:53 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]