Liste des Groupes | Revenir à cl c |
On Wed, 9 Apr 2025 11:42:36 +0200One of the tests the gcc folk (or other interested parties) do before releasing a new version of gcc is to do a complete rebuild of some Linux distributions - Debian, Red Hat Fedora, and perhaps others. This can lead to reversal of planned changes to default flags in gcc if there is significant breakage, or to changes in makefiles or build flags for some of the upstream packages if there are only a few packages affected. So a change of the defaults in gcc is a good indication that very few open source programs are affected by the change - few enough that changing the defaults is worth the effort fixing any conflicting packages.
David Brown <david.brown@hesbynett.no> wrote:
On 08/04/2025 18:28, bart wrote:I wouldn't be so sure.On 08/04/2025 15:50, David Brown wrote:>On 08/04/2025 13:35, bart wrote:>
But it is true that some compilers have by default supported an
extension that was designed to make interoperability with Fortran
programs easier
Which means a pile of badly written programs.
That is why I said it was a bad idea for gcc to have "-fcommon" as
the default. It is a real shame that it took so long to change it.
>
However, while that default meant that some people wrote C code with
a misunderstanding of linkages and the difference between
declarations and definitions, most C programmers don't make that
mistake. When gcc eventually changed the default, it did not lead to
wide-spread breakage of code.
>
I have no statistics, but would expect that very significant part of
Unix-only C programmers, especially grumpy old timers, believes that
'-fcommon' is the real C and the rest are heresies.
Les messages affichés proviennent d'usenet.