Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-11

-O2 internal compiler errors

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Joseph

When I turn on -O2 I get a never ending stream of internal error 2009112601 which I think is from various inlined operator overloads (didn’t do much testing though). Is this a bug or are they not compatible?

Regards,
Ryan Joseph

Karoly Balogh (Charlie/SGR
to Ryan Joseph

Hi,

Ryan Joseph wrote
When I turn on -O2 I get a never ending stream of internal error 2009112601 which I think is from various inlined operator overloads (didn’t do much testing though). Is this a bug or are they not compatible?

Example code to trigger it please, if possible, also which CPU architecture and OS? An internal error is always a compiler bug which we'd like to fix. If with nothing else, but with a more user readable error message.

BTW, yes, it's possible that it has something to do with the inlining. (More specifically, how the inlining interacts with some SIMD register load/store, probably, but this is speculation.)

If you're using 3.0.2 you could also try if it still occurs with the SVN trunk version.

Charlie

Ryan Joseph
to Karoly Balogh (Charlie/SGR

I’m was not able to replicate this right now outside of the project. There appears to be a vast multitude of errors some of which are fixed by removing “inline” and other which I don’t understand right now. When I have some more free time I’ll try again. Thanks.

Show quoted text 6 lines
On Nov 8, 2017, at 11:13 PM, Karoly Balogh (Charlie/SGR) wrote: Example code to trigger it please, if possible, also which CPU architecture and OS? An internal error is always a compiler bug which we'd like to fix. If with nothing else, but with a more user readable error message.

Regards,
Ryan Joseph