[nhc-bugs] build failure

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Jun 14 08:47:34 EDT 2004


> > -----
> >         .file   "DErrNo.hc"
> >         .local  startLabel
> >         .comm   startLabel,0,4
> > .globl C0_NHC_46DErrNo_46ERANGE
> >         .data
> >         .align 4
> > -----

Another thought:  the gcc-3.3.3 manual mentions this flag:

    -fno-common

    In C, allocate even uninitialized global variables in the data
    section of the object file, rather than generating them as common
    blocks. This has the effect that if the same variable is declared
    (without extern) in two different compilations, you will get an
    error when you link them. The only reason this might be useful is
    if you wish to verify that the program will work on other systems
    which always work this way.

Does it make any difference when compiling with nhc98?  To test,
add the flag to line 80 of script/nhc98.inst:

    CPPAS="${CC} -x c -S -fno-common"

and re-run configure.

Regards,
    Malcolm


More information about the Nhc-bugs mailing list