tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] defined twice error commented out


From: Michael Matz
Subject: Re: [Tinycc-devel] defined twice error commented out
Date: Thu, 29 Oct 2015 15:27:55 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

Hi,

On Thu, 29 Oct 2015, Sergey Korshunoff wrote:

> Hi Michael Matz
> 
> > No, please keep the message
> That was a quick fix for the problem.

What problem?  Fix the sources if tcc complains.

> > So, please revert.
> Revert is not a solition.

As removal of the message introduces a quality of implementation 
regression without improving anything, yes, reverting it is actually the 
solution.

> If gcc don't complain, than a tcc must not complain too.

Why?

It's not GCC that complains, it's GNU ld.  And no, tcc is fully right to 
complain here, it's incorrect C to have two definitions, so tcc is 
actually better than GCC+GNU ld in their default mode on recent 
architecture+os combinations in diagnosing it.

> What a solution can be:
>  * a some switch to disable this error message (a simple solution)
>     How to name it?
> 
>  * producing a common symbols by tcc too. Can tcc do this?

None of this.  The error message is correct.


Ciao,
Michael.



reply via email to

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