public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61779] New: gcc -Og fails with impossible constraint on legal C code
@ 2014-07-11 16:23 zeccav at gmail dot com
  2014-07-14 11:40 ` [Bug c/61779] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: zeccav at gmail dot com @ 2014-07-11 16:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61779

            Bug ID: 61779
           Summary: gcc -Og fails with impossible constraint on legal C
                    code
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

Created attachment 33108
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33108&action=edit
Same code as in the bug Description

The following code compiles fine without the -Og option.
Compiled with -Og gcc fails.

/* gcc -Og error: impossible constraint in ‘asm’ */
extern unsigned long long __sdt_unsp;
void
f(void)
{
 for (;;)
  __asm__ (".pushsection .note.stapsdt" "," "\"?\"" "," "\"note\"" "\n" ".4byte
992f-991f" "," "994f-993f" "," "3" "\n" ".asciz \"%n[_SDT_S1]@%[_SDT_A1]\""
"\n" :: [_SDT_S1] "n" (((!__extension__ (__builtin_constant_p ((((unsigned long
long) (__typeof (__builtin_choose_expr (((__builtin_classify_type (0) + 3) &
-4) == 4, (0), 0U))) __sdt_unsp) ) == 0) )) ? 1 : -1) ), [_SDT_A1] "nor"
((0)));
}
>From gcc-bugs-return-456124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jul 11 16:26:21 2014
Return-Path: <gcc-bugs-return-456124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6108 invoked by alias); 11 Jul 2014 16:26:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5969 invoked by uid 48); 11 Jul 2014 16:26:11 -0000
From: "zeccav at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/61779] gcc -Og fails with impossible constraint on legal C code
Date: Fri, 11 Jul 2014 16:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zeccav at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61779-4-JS6v2EU9Ov@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-07/txt/msg00715.txt.bz2
Content-length: 192

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida779

--- Comment #1 from Vittorio Zecca <zeccav at gmail dot com> ---
I forgot to say that gcc 4.9.0 fails but compiles correctly on gcc 4.8.3.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-25 11:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-11 16:23 [Bug c/61779] New: gcc -Og fails with impossible constraint on legal C code zeccav at gmail dot com
2014-07-14 11:40 ` [Bug c/61779] " rguenth at gcc dot gnu.org
2014-07-14 13:53 ` rguenth at gcc dot gnu.org
2014-07-15  7:51 ` rguenth at gcc dot gnu.org
2014-07-15 10:03 ` zeccav at gmail dot com
2014-07-15 10:13 ` rguenther at suse dot de
2014-07-15 15:05 ` zeccav at gmail dot com
2014-07-17  7:53 ` rguenth at gcc dot gnu.org
2014-07-17  7:53 ` rguenth at gcc dot gnu.org
2014-07-24 14:38 ` zeccav at gmail dot com
2014-07-25  9:38 ` rguenth at gcc dot gnu.org
2014-07-25 11:48 ` zeccav at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).