I think the -fdump-tree-original option is about the same as you can get. Unfortunately, it will show both your own code and the automatically generated code, but it will not indicate what is. However, it is the most readable of the GCC dumps and shows the generated code before performing any optimizations.
Another option is to use -fdump-translation-unit . This creates an unprocessed tree dump with literally everything in it. Nodes compiled by the compiler will be marked as "artificial". However, this format is not easy for people to read, and many of them make their way even for a trivial source file. To extract any useful information from it, you probably need to write a program to read it, and then go through the tree to find the nodes you are interested in and print them in a more readable format.
source share