~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Removed some checks on ancient GNUC versions. Removed -fno-exceptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
  }
124
124
 
125
125
 
126
 
/*
127
 
  Work around for broken code generated by bison 1.875.
128
 
 
129
 
  The code generated by bison 1.875a and later, bison 2.1 and bison 2.2 is ok.
130
 
  With bison 1.875 however, the generated code contains:
131
 
<pre>
132
 
  yyerrlab1:
133
 
  #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
134
 
  #endif
135
 
</pre>
136
 
  This usage of __attribute__ is illegal, so we remove it.
137
 
  See the following references for details:
138
 
  http://lists.gnu.org/archive/html/bug-bison/2004-02/msg00014.html
139
 
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14273
140
 
*/
141
 
 
142
 
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
143
 
#undef __attribute__
144
 
#define __attribute__(X)
145
 
#endif
146
 
 
147
126
#define YYDEBUG 0
148
127
 
149
128
/**