This is the mail archive of the gcc-bugs@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]

[Bug c/14635] New: nan functions should not be C90 built-ins


The built-in functions nan, nanf, nanl, nans, nansf, nansl are not
part of C90; they should not be built in in C90 mode.  nans* are
not in C99 either.  Furthermore, the treatment of these as constant
expressions in some cases means they shouldn't be built in at all
with the names nan*, only with the __builtin_nan* names.  This accords
with the manual, which only documents them with those names and not as
nan*.

A patch is in testing; this PR is to record the issue as a regression
in 3.4 relative to 3.2.x and earlier.  (The same bug is in 3.3.3 but
would need a separate patch there as builtins.def has been reorganised
since then.)

-- 
           Summary: nan functions should not be C90 built-ins
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,mark at codesourcery dot
                    com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14635


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