Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 14:42:53 GMT
From:      Sylvain Defresne <sdefresne@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/151716: gcc fail with internal compiler error when using -finput-charset option
Message-ID:  <201010251442.o9PEgrH8029048@www.freebsd.org>
Resent-Message-ID: <201010251450.o9PEo2f6020431@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         151716
>Category:       misc
>Synopsis:       gcc fail with internal compiler error when using -finput-charset option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 25 14:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sylvain Defresne
>Release:        FreeBSD 8.0-RELEASE-p4 amd64
>Organization:
Eugen Systems
>Environment:
System: FreeBSD z 8.0-RELEASE-p4 FreeBSD 8.0-RELEASE-p4 #0: Mon Jul 12 20:55:11 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
When invoking gcc with the -finput-charset=iso-8859-1 option, it fails with an internal compiler error. This can be easily reproduced by trying to compile an empty source file with this option.

Error is :
  $ echo > empty.cpp
  $ gcc -c empty.cpp -finput-charset=iso-8859-1
    cc1plus: internal compiler error: Segmentation fault: 11
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html>; for instructions.
  $ gcc -v
    Using built-in specs.
    Target: amd64-undermydesk-freebsd
    Configured with: FreeBSD/amd64 system compiler
    Thread model: posix
    gcc version 4.2.1 20070719  [FreeBSD]

>How-To-Repeat:
echo > empty.cpp
gcc -c empty.cpp -finput-charset=iso-8859-1
>Fix:


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010251442.o9PEgrH8029048>