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, 06:52 UTC
Message-ID
<1152514328.3504.58.camel@dv>
In-Reply-To
<20060710062513.GZ22573@lug-owl.de>
On Mon, 2006-07-10 at 08:25 +0200, Jan-Benedict Glaw wrote:
Show 8 quoted lines
> On Mon, 2006-07-10 02:22:03 -0400, Pavel Roskin <proski@gnu.org> wrote:
> > This means that the Sun compiler has almost all c99 features used by git
> > with just a little exception (initializers).  I think it's fair that we
> > fix this incompatibility.  It's very very minor compared to what "gcc
> > -std=c89 -pedantic" would have required.
>   ^^^^^^^^
> 
> You're kidding, aren't you?
In fact I can build git with this command:
make CFLAGS="-std=c89 -pedantic -Dinline=__inline -D_GNU_SOURCE"

if I fix all C++ comments. It warns a lot about "flexible array members" and other violations, but the resulting executable passes the test. That's Fedora Core 5 with gcc 4.1.1.

What I meant it that if we go all the way to strict c89 (even with a modern libc) and fix all the warnings, it will be much more than what is needed to support Sun's C compiler with its partial c99 support.

We can satisfy the Sun's compiler and yet retain flexible arrays and other c99 goodies.

Maybe I'm missing your point (or you joke).
-- 
Regards,
Pavel Roskin
Previous: Jan-Benedict GlawNext: Jan-Benedict Glaw
Message 9 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.