Xref: utzoo comp.graphics:15027 comp.windows.open-look:272 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!karazm.math.uh.edu!jet From: jet@karazm.math.uh.edu (J. Eric Townsend) Newsgroups: comp.graphics,comp.windows.open-look Subject: Re: SRGP and openwindows ? Keywords: SGRP, openwindows, cc, gcc Message-ID: <1990Dec16.185045.2937@lavaca.uh.edu> Date: 16 Dec 90 18:50:45 GMT References: <1990Dec15.170428.8738@sol.cs.wmich.edu> Sender: nntppost@lavaca.uh.edu (NNTP Posting Service) Organization: University of Houston -- Department of Mathematics Lines: 20 In article <1990Dec15.170428.8738@sol.cs.wmich.edu> john@sol.cs.wmich.edu (John Kapenga) writes: >I have been trying to get the SGRP library (Foley et al) to compile >correctly under SUNs stock openwindows 2.0 on sparcs. SGRP was compiled >with gcc 1.37.1 and flags effecting gcc to cc linkage were tried. [...] >GCCFLAGS = -fpcc-struct-return There is a known bug in gcc-1.37.1 with passing structs over the stack. It breaks regardless of what flags you use. You have a two solutions: 1. Don't pass/return stacks. This is what all good C programmers should strive for. 2. Don't use gcc. -- J. Eric Townsend Internet: jet@uh.edu Bitnet: jet@UHOU Systems Mangler - UH Dept. of Mathematics - (713) 749-2120 "If you are the system administrator and this is the first time you are logging into your system, use the login name root." -- IBM RS/6000 docs