[M3commit] CVS Update: cm3
Jay Krell
jkrell at elego.de
Thu May 13 10:12:30 CEST 2010
CVSROOT: /usr/cvs
Changes by: jkrell at birch. 10/05/13 10:12:30
Modified files:
cm3/m3-sys/cminstall/src/config-no-install/: SPARC64_SOLARIS
cm3/m3-sys/m3cc/src/: m3makefile
Log message:
On Solaris/sparc64, you have to declare
what you use registers g2 and g3 for, such as "#scratch".
cm3cg seems to often fail to do this.
Resulting in the assembler giving errors.
To work around this, and because it is unclearly recommended
anyway, just don't use these registers at all.
Until/unless the real fix is found.
Maybe with a newer gcc, but I couldn't find evidence.
A repro using C and gcc 4.5.0 would help much.
Note that cm3cg doesn't always fail.
The setting in m3cc/src/m3makefile did help.
But not always.
With this change I can now build a Solaris/sparc64 cm3.
On 2.9 (couldn't do it anywhere before).
But it just dumps core, oops.
Possibly an alignment problem.
SPARC64_SOLARIS:
m3back_flags = "-mno-app-regs"
m3cc/src/m3makefile:
remove gcc_cv_as_sparc_register_op=yes
with no users left, remove m3cc_env, get_env
More information about the M3commit
mailing list