From nobody@FreeBSD.org  Mon Oct 25 14:42:53 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AEDB310656A4
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2010 14:42:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9CC308FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2010 14:42:53 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9PEgrB9029051
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2010 14:42:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o9PEgrH8029048;
	Mon, 25 Oct 2010 14:42:53 GMT
	(envelope-from nobody)
Message-Id: <201010251442.o9PEgrH8029048@www.freebsd.org>
Date: Mon, 25 Oct 2010 14:42:53 GMT
From: Sylvain Defresne <sdefresne@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gcc fail with internal compiler error when using -finput-charset option
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151716
>Category:       gnu
>Synopsis:       gcc(1) fail with internal compiler error when using -finput-charset option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          suspended
>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:  Tue Feb 15 00:07:32 UTC 2011
>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:

From: Alexander Best <arundel@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: misc/151716: gcc fail with internal compiler error when using -finput-charset option
Date: Tue, 26 Oct 2010 21:48:32 +0000

 i'm getting the following under HEAD (r214249; amd64):
 
 taku% gcc -c empty.cpp -finput-charset=iso-8859-15
 cc1plus: error: no iconv implementation, cannot convert from iso-8859-15 to UTF-8
 
 otaku% locale
 LANG=
 LC_CTYPE=de_DE.ISO8859-15
 LC_COLLATE=en_GB.ISO8859-15
 LC_TIME=de_DE.ISO8859-15
 LC_NUMERIC=de_DE.ISO8859-15
 LC_MONETARY=de_DE.ISO8859-15
 LC_MESSAGES=en_GB.ISO8859-15
 LC_ALL=
 
 otaku% 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]
 
 cheers.
 alex
 
 -- 
 a13x
State-Changed-From-To: open->suspended 
State-Changed-By: arundel 
State-Changed-When: Tue Feb 15 00:07:01 UTC 2011 
State-Changed-Why:  
Mark suspended. Awaiting patches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151716 
>Unformatted:
