git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Remove more gcc extension usage.

From
PRPavel Roskin <proski@gnu.org>
Date
Jul 10, 2006, 08:07 UTC
Message-ID
<20060710040711.z1h4w0wsgk8sskg4@webmail.spamcop.net>
In-Reply-To
<20060710073532.GA22573@lug-owl.de>
Quoting Jan-Benedict Glaw <jbglaw@lug-owl.de>:
> Why should we jump through the hoops to support an obsolete standard
> because proprietary compilers don't stand today's standards?

Because we want git to run on such systems, and asking to compile gcc first is too much to ask for.

There are still missing or broken C99 features in the current gcc: http://gcc.gnu.org/c99status.html

Why do we want to avoid C99 features broken in gcc? Because we want users to be able to compile git with today's gcc, and installing a different compiler (proprietary or even free) to compile git is too much to ask for.

Maybe if cvsup compiled with gcc, we would be using cvsup backend for git now. Or maybe cvsup would develop to take the niche currently occupied by git. But cvsup was written in Modula 3, perhaps a superior language compared to C. You would have to compile a Modula 3 compiler and a Modula 3 library just to be able to compile cvsup. The necessary software was free, but compiling it was not trivial. Let's see, where is cvsup now? How popular is it?

After all, it's a trade-off between ease of coding and ease of installing. Make coding too hard, and the developers will go elsewhere. Make installation too hard, and the project starts losing users. And who wants to contribute to an unpopular project?

Going all the way to strict c89 could be too much, but fixing initializers in a few places is a minor issue. Users of the Sun's compiler can expect us to do such changes, just like users of gcc would ask to fix a program that uses c99 features not yet available in gcc.

-- Regards, Pavel Roskin

Previous: Jan-Benedict GlawNext: Junio C Hamano
Message 11 of 15 in “Remove more gcc extension usage.”
  1. Remove more gcc extension usage.Shawn Pearce, Jul 8, 2006
  2. Junio C HamanoJul 8, 2006
  3. Shawn PearceJul 8, 2006
  4. Jan-Benedict GlawJul 9, 2006
  5. Shawn PearceJul 10, 2006
  6. Jan-Benedict GlawJul 10, 2006
  7. Pavel RoskinJul 10, 2006
  8. Jan-Benedict GlawJul 10, 2006
  9. Pavel RoskinJul 10, 2006
  10. Jan-Benedict GlawJul 10, 2006
  11. Pavel RoskinJul 10, 2006
  12. Junio C HamanoJul 10, 2006
  13. Jan-Benedict GlawJul 10, 2006
  14. Junio C HamanoJul 10, 2006
  15. Paul JakmaJul 12, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.