https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105171
--- Comment #9 from PaX Team <pageexec at gmail dot com> --- (In reply to Andrew Pinski from comment #7) > I think there might be a way to check if the option -frandom-seed was passed > and that might be a better option for your usage anyways. You should check > the options handling code. i had checked it before but the trace that -frandom-seed/set_random_seed() leave behind is a static variable (flag_random_seed), local_tick would be an indirect indicator were it not for this bug. the only other way i can see is the rather big hammer of having to reparse common_deferred_options or save_decoded_options as mentioned by Jakub (both are gcc 4.6+ only)...