public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44995]  New: define a macro for presence of -mregnames option
@ 2010-07-19 21:45 fche at redhat dot com
  2010-07-19 21:48 ` [Bug target/44995] " pinskia at gcc dot gnu dot org
  2010-07-19 21:51 ` fche at redhat dot com
  0 siblings, 2 replies; 5+ messages in thread
From: fche at redhat dot com @ 2010-07-19 21:45 UTC (permalink / raw)
  To: gcc-bugs

In some cases, it would be useful if the presence of the gcc -mregnames
option was not only communicated to the assembler, but also to the C
program being compiled.  This comes up in an unusual usage of
inline-assembler operands, where the ambiguity between literals and
register names is a problem.  (http://sourceware.org/PR11821).
With such a macro (say, -D__GCC_REGNAMES), the inline-asm code could
emit extra code strings to allow resolution of the ambiguities.


-- 
           Summary: define a macro for presence of -mregnames option
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fche at redhat dot com


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


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

* [Bug target/44995] define a macro for presence of -mregnames option
  2010-07-19 21:45 [Bug target/44995] New: define a macro for presence of -mregnames option fche at redhat dot com
@ 2010-07-19 21:48 ` pinskia at gcc dot gnu dot org
  2010-07-19 21:51 ` fche at redhat dot com
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-19 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-07-19 21:48 -------
>ambiguity
It is not ambiguous at all in correct usage of inline-asm.  I don't support a
macro for this option at all.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|                            |powerpc*-*-*


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


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

* [Bug target/44995] define a macro for presence of -mregnames option
  2010-07-19 21:45 [Bug target/44995] New: define a macro for presence of -mregnames option fche at redhat dot com
  2010-07-19 21:48 ` [Bug target/44995] " pinskia at gcc dot gnu dot org
@ 2010-07-19 21:51 ` fche at redhat dot com
  1 sibling, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2010-07-19 21:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fche at redhat dot com  2010-07-19 21:51 -------
> It is not ambiguous at all in correct usage of inline-asm.

Well, considering that the "g" constraint can generate either a literal or
a naked register number, the ambiguity is real even for normal inline assembly.


-- 


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


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

* [Bug target/44995] define a macro for presence of -mregnames option
       [not found] <bug-44995-4@http.gcc.gnu.org/bugzilla/>
  2011-08-19  8:14 ` jan.kratochvil at redhat dot com
@ 2011-08-19 11:37 ` fche at redhat dot com
  1 sibling, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2011-08-19 11:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Frank Ch. Eigler <fche at redhat dot com> 2011-08-19 11:24:19 UTC ---
We have worked around this powerpc oddity in systemtap's recent sdt.h
versions by using both %0 and %I0 together to get a special markup for
literals vs. register names.


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

* [Bug target/44995] define a macro for presence of -mregnames option
       [not found] <bug-44995-4@http.gcc.gnu.org/bugzilla/>
@ 2011-08-19  8:14 ` jan.kratochvil at redhat dot com
  2011-08-19 11:37 ` fche at redhat dot com
  1 sibling, 0 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-08-19  8:14 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-08-19 08:05:07 UTC ---
This seems to be now related to PR 32998 -grecord-gcc-switches although that
works only with DWARF, -frecord-gcc-switches cannot differentiate between CUs.


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

end of thread, other threads:[~2011-08-19 11:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 21:45 [Bug target/44995] New: define a macro for presence of -mregnames option fche at redhat dot com
2010-07-19 21:48 ` [Bug target/44995] " pinskia at gcc dot gnu dot org
2010-07-19 21:51 ` fche at redhat dot com
     [not found] <bug-44995-4@http.gcc.gnu.org/bugzilla/>
2011-08-19  8:14 ` jan.kratochvil at redhat dot com
2011-08-19 11:37 ` fche at redhat dot com

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