https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85335

            Bug ID: 85335
           Summary: Possible misuse of 'lang_GNU_OBJC' in
                    'default_floatn_builtin_p'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: avshash at hotmail dot com
  Target Milestone: ---

In function 'default_floatn_builtin_p' at 'gcc/targhooks.c'.
Using the lang_GNU_OBJC query that returns TRUE when the language is either
Objective C, or Objective C++ (documentation in 'langhooks.c' implementation is
wrong).
According to documentation, the test is for Objective C only.
Need to either clariffy the documentation, or replacte the function call with
"(strcmp ("GNU Objective-C", lang_hooks.name) == 0)"

Reply via email to