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/2177: code generated segementation faults inappropriately



>Number:         2177
>Category:       c
>Synopsis:       code generated segementation faults inappropriately
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 05 01:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dean Wakerley
>Release:        gcc version 2.95.3 19991030 (prerelease),gcc version 2.95.2 19991024 (release),gcc version 2.97 20010205 (experimental)
>Organization:
>Environment:
Linux Mandrake 7.1 (out of box), on two machines Dell XPS P133c pentium 133Mhz, Custom box Supermicro P6SBU motherboard, 128Mb, Pentium II 400Mhz
>Description:
test.c compiles ok, but 
the statement 'return ch;' causes segmentation fault for the ch=0x20000000. The values 0x80000000 and 0x2000 work ok. The problems seem to involve bits 16-30.

The problem exists in code generated by all versions of compiler I've entered in the Release field.
>How-To-Repeat:

>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]