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 f75d8d04d36471df1dfd6c8622f561892d3d7168..92ee5ea7a64c6c162e0f41ea71159941e9b7b736 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 546af7f7261bec9b898d44a25e41d719bdff0b52..85efadb3ca190d8fa216f7bd69ff981ed87dad90 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 51861120f8feb113c7fe1d6da952be1a4850063b..2dceffb0399d3d7b68a0d12ad25c6b385e5fcdf8 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 01472879062bfaf960b69273ae7febaf31c323a2..1d4aaa2a87ecb511f860659f49b989022356011d 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.