libgcc2.c uses macros defined in longlong.h (included via libgcc2.h).
Similarily, the code in config/soft-fp uses longlong.h .   This library code
is automatically linked in by gcc, and its source files are licensed with
a special library exceptions to allow users to compile programs with gcc and
distribute the resulting binaries under licenses other than GPL (assuming
they have sufficent rights to the program being compiled to engage in such a
distribution).

longlong.h, however, carries a license notice which only permits distribution
according to GPL v3, without any library exception.

Which means that the statement that gcc-compiled programs can only be
distributed under a GPL-compatible license is actually true for most programs
 (unless the local law governing the intended distribution recognizes
  estoppel because of statements like:
  http://www.gnu.org/licenses/gpl-faq.html#CanIUseGPLToolsForNF ).

The discussion about this so far can be found here:
http://gcc.gnu.org/ml/gcc/2009-01/msg00072.html
http://gcc.gnu.org/ml/gcc/2009-01/msg00075.html


-- 
           Summary: gcc ships with GPL-only library parts (longlong.h)
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38758

Reply via email to