sourcebuild.texi: Document new effective target keyword longlong64.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Sun, 16 Jun 2019 20:34:44 +0000 (20:34 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Sun, 16 Jun 2019 20:34:44 +0000 (20:34 +0000)
gcc/ChangeLog

2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* doc/sourcebuild.texi: Document new effective target keyword
longlong64.

gcc/testsuite/ChangeLog

2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* lib/target-supports.exp: Add check_effective_target_longlong64.

From-SVN: r272359

gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index f75d8d0..92ee5ea 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * doc/sourcebuild.texi: Document new effective target keyword
+       longlong64.
+
 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
index 546af7f..85efadb 100644 (file)
@@ -1357,6 +1357,9 @@ Target has @code{int} that is at 32 bits or longer.
 @item int16
 Target has @code{int} that is 16 bits or shorter.
 
+@item longlong64
+Target has 64-bit @code{long long}.
+
 @item long_neq_int
 Target has @code{int} and @code{long} with different sizes.
 
index 5186112..2dceffb 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * lib/target-supports.exp: Add check_effective_target_longlong64. 
+
 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * gcc.dg/tree-ssa/alias-access-path-4.c: New testcase.
index 0147287..1d4aaa2 100644 (file)
@@ -2617,6 +2617,15 @@ proc check_effective_target_int32plus { } {
     }]
 }
 
+# Return 1 if we're generating 64-bit long long using default options,
+# 0 otherwise.
+
+proc check_effective_target_longlong64 { } {
+    return [check_no_compiler_messages longlong64 object {
+       int dummy[sizeof (long long) == 8 ? 1 : -1];
+    }]
+}
+
 # Return 1 if we're generating 32-bit or larger pointers using default
 # options, 0 otherwise.