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

Re: LPGL (was "GCC2 merging")


>>>>> Joe Buck <jbuck@Synopsys.COM> writes:

 > I suggest 

 > "As a special exception, if other files use macros or inline functions, or
 > instantiate templates from this file ..."

OK.

 > However, it may be wise to have different language for headers than for
 > .cc files.  The .cc files would start with

 > "As a special exception, if you compile this file and link
 > it with other files to produce an executable ..."

 > to make clear that the intent is for the .cc files to be used as a
 > library, rather than ripped up and turned into inline functions which
 > could then be used arbitrarily in proprietary code.

It doesn't seem to me that the licence would allow people to rip up the
library arbitrarily.

 > On the other hand, one possible concern is that with multiple variants
 > of special exceptions, it seems that we need permission of the copyright
 > owner (in this case, official FSF approval, however this is to be handled)
 > if any code is to be moved from a .cc file to an .h file.
 > So maybe it's better just to use the same one everywhere, if people don't
 > think a real risk is created.

Yep.  I think moving code between templates and non-templates will be
common enough that we should use the same exception.

Jason


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