c++/894: register asm spec may be ignored

rth@redhat.com rth@redhat.com
Sun Nov 26 10:56:00 GMT 2000


>Number:         894
>Category:       c++
>Synopsis:       register asm spec may be ignored
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 26 10:56:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Richard Henderson
>Release:        2.97 20001125
>Organization:
>Environment:
any
>Description:
If the name of the variable matches the register name,
the asmspec is ignored.
>How-To-Repeat:
A minimal x86 test case (for visual inspection only) is

  void foo()
  {
    register void *esp __asm__ ("esp");
    esp = 0;
  }
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list