* FORTRAN_HACK macro?
@ 2004-01-08 22:32 Elena Zannoni
2004-01-08 23:24 ` Jim Blandy
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Elena Zannoni @ 2004-01-08 22:32 UTC (permalink / raw)
To: gdb
Does anybody know where/why/when/if this macro is used?
It's in dwarf2read.c. It has been there since the dawn of times. I am
thinking of killing it.
elena
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
2004-01-08 22:32 FORTRAN_HACK macro? Elena Zannoni
@ 2004-01-08 23:24 ` Jim Blandy
2004-01-09 15:26 ` Elena Zannoni
2004-01-10 2:18 ` Richard Henderson
2004-01-13 21:22 ` Stan Shebs
2 siblings, 1 reply; 7+ messages in thread
From: Jim Blandy @ 2004-01-08 23:24 UTC (permalink / raw)
To: Elena Zannoni; +Cc: gdb
Elena Zannoni <ezannoni@redhat.com> writes:
> Does anybody know where/why/when/if this macro is used?
>
> It's in dwarf2read.c. It has been there since the dawn of times. I am
> thinking of killing it.
I don't know what it's for. If no FORTRAN experts emerge from the
gloom to explain it, I say, kill it: if it's been #ifdef'd out since
1996, it can't hurt much, and since we have no idea what it does, we
can't maintain it anyway.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
2004-01-08 23:24 ` Jim Blandy
@ 2004-01-09 15:26 ` Elena Zannoni
0 siblings, 0 replies; 7+ messages in thread
From: Elena Zannoni @ 2004-01-09 15:26 UTC (permalink / raw)
To: Jim Blandy; +Cc: Elena Zannoni, gdb
Jim Blandy writes:
>
> Elena Zannoni <ezannoni@redhat.com> writes:
> > Does anybody know where/why/when/if this macro is used?
> >
> > It's in dwarf2read.c. It has been there since the dawn of times. I am
> > thinking of killing it.
>
> I don't know what it's for. If no FORTRAN experts emerge from the
> gloom to explain it, I say, kill it: if it's been #ifdef'd out since
> 1996, it can't hurt much, and since we have no idea what it does, we
> can't maintain it anyway.
I think you are repeating what I have said. BTW, it's not ifdeffed out.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
2004-01-08 22:32 FORTRAN_HACK macro? Elena Zannoni
2004-01-08 23:24 ` Jim Blandy
@ 2004-01-10 2:18 ` Richard Henderson
2004-01-13 21:22 ` Stan Shebs
2 siblings, 0 replies; 7+ messages in thread
From: Richard Henderson @ 2004-01-10 2:18 UTC (permalink / raw)
To: Elena Zannoni; +Cc: gdb
On Thu, Jan 08, 2004 at 05:31:19PM -0500, Elena Zannoni wrote:
> Does anybody know where/why/when/if this macro is used?
From the looks of it, it's working around a bug in some
compiler output. I don't know which compiler though.
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
2004-01-08 22:32 FORTRAN_HACK macro? Elena Zannoni
2004-01-08 23:24 ` Jim Blandy
2004-01-10 2:18 ` Richard Henderson
@ 2004-01-13 21:22 ` Stan Shebs
2 siblings, 0 replies; 7+ messages in thread
From: Stan Shebs @ 2004-01-13 21:22 UTC (permalink / raw)
To: Elena Zannoni; +Cc: gdb
Elena Zannoni wrote:
>Does anybody know where/why/when/if this macro is used?
>
>It's in dwarf2read.c. It has been there since the dawn of times. I am
>thinking of killing it.
>
It was probably there to support Harris' Fortran compiler (which was not
GCC). No longer a need for it in any case.
Stan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
2004-01-08 23:25 Michael Elizabeth Chastain
@ 2004-01-09 15:30 ` Elena Zannoni
0 siblings, 0 replies; 7+ messages in thread
From: Elena Zannoni @ 2004-01-09 15:30 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: ezannoni, gdb
Michael Elizabeth Chastain writes:
> Beats me. Here's some fact-crumbs:
>
> dwarf2read.c was not in gdb 4.16.
> dwarf2read.c was in gdb 4.17, dated 1998-01-28
> 1998-01-28 version already has FORTRAN_HACK
> code around FORTRAN_HACK is about the same as it is today
> ChangeLog-96 says dwarf2read.c introduced on 1996-07-19.
>
> grepping on 'read_array_type' in the ChangeLogs turns up:
>
> 1996-12-01:
>
> (dwarf_read_array_type): Handle variable length arrays.
> Use lookup_pointer_type instead of handcrafting a type.
> Create array type only if a DW_TAG_subrange_type was found.
>
> 1997-01-25:
> (read_array_type): Renamed from dwarf_read_array_type.
> Default upper array bound to describe an array with unspecified
> length.
> Create array types in backwards order, as dwarf2 puts out the array
> dimensions from left to right.
>
> 1998-01-28:
>
> (read_array_type): Fix langauge test.
>
> If the FORTRAN_HACK was in the 1996-07-19 version then I would guess
> that it is an unimplemented stub and can be killed/replaced easily.
yes I think it was there since the first incarnation of the file. It
hasn't been touched except for that one in 96.
>
> If it was added after 1996-07-19 then someone was trying to do
> something.
>
I don't think it was.
elena
> Michael C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FORTRAN_HACK macro?
@ 2004-01-08 23:25 Michael Elizabeth Chastain
2004-01-09 15:30 ` Elena Zannoni
0 siblings, 1 reply; 7+ messages in thread
From: Michael Elizabeth Chastain @ 2004-01-08 23:25 UTC (permalink / raw)
To: ezannoni, gdb
Beats me. Here's some fact-crumbs:
dwarf2read.c was not in gdb 4.16.
dwarf2read.c was in gdb 4.17, dated 1998-01-28
1998-01-28 version already has FORTRAN_HACK
code around FORTRAN_HACK is about the same as it is today
ChangeLog-96 says dwarf2read.c introduced on 1996-07-19.
grepping on 'read_array_type' in the ChangeLogs turns up:
1996-12-01:
(dwarf_read_array_type): Handle variable length arrays.
Use lookup_pointer_type instead of handcrafting a type.
Create array type only if a DW_TAG_subrange_type was found.
1997-01-25:
(read_array_type): Renamed from dwarf_read_array_type.
Default upper array bound to describe an array with unspecified
length.
Create array types in backwards order, as dwarf2 puts out the array
dimensions from left to right.
1998-01-28:
(read_array_type): Fix langauge test.
If the FORTRAN_HACK was in the 1996-07-19 version then I would guess
that it is an unimplemented stub and can be killed/replaced easily.
If it was added after 1996-07-19 then someone was trying to do
something.
Michael C
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-01-13 21:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 22:32 FORTRAN_HACK macro? Elena Zannoni
2004-01-08 23:24 ` Jim Blandy
2004-01-09 15:26 ` Elena Zannoni
2004-01-10 2:18 ` Richard Henderson
2004-01-13 21:22 ` Stan Shebs
2004-01-08 23:25 Michael Elizabeth Chastain
2004-01-09 15:30 ` Elena Zannoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox