| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
In particular, add -fno-builtin to x86 and x86_64, which was missing.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most of the other users of the fptools build system have migrated to
Cabal, and with the move to darcs we can now flatten the source tree
without losing history, so here goes.
The main change is that the ghc/ subdir is gone, and most of what it
contained is now at the top level. The build system now makes no
pretense at being multi-project, it is just the GHC build system.
No doubt this will break many things, and there will be a period of
instability while we fix the dependencies. A straightforward build
should work, but I haven't yet fixed binary/source distributions.
Changes to the Building Guide will follow, too.
|
|
|
|
|
|
| |
Bootstrap fix from GNU/Hurd port
From: Thomas Schwinge
|
|
|
|
| |
bootstrapping wibbles
|
|
|
|
| |
Include package Cabal when linking
|
|
|
|
|
| |
Need suffix.mk, otherwise .hc bootstrapping dies in ghc/compiler, with
"No rule to make target Foo.o" error.
|
|
|
|
| |
Use parsec package when bootstrapping.
|
|
|
|
| |
The haskell-src package is no longer needed for bootstrapping.
|
|
|
|
| |
Split Template Haskell out to its own package and update docs and tests.
|
|
|
|
|
|
| |
Hopefully make this work when GhcWithInterpter=YES, without breaking
the case when GhcWithInterpreter=NO (the latter is usually the case
when doing an unregisterised bootstrap).
|
|
|
|
| |
Fix for unregisterised bootstrapping
|
|
|
|
| |
Only haskell98 and base libraries are needed to link the compiler.
|
|
|
|
|
| |
- Move suffix rules from bootstrap.mk to suffix.mk
- Make the bootstrap suffix rules $(odir)-aware, so they work for the compiler
|
|
|
|
|
| |
- Remove hslibs stuff (we don't need hslibs for bootstrapping now)
- Add libraries/unix/include to the -I list
|
|
|
|
|
| |
If booting unregisterised, add -DNO_REGS -DUSE_MINIINTERPRETER
to PLATFORM_HC_BOOT_CC_OPTS
|
|
|
|
|
|
| |
HC_BOOT_LD_OPTS:
- if needed, include ghc/rts/gmp on -L list.
- sync -u list wrt ghc/rts/rts.conf.in
|
|
|
|
| |
Added GHC_MANGLER_DIR, GHC_SPLIT_DIR + fix .raw_s -> .s bootstrap suffix rule
|
|
|
|
|
|
| |
Bootstrapping fixes:
* Correct includes and libraries to use new libraries/ tree
* Check UseGhcForCc for "YES" instead of ""
|
|
|
|
| |
updates & fixes to hc-bootstrapping story; from Thomas Nordin
|
|
|
|
|
| |
Pass the "-mieee" flag to gcc, so that we get IEEE floating-point.
MERGE TO STABLE
|
|
|
|
|
|
| |
Fix the mangle rule since the definition of GHC_MANGLER changed
MERGE TO STABLE
|
|
|
|
|
|
|
| |
We need to pass the -w flag to gcc when compilng *_stub.c files
in addition to when compilng *.hc files.
MERGE TO STABLE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added -static, a flag for compiling on the Alpha that is already
listed under machdepCCOpts in DriverFlags.hs. Without it, the
following assert in GC.c fails:
/* make sure the info pointer is into text space */
ASSERT(q && (LOOKS_LIKE_GHC_INFO(GET_INFO(q))
|| IS_HUGS_CONSTR_INFO(GET_INFO(q))));
Added -Xlinker -noprefix_recognition, a flag for Alpha compilation
that I just added to machdepCCOpts in DriverFlags.hs. We need
this flag to disable the following documented behavior of ld(1) on
Digital UNIX:
All routines that start with __init_ are treated, by default,
as initialization routines. These are routines that are called
without an argument when the file that contains them is loaded
or when the program that contains them is started.
Unfortunately, this flag produces the annoying (but harmless) gcc
message
gcc: -noprefix_recognition: linker input file unused since
linking not done
(See also ghc/compiler/main/DriverFlags.hs)
|
|
|
|
|
| |
Added "--enable-hc-boot-unregisterised" option to configure,
for bootstrapping from unregisterised HC files.
|
|
|
|
|
|
| |
Add -lm to HC_BOOT_LIBS
*** MAYBE MERGE ***
|
|
|
|
|
|
| |
Link with HStext_cbits in case we need regex (bug from Lennart).
*** MAYBE MERGE ***
|
|
|
|
|
| |
Add -L$(FPTOOLS_TOP_ABS)/ghc/rts/gmp to the link flags (noticed by:
Lennart).
|
|
|
|
| |
fix HC bootstrapping after LibsReadline no longer has the -l prefixes.
|
|
|
|
| |
hc bootstrapping fixes
|
|
|
|
| |
wibble
|
|
|
|
| |
non-absolute paths didn't work.
|
|
|
|
| |
use fewer absolute paths
|
|
|
|
| |
fixes for linking the compiler
|
|
|
|
| |
nearly there: linking works now
|
|
Changes to support bootstrapping the compiler from .hc files. It's
not quite working yet, but it's not far off.
- the biggest change is that any injected #includes are now placed in
the .hc file at generation time, rather than compilation time. I
can't see any reason not to do this - it makes it clear by looking at
the .hc file which files are being #included, it means one less
temporary file at compilation time, and it means the .hc file is more
standalone.
- all the gruesomeness is in mk/bootstrap.mk, which handles building
.hc files without a ghc driver.
|