public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24863]  New: New __attribute__((alias("target"))) requirement break aliasing assembler functions
@ 2005-11-14 21:47 arnold-j at t-online dot de
  2005-11-14 21:49 ` [Bug c/24863] " arnold-j at t-online dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: arnold-j at t-online dot de @ 2005-11-14 21:47 UTC (permalink / raw)
  To: gcc-bugs

The new requirement for (weak) symbol aliasing:

<Quote from GCC 4.0.x release notes>
Given __attribute__((alias("target"))) it is now an error if target is not a
symbol, defined in the same translation unit. This also applies to aliases
created by #pragma weak alias=target. This is because it's meaningless to
define
an alias to an undefined symbol. On Solaris, the native assembler would have
caught this error, but GNU as does not.
</Quote>

breaks compilation of code like this (example from an sh-elf target, but the
effect is architecture-independent):


extern __attribute__((weak,alias("UIE11"))) void NMI(void);
void UIE11 (void);

asm(
    "_UIE11:\tbsr\t_UIE\n\tmov.l\t@r15+,r4\t\n"
);


which is perfectly valid and worked in all of gcc 3.0.x, gcc 3.3.x and gcc
3.4.x


-- 
           Summary: New __attribute__((alias("target"))) requirement break
                    aliasing assembler functions
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arnold-j at t-online dot de


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


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

end of thread, other threads:[~2009-03-30  1:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-14 21:47 [Bug c/24863] New: New __attribute__((alias("target"))) requirement break aliasing assembler functions arnold-j at t-online dot de
2005-11-14 21:49 ` [Bug c/24863] " arnold-j at t-online dot de
2005-11-14 22:20 ` pinskia at gcc dot gnu dot org
2005-11-14 22:55 ` arnold-j at t-online dot de
2005-11-14 23:02 ` pinskia at gcc dot gnu dot org
2005-11-14 23:16 ` arnold-j at t-online dot de
2006-04-26 21:12 ` pinskia at gcc dot gnu dot org
2009-03-30  1:19 ` jsm28 at gcc dot gnu dot 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).