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: Antwort: Re: [plugins] [patch] Initial implementation of GCC plugin support


Markus Milleder wrote:
Returning to my opening argument, I could only see risking breakage
if the plugin ensures that no binary is ever generated - e.g.
because it does some static analysis and then quits.
I like this idea. Perhaps we could block plugin loading based on version+ mode tuple where mode would be either "readonly" or "modifies stuff". We are really interested in the static analysis aspect of the plugins and it makes sense to disallow this sort of behavior for a plugin that will be modifying datastructures.

On the other hand, a memory corruption bug in a plugin could cause memory corruption too, so users are playing with fire anyway.

Taras


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