| 1 |
/* This used to crash IRA with -O3 -fPIC. |
| 2 |
See PR 37333. */ |
| 3 |
/* { dg-additional-options "-fpermissive" } */ |
| 4 |
struct yy_buffer_state { |
| 5 |
int yy_is_interactive; |
| 6 |
}; |
| 7 |
static struct yy_buffer_state * * yy_buffer_stack = 0; |
| 8 |
static int yy_n_chars; |
| 9 |
int orafce_sql_yyleng; |
| 10 |
unsigned char *yy_c_buf_p = 0; |
| 11 |
extern char *orafce_sql_yytext; |
| 12 |
static const int yy_ec[256] = { }; |
| 13 |
short yy_accept[155], yy_base[193] = { }, yy_def[193] = { }; |
| 14 |
short yy_chk[738] = { }; |
| 15 |
unsigned char *yy_last_accepting_cpos; |
| 16 |
int orafce_sql_yylex (int a) |
| 17 |
{ |
| 18 |
register int yy_current_state; |
| 19 |
unsigned char *yy_cp, *yy_bp; |
| 20 |
register int yy_act; |
| 21 |
while ( 1 ) { |
| 22 |
do { |
| 23 |
char yy_c = yy_ec[*yy_cp]; |
| 24 |
if ( yy_accept[yy_current_state] ) |
| 25 |
yy_last_accepting_cpos = yy_cp; |
| 26 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 27 |
yy_current_state = yy_def[yy_current_state]; |
| 28 |
} while ( yy_current_state != 154 ); |
| 29 |
yy_find_action: |
| 30 |
yy_act = yy_accept[yy_current_state]; |
| 31 |
*yy_cp = '\0'; |
| 32 |
switch ( yy_act ) { |
| 33 |
case 2: |
| 34 |
*yy_cp = 1; |
| 35 |
return 265; |
| 36 |
case 24: |
| 37 |
case 25: |
| 38 |
addlit(orafce_sql_yytext, orafce_sql_yyleng); |
| 39 |
case 26: |
| 40 |
addlit(orafce_sql_yytext, orafce_sql_yyleng); |
| 41 |
case 53: |
| 42 |
yy_fatal_error( "flex scanner jammed" ); |
| 43 |
break; |
| 44 |
case 54: |
| 45 |
yy_cp = ++(yy_c_buf_p); |
| 46 |
unsigned long n = 0; |
| 47 |
if ( yy_buffer_stack[0]->yy_is_interactive ) |
| 48 |
for ( ; _IO_getc () != (-1) ; ++n ) |
| 49 |
yy_n_chars = n; |
| 50 |
if (a == 0) |
| 51 |
{ |
| 52 |
yy_current_state = yy_get_previous_state( ); |
| 53 |
goto yy_find_action; |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
} |