This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: question: suffix for fixed-point literal constant


Janis Johnson wrote:
> 
> I'm rewriting function interpret_float_suffix in libcpp/expr.c to fix
> suffixes in decimal float literal constants for c/33466.  While I'm at
> it I'm fixing suffixes for fixed-point literal constants.  
> Currently for
> fixed-point GCC accepts any ordering of the letters in the 
> suffix.  The
> technical report (N1169) gives specific strings, not 
> individual letters
> that can be used in any order.  That seems like something 
> obvious to fix
> but I thought I'd mention it in case they really should be accepted in
> any order.
> 
> My question, though, is about the case of the letters in the suffixes.
> N1169 says "note that the suffix is case insensitive"; should I take
> that literally and allow any mix of cases (as GCC currently does), or
> require that the same case be used within a particular suffix?

  From my implementation, I allow mixed-case suffixes.
We can view this as a GCC feature, if it turns out that the spec doesn't allow this.
Thanks!

Regards,
Chao-ying


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]