This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2177: code generated segementation faults inappropriately
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2177: code generated segementation faults inappropriately
- From: dean at wakerley dot com
- Date: 5 Mar 2001 09:36:10 -0000
- Reply-To: dean at wakerley dot com
>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: