This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [Patch,AVR] Fix PR51345: split multilibs for SPH / no-SPH devices


Joseph S. Myers schrieb:
On Thu, 15 Dec 2011, Georg-Johann Lay wrote:


Index: gcc/config/avr/genmultilib.awk
===================================================================
--- gcc/config/avr/genmultilib.awk	(revision 0)
+++ gcc/config/avr/genmultilib.awk	(revision 0)
@@ -0,0 +1,255 @@


This new file needs to have the standard copyright and license notices. It's desirable to generate such notices in the output files as well.

What is the right copyright for the generated files?


avr/multilib.h is included in tm.h (by adding it to $tm_file in config.gcc). It is used to override multilib.h in gcc.c. Is there a better way to do that?

This leads to inclusion of avr/multilib.h in quite a number of sources, amongst them fp-bit.c so that GPL is not appropriate because it would turn libgcc to GPL.

I searched for something like $extra_gcc_headers in config.gcc so that avr/multilib.h gets only included where it is actually needed but found nothing like that and thus added to tm.h.

One more question: If I undestand corretly, inclusion of a GPLed file turns the includer to GPL, too.

Is that right?

* If yes, libgcc is GPL and not LGPL + runtime exception because of
  many GPL includes.
* If not, you can simply get non-GPL versions of files, say

/* Non-GPL version of gcc.c */
#include "gcc.c"

Johann




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