If the block says 340 then I'd say you have a 340 with a recoil from a gx390. They are interchangeable with each other. Hell, the recoils are interchangeable with a gx610.
Edit: If your bore is 82mm instead of 88, you have a 340.
Agreed. Most parts will interchange. With everything the same except the bore, you're pretty much down to the block casting and piston being specific, and absolutely everything else is common.
The $50 question in my mind:
Did the block start out as the same casting and it's simply bored to the appropriate spec, or are the two blocks starting with different castings?
If they are the same casting, they'd still have to use two different moulds because of the markings (ie "GX340 as seen above), and there would have to be plenty of material there so that the 390 didn't end up with paper-thin cylinder walls.
Food for thought: I recently tore into a 16hp Briggs opposed L-head twin (that I bought for parts for my 18hp) and even the high-speed jet in the carb was the same orifice. Figure that out!
I also seem to remember reading somewhere that the difference between the 18hp Vanguard V-twin and the 20hp was just a different carb- (and manifold)that's it!