On Mon, 9 Dec 2013, DJ Delorie wrote: > First pass at actual code. I took the path of using a new macro in > TARGET-modes.def and having genmodes build the relevent tables. Part > of the table is created by genmodes, the rest is created at runtime.
This seems mostly plausible, though I don't see anything to ensure that __intN does not exist at all if the size matches one of the standard C types, or if the mode fails targetm.scalar_mode_supported_p. (To move __int128 to this system, given that its availability will depend on the options passed to the compiler, I suppose the macro call to create the type will be in machmode.def alongside the definition of TImode, but whether it does in fact end up creating a type will depend on such conditionals in the compiler - and code will need to check for NULL tree nodes for types not supported with the given options passed to the compiler.) -- Joseph S. Myers jos...@codesourcery.com