On 2/15/08 8:43 AM, Eljay Love-Jensen wrote:
Any guidance as to how I could accomplish this feat with GCC?
The code that checks for these sequence point problems in the C parser is in c-common.c:warn_for_collisions. You could do one of two things:
- Change the warning() call to error() or pedwarn() (so -pedantic causes a compilation failure).
- Modify warn_for_collisions to return an indicator so the caller can insert a call to abort() to cause the program to fail at runtime.
Diego.