🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1122

g++ 2.3.1 does not recognise +e[012] options.

#1122
From: Martin Tomes
Date: Tue, 10 Nov 1992 16:50
47 lines
1772 bytes
The fix for +e* options present in gcc 2.3.1 does not quite fix the
bug.  The following patch is also required:

------------------------------------------------------------------------------
*** toplev.c-dist	Thu Nov  5 13:24:32 1992
--- toplev.c	Tue Nov 10 16:46:14 1992
***************
*** 562,570 ****
    "-Wall",
  
    /* These are for C++.  */
!   "+e0",
!   "+e1",
!   "+e2",
    "-fsave-memoized",
    "-fno-save-memoized",
    "-fSOS",
--- 562,570 ----
    "-Wall",
  
    /* These are for C++.  */
!   "-+e0",
!   "-+e1",
!   "-+e2",
    "-fsave-memoized",
    "-fno-save-memoized",
    "-fSOS",
------------------------------------------------------------------------------

If the - is not put before the + here then this bit of code at line
2853 in toplev.c will not find the option and lang_decode_option()
will not be called.

      for (j = 0; lang_options[j] != 0; j++)
	if (!strncmp (argv[i], lang_options[j],
		      strlen (lang_options[j])))
	  break;
      if (lang_options[j] != 0)
	/* If the option is valid for *some* language,
	   treat it as valid even if this language doesn't understand it.  */
	lang_decode_option (argv[i]);

Martin Tomes

Janet:    mtomes@uk.co.eurotherm
Internet: mtomes@eurotherm.co.uk
UUCP:     {uknet,uunet}!etherm!mtomes
Technical Details
Message-ID: <16723.9211101650@chough.eurotherm.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!etherm.co.UK!mt00

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!etherm.co.UK!mt00
From: mt00@etherm.co.UK (Martin Tomes)
Subject: g++ 2.3.1 does not recognise +e[012] options.
Message-ID: <16723.9211101650@chough.eurotherm.co.uk>
Sender: gnulists@ai.mit.edu
Organization: Eurotherm Controls Limited.
Distribution: gnu
Date: Tue, 10 Nov 1992 16:50:07 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 48