public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10475: internal error with built in expect
@ 2003-04-24 6:36 mh37
0 siblings, 0 replies; only message in thread
From: mh37 @ 2003-04-24 6:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 10475
>Category: c
>Synopsis: internal error with built in expect
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Apr 24 06:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Mark Hayden
>Release: gcc version 3.3 20030412 (Debian prerelease)
>Organization:
>Environment:
Debian x86, testing, using gcc-3.3
>Description:
My assert()ion infrastructure causes an internal compiler error. I've included a single small source file (gorp.c) with that causes the problem and included the preprocessed file (gorp.i). No header files are needed.
gcc-3.3 -O2 -v -save-temps gorp.c
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 20030412 (Debian prerelease)
/usr/lib/gcc-lib/i386-linux/3.3/cc1 -E -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 gorp.c -O2 gorp.i
ignoring nonexistent directory "/usr/i386-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-linux/3.3/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-linux/3.3/cc1 -fpreprocessed gorp.i -quiet -dumpbase gorp.c -auxbase gorp -O2 -version -o gorp.s
GNU C version 3.3 20030412 (Debian prerelease) (i386-linux)
compiled by GNU C version 3.3 20030412 (Debian prerelease).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32135
gorp.c: In function `test':
gorp.c:59: internal compiler error: in subreg_highpart_offset, at emit-rtl.c:1319
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
typedef unsigned char uint8_t ;
typedef unsigned short uint16_t ;
typedef unsigned uint32_t ;
typedef unsigned long long uint64_t ;
typedef uint32_t count_t ;
typedef uint32_t ofs_t ;
typedef uint32_t len_t ;
typedef void * env_t ;
#define NULL (0)
#define ATTRIBUTE(x) __attribute__((x))
#define PREDICT(v,c) ((bool_t) (__builtin_expect((v),(c))))
#define PREDICT_FALSE(v) PREDICT((v), FALSE)
#define PREDICT_TRUE(v) PREDICT((v), TRUE)
#define UNUSED() ATTRIBUTE(unused)
#define NO_RETURN() ATTRIBUTE(__noreturn__)
#define IS_CONSTANT(v) __builtin_constant_p(v)
/*************************************************************/
typedef int bool_t ;
#define FALSE ((bool_t)0)
#define TRUE ((bool_t)1)
/*************************************************************/
typedef const char * string_t ;
typedef char * stringm_t ;
typedef string_t debug_t ;
/*************************************************************/
void assert_eq_fail(
uint64_t val0,
uint64_t val1,
string_t expr0,
string_t expr1,
string_t file,
uint32_t line,
string_t function
) NO_RETURN() ;
static inline
void assert_eq_help(
uint64_t const v0,
uint64_t const v1,
string_t const v0_s,
string_t const v1_s,
string_t const file,
uint32_t const line,
string_t const function
) {
if (ASSERT_PREDICT_TRUE(v0 == v1)) {
return ;
}
assert_eq_fail(v0, v1, v0_s, v1_s, file, line, function) ;
}
#define assert_eq(v0, v1) \
assert_eq_help((v0), (v1), #v0, #v1, __FILE__, __LINE__, __FUNCTION__)
/*************************************************************/
static
void test(void) {
assert_eq(0, 1) ;
}
>How-To-Repeat:
Compile gorp.c using the command line in the description above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gorp.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="g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yaW5nX3QgY29uc3QgZmlsZSwKICAgICAgICB1aW50MzJfdCBjb25zdCBsaW5l
LAogICAgICAgIHN0cmluZ190IGNvbnN0IGZ1bmN0aW9uCikgewogICAgaWYgKEFTU0VSVF9QUkVE
SUNUX1RSVUUodjAgPT0gdjEpKSB7CiAgICAgICAgcmV0dXJuIDsKICAgIH0KCiAgICBhc3NlcnRf
ZXFfZmFpbCh2MCwgdjEsIHYwX3MsIHYxX3MsIGZpbGUsIGxpbmUsIGZ1bmN0aW9uKSA7Cn0KCgoK
CgoKc3RhdGljCnZvaWQgdGVzdCh2b2lkKSB7CiAgICBhc3NlcnRfZXFfaGVscCgoMCksICgxKSwg
IjAiLCAiMSIsICJnb3JwLmMiLCA3MywgX19GVU5DVElPTl9fKSA7Cn0K
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-24 6:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 6:36 c/10475: internal error with built in expect mh37
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).