Not that the following would constitute the actual testing
usually required for a patch, but:
/path/to/toplevel/configure --target=arm-eabi && make all-gcc
# Yay, the compiler-proper for a "bare iron" ARM compiler.
./gcc/xgcc -B./gcc -S test.c
Woot, compiled your first ARM program. :) Just emitting text
assembly code, and #include's won't work, but a missing-case
leading-to-abort would be prominently noticed as an internal
compiler error.
I just tried this and I did get it to build and run. And it's true that
invalid formats do cause an error, even just using -S. But I'm still
glad that kyrill tried it too.
So I've sent this to gcc-patches. Now comes the hard part: Patience...
dw