This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/1739: "Character constant too long" on irix6.5 with -mabi=64



>Number:         1739
>Category:       c
>Synopsis:       "Character constant too long" on irix6.5 with -mabi=64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 22 19:56:03 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Billinghurst
>Release:        cvs 20010122
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:

The following tests are failing on mips-sgi-irix6.5 with -mabi=64 with the error "character constant too long"

gcc.c-torture/compile/970214-1.c
gcc.c-torture/execute/970214-2.c
gcc.c-torture/execute/widechar-1.c
gcc.c-torture/execute/widechar-2.c
gcc.dg/c99-init-1.c
gcc.dg/cpp/if-2.c
gcc.dg/cpp/lexstrng.c
gcc.dg/cpp/paste2.c


The shortest test failing is gcc.c-torture/compile/970214-1.c

#include <stddef.h>
#define L       264
wchar_t c = L'X';

Preprocessed, this becomes

# 1 "/exd4/billingd/src/gcc/gcc/testsuite/gcc.c-torture/compile/970214-1.c"
# 1 "/exd4/billingd/obj/gcc/gcc/include/stddef.h" 1 3
# 147 "/exd4/billingd/obj/gcc/gcc/include/stddef.h" 3
typedef int ptrdiff_t;
# 199 "/exd4/billingd/obj/gcc/gcc/include/stddef.h" 3
typedef unsigned int size_t;
# 287 "/exd4/billingd/obj/gcc/gcc/include/stddef.h" 3
typedef long int wchar_t;
# 2 "/exd4/billingd/src/gcc/gcc/testsuite/gcc.c-torture/compile/970214-1.c" 2

wchar_t c = L'X';




>How-To-Repeat:
gcc -mabi=64 970214-1.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]