public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "suckfish at ihug dot co.nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/58288] New: Incorrect error message on malformed section attribute syntax.
Date: Sat, 31 Aug 2013 23:22:00 -0000	[thread overview]
Message-ID: <bug-58288-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58288

            Bug ID: 58288
           Summary: Incorrect error message on malformed section attribute
                    syntax.
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: suckfish at ihug dot co.nz

If a section attribute is malformed, then the gcc error message incorrectly
claims that the "section attribute [is] not allowed".

For the example below, a section attribute is allowed, the actual cause of the
error is that the section name is not specified.

$ cat temp.c
int a __attribute__((section(x)));
$ gcc -m32 -c temp.c
temp.c:1:5: error: section attribute not allowed for ‘a’
 int a __attribute__((section(x)));
     ^

Happens both with gcc (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1) and with current
gcc trunk (rev 202134).
>From gcc-bugs-return-428758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 31 23:23:51 2013
Return-Path: <gcc-bugs-return-428758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18326 invoked by alias); 31 Aug 2013 23:23:50 -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 18307 invoked by uid 48); 31 Aug 2013 23:23:48 -0000
From: "suckfish at ihug dot co.nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/58288] Incorrect error message on malformed section attribute syntax.
Date: Sat, 31 Aug 2013 23:23: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.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: suckfish at ihug dot co.nz
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-58288-4-1BcnqHRkHv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58288-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58288-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: 2013-08/txt/msg01682.txt.bz2
Content-length: 195

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX288

--- Comment #1 from Ralph Loader <suckfish at ihug dot co.nz> ---
Whoops I meant "not specified *correctly*" rather than just "not specified".


             reply	other threads:[~2013-08-31 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31 23:22 suckfish at ihug dot co.nz [this message]
2013-08-31 23:55 ` [Bug c/58288] " suckfish at ihug dot co.nz
2015-02-26 19:15 ` mpolacek at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58288-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).