Re: New backend

BERTRAND Joël via Gcc-help <[email protected]> Wed, 31 Dec 2025 11:02:41 +0100
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
Segher Boessenkool a écrit :
> Hi!
> 
> 
> On Tue, Dec 30, 2025 at 01:52:09PM +0100, BERTRAND Joël via Gcc-help wrote:
>> 	As it's the first time I'm trying to add a backend, I suppose I have
>> done a mistake. Help will be welcome.
> 
> You get the errors
> 
>> genautomata: unit `m6809' is not used
>> genautomata: unit `m6309' is not used
> 
> and that is indeed true: you have define_unit's, but nothing actually
> uses those units, so nthe builld system thinks that perhaps you typoed
> things.  Either actually use the units, or remove the define_unit's
> (well, you probably don't really want the delete it, but you can comment
> it out for now?)

	Thanks for your answer. I have continued to learn gcc internal but it's
very cryptic.

	As I obtain errors or segmentation fault, I have tried in a first time
to port gcc/config/m6809 from gcc 4.3 to 15.2. Of course, build process
returns a lot of errors. I have fixed a lot of errors but some poisoned
defineds resist.

	RETURN_POPS_ARGS
	FUNCTION_ARG_ADVANCE
	FUNCTION_ARG
	TRAMPOLINE_TEMPLATE
	INITIALIZE_TRAMPOLINE
	LEGITIMATE_CONSTANT_P
	LEGITIMIZE_ADDRESS
	GO_IF_MODE_DEPENDENT_ADDRESS
	FIXUNS_TRUNC_LIKE_FIX_TRUNC
	FLOAT_TYPE_SIZE
	TRULY_NOOP_TRUNCATION
	NOTICE_UPDATE_CC

	I can send a tarball (63 KB) but is there somewhere a document to port
a backend from gcc 4.3 to recent gcc ?

	Best regards,

	JB
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCaVT0wgAKCRDFW/s/mMLX
CBHlAP9NCts+k48s5TYlAGVKPtOxpdDO//3kblCEDS1sVsDMPwEAxHMYMiB1tfJW
B2h2WQJzoQTRTByaZ6iQaH3PaA29Ug4=
=XLi0
-----END PGP SIGNATURE-----