Path: news.mv.net!news.shore.net!newsfeed.mathworks.com!newsfeed.direct.ca!look.ca!paloalto-snh1.gtei.net!news.gtei.net!dfiatx1-snr1.gtei.net.POSTED!not-for-mail From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc bug ? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 X-Trace: /K49oEIlYu2w7o+/g3t/awiTibBhvSX2MxGlEuCRsSEQap5iThK+pIblDq5p6uAoClRS+wYX+21N!bIp/+G+iYgKnl9arkqRuN5ZjoqdmUaSh2cVpRrUf/Yjd7oKtM9PwrIq+jIb2ZOgVW2YjXIhioaGt!9Et+J0s= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 06 Sep 2000 12:03:04 GMT Distribution: world Date: Wed, 06 Sep 2000 12:03:04 GMT Xref: news.mv.net comp.os.msdos.djgpp:103200 On Wed, 06 Sep 2000 08:33:43 GMT, "Davy" wrote: >Hello, > >when a build my C app with gcc2952, i receive this error message : > >poly1.c: In function `main': >poly1.c:87: warning: return type of `main' is not `int' >poly1.c:240: Invalid `asm' statement: >poly1.c:240: fixed or forbidden register 2 (cx) was spilled for class CREG. >poly1.c:319: Invalid `asm' statement: >poly1.c:319: fixed or forbidden register 2 (cx) was spilled for class CREG. > >but when i build it with an old gcc version (281), it works correctly. Not a GCC bug. You were using illegal syntax, and GCC 2.95.x is a bit more strict about that than 2.8.x was. http://www.delorie.com/djgpp/v2faq/faq8_17.html http://egcs.cygnus.com/faq.html#asmclobber -- MS (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease, multiple sclerosis (see). This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/