home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / patches / gcc-2_95_2-x86-win32-patches.zi / gcc-2.95.2-patches / broken-down / gcc-2.95.2-c++-linkage.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  1.2 KB  |  32 lines

  1. Sat Jun 26 11:51:20 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  2.  
  3.     * decl.c (start_function): Disable Jason Merrill's change on
  4.     1999-03-18 to suppress normal linkage heuristics for #pragma 
  5.     interface under MULTIPLE_SYMBOL_SPACES.
  6.  
  7. Index: gcc-2.95.2/gcc/cp/decl.c
  8. ===================================================================
  9. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cp/decl.c,v
  10. retrieving revision 1.3
  11. diff -u -3 -p -r1.3 decl.c
  12. --- gcc-2.95.2/gcc/cp/decl.c    1999/11/05 06:26:36    1.3
  13. +++ gcc-2.95.2/gcc/cp/decl.c    1999/11/05 06:34:42
  14. @@ -13555,6 +13555,9 @@ start_function (declspecs, declarator, a
  15.        DECL_NOT_REALLY_EXTERN (decl1) = 0;
  16.        DECL_INTERFACE_KNOWN (decl1) = 1;
  17.      }
  18. +#if 0
  19. +  /* FIXME: Don't use this heuristic. Breaks GNU Octave and a few other
  20. +     packages that use #pragma interface/implementation extensively.  */
  21.    else if (interface_unknown && interface_only
  22.         && (! DECL_TEMPLATE_INSTANTIATION (decl1)
  23.             || flag_alt_external_templates))
  24. @@ -13569,6 +13572,7 @@ start_function (declspecs, declarator, a
  25.        DECL_INTERFACE_KNOWN (decl1) = 1;
  26.        DECL_DEFER_OUTPUT (decl1) = 1;
  27.      }
  28. +#endif /* 0 */
  29.    else
  30.      {
  31.        /* This is a definition, not a reference.
  32.