| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Tue, 21 Dec 1999 07:25:22 +0300 |
| From: | Alexey Voinov <voins AT caravan DOT ru> |
| X-Mailer: | The Bat! (v1.043) S/N 79C3AC63 |
| Reply-To: | Alexey Voinov <voins AT caravan DOT ru> |
| Message-ID: | <10309.991221@caravan.ru> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | flex & gcc 2.95.2 |
| Mime-Version: | 1.0 |
Hi!
I think I found bug in gcc 2.95.2 code generation.
look at flex generated code( flex -oyylex2.cc yylex2.y ):
----------------------------
.
.
.
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
.
.
.
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
{
.
.
.
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
{
.
.
.
----------------------------
and now assembler code generated by( g++ -S yylex2.cc )
.
.
.
.def _yy_flex_alloc__FUi AT 4; .scl 2; .type 32; .endef
_yy_flex_alloc__FUi AT 4:
^^^ why???
.
.
.
.def _yy_flex_realloc__FPvUi; .scl 3; .type 32; .endef
_yy_flex_realloc__FPvUi:
.
.
.
----------------------------
I cannot understand why @4 appended to yy_flex_alloc and not appended to
yy_flex_realloc. Functions definitions look same to me.
All calls to yy_flex_alloc are right ( call _yy_flex_alloc__FUi )
Thank you.
Alexey Voinov
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |