[GHC] #9213: CPP warnings on ghcautoconf.h

GHC ghc-devs at haskell.org
Tue Jun 17 23:37:31 UTC 2014


#9213: CPP warnings on ghcautoconf.h
------------------------------------+-------------------------------------
       Reporter:  asr               |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.8.2
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 The cpphs program yields the following warning:

 {{{
 Warning: trailing characters after #if directive in file ...
 /ghcautoconf.h  at line 383 col 1:  AC_APPLE_UNIVERSAL_BUILD
 }}}

 I guess it is necessary to replace `#if defined` by `#ifdef` in the line
 {{{
 #if defined AC_APPLE_UNIVERSAL_BUILD
 }}}
 from the mk/config.h.in file.

 Note the next line `# if defined __BIG_ENDIAN__` has the same issue.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9213>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list