https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124679
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
Attaching the source file is fine; will do. All the headers, not so easy,
because these are kernel modules being built, so a combination of kernel
build/devel headers + systemtap runtime headers are needed. Thus the recipe
involving running stap itself.
% stap -p3 -k --example timeout.stp
will get you a directory under /tmp with the wacky stap_*_src.c file. About
60% down the way, you'll see the wild strlcpy nested statement-expression that
stap generated to torture gcc with. :-)
To attempt to run gcc needs the stap -p4 invocation from above. That adds a
bunch more files into the /tmp/stap* directory like a Makefile, and then runs
it (roughly) with
% cd /tmp/stapFOO
% make -C /lib/modules/`uname -r`/build M=`pwd` V=1 modules
Eventually you see the cc1 job processing the stap_*_src.c file, getting
larger, like Leon.