Commit 38954113 authored by ken's avatar ken
Browse files

[project @ 2001-09-04 18:29:22 by ken]

THIS CHANGE AFFECTS ALL OBJECT FILES COMPILED FROM HASKELL.
Please say "make -C ghc/lib/std clean; make -C hslibs clean".

This commit eliminates spurious warning messages when compiling on
the Alpha.  There are two kinds of spurious warning messages:

(1) gcc: -noprefix_recognition: linker input file unused since linking not done

    This warning is because we pass the flag "-Xlinker -noprefix_recognition"
    to gcc.  We remove this warning by no longer passing the flag to gcc,
    and by removing the reason we were passing the flag in the first place:
    __init_* is now renamed to __stginit_*.

(2) .../includes/Regs.h: warning: call-clobbered register used for global
    register variable

    This warning and all other warnings except (1), we eliminate by
    passing the -w flag to gcc.

MERGE TO STABLE BRANCH
parent e9f73bf7
......@@ -3,7 +3,7 @@
#include "RtsAPI.h"
extern void __init_Foo ( void );
extern void __stginit_Foo ( void );
int main(void)
{
......@@ -11,7 +11,7 @@ int main(void)
char* bogusFlags[1] = { "\0" };
startupHaskell(0, bogusFlags, __init_Foo);
startupHaskell(0, bogusFlags, __stginit_Foo);
for (i = 0; i < 5; i++) {
printf("%d\n", foo(2500));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment