User: Password:
Subscribe / Log in / New account

#pragma and GCC

#pragma and GCC

Posted Jul 21, 2009 21:48 UTC (Tue) by BrucePerens (guest, #2510)
In reply to: Fun with NULL pointers, part 1 by zeekec
Parent article: Fun with NULL pointers, part 1

Some time in the 80's, when RMS was still coding GCC, the response to #pragma in C was explicitly stated to be undefined, so that your compiler could have whatever magic happen that it wished.

So, RMS coded GCC to start the game "rogue" when it saw #pragma.

(Log in to post comments)

#pragma and GCC

Posted Jul 22, 2009 15:46 UTC (Wed) by zeekec (subscriber, #2414) [Link]

Wouldn't that be a great response to a NULL dereference in the kernel.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds