[PATCH 1/2] driver: Add if-driverlang spec function
Keith Packard
keithp@keithp.com
Sun Oct 11 22:16:22 GMT 2026
> So I can see what you're doing here, but what I'm struggling with is why
> it's necessary. Shouldn't this stuff all be handled by
> lang_specific_driver in the various front-ends?
Perhaps? I'm using this to do libc-specific handling, which doesn't seem
like it should be in the language-specific drivers.
It also makes it possible to perform language-specific operations in
external specs files for cases where there are multiple C libraries
available; in those cases, the drivers may not be configured for the
C library being used.
> I realize that it means you may need to embed knowledge into those
> drivers which might be undesirable.
Yeah, that would spread picolibc-specific changes across a bunch of
drivers, which definitely seems messier to me.
> If we go forward with conditionals like you're doing here, then this
> seems sensible.
Awesome. Thanks, as always, for your careful review.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261011/39b2daa9/attachment.sig>
More information about the Gcc-patches
mailing list