The automatic selection of source language based on the extension of an input file seems to be case-sensitive.
gpc 20070904, based on gcc-3.4.5 (mingw special)
gpc JSM4.PAS gpc: Internal GPC problem: internal option `--amtmpfile' not given
gpc JSM4.pas worked fine