On 26/06/2011, at 5:50 AM, Ian Lynagh wrote:

> Repository : ssh://darcs.haskell.org//srv/darcs/ghc
> 
> On branch  : master
> 
> http://hackage.haskell.org/trac/ghc/changeset/0a6f26f6d29c8762b254e2f1040fce5c3571feea
> 
>> ---------------------------------------------------------------
> 
> commit 0a6f26f6d29c8762b254e2f1040fce5c3571feea
> Author: Ian Lynagh <[email protected]>
> Date:   Fri Jun 24 20:51:13 2011 +0100
> 
>    Fix gcc 4.6 warnings; fixes #5176
> 
>    Based on a patch from David Terei.
> 
>    Some parts are a little ugly (e.g. defining things that only ASSERTs
>    use only when DEBUG is defined), so we might want to tweak things a
>    little.
> 
>    I've also turned off -Werror for didn't-inline warnings, as we now
>    get a few such warnings.


Something scary at Trace.h:244

- #define dtraceStartup(num_caps)    \
+ INLINE_HEADER void dtraceStartup (int n_caps) {
     HASKELLEVENT_STARTUP(num_caps)
+}


Breaks the build under OSX:

make -r --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage1" -optc-Wall -optc-Wextra -optc-Wstrict-prototypes 
-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline 
-optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn 
-optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes -optc-Irts 
-optc-DCOMPILING_RTS -optc-fno-strict-aliasing -optc-fno-common 
-optc-Ilibffi/build/include -optc-DDTRACE -optc-fomit-frame-pointer 
-optc-DRtsWay=\"rts_v\"   -H64m -O -fasm -Iincludes -Irts -DCOMPILING_RTS 
-package-name rts  -dcmm-lint  -Ilibffi/build/include -DDTRACE     -i -irts 
-irts/dist/build -irts/dist/build/autogen -Irts/dist/build 
-Irts/dist/build/autogen           -optc-O2   -c rts/Capability.c -o 
rts/dist/build/Capability.o
In file included from rts/Schedule.h:15,

                 from rts/Capability.c:23:0: 
rts/Trace.h: In function ‘dtraceStartup’:

rts/Trace.h:247:0:
     error: ‘num_caps’ undeclared (first use in this function)

rts/Trace.h:247:0:
     error: (Each undeclared identifier is reported only once

rts/Trace.h:247:0:  error: for each function it appears in.)

rts/Trace.h:248:0:  error: expected ‘;’ before ‘}’ token

rts/Trace.h:313:0:
     error: nested functions are disabled, use -fnested-functions to re-enable

... lots more in Trace.h



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to