Skip to content

Commit ad4ffde

Browse files
committed
Distribute version without 128-bit integers
1 parent 8e01137 commit ad4ffde

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

.github/workflows/main.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ jobs:
1313

1414
strategy:
1515
fail-fast: false
16+
matrix:
17+
version:
18+
- { use_patch: true, asset_name: "gcc-13-without-int128.deb" }
19+
- { use_path: false, asset_name: "gcc-13.deb" }
1620

1721
steps:
1822
- uses: actions/checkout@v2
1923

2024
- name: Install mpfr
2125
run: sudo apt-get install gcc-10 libmpfr-dev libmpc-dev
2226

27+
- name: Apply patch to disable 128-bit integers
28+
if: matrix.version.use_patch
29+
run: git apply patches/0001-Disable-128-bit-integers-for-testing-purposes.patch
30+
2331
- name: Build libgccjit
2432
run: |
2533
cd ..
@@ -52,14 +60,15 @@ jobs:
5260
5361
- name: Create tag
5462
if: github.ref == 'refs/heads/master'
63+
continue-on-error: true
5564
uses: laputansoft/[email protected]
5665
with:
5766
github_token: ${{ secrets.GITHUB_TOKEN }}
5867
create_annotated_tag: true
5968
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
6069

6170
- name: Create release
62-
if: github.ref == 'refs/heads/master'
71+
if: github.ref == 'refs/heads/master' && !matrix.version.use_patch
6372
uses: svenstaro/upload-release-action@v2
6473
with:
6574
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -73,5 +82,5 @@ jobs:
7382
with:
7483
repo_token: ${{ secrets.GITHUB_TOKEN }}
7584
file: /home/runner/work/gcc/gcc-13.deb
76-
asset_name: gcc-13.deb
85+
asset_name: ${{ matrix.version.asset_name }}
7786
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
From f8f19b4749ef849c814cb24c104e53c991488310 Mon Sep 17 00:00:00 2001
2+
From: Antoni Boucher <[email protected]>
3+
Date: Fri, 16 Feb 2024 12:04:40 -0500
4+
Subject: [PATCH] Disable 128-bit integers for testing purposes
5+
6+
---
7+
gcc/config/i386/i386-jit.cc | 2 +-
8+
gcc/jit/jit-playback.cc | 8 ++++----
9+
2 files changed, 5 insertions(+), 5 deletions(-)
10+
11+
diff --git a/gcc/config/i386/i386-jit.cc b/gcc/config/i386/i386-jit.cc
12+
index 49e54aa7990..67c50bdc6dd 100644
13+
--- a/gcc/config/i386/i386-jit.cc
14+
+++ b/gcc/config/i386/i386-jit.cc
15+
@@ -68,7 +68,7 @@ ix86_jit_register_target_info (void)
16+
std::string cpu = arch.substr (arg_pos, end_pos - arg_pos);
17+
jit_target_set_arch (cpu);
18+
19+
- jit_target_set_128bit_int_support (targetm.scalar_mode_supported_p (TImode));
20+
+ //jit_target_set_128bit_int_support (targetm.scalar_mode_supported_p (TImode));
21+
22+
if (TARGET_MMX)
23+
jit_add_target_info ("target_feature", "mmx");
24+
diff --git a/gcc/jit/jit-playback.cc b/gcc/jit/jit-playback.cc
25+
index 6b0522d6f88..73efa6b5bc0 100644
26+
--- a/gcc/jit/jit-playback.cc
27+
+++ b/gcc/jit/jit-playback.cc
28+
@@ -249,8 +249,8 @@ get_tree_node_for_type (enum gcc_jit_types type_)
29+
case GCC_JIT_TYPE_UINT64_T:
30+
return uint64_type_node;
31+
case GCC_JIT_TYPE_UINT128_T:
32+
- if (targetm.scalar_mode_supported_p (TImode))
33+
- return uint128_type_node;
34+
+ /*if (targetm.scalar_mode_supported_p (TImode))
35+
+ return uint128_type_node;*/
36+
37+
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
38+
type_);
39+
@@ -265,8 +265,8 @@ get_tree_node_for_type (enum gcc_jit_types type_)
40+
case GCC_JIT_TYPE_INT64_T:
41+
return intDI_type_node;
42+
case GCC_JIT_TYPE_INT128_T:
43+
- if (targetm.scalar_mode_supported_p (TImode))
44+
- return intTI_type_node;
45+
+ /*if (targetm.scalar_mode_supported_p (TImode))
46+
+ return intTI_type_node;*/
47+
48+
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
49+
type_);
50+
--
51+
2.43.0
52+

0 commit comments

Comments
 (0)