public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/62108] New: Resolution of mismatched __attribute__ ((__section__ (""))) changes between 4.9 and 4.10.
@ 2014-08-12 16:01 jgreenhalgh at gcc dot gnu.org
  2014-08-12 16:20 ` [Bug ipa/62108] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-08-12 16:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 62108
           Summary: Resolution of mismatched __attribute__ ((__section__
                    (""))) changes between 4.9 and 4.10.
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jgreenhalgh at gcc dot gnu.org

In this testcase:

void func(void);

void __attribute__((__section__("bar")))
func (void) 
{
}

There is a mismatch between the section attribute given to the prototype (none,
so ".text") and the definition ("bar") of func.

Compiling this testcase with a 4.9 and a 4.10 compiler using

  gcc test.c -c

and dumping with

  objdump -x 

Gives different results between 4.9.1 (4.9.1 release) and 4.10.0 (20140803
(experimental)):

$ objdump -x 4.9.o | grep func

0000000000000000 g     F bar    0000000000000006 func

$ objdump -x 4.10.o | grep func

0000000000000000 g     F .text    0000000000000007 func

This trips up an ARM kernel build.

We should either error on the mismatch, provide a consistent behaviour, or
document the change if this is expected.


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

* [Bug ipa/62108] Resolution of mismatched __attribute__ ((__section__ (""))) changes between 4.9 and 4.10.
  2014-08-12 16:01 [Bug ipa/62108] New: Resolution of mismatched __attribute__ ((__section__ (""))) changes between 4.9 and 4.10 jgreenhalgh at gcc dot gnu.org
@ 2014-08-12 16:20 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-08-12 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Exact dup of my bug which I filed and even contains a patch which I need to
submit.

*** This bug has been marked as a duplicate of bug 61848 ***


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

end of thread, other threads:[~2014-08-12 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-12 16:01 [Bug ipa/62108] New: Resolution of mismatched __attribute__ ((__section__ (""))) changes between 4.9 and 4.10 jgreenhalgh at gcc dot gnu.org
2014-08-12 16:20 ` [Bug ipa/62108] " pinskia 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).