From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT gcc flag for generating xref info?
Date: Thu, 04 Jun 2020 17:43:59 +0100
Date: 2020-06-04T17:43:59+01:00 [thread overview]
Message-ID: <lyk10m3ho0.fsf@pushface.org> (raw)
In-Reply-To: 1629acc7-2aef-42dc-866e-cf652f8b25d0@googlegroups.com
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> There used to be a flag -fdumpxref for the GNAT gcc C compiler that
> output .gli files, which gnatcoll.xref parsed just as it does .ali
> files for Ada code.
>
> But that is apparently gone;
>
> gcc.exe: error: unrecognized command line option '-fdumpxref'
>
> gnat/.../cc1.exe --help shows a flag -fxref, but that is also gone:
>
> gcc.exe: warning: switch '-fxref' is no longer supported
>
> So how do I use gnatcoll.xref with C code?
You would have thought, given the maturity of GCC ( :-) ) that the
ChangeLogs would contain some references to these switches. The only one
I can see is that references to -fdump-xref in the Ada documentation
were removed (because the switch was deprecated) in December 2017.
The current GNAT Studio documentation says that the gnatinspect
cross-reference database is deprecated.
So I guess they're now using libadalang (and a putative libclang???) but
since GNAT Studio isn't provided in the Mac CE 2020 pack and the 2019
version works fine on the rare occasions I need it I can't comment
further.
next prev parent reply other threads:[~2020-06-04 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 23:56 GNAT gcc flag for generating xref info? Stephen Leake
2020-06-04 16:43 ` Simon Wright [this message]
2020-06-04 20:15 ` Simon Wright
2020-06-05 10:47 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox