From: Matthias Klose <doko@cs.tu-berlin.de>
To: Akim Demaille <akim@epita.fr>
Cc: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>,
debian-gcc@lists.debian.org, gcc@gcc.gnu.org,
gcc-patches@gcc.gnu.org, zack@codesourcery.com,
Bison Bugs <bug-bison@gnu.org>
Subject: Re: gcc-3_2-branch bootstrap failure when using bison-1.50
Date: Tue, 15 Oct 2002 03:06:00 -0000 [thread overview]
Message-ID: <15787.53365.2349.727456@gargle.gargle.HOWL> (raw)
In-Reply-To: <mv4it05mlqb.fsf@nostromo.lrde.epita.fr>
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 1885 bytes --]
Akim Demaille writes:
>
> | Attached are backports of patches I found on the mailing
> | lists (c, cp and java). Checked today's CVS with 1.35, CVS with the
> | patch attached with 1.35 and with 1.50. cp and java don't show
> | regressions. for c:
> |
> | - CVS and CVS+patch, both bison-1.35: no regressions.
> | - bison-1.35 and bison-1.50, both CVS+patch:
> |
> | --- test-summary-1.35 2002-10-14 00:16:08.000000000 +0200
> | +++ test-summary-1.50 2002-10-13 13:55:39.000000000 +0200
> | @@ -39,11 +39,43 @@
> | FAIL: gcc.c-torture/compile/20020927-1.c, -O3 -g
> | FAIL: gcc.c-torture/execute/loop-2e.c execution, -Os
> | FAIL: gcc.c-torture/execute/loop-3c.c execution, -Os
> | +FAIL: gcc.dg/noncompile/920923-1.c (test for errors, line 69)
> | +FAIL: gcc.dg/noncompile/920923-1.c (test for errors, line 72)
> | +FAIL: gcc.dg/noncompile/920923-1.c (test for errors, line 74)
> | +FAIL: gcc.dg/noncompile/920923-1.c (test for errors, line 77)
> [...]
>
> Could someone given some details on these errors? I have frequently
> used pre-1.50 to bootstrap GCC, with success. Unfortunately, due to
> some stupid policy here, I have stopped downloading GCC and checking
> it with the current Bisons. Nevertheless, I can't imagine what
> incompatibility can have been introduced in the meanwhile.
attched is the log of the first testcase run and the testcase.
> Also, I'm not sure how
>
> | - CVS and CVS+patch, both bison-1.35: no regressions.
> | - bison-1.35 and bison-1.50, both CVS+patch:
>
> should be read: it seems to say that there are no regressions with the
> patch and 1.35 (line 1),
comparing a build "current CVS" and "current CVS + backport patch",
both built with 1.35: no regressions.
> and there are regressions with the patch and 1.35 (line 2).
yes, regressions building "current CVS + backport patch", built with
bison-1.35 and bison-1.50.
[-- Attachment #2: gcc.log --]
[-- Type: application/octet-stream, Size: 16479 bytes --]
Executing on host: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/build/gcc/xgcc -B/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/build/gcc/ /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c -O0 -S -o 920923-1.s (timeout = 300)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: syntax error before "unsigned"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: warning: useless keyword or type name in empty declaration
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: warning: empty declaration
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:4: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:4: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:8: parse error before '*' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:8: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:10: parse error before "BYTE"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:10: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:12: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: parse error before '*' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:18: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:20: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:21: parse error before '.' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:27: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:27: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:32: parse error before '->' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:42: parse error before '->' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:49: `l2_base' undeclared here (not in a function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:49: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:50: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `a_translate':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:55: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:58: syntax error before "p_addr"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: `ITEMBITS' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: (Each undeclared identifier is reported only once
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: for each function it appears in.)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: `hash_mask' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:61: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:61: parse error before '{' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:66: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: `p_addr' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: decrement of pointer to unknown structure
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: arithmetic on pointer to an incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:72: `BUCKET_FULL' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:74: `caddr_t' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:74: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:77: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `flush_hash':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: `caddr_t' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:94: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:94: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:95: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:95: `VA_EMPTY' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `init_mem':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:104: `BYTE' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:104: parse error before ')' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:105: parse error before ')' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:110: `hash_num' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:110: `INIT_NUM_ENTRIES' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:111: sizeof applied to an incomplete type
compiler exited with status 1
output is:
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: syntax error before "unsigned"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: warning: useless keyword or type name in empty declaration
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:1: warning: empty declaration
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:4: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:4: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:8: parse error before '*' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:8: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:10: parse error before "BYTE"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:10: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:12: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: parse error before '*' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:16: warning: no semicolon at end of struct or union
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:18: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:20: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:21: parse error before '.' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:27: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:27: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:32: parse error before '->' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:42: parse error before '->' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:49: `l2_base' undeclared here (not in a function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:49: warning: data definition has no type or storage class
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:50: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `a_translate':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:55: parse error before "caddr_t"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:58: syntax error before "p_addr"
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: `ITEMBITS' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: (Each undeclared identifier is reported only once
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: for each function it appears in.)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:59: `hash_mask' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:61: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:61: parse error before '{' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:66: parse error before '}' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: `p_addr' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: decrement of pointer to unknown structure
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: arithmetic on pointer to an incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:69: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:72: `BUCKET_FULL' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:74: `caddr_t' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:74: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:77: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `flush_hash':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: `caddr_t' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:93: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:94: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:94: parse error before numeric constant
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:95: dereferencing pointer to incomplete type
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:95: `VA_EMPTY' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c: In function `init_mem':
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:104: `BYTE' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:104: parse error before ')' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:105: parse error before ')' token
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:110: `hash_num' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:110: `INIT_NUM_ENTRIES' undeclared (first use in this function)
/mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/gcc/testsuite/gcc.dg/noncompile/920923-1.c:111: sizeof applied to an incomplete type
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 1)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 4)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 8)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 10)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 12)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 16)
PASS: gcc.dg/noncompile/920923-1.c (test for warnings, line 18)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 20)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 21)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 27)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 32)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 42)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 49)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 50)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 55)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 58)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 59)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 61)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 66)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 69)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 72)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 74)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 77)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 93)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 94)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 95)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 104)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 105)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 110)
PASS: gcc.dg/noncompile/920923-1.c (test for errors, line 111)
PASS: gcc.dg/noncompile/920923-1.c int smaller than 32 bits (test for bogus messages, line 118)
PASS: gcc.dg/noncompile/920923-1.c (test for excess errors)
[-- Attachment #3: 920923-1.c --]
[-- Type: application/octet-stream, Size: 4321 bytes --]
typedef BYTE unsigned char; /* { dg-error "syntax error|empty decl" } */
typedef int item_n;
typedef int perm_set;
struct PENT { caddr_t v_addr; };/* { dg-error "parse error|no semicolon" } */
typedef struct PENT prec;
typedef struct PENT *prec_t;
prec_t mem_hash;
BYTE *mem_base; /* { dg-error "parse error|no type" } */
struct PTE {
BYTE *p_page; /* { dg-error "parse error|no semicolon" } */
perm_set p_perms;
}; /* { dg-error "parse error" } */
typedef struct PTE pte;
struct PTP {
union {
struct *PTP p_tablep; /* { dg-error "parse error|no semicolon" } */
struct *PTE p_entry;
} u; /* { dg-warning "no type or storage class" } */
int valid;
}; /* { dg-error "parse error" } */
typedef struct PTP (u.p_tablep);/* { dg-error "parse error" } */
int pfree=0;
int pcount=0;
void
mmu_walk_find(va)
caddr_t va; /* { dg-error "parse error|no type" } */
{
BYTE *page_addr;
if (mmu_base[Level1(va)]->valid==0x0) {
l1_base = mmu_base[Level1(va)]->(u.p_tablep) = p_alloc();
mmu_base[Level1(va)]->valid = 0x3; /* { dg-error "parse error" } */
for (idx=0; idx<LEVEL1_ENTRIES; idx++)
l1_base[idx]->valid = 0x0;
goto build_level2;
} else
l1_base = mmu_base[Level1(va)]->(u.p_tablep);
if (l1_base[Level2(va)]->valid==0x0) {
build_level2:
l2_base = l1_base[Level2(va)]->(u.p_tablep) = p_alloc();
l1_base[Level2(va)]->valid = 0x3; /* { dg-error "parse error" } */
for (idx=0; idx<LEVEL2_ENTRIES; idx++)
l2_base[idx]->valid=0x0;
goto build_page;
} else
l2_base = mmu_base[Level2(va)]->(u.p_tablep);
page_addr = l2_base[Level2(va)]->valid;/* { dg-error "undeclared|no type" } */
} /* { dg-error "parse error" } */
void *
a_translate(va_op, v_addr)
int va_op;
caddr_t v_addr; /* { dg-error "parse error" } */
{
register prec_t bucket;
register caddr_t p_addr; /* { dg-error "syntax error" } */
bucket = mem_hash+((((v_addr)>>ITEMBITS))&hash_mask); /* { dg-error "undeclared|for each function" } */
do {
if (bucket->v_addr == ((v_addr)>>ITEMBITS) { /* { dg-error "incomplete type|parse error" } */
if(!(bucket->perm_set&va_op))
goto prot_fault;
return mem_base + v_addr;
}
} while((bucket++)->v_addr != ((caddr_t)0)); /* { dg-error "parse error" } */
page_miss:
p_addr = (--bucket)->p_addr; /* { dg-error "undeclared|pointer to" } */
page_type:
switch (p_addr) {
case BUCKET_FULL: /* { dg-error "undeclared" } */
enlarge_hash_table(mem_hash);
case((caddr_t)0): /* { dg-error "undeclared|parse error" } */
p_addr = fill_item_entry(va_op, v_addr);
goto page_type;
case((caddr_t)1): /* { dg-error "parse error" } */
default:
((void)(((0))?0:(__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
"FALSE", 327, "b.c"), 0)));
}
}
void
flush_hash(hasht, hash_size)
prec_t hasht;
int hash_size;
{
register prec_t bucket;
register int idx;
bucket = hasht;
for(idx=(hash_size*3)-1; idx>=0; idx--) {
bucket->v_addr = ((caddr_t)0);/* { dg-error "undeclared|pointer to|parse error" } */
bucket->p_addr = ((caddr_t)0);/* { dg-error "pointer to|parse error" } */
bucket->perm_set = VA_EMPTY; /* { dg-error "undeclared|pointer to" } */
}
}
extern void *calloc(__SIZE_TYPE__, __SIZE_TYPE__);
void
init_mem()
{
mem_base = (BYTE *) calloc(1024, (1<<13)); /* { dg-error "undeclared|parse error" } */
((void)((mem_base != (BYTE *)0) /* { dg-error "parse error" } */
? 0
: (__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
"mem_base != (BYTE *)0", 366, "b.c"),
0)));
hash_num = INIT_NUM_ENTRIES * 3; /* { dg-error "undeclared" } */
mem_hash = (prec_t) calloc(hash_num, sizeof(prec)); /* { dg-error "incomplete type" } */
((void)((mem_hash != (prec_t)0)
? 0
: (__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
"mem_hash != (prec_t)0", 370, "b.c"),
0)));
flush_hash(mem_hash, 32);
build_ptables(mem_base, 1024*(1<<13)); /* { dg-bogus "integer overflow" "int smaller than 32 bits" { xfail "xstormy16-*-*" } } */
}
struct tm {
int tm_sec; int tm_min; int tm_hour;
int tm_mday;int tm_mon; int tm_year;
int tm_wday;int tm_yday;int tm_isdst;
char*tm_zone; long tm_gmtoff;
};
next prev parent reply other threads:[~2002-10-15 8:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-13 5:03 Kaveh R. Ghazi
2002-10-13 21:37 ` Matthias Klose
2002-10-14 6:46 ` Akim Demaille
2002-10-14 7:17 ` Akim Demaille
2002-10-15 3:06 ` Matthias Klose [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-13 5:12 Kaveh R. Ghazi
2002-10-15 1:34 ` Mark Mitchell
2002-10-15 2:18 ` Zack Weinberg
2002-10-12 18:18 Matthias Klose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15787.53365.2349.727456@gargle.gargle.HOWL \
--to=doko@cs.tu-berlin.de \
--cc=akim@epita.fr \
--cc=bug-bison@gnu.org \
--cc=debian-gcc@lists.debian.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
--cc=ghazi@caip.rutgers.edu \
--cc=zack@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).