public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] s/390: Implement "target" attribute.
@ 2015-09-25 14:16 Dominik Vogt
  2015-09-25 14:16 ` [PATCH 2/2] " Dominik Vogt
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Dominik Vogt @ 2015-09-25 14:16 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andreas Krebbel, Ulrich Weigand

The following set of two patches implements the function
__attribute__ ((target("..."))) and the corresponding #pragma GCC
target("...") on S/390.  It comes with certain limitations:

 * It is not possible to change any options that affect the ABI or
   the definition of target macros by using the attribute (vx,
   htm, zarch and others).  Some of them are still supported but
   unable to change the definition of the corresponding target macros.
   In these cases, the pragma has to be used.  One reason for this
   is that it is not possible to change the definition of the target
   macros with the attribute, but the implementation of some features
   relies on them.

 * Even with the pragma it is not possible to switch between zarch
   and esa architecture because internal data typed would have to be
   changed at Gcc run time.

The second patch contains a long term change in the interface with
the assembler.  Currently, the compiler wrapper passes the same
-march= and -mtune= options to the compiler and the assembler.
The patch makes this obsolete by emitting ".machine" and
".machinemode" dirctives to the top of the assembly language file.
The old way ist still supported but may be removed once the
".machine" feature is supported by all as versions in the field.

The second patch depends on the first one, and both require the
(latest) change proposed in this thread:
https://gcc.gnu.org/ml/gcc-patches/2015-09/msg01546.html

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany

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

end of thread, other threads:[~2015-12-04 14:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-25 14:16 [PATCH] s/390: Implement "target" attribute Dominik Vogt
2015-09-25 14:16 ` [PATCH 2/2] " Dominik Vogt
2015-12-04 14:36   ` Andreas Krebbel
2015-09-25 15:05 ` [PATCH 1/2] " Dominik Vogt
     [not found] ` <20150925140123.GB14892@linux.vnet.ibm.com>
2015-10-16 12:33   ` Dominik Vogt
2015-10-26 10:11     ` Dominik Vogt
2015-10-26 12:16       ` Dominik Vogt
2015-10-30 14:29       ` Andreas Krebbel
2015-10-31 18:01         ` Dominik Vogt
2015-11-09  7:10           ` Andreas Krebbel
2015-12-04 14:14           ` Dominik Vogt
2015-12-04 14:36             ` Andreas Krebbel
2015-11-02  8:44         ` Dominik Vogt
2015-11-09 13:09           ` Andreas Krebbel
2015-11-17 19:23             ` Dominik Vogt
2015-11-02 10:47         ` Dominik Vogt

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