Thank you. I didn't respond sooner because I was away from the computer for a few days.
And thank you for giving me some clarity on that line I labeled, "I don't understand..." > -----Original Message----- > From: Iain Buclaw <ibuc...@gdcproject.org> > Sent: Thursday, July 10, 2025 15:11 > To: Robert Dubner <rdub...@symas.com>; Andreas Schwab <sch...@suse.de> > Cc: gcc-patches@gcc.gnu.org; Rainer Orth <r...@cebitec.uni-bielefeld.de> > Subject: RE: [PATCH] cobol: Implement CXXFLAGS_FOR_COBOL. > > Excerpts from Robert Dubner's message of Juli 9, 2025 4:32 pm: > > With respect, this is another example of "I have been unable to make it > > work." > > > > The gcc/Makefile.in has this line in it: > > > > $(foreach file,$(ALL_HOST_FRONTEND_OBJS),$(eval CFLAGS-$(file) += > > -DIN_GCC_FRONTEND)) > > > > At the point where gcc/cobol files are compiled, the environment > variable > > has this value: > > > > CFLAGS-cobol/genapi.o is -DIN_GCC_FRONTEND > > > > An attempt to override that with > > > > make CFLAGS-cobol/genapi.o=-DHARMLESS > > > > has no effect on the value of the CFLAGS-cobol/genapi.o > > > > I commented out the $(foreach... line and tried to set the variable with > > the make command. > > > > Even then, CFLAGS-cobol/genapi.o did not seem to be set as a result. > > > > I do not know why my attempts to set CFLAGS-cobol/genapi.o are failing. > > > > Hi Robert, > > This is to be set in cobol/Make-lang.in > > --- a/gcc/cobol/Make-lang.in > +++ b/gcc/cobol/Make-lang.in > @@ -122,6 +122,7 @@ cobol_OBJS = \ > # Frankly, I can't figure out what this does: > # > CFLAGS-cobol/gcobolspec.o += $(DRIVER_DEFINES) > +CFLAGS-cobol/genapi.o += -DHARMLESS > > # > # This controls the build of the gcobol "driver" > --- > > Then when running make, you'll eventually see. > > g++ -fno-PIE -c -DHARMLESS -DIN_GCC_FRONTEND -g -O2 -DIN_GCC > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall > -Wno-error=narrowing -Wwrite-strings -Wcast-qual > -Wmissing-format-attribute -Wconditionally-supported > -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I. -Icobol > -I../../gcc -I../../gcc/cobol -I../../gcc/../include > -I../../gcc/../libcpp/include -I../../gcc/../libcody > -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid > -I../libdecnumber -I../../gcc/../libbacktrace -o cobol/genapi.o > -MT cobol/genapi.o -MMD -MP -MF cobol/.deps/genapi.TPo > ../../gcc/cobol/genapi.cc > > Iain.