I demand that Simon Baxter may or may not have written... >> [snip] >>> Plugin analogtv: [snip] >>> cpu_accel.c: In function ?uint32_t mm_accel()': >>> cpu_accel.c:76: error: can't find a register in class 'BREG' while >>> reloading >>> 'asm' >> [snip] >>> Any ideas? >> Forcing that file to be compiled with -Os instead of -O2 should work. > Ok, here's another visible hole in my knowledge. > Makefile: > [snip] > CXX ?= g++ > OPTFLAGS ?= -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > CXXFLAGS ?= $(OPTFLAGS) -Wall -Woverloaded-virtual > [snip] > How do I do this? Do I need to select specific CXXFLAGS in Makefile for > cpu_accel.c? cpu_accel.o: override CXXFLAGS=$(shell echo "$(CXXFLAGS)" | sed s/-O[0-9]/-Os/g) (Note: untested.) > Should I globally change OPTFLAGS to use -Os rather than -O4 ?? That shouldn't be needed. -- | Darren Salt | linux or ds at | nr. Ashington, | Toon | RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army | + Output *more* particulate pollutants. BUFFER AGAINST GLOBAL WARMING. Help! I'm parked diagonally in a parallel universe.