[lldb-dev] apples, pears etc: how to use __builtin_availability() elsewhere?

2018-09-13 Thread René J . V . Bertin via lldb-dev
Hi,

clang has this nice runtime OS version checker but I cannot seem to find if 
this is useable anywhere except on Apple OSes.
For ObjC (and thus @available()) one can still argue that the language isn't of 
much use anywhere else, but that (lousy) argument doesn't fly 
for__builtin_available() .

Is there a list of known other platforms somewhere, or else is there at least a 
token that makes the test return false when the current platform is not listed?

If not, how is that NOT a bug?

Cheers,
R.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] [Bug 38925] New: Missing support for expresions with int128_t

2018-09-13 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=38925

Bug ID: 38925
   Summary: Missing support for expresions with int128_t
   Product: lldb
   Version: unspecified
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: david.bolvan...@gmail.com
CC: llvm-b...@lists.llvm.org

Using LLDB 6.0

clang main.c -g3
int main(void)
{
__int128_t n = 1;
n = n + n;
return n;
}


(lldb) print n
(__int128_t) $1 = 1
(lldb) print n + 6
error: supposed to interpret, but failed: Interpreter couldn't resolve a value
during execution

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] apples, pears etc: how to use __builtin_availability() elsewhere?

2018-09-13 Thread Davide Italiano via lldb-dev
On Thu, Sep 13, 2018 at 2:56 AM René J.V. Bertin via lldb-dev
 wrote:
>
> Hi,
>
> clang has this nice runtime OS version checker but I cannot seem to find if 
> this is useable anywhere except on Apple OSes.
> For ObjC (and thus @available()) one can still argue that the language isn't 
> of much use anywhere else, but that (lousy) argument doesn't fly 
> for__builtin_available() .
>
> Is there a list of known other platforms somewhere, or else is there at least 
> a token that makes the test return false when the current platform is not 
> listed?
>
> If not, how is that NOT a bug?
>

This is lldb-dev, the lldb debugger mailing list. You may consider
directing your question to cfe-dev (the clang mailing list).

--
Davide
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev