[Bug c/90477] can negative line numbers be avoided

2019-05-15 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90477 --- Comment #3 from Jonny Grant --- I understand it is undefined, so can gcc use some gcc documented behaviour? Personally, using a ceiling of INT_MAX sounds best, and maybe a warning note on the output. Better than showing negative numbers. Tha

[Bug c/90477] can negative line numbers be avoided

2019-05-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90477 --- Comment #2 from Jonathan Wakely --- Hmm, actually it's undefined to use #line to set the line higher than INT_MAX but not undefined to set it to exactly INT_MAX then insert newlines that make it higher than that. Odd.

[Bug c/90477] can negative line numbers be avoided

2019-05-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90477 --- Comment #1 from Jonathan Wakely --- As with PR 90476 this is undefined.