GCC currently supports the flags -std=c17, -std=gnu17, and -std=iso9899:2017, with the only functional difference with C11 being the value of STDC_VERSION. These flags are documented at: https://gcc.gnu.org/onlinedocs/gcc/Standards.html
This patch adds these flags and updates STDC_VERSION based on the C17 FDIS. Note that C17 is going out for balloting in December. I spoke with the GCC maintainer for the flags about what they will do when C17 is published in 2018 and their plan is to add c18, iso9899:2018, and gnu18. I will add the additional flags to Clang when the C17 ballot succeeds.