/* too often, if it does happen then the user pays */
/* the price */
computeControlFlow (ebbs, count, 1);
- werror (W_CONTROL_FLOW, ic->filename, ic->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, ic->filename, ic->lineno);
+ }
return;
}
remiCodeFromeBBlock (ebb, ic);
computeControlFlow (ebbs, count, 1);
- werror (W_CONTROL_FLOW, ic->filename, ic->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, ic->filename, ic->lineno);
+ }
return;
}
int noRegParams; /* Disable passing some parameters in registers */
int verbose; /* Show what the compiler is doing */
int shortis8bits; /* treat short like int or char */
+ int lessPedantic; /* disable some warnings */
int profile; /* Turn on extra profiling information */
char *calleeSaves[128]; /* list of functions using callee save */
char *excludeRegs[32]; /* registers excluded from saving */
{
/* get rid of this if */
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)
{
/* get rid of this if */
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
((IC_TRUE (loop) && IC_TRUE (loop)->key == IC_LABEL (loop->next)->key) ||
(IC_FALSE (loop) && IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)))
{
-
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,