This is the mail archive of the gcc@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: RFC: Support for optional library files in specs


I wonder if it would be feasible and/or easy to add a
function-call-type spec (like make uses) so that we can do some
arbitrary extensions?  I'm thinking...

%{?boolean-function(args) {iftrue} {ifelse}}

Your example would then be:

%{?lib-exists(crti%O) {crti%O} {}}

It would be a cool extension to this is backends could register
functions for their own specs...


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