[pph] Add preprocessor validation

Lawrence Crowl crowl@google.com
Sat Mar 5 01:46:00 GMT 2011


Add preprocessor symbol verification to PPH.
   Write the used symbol table instead of a dummy PPH file.
   Reuse PTH code for verifying these symbols are correct.
   Modify verification to allow a preprocessor symbol to match the PPH
   file's after value as well as its before value.
   Stop storing the macro name redundantly within its value.
   Mark three tests as expected failures as a result.
   There are 2 unexpected failures and 2 unexpected passes to be fixed.

Add three different PPH output formats,
   the regular object file, the pretty printed form, and the full dump form.
   These formats are more stubs than anything else.

Make pretty printing closer to compilable code.
   Add new flag TDF_VISDEF to request display of visible definitions.
   For now, they are most particularly struct definitions.
   Turn off visible definitions for bases of arrays and pointers.

-- 
Lawrence Crowl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.change
Type: application/octet-stream
Size: 2517 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110305/aff28e21/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.patch
Type: text/x-patch
Size: 33059 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110305/aff28e21/attachment.bin>


More information about the Gcc-patches mailing list