[GHC] #9213: Maybe important CPP warnings on ghcautoconf.h from cpphs (was: CPP warnings on ghcautoconf.h)

GHC ghc-devs at haskell.org
Fri Jul 18 15:43:56 UTC 2014


#9213: Maybe important CPP warnings on ghcautoconf.h from cpphs
-------------------------------------+-------------------------------------
              Reporter:  asr         |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.8.3
            Resolution:              |          Keywords:
Differential Revisions:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |         Test Case:
            Difficulty:  Unknown     |          Blocking:
            Blocked By:              |
       Related Tickets:              |
-------------------------------------+-------------------------------------
Changes (by asr):

 * version:  7.8.2 => 7.8.3


Old description:

> 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.

New description:

 cpphs 1.18.5 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#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list