https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93903
Frédéric Recoules <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.recoules@univ-gren | |oble-alpes.fr --- Comment #2 from Frédéric Recoules <[email protected]> --- (In reply to Frédéric Recoules from comment #1) > I am pretty sure the error comes from the space you left in "r ". > Yet, in the "Simple-Constraints" documentation, it is said that space are > ignored > to allow visual alignment but, in fact, I realized a while ago it generates > an error. > > I think it would not be a big change to either update the documentation at > https://gcc.gnu.org/onlinedocs/gcc/Simple-Constraints.html#Simple- > Constraints or to make the parser ignore the blank. I read me again and see how my comment was useless but, I really wanted to help. In fact I found that space are authorized for output but not for input. In the file stmt.c: In the function parse_input_constraint, the default case starts with: if (!ISALPHA (*p)) break; So it just exits the switch and continue, while the default case of parse_input_constraint starts with: if (! ISALPHA (constraint[j])) { error ("invalid punctuation %qc in constraint", constraint[j]); return false; } Yet, I would add in the switch for both: case ' ': break;
