public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61079] New: #pragma fini doesn't apply without definition
@ 2014-05-06 13:48 ro at gcc dot gnu.org
  2014-05-06 13:49 ` [Bug target/61079] " ro at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2014-05-06 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61079
           Summary: #pragma fini doesn't apply without definition
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
              Host: *-*-solaris2.*
            Target: *-*-solaris2.*
             Build: *-*-solaris2.*

Consider the following testcase:

$ cat dtor-pragma-decl.c   
#pragma fini(dtor)
void dtor (void);
$ gcc -S dtor-pragma-decl.c 
$ cat dtor-pragma-decl.s
        .file   "dtor-pragma-decl.c"
        .ident  "GCC: (GNU) 4.9.0"
$ cc -S dtor-pragma-decl.c
$ cat dtor-pragma-decl.s
[...]
        .file   "dtor-pragma-decl.c"
        .section        .fini,"ax"
        call    dtor
        nop

I.e. Studio cc calls dtor from a .fini section, while gcc ignores the pragma.

I'm seeing the same behavior with __attribute__((destructor)), which newer
versions of Studio cc understand.

At least for the pragma case, which gcc implements for Studio compatiblity,
this
seems wrong.

  Rainer


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

* [Bug target/61079] #pragma fini doesn't apply without definition
  2014-05-06 13:48 [Bug target/61079] New: #pragma fini doesn't apply without definition ro at gcc dot gnu.org
@ 2014-05-06 13:49 ` ro at gcc dot gnu.org
  2015-04-22 12:00 ` jakub at gcc dot gnu.org
  2015-07-16  9:17 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2014-05-06 13:49 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.10.0


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

* [Bug target/61079] #pragma fini doesn't apply without definition
  2014-05-06 13:48 [Bug target/61079] New: #pragma fini doesn't apply without definition ro at gcc dot gnu.org
  2014-05-06 13:49 ` [Bug target/61079] " ro at gcc dot gnu.org
@ 2015-04-22 12:00 ` jakub at gcc dot gnu.org
  2015-07-16  9:17 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-22 12:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|5.0                         |5.2

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 5.1 has been released.


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

* [Bug target/61079] #pragma fini doesn't apply without definition
  2014-05-06 13:48 [Bug target/61079] New: #pragma fini doesn't apply without definition ro at gcc dot gnu.org
  2014-05-06 13:49 ` [Bug target/61079] " ro at gcc dot gnu.org
  2015-04-22 12:00 ` jakub at gcc dot gnu.org
@ 2015-07-16  9:17 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-16  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|5.2                         |5.3

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 5.2 is being released, adjusting target milestone to 5.3.


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

end of thread, other threads:[~2015-07-16  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 13:48 [Bug target/61079] New: #pragma fini doesn't apply without definition ro at gcc dot gnu.org
2014-05-06 13:49 ` [Bug target/61079] " ro at gcc dot gnu.org
2015-04-22 12:00 ` jakub at gcc dot gnu.org
2015-07-16  9:17 ` rguenth 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).