hoglet67 / PiTubeDirect

Bare-metal Raspberry Pi project that attaches to the Acorn TUBE interface and emulates many BBC Micro Co Processors
GNU General Public License v3.0
187 stars 23 forks source link

GCC patches for PDP-11 backend issues? #169

Closed gameblabla closed 1 year ago

gameblabla commented 1 year ago

I was reading this PDP 11 Co Pro Notes, which was very interesting and helped me setup a cross compiler for PDP11. However you mentioned how you managed to fix several GCC bugs but it's not exactly clear how you did it and you didn't send them upstream so i was wondering if you could explicitely share them as patches/diff files ? I encountered some issues with GCC myself with code generation and stuck with O0 for now.

hoglet67 commented 1 year ago

There was some discission on the Retro Computing Forum with Paul Koning (who maintains the PDP11 backend) about including these fixes: https://retrocomputingforum.com/t/modern-pdp-11-c-compilers/2329/19?u=hoglet

Diffs for the two changes I made are included in that thread.

I'm not sure if Paul ever pulled these changes in, but it would be in the gcc v13 development branch. I just did some digging, and could not find anything: https://gcc.gnu.org/git/?p=gcc.git;a=history;f=gcc/config/pdp11;h=f7222a97ad01cf3c782b7dc2f3761bc0937117b7;hb=HEAD

Dave

gameblabla commented 1 year ago

Yeah it doesn't seem like he went through with the fixes, a shame. Perhaps i should consider opening up a bug report... Thanks for the patches !