From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30335 invoked by alias); 12 May 2003 09:36:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30186 invoked by uid 71); 12 May 2003 09:36:00 -0000 Resent-Date: 12 May 2003 09:36:00 -0000 Resent-Message-ID: <20030512093600.30185.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ivan@vmfacility.fr Received: (qmail 18330 invoked by uid 48); 12 May 2003 09:33:22 -0000 Message-Id: <20030512093322.18329.qmail@sources.redhat.com> Date: Mon, 12 May 2003 09:36:00 -0000 From: ivan@vmfacility.fr Reply-To: ivan@vmfacility.fr To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/10743: Build error for CPP when building Cross compiler and host and target have diff character sets (i370) X-SW-Source: 2003-05/txt/msg01133.txt.bz2 List-Id: >Number: 10743 >Category: target >Synopsis: Build error for CPP when building Cross compiler and host and target have diff character sets (i370) >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 12 09:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Ivan Warren >Release: gcc 3.2.3 >Organization: >Environment: Host i686-linux, Target i370-ibm-mvs >Description: When attempting a cross compile build, cpp0 cannot be built because it is refereing to macro 'MVS_MAPCHAR' in cpplex.c which is mapped to mvs_map_char in gcc/config/i370.[ch] (which belongs in libbackend.a). Commenting out the ifdef/endif allows building the cpp, but resulting character constants are then ASCII (and not EBCDIC). My belief is that this will affect any attempt at creating a cross compiler when host and target need a backend specific character translator. I understand what I am attempting may not be supported, but this issue could affect any further attempts at building a clean cross compiler. >How-To-Repeat: ../gcc-3.3.3/configure --target=i370-ibm-mvs --enable-languages=c make (note : the build errors I get on the C library are expected.. I am only interrested in the assembler output of the C compiler and do my own C Library - freestanding compiles, and my target is NOT a Un*x variant).. >Fix: I have no readilly available fix for this issue. The problem lies in the interdependance created by invoking MAP_CHARACTER from within cpplex.c which creates a dependance by cpplex.c for libbackend.a, while libbackend.a cannot be used on cpp0. >Release-Note: >Audit-Trail: >Unformatted: