Yeah, a compiler argument again.
There is something special with --param, --param exists, but -fparam obviously not.
[G4:~/gnu/testgpc/adriaan] adriaan% gpc -c hello.pas --param ggc-min-heapsize=0 [G4:~/gnu/testgpc/adriaan] adriaan% gpc -c hello.pas -fparam ggc-min-heapsize=0 gpc: ggc-min-heapsize=0: No such file or directory gpc1: error: unrecognized option `-fparam'
[G4:~/gnu/testgpc/adriaan] adriaan% gcc -c hello.c --param ggc-min-heapsize=0 [G4:~/gnu/testgpc/adriaan] adriaan% gcc -c hello.c -fparam ggc-min-heapsize=0 gcc: ggc-min-heapsize=0: No such file or directory cc1: error: unrecognized option `-fparam'
The GCC docs list --param as "--param" where most other arguments are given in the "-f" form (the rationale behind it is unknown to me, I am just summing up the information I gathered).
Now, here is the problem, --automake changes any "--" argument into a "-f" argument ...
[G4:~/gnu/testgpc/test-20030507] adriaan% gpc --automake --debug-automake predef.pas --param ggc-min-heapsize=0 GPC automake: adding to automake temp file: #compiling: predefc.c GPC automake: gpc -fparam ggc-min-heapsize=0 -c predefc.c gpc: ggc-min-heapsize=0: No such file or directory cc1: error: unrecognized option `-fparam' GPC automake: done gpc1: gpc exited with status 1
I stubled into this while running the gpc testsuite with EXTRA_TEST_PFLAGS="--param ggc-min-expand=0 --param ggc-min heapsize=0" to stress-test ggc, the gcc garbage collector.
Regards,
Adriaan van Os