This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] spec functions


On Sat, Nov 02, 2002 at 09:40:39AM -0500, DJ Delorie wrote:
> 
> > Actually, what's with the linked list in the first place?  If you just
> > made this an array of name:function pairs that you scan directly, you
> > wouldn't need the macro, you wouldn't need to initialize anything at
> > runtime, you could make the table read-only data, and it wouldn't even
> > be slower.
> 
> So that backends and frontends can add their own functions to the list
> at runtime.

Not necessary; give the backend a target macro to define to add to the
list, and give the frontend a table of its own (defined in the
lang_specific_driver file).

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]