Re: x = ++x + ++x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux