https://bugs.llvm.org/show_bug.cgi?id=36507

            Bug ID: 36507
           Summary: Floating point varargs are not handled correctly with
                    -mno-implicit-float
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 19952
  --> https://bugs.llvm.org/attachment.cgi?id=19952&action=edit
Test case for no-implicit-float/vararg bug

If I build the attached code with:
  'clang -mno-implicit-float vartest.c -o vartest'
the double 'd' is printed as 0.0 - it's not saved into the va_list.

If I build the attached code without -mno-implicit-float:
  'clang vartest.c -o vartest'
it runs as expected, and prints d: 2.300000.  In this case the double has been
correctly saved into the va_list.

I would argue that this case shouldn't be affected by the no-implicit-float
flag and should succeed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to