From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21406 invoked by alias); 15 May 2007 15:12:03 -0000 Received: (qmail 21390 invoked by uid 22791); 15 May 2007 15:12:00 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 May 2007 15:11:56 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id l4FFBq44032412 for ; Tue, 15 May 2007 08:11:52 -0700 Received: from an-out-0708.google.com (anac10.prod.google.com [10.100.54.10]) by zps76.corp.google.com with ESMTP id l4FFBlPS030873 for ; Tue, 15 May 2007 08:11:47 -0700 Received: by an-out-0708.google.com with SMTP id c10so565794ana for ; Tue, 15 May 2007 08:11:47 -0700 (PDT) Received: by 10.100.86.8 with SMTP id j8mr5499713anb.1179241904222; Tue, 15 May 2007 08:11:44 -0700 (PDT) Received: by 10.100.123.19 with HTTP; Tue, 15 May 2007 08:11:44 -0700 (PDT) Message-ID: <38a0d8450705150811n3ebc9c0cm5487434a180668dd@mail.gmail.com> Date: Tue, 15 May 2007 15:12:00 -0000 From: "Rafael Espindola" To: gcc-patches Subject: [PATCH] fix bootstrap on i686 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4301_27109845.1179241904126" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00974.txt.bz2 ------=_Part_4301_27109845.1179241904126 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 491 This patch fixes the bootstrap by making c_common_signed_or_unsigned_type behave as c_common_unsigned_type used to. In particular, when passed a long it will return a long even if another type has the same size. This is currently bootstraping on a x86-64 and on a i686 (both linux). OK if it bootstraps and has no regressions? Cheers, -- Rafael Avila de Espindola Google Ireland Ltd. Gordon House Barrow Street Dublin 4 Ireland Registered in Dublin, Ireland Registration Number: 368047 ------=_Part_4301_27109845.1179241904126 Content-Type: text/x-patch; name=fix.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_f1qhyxlz Content-Disposition: attachment; filename="fix.patch" Content-length: 3148 SW5kZXg6IGdjYy9jLWNvbW1vbi5jCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K LS0tIGdjYy9jLWNvbW1vbi5jCShyZXZpc2lvbiAxMjQ3NDEpCisrKyBnY2Mv Yy1jb21tb24uYwkod29ya2luZyBjb3B5KQpAQCAtMjA2NSwxMCArMjA2NSwz NyBAQAogdHJlZQogY19jb21tb25fc2lnbmVkX29yX3Vuc2lnbmVkX3R5cGUg KGludCB1bnNpZ25lZHAsIHRyZWUgdHlwZSkKIHsKKyAgdHJlZSB0eXBlMTsK ICAgaWYgKCFJTlRFR1JBTF9UWVBFX1AgKHR5cGUpCiAgICAgICB8fCBUWVBF X1VOU0lHTkVEICh0eXBlKSA9PSB1bnNpZ25lZHApCiAgICAgcmV0dXJuIHR5 cGU7CiAKKyAgdHlwZTEgPSBUWVBFX01BSU5fVkFSSUFOVCAodHlwZSk7Cisg IGlmICh0eXBlMSA9PSBzaWduZWRfY2hhcl90eXBlX25vZGUgfHwgdHlwZTEg PT0gY2hhcl90eXBlX25vZGUgfHwgdHlwZTEgPT0gdW5zaWduZWRfY2hhcl90 eXBlX25vZGUpCisgICAgcmV0dXJuIHVuc2lnbmVkcCA/IHVuc2lnbmVkX2No YXJfdHlwZV9ub2RlIDogc2lnbmVkX2NoYXJfdHlwZV9ub2RlOworICBpZiAo dHlwZTEgPT0gaW50ZWdlcl90eXBlX25vZGUgfHwgdHlwZTEgPT0gdW5zaWdu ZWRfdHlwZV9ub2RlKQorICAgIHJldHVybiB1bnNpZ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m IHdlIGNoYW5nZSBtb2Rlcywgd2UgbWF5Cg== ------=_Part_4301_27109845.1179241904126--