From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14299 invoked by alias); 22 May 2014 14:10:09 -0000 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org Received: (qmail 14283 invoked by uid 89); 22 May 2014 14:10:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-oa0-f53.google.com Received: from mail-oa0-f53.google.com (HELO mail-oa0-f53.google.com) (209.85.219.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 22 May 2014 14:10:05 +0000 Received: by mail-oa0-f53.google.com with SMTP id m1so3932470oag.26 for ; Thu, 22 May 2014 07:10:03 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.51.136 with SMTP id k8mr58818745oeo.33.1400767803127; Thu, 22 May 2014 07:10:03 -0700 (PDT) Received: by 10.60.31.65 with HTTP; Thu, 22 May 2014 07:10:03 -0700 (PDT) In-Reply-To: <5561926758764771034@unknownmsgid> References: <20140522052921.GA30609@chokladfabriken.org> <20140522071001.GA30918@chokladfabriken.org> <5561926758764771034@unknownmsgid> Date: Thu, 22 May 2014 14:10:00 -0000 Message-ID: Subject: Re: [PATCH] Make large enum constants unsigned From: Stefan Kristiansson To: Pierre Muller Cc: Stefan Kristiansson , "Maciej W. Rozycki" , cgen@sourceware.org, Alan Modra , fche@sourceware.org, Christian Svensson Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-q2/txt/msg00010.txt.bz2 On Thu, May 22, 2014 at 4:33 PM, Pierre Muller wrote: > Couldn't we support 64-bit constants already, > by adding > + (if (> (cadr e) > + #x100000000) > + "LL" "")) > Right after the conditional "U" postfix? > > This way, the pre C-99 standard would only be violated when > it is really required anyhow, no? > That would solve the standard violation problem, but the fact that enums are limited to the size of an int still remains, so it wouldn't help much. Stefan