This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52791] New: structure should always be returned by passing a hidden argument with ms_abi, x86_64


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

             Bug #: 52791
           Summary: structure should always be returned by passing a
                    hidden argument with ms_abi, x86_64
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: piotr@codeweavers.com


Created attachment 27044
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27044
program that demonstrates the problem

Even if structure returned by function is small it should be passed as hidden
argument, pointer to it should be returned when ms_abi is used.

I've attached a program that demonstrates this problem.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]