I'm developing an online judge system for programming contests. As for most programming contests, it is not allowed to use inline assembly in C/C++, so I would like to add the same restriction to my system.
I would like to let GCC produce an error when compiling a C/C++ program containing inline assembly, so that any program containing inline assembly will result in compilation error.
Is there a way to achieve that? Should I pass some command line arguments to GCC?
Note: disabling inline assembly is just for obeying the rules, not for security concerns.