This is interesting and clever - thank you for sharing it. However, it seems like the hash table would work on either the address or the shape of the code, and in either case you could build a pathological case which would break it. It's probably a really nice solution for the common/realistic case though.
There is no need for ugly, cumbersome syntax objects that destroy Lisp.
Whether or not the recording of source loc info is enabled is controlled by a special variable. It is disabled by default, because you probably don't want that overhead if you're calling the reader for reams of data. Functions like compile-file and load enable it locally.
To take advantage of the info for error reporting in a user defined macro, you can simply do this:
You get an error which mentions mymacro, and the location.