public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58218] New: -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss"
@ 2013-08-22 15:54 zeccav at gmail dot com
  2013-08-22 16:22 ` [Bug target/58218] " mikpe at it dot uu.se
  2013-08-22 18:29 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zeccav at gmail dot com @ 2013-08-22 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58218
           Summary: -mcmodel=medium cause assembler warning "ignoring
                    incorrect section type for .lbss"
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

The following statement causes an assembler warning from gcc when compiled with
-mcmodel=medium
Any other -mcmodel suboptions work fine.
This is the culprit:

struct { float x[16385]; } a = { { 0.f, } };

This bug was found by Mat Cross of NAG.


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

* [Bug target/58218] -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss"
  2013-08-22 15:54 [Bug c/58218] New: -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss" zeccav at gmail dot com
@ 2013-08-22 16:22 ` mikpe at it dot uu.se
  2013-08-22 18:29 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mikpe at it dot uu.se @ 2013-08-22 16:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> ---
I can reproduce with gcc-4.7.3.  It generates:

       .section        .lbss,"aw",@progbits

gas doesn't like ,@progbits on .lbss and ignores it; readelf on the produced .o
file then shows:

  [ 4] .lbss             NOBITS          0000000000000000 000040 010004 00 WAl 
0   0 32

which appears to confirm that @progbits is wrong.  (.bss is also NOBITS.)


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

* [Bug target/58218] -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss"
  2013-08-22 15:54 [Bug c/58218] New: -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss" zeccav at gmail dot com
  2013-08-22 16:22 ` [Bug target/58218] " mikpe at it dot uu.se
@ 2013-08-22 18:29 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-22 18:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-08-22
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 30688
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30688&action=edit
gcc49-pr58218.patch

Untested fix.


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

end of thread, other threads:[~2013-08-22 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-22 15:54 [Bug c/58218] New: -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss" zeccav at gmail dot com
2013-08-22 16:22 ` [Bug target/58218] " mikpe at it dot uu.se
2013-08-22 18:29 ` jakub at gcc dot gnu.org

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).