On 12 July 2007 17:51, Andrew Pinski wrote: > On 7/12/07, Dave Korn <[EMAIL PROTECTED]> wrote: >> On 12 July 2007 17:23, Michael Eager wrote: >> >> Sounds right to me. Basing codegen decisions on HOST_xxxx is just plain >> wrong and has been an ongoing source of bugs down the years. > > Except in this case, the code gen is the same, just the assembly file > is different. I don't think comparing two assembly files is a good > test, comparing two object files is different and should be the same > between the two compilers.
I think it's not clearly defined: it's one of the goals for gcc to produce the same "output" when compiling a given source with a given set of flags regardless of any of the properties of the host, but I don't think it's specified whether "output" means the assembler source output by gcc itself, or the object filess that are, after all, technically the outputs of gas, not gcc.... Also, wasn't this part of a problem just a little while ago when 64-bit arithmetic was introduced in gas? I have this memory there was an issue when each of the 32-bit words that make up a 64-bit pair got sign-promoted independently and then something went wrong, or at any rate went differently from when there was a single .8byte value. I'll go see if I can find it in the archives. cheers, DaveK -- Can't think of a witty .sigline today....