🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #98

Suggestion for improvement to GNU C.

#98
From: james tsillas
Date: Fri, 10 Apr 1992 06:02
129 lines
6201 bytes
Thank you for your wonderful compiler. We find to be the best we've
used. We can finally throw out Metaware!

One suggetion for improvement: standard UNIX always uses the .o
extension for object filenames. This is hardcoded into gcc.c in about
eight places. For our port we were forced to modify gcc.c in order to
produce .obj. I suggest adding a macro although I'm not usre how to do
this correctly since the descriptor are in a string.

best regards,
-Jim Tsillas./

here is a difference for gcc.c:

*** gcc.c~	Sat Mar 21 17:50:43 1992
--- gcc.c	Thu Apr  9 16:35:45 1992
***************
*** 412,418 ****
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {"-",
     "%{E:cpp -lang-c %{nostdinc} %{C} %{v} %{A*} %{D*} %{U*} %{I*} %{i*} %{P}\
--- 412,418 ----
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {"-",
     "%{E:cpp -lang-c %{nostdinc} %{C} %{v} %{A*} %{D*} %{U*} %{I*} %{i*} %{P}\
***************
*** 445,451 ****
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {".h", "@c-header"},
    {"@c-header",
--- 445,451 ----
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {".h", "@c-header"},
    {"@c-header",
***************
*** 480,486 ****
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {".i", "@cpp-output"},
    {"@cpp-output",
--- 480,486 ----
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
                %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 		      %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj}\
                        %{!pipe:%g.s} %A\n }}}}"},
    {".i", "@cpp-output"},
    {"@cpp-output",
***************
*** 491,497 ****
  	%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  	%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
      %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!             %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %{!pipe:%g.s} %A\n }"},
    {".ii", "@c++-cpp-output"},
    {"@c++-cpp-output",
     "cc1plus %i %1 %2 %{!Q:-quiet} %{d*} %{m*} %{a}\
--- 491,497 ----
  	%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  	%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
      %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!             %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj} %{!pipe:%g.s} %A\n }"},
    {".ii", "@c++-cpp-output"},
    {"@c++-cpp-output",
     "cc1plus %i %1 %2 %{!Q:-quiet} %{d*} %{m*} %{a}\
***************
*** 501,512 ****
  	    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  	    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
         %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 	       %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
  	       %{!pipe:%g.s} %A\n }"},
    {".s", "@assembler"},
    {"@assembler",
     "%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!             %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %i %A\n }"},
    {".S", "@assembler-with-cpp"},
    {"@assembler-with-cpp",
     "cpp -lang-asm %{nostdinc} %{C} %{v} %{A*} %{D*} %{U*} %{I*} %{i*} %{P}\
--- 501,512 ----
  	    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  	    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
         %{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
! 	       %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj}\
  	       %{!pipe:%g.s} %A\n }"},
    {".s", "@assembler"},
    {"@assembler",
     "%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!             %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj} %i %A\n }"},
    {".S", "@assembler-with-cpp"},
    {"@assembler-with-cpp",
     "cpp -lang-asm %{nostdinc} %{C} %{v} %{A*} %{D*} %{U*} %{I*} %{i*} %{P}\
***************
*** 518,524 ****
  	%{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C\
          %i %{!M:%{!MM:%{!E:%{!pipe:%g.s}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n\
      %{!M:%{!MM:%{!E:%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!                     %{c:%W{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
  		    %{!pipe:%g.s} %A\n }}}}"},
    /* Mark end of table */
    {0, 0}
--- 518,524 ----
  	%{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C\
          %i %{!M:%{!MM:%{!E:%{!pipe:%g.s}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n\
      %{!M:%{!MM:%{!E:%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
!                     %{c:%W{o*}%{!o*:-o %w%b.obj}}%{!c:-o %d%w%b.obj}\
  		    %{!pipe:%g.s} %A\n }}}}"},
    /* Mark end of table */
    {0, 0}
Technical Details
Message-ID: <9204101402.AA04716@dec5200b>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dec5200b.mit.EDU!jtsilla

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dec5200b.mit.EDU!jtsilla
From: jtsilla@dec5200b.mit.EDU (james tsillas)
Subject: Suggestion for improvement to GNU C.
Message-ID: <9204101402.AA04716@dec5200b>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 10 Apr 1992 06:02:04 GMT
Lines: 129