static void printIndentMessage (FILE *p_stream, /*@only@*/ cstring p_sc, int p_indent)
/*@modifies *p_stream@*/ ;
-# ifndef NOLCL
static int lclerrors = 0;
-# endif
-
static size_t lastfileloclen = 10;
static /*@only@*/ cstring lastmsg = cstring_undefined;
static int mcount = 0;
&& context_getFlag (FLG_SHOWSCAN))
{
llflush ();
- displayScanOpen (cstring_makeLiteral ("< more preprocessing ."));
+ displayScanOpen (cstring_makeLiteral ("more preprocessing ."));
llassertprotect (!s_needsPrepare);
s_needsPrepare = TRUE;
}
{
if (!bool_equal (ctype_isSigned (ut1), ctype_isSigned (ut2)))
{
- hcode = FLG_IGNORESIGNS;
+ if (ctype_isArbitraryIntegral (ctype_realType (ut1))
+ && !ctype_isArbitraryIntegral (ctype_realType (ut2)))
+ {
+ hcode = FLG_MATCHANYINTEGRAL;
+ }
+ else if (ctype_isArbitraryIntegral (ctype_realType (ut2))
+ && !ctype_isArbitraryIntegral (ctype_realType (ut1)))
+ {
+ hcode = FLG_MATCHANYINTEGRAL;
+ }
+ else
+ {
+ hcode = FLG_IGNORESIGNS;
+ }
}
else
{
if (hcode != INVALID_FLAG && hcode != ocode)
{
code = hcode;
- llshowhint (code);
+ if (context_flagOn (code, fl))
+ {
+ /* The flag is alreay set, something buggy in the flag code */
+ llcontbug (message ("No hint available, flag %s is already set.",
+ flagcode_unparse (code)));
+ }
+ else
+ {
+ llshowhint (code);
+ }
}
else
{
llexit (LLFAILURE);
}
-# ifndef NOLCL
void
lclfatalbug (char *msg)
{
printBugReport ();
llexit (LLFAILURE);
}
-# endif
void
checkParseError (void)
inbug = FALSE;
}
-# ifndef NOLCL
void
lclbug (/*@only@*/ cstring s)
{
fprintf (g_errorstream, " (attempting to continue, results may be incorrect)\n");
closeMessage ();
}
-# endif
void
xllfatalerror (char *srcFile, int srcLine, cstring s)
llexit (LLFAILURE);
}
-# ifndef NOLCL
bool
lclHadError (void)
{
lclerror (id, message ("Identifier redeclared: %s", s));
}
}
-# endif
void genppllerror (flagcode code, /*@only@*/ cstring s)
{
void displayScan (cstring msg)
{
+ if (s_scanOpen)
+ {
+ displayScanClose ();
+ }
+
llassert (!s_scanOpen);
if (context_getFlag (FLG_SHOWSCAN))
{
+ showHerald ();
fprintf (g_messagestream, "< %s >\n", cstring_toCharsSafe (msg));
(void) fflush (g_messagestream);
}
void displayScanOpen (cstring msg)
{
+ if (s_scanOpen)
+ {
+ displayScanClose ();
+ }
+
llassert (!s_scanOpen);
s_scanOpen = TRUE;