Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GCC 4.6.x invalid code generation (Developers)

posted by marcov, 10.04.2012, 16:16

> > This problem was discussed on DJGPP google group. I want to warn other
> > users who didn't read it. I don't know if it may affect freepascal too
> (if
> > it shares some optimize code with gcc or not)
>
> I'm pretty sure that FPC doesn't use any GCC sources at all, not code
> generation nor backends,

Correct.

> only lightly borrows or gleans from go32v2
> (whatever that means specifically, I've not looked).

These were originally because of two reasons:

1. usage of the go32v2 extender
2. being mostly linking compatible with djgpp, most importantly because
the textmode IDE incorporates (lib)GDB.

But all that is more runtime library related, the only compiler related bit is that the calling convention of "CDECL" will match djgpp's. (While the native calling convention is register, which is more fastcall like) Without using any gcc code of course.

> P3 priority, so it's far from important to them. GCC 4.8.0 release criteria
> explicitly says "i686" except for "i386-unknown-freebsd",

That's a naming convention of BSD. They always call everything for 32-bit x86 i386, regardless of specific optimazations.

This because "i386" is the general architecture, and optimizations or instruction selecting is not reflected in architecture, which is more a GNU or Linux convention.

So FreeBSD being "i386" has nothing to do with i386 compatibility. And anyway, recent GPL3 gcc releases are afaik irrelevant to most of BSD, since they kept the last GPL2 version, and are now migrating to LLVM.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum