> -----Original Message----- > From: Jakub Jelinek <ja...@redhat.com> > Sent: Wednesday, March 5, 2025 08:35 > To: Richard Biener <richard.guent...@gmail.com> > Cc: James K. Lowden <jklow...@schemamania.org>; gcc-patches@gcc.gnu.org > Subject: Re: The COBOL front end, version 3, now in 14 easy pieces > > On Wed, Mar 05, 2025 at 12:46:48PM +0100, Richard Biener wrote: > > and the installed compiler behaves as intended. I can trick -m32 to > "work" > > by using the generic gcc diriver: > > > > > ./install/gcc-cobol/usr/local/bin/gcc -x cobol t.cob -m32 -c > > > > but I think this is a less important issue. > > Agreed, it should be the compiler, i.e. cobol1, that diagnoses this rather > than the driver.
I actually tried to do that, by looking for "case OPT_m32". in cobol1.cc. I learned that OPT_m32 wasn't being delivered to "cobol_langhook_handle_option()" I made a quick attempt at making "m32" a COBOL switch, so that it would be sent. But all I managed to do was create compilation errors, so I gave up. Any advice will land on grateful ears. > > Jakub