gdb bug in Fortran langauge mode

craig@jcb-sc.com craig@jcb-sc.com
Wed Jun 16 18:45:00 GMT 1999


>Unless we can show that, say, AIX Fortran and Sun f77, are inconsistent
>with each other, and if it's not too hard to change g77 and GCC's
>backend, I would recommend changing to be consistent with pre-existing
>compilers.  Stabs already has enough random inconsistencies, it
>doesn't help us to add more.

Unfortunately, g77 has *also* been pretty long in existence, and has, to
date, generated "consistent" stabs format -- consistent in the sense
that it works the same regardless of whether the language mode is C
or Fortran, in gdb.

But, if there turns out to be One Right Way to do these stabs -- a
way that is, in fact, the *inconsistent* way -- and g77 is "odd man out",
then we can make the decision to change g77, and announce a "flag day"
for *our* users.

In other words, let's accommodate broken implementations only where
it's clear that they're broken *by design*, as would be the case
if the stabs info for multi-dimensional arrays was reversed "for
Fortran".

At this point, that certainly isn't clear.

        tq vm, (burley)


More information about the Gcc mailing list