Compare commits

...
Sign in to create a new pull request.

22 commits

Author SHA1 Message Date
Fedora Release Engineering
ada66de9c4 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 20:47:30 +00:00
Jens Petersen
0a0f11217c rhel10 also needs python3-recommonmark 2025-04-28 13:04:18 +08:00
Jens Petersen
d82dc37af7 patch for sphinx ReleaseNotes wrapping errors
RHEL 10 has sphinx-7.2.6

/builddir/build/BUILD/llvm-12.0.1.src/docs/ReleaseNotes.rst:146: ERROR: Unexpected indentation.
/builddir/build/BUILD/llvm-12.0.1.src/docs/ReleaseNotes.rst:147: WARNING: Block quote ends without a blank line; unexpected unindent.
/builddir/build/BUILD/llvm-12.0.1.src/docs/ReleaseNotes.rst:153: ERROR: Unexpected indentation.
:
2025-04-28 13:01:14 +08:00
Fedora Release Engineering
73ba30c91e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 15:50:47 +00:00
Jens Petersen
5559e11e0a fix go binding test: replace removed python pipes use with shlex
llvm-lit: /builddir/build/BUILD/llvm12-12.0.1-build/llvm-12.0.1.src/utils/lit/lit/TestingConfig.py💯 fatal: unable to parse config file '/builddir/build/BUILD/llvm12-12.0.1-build/llvm-12.0.1.src/test/Bindings/Go/lit.local.cfg', traceback: Traceback (most recent call last):
  File "/builddir/build/BUILD/llvm12-12.0.1-build/llvm-12.0.1.src/redhat-linux-build/bin/../../utils/lit/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/llvm12-12.0.1-build/llvm-12.0.1.src/test/Bindings/Go/lit.local.cfg", line 2, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
FAILED: CMakeFiles/check-all /builddir/build/BUILD/llvm12-12.0.1-build/llvm-12.0.1.src/redhat-linux-build/CMakeFiles/check-all
2024-07-23 13:10:12 +08:00
Fedora Release Engineering
d927a6fe1f Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 15:52:34 +00:00
Software Management Team
d592b977e7 Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:47 +02:00
Fedora Release Engineering
4199383812 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 04:31:32 +00:00
Fedora Release Engineering
ee46304885 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 06:05:55 +00:00
Jens Petersen
550e716bbb use %py3_shebang_fix
python3-devel-3.12 no longer provides pathfix.py
but it is in python-rpm-macros
2023-07-21 16:03:21 +08:00
Fedora Release Engineering
0749a318d1 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 12:55:57 +00:00
Jerry James
a7d7109627 Port typename patch to llvm12 2023-01-31 22:49:25 -07:00
Jens Petersen
3f9a18c0f9 Add typename patch to fix test failures (Jerry James) 2023-02-01 00:30:11 +08:00
Jens Petersen
5318f258ac apply gcc12 patch by Jerry James from llvm11 2023-01-31 13:06:28 +08:00
Fedora Release Engineering
97358a7e69 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 18:10:50 +00:00
Jens Petersen
f5683ad2cf fixup handling of el9 only 0001-Deactivate-markdown-doc.patch 2022-11-23 00:45:42 +08:00
Jens Petersen
af8a381f55 epel9 s390x: disable failing compress-debug-sections-zlib.test's
/builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test:36:21: error: CHECK-FLAGS-NEXT: expected string not found in input
                    ^
<stdin>:43:10: note: scanning from here
 Offset: 0x50
         ^
<stdin>:44:2: note: possible intended match here
 Size: 22
 ^
Input file: <stdin>
Check file: /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           .
           .
           .
          38:  Name: .zdebug_foo (45)
          39:  Type: SHT_PROGBITS (0x1)
          40:  Flags [ (0x0)
          41:  ]
          42:  Address: 0x0
          43:  Offset: 0x50
next:36'0              X~~~ error: no match found
          44:  Size: 22
next:36'0     ~~~~~~~~~
next:36'1      ?        possible intended match
          45:  Link: 0
next:36'0     ~~~~~~~~
          46:  Info: 0
next:36'0     ~~~~~~~~
          47:  AddressAlignment: 8
next:36'0     ~~~~~~~~~~~~~~~~~~~~
          48:  EntrySize: 0
next:36'0     ~~~~~~~~~~~~~
          49:  }
next:36'0     ~~
           .
           .
           .
>>>>>>
--
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test (40924 of 42153)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test' FAILED ********************
Script:
--
: 'RUN: at line 3';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/yaml2obj /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml -o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o
: 'RUN: at line 4';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --compress-debug-sections=zlib /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o
: 'RUN: at line 5';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --decompress-debug-sections /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o
: 'RUN: at line 7';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
: 'RUN: at line 8';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-COMPRESSED
: 'RUN: at line 9';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-FLAGS
: 'RUN: at line 10';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-HEADER
: 'RUN: at line 11';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-HEADER
: 'RUN: at line 12';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
--
Exit Code: 1
Command Output (stderr):
--
/builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test:35:21: error: CHECK-FLAGS-NEXT: expected string not found in input
                    ^
<stdin>:44:10: note: scanning from here
 Offset: 0x50
         ^
<stdin>:45:2: note: possible intended match here
 Size: 34
 ^
Input file: <stdin>
Check file: /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           .
           .
           .
          39:  Type: SHT_PROGBITS (0x1)
          40:  Flags [ (0x800)
          41:  SHF_COMPRESSED (0x800)
          42:  ]
          43:  Address: 0x0
          44:  Offset: 0x50
next:35'0              X~~~ error: no match found
          45:  Size: 34
next:35'0     ~~~~~~~~~
next:35'1      ?        possible intended match
          46:  Link: 0
next:35'0     ~~~~~~~~
          47:  Info: 0
next:35'0     ~~~~~~~~
          48:  AddressAlignment: 8
next:35'0     ~~~~~~~~~~~~~~~~~~~~
          49:  EntrySize: 0
next:35'0     ~~~~~~~~~~~~~
          50:  }
next:35'0     ~~
           .
           .
           .
>>>>>>
2022-11-23 00:08:40 +08:00
Jens Petersen
09afc1d5eb condition recommonmark patch on rhel and use %autosetup again 2022-09-05 22:47:17 +08:00
Jens Petersen
1cd73657c4 python3-recommonmark is only in Fedora 2022-09-05 20:08:40 +08:00
Fedora Release Engineering
ddd1f770dc Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 19:45:41 +00:00
Fedora Release Engineering
e286d01118 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 17:58:34 +00:00
Miro Hrončok
5dd06d0cc2 Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 2022-01-08 20:32:25 +01:00
6 changed files with 1574 additions and 3 deletions

View file

@ -0,0 +1,25 @@
diff -Naur a/llvm/docs/conf.py b/llvm/docs/conf.py
--- a/llvm/docs/conf.py 2020-09-15 09:12:24.318287611 +0000
+++ b/llvm/docs/conf.py 2020-09-15 15:01:00.025893199 +0000
@@ -36,20 +36,7 @@
'.rst': 'restructuredtext',
}
-try:
- import recommonmark
-except ImportError:
- # manpages do not use any .md sources
- if not tags.has('builder-man'):
- raise
-else:
- import sphinx
- if sphinx.version_info >= (3, 0):
- # This requires 0.5 or later.
- extensions.append('recommonmark')
- else:
- source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
- source_suffix['.md'] = 'markdown'
+import sphinx
# The encoding of source files.
#source_encoding = 'utf-8-sig'

20
gcc12.patch Normal file
View file

@ -0,0 +1,20 @@
--- a/llvm-11.1.0.src/include/llvm/Support/Base64.h 2021-02-03 14:51:10.000000000 -0700
+++ b/llvm-11.1.0.src/include/llvm/Support/Base64.h 2023-01-30 10:58:39.424270016 -0700
@@ -13,6 +13,7 @@
#ifndef LLVM_SUPPORT_BASE64_H
#define LLVM_SUPPORT_BASE64_H
+#include <cstdint>
#include <string>
namespace llvm {
--- a/llvm-11.1.0.src/include/llvm/Support/Signals.h 2021-02-03 14:51:10.000000000 -0700
+++ b/llvm-11.1.0.src/include/llvm/Support/Signals.h 2023-01-30 09:51:35.823901524 -0700
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_SIGNALS_H
#define LLVM_SUPPORT_SIGNALS_H
+#include <cstdint>
#include <string>
namespace llvm {

View file

@ -0,0 +1,229 @@
--- llvm-12.0.1.src/docs/ReleaseNotes.rst~ 2021-06-29 00:23:38.000000000 +0800
+++ llvm-12.0.1.src/docs/ReleaseNotes.rst 2025-04-26 17:03:03.640319913 +0800
@@ -40,8 +40,7 @@
functionality, or simply have a lot to talk about), see the `NOTE` below
for adding a new subsection.
-* The ConstantPropagation pass was removed. Users should use the InstSimplify
- pass instead.
+* The ConstantPropagation pass was removed. Users should use the InstSimplify pass instead.
.. NOTE
@@ -60,60 +59,37 @@
* ...
-* Added the ``byref`` attribute to better represent argument passing
- for the `amdgpu_kernel` calling convention.
+* Added the ``byref`` attribute to better represent argument passing for the `amdgpu_kernel` calling convention.
-* Added type parameter to the ``sret`` attribute to continue work on
- removing pointer element types.
+* Added type parameter to the ``sret`` attribute to continue work on removing pointer element types.
-* The ``llvm.experimental.vector.reduce`` family of intrinsics have been renamed
- to drop the "experimental" from the name, reflecting their now fully supported
- status in the IR.
+* The ``llvm.experimental.vector.reduce`` family of intrinsics have been renamed to drop the "experimental" from the name, reflecting their now fully supported status in the IR.
Changes to building LLVM
------------------------
-* The internal ``llvm-build`` Python script and the associated ``LLVMBuild.txt``
- files used to describe the LLVM component structure have been removed and
- replaced by a pure ``CMake`` approach, where each component stores extra
- properties in the created targets. These properties are processed once all
- components are defined to resolve library dependencies and produce the header
- expected by llvm-config.
+* The internal ``llvm-build`` Python script and the associated ``LLVMBuild.txt`` files used to describe the LLVM component structure have been removed and replaced by a pure ``CMake`` approach, where each component stores extra properties in the created targets. These properties are processed once all components are defined to resolve library dependencies and produce the header expected by llvm-config.
Changes to TableGen
-------------------
-* The new "TableGen Programmer's Reference" replaces the "TableGen Language
- Introduction" and "TableGen Language Reference" documents.
+* The new "TableGen Programmer's Reference" replaces the "TableGen Language Introduction" and "TableGen Language Reference" documents.
-* The syntax for specifying an integer range in a range list has changed.
- The old syntax used a hyphen in the range (e.g., ``{0-9}``). The new syntax
- uses the "`...`" range punctuation (e.g., ``{0...9}``). The hyphen syntax
- is deprecated.
+* The syntax for specifying an integer range in a range list has changed. The old syntax used a hyphen in the range (e.g., ``{0-9}``). The new syntax uses the "`...`" range punctuation (e.g., ``{0...9}``). The hyphen syntax is deprecated.
Changes to the AArch64 Backend
--------------------------
During this release ...
-* Lots of improvements to generation of Windows unwind data; the unwind
- data is optimized and written in packed form where possible, reducing
- the size of unwind data (pdata and xdata sections) by around 60%
- compared with LLVM 11. The generation of prologs/epilogs is tweaked
- when targeting Windows, to increase the chances of being able to use
- the packed unwind info format.
-
-* Support for creating Windows unwind data using ``.seh_*`` assembler
- directives.
-
-* Produce proper assembly output for the Windows target, including
- ``:lo12:`` relocation specifiers, to allow the assembly output
- to actually be assembled.
-
-* Changed the assembly comment string for MSVC targets to ``//`` (consistent
- with the MinGW and ELF targets), freeing up ``;`` to be used as
- statement separator.
+* Lots of improvements to generation of Windows unwind data; the unwind data is optimized and written in packed form where possible, reducing the size of unwind data (pdata and xdata sections) by around 60% compared with LLVM 11. The generation of prologs/epilogs is tweaked when targeting Windows, to increase the chances of being able to use the packed unwind info format.
+
+* Support for creating Windows unwind data using ``.seh_*`` assembler directives.
+
+* Produce proper assembly output for the Windows target, including ``:lo12:`` relocation specifiers, to allow the assembly output to actually be assembled.
+
+* Changed the assembly comment string for MSVC targets to ``//`` (consistent with the MinGW and ELF targets), freeing up ``;`` to be used as statement separator.
Changes to the ARM Backend
--------------------------
@@ -131,51 +107,39 @@
Optimization:
-* Made improvements to loop unroll-and-jam including fix to respect user
- provided #pragma unroll-and-jam for loops on targets other than ARM.
-* Improved PartialInliner allowing it to handle code regions in a switch
- statements.
-* Improved PGO support on AIX by building and linking with compiler-rt profile
- library.
+* Made improvements to loop unroll-and-jam including fix to respect user provided #pragma unroll-and-jam for loops on targets other than ARM.
+* Improved PartialInliner allowing it to handle code regions in a switch statements.
+* Improved PGO support on AIX by building and linking with compiler-rt profile library.
* Add support for Epilogue Vectorization and enabled it by default.
CodeGen:
* POWER10 support
- * Implementation of PC Relative addressing in LLD including the associated
- linker optimizations.
- * Add support for the new matrix multiplication (MMA) instructions to Clang
- and LLVM.
+ * Implementation of PC Relative addressing in LLD including the associated linker optimizations.
+ * Add support for the new matrix multiplication (MMA) instructions to Clang and LLVM.
* Implementation of Power10 builtins.
* Scheduling enhancements
- * Add a new algorithm to cluster more loads/stores if the DAG is not too
- complicated.
+ * Add a new algorithm to cluster more loads/stores if the DAG is not too complicated.
* Enable the PowerPC scheduling heuristic for Power10.
* Target dependent passes tuning
- * Enhance LoopStrengthReduce/PPCLoopInstrFormPrep pass for PowerPC,
- especially for P10 intrinsics.
+ * Enhance LoopStrengthReduce/PPCLoopInstrFormPrep pass for PowerPC, especially for P10 intrinsics.
* Enhance machine combiner pass to reduce register pressure for PowerPC.
- * Improve MachineSink to do more sinking based on register pressure and alias
- analysis.
+ * Improve MachineSink to do more sinking based on register pressure and alias analysis.
* General improvements
* Complete the constrained floating point operations support.
* Improve the llvm-exegesis support.
- * Improve the stack clash protection to probe the gap between stackptr and
- realigned stackptr.
+ * Improve the stack clash protection to probe the gap between stackptr and realigned stackptr.
* Improve the IEEE long double support for Power8.
* Enable MemorySSA for LoopSink.
- * Enhance LLVM debugging functionality via options such as -print-changed and
- -print-before-changed.
+ * Enhance LLVM debugging functionality via options such as -print-changed and -print-before-changed.
* Add builtins for Power9 (i.e. darn, xvtdiv, xvtsqrt etc).
* Add options to disable all or part of LoopIdiomRecognizePass.
- * Add support for printing the DDG in DOT form allowing for visual inspection
- of the Data Dependence Graph.
+ * Add support for printing the DDG in DOT form allowing for visual inspection of the Data Dependence Graph.
* Remove the QPX support.
- * Significant number of bug fixes including all the fixes necessary to
- achieve a clean test run for Julia.
+ * Significant number of bug fixes including all the fixes necessary to achieve a clean test run for Julia.
AIX Support:
@@ -186,14 +150,11 @@
* General Improvements
* Enable the AIX extended AltiVec ABI under option -mabi=vec-extabi.
* Add partial C99 complex type support.
- * Implemente traceback table for functions (encodes vector information,
- emits exception handling).
- * Implemente code generation for C++ dynamic initialization and finalization.
- of non-local variables for use with the -bcdtors option of the AIX linker.
+ * Implemente traceback table for functions (encodes vector information, emits exception handling).
+ * Implemente code generation for C++ dynamic initialization and finalization of non-local variables for use with the -bcdtors option of the AIX linker.
* Add new option -mignore-xcoff-visibility.
* Enable explicit sections on AIX.
- * Enable -f[no-]data-sections on AIX and set -fdata-sections to be the default
- on AIX.
+ * Enable -f[no-]data-sections on AIX and set -fdata-sections to be the default on AIX.
* Enable -f[no-]function-sections.
* Add support for relocation generation using the large code model.
* Add pragma align natural and sorted out pragma pack stack effect.
@@ -204,19 +165,10 @@
During this release ...
-* The 'mpx' feature was removed from the backend. It had been removed from clang
- frontend in 10.0. Mention of the 'mpx' feature in an IR file will print a
- message to stderr, but IR should still compile.
-* Support for ``-march=alderlake``, ``-march=sapphirerapids``,
- ``-march=znver3`` and ``-march=x86-64-v[234]`` has been added.
-* The assembler now has support for {disp32} and {disp8} pseudo prefixes for
- controlling displacement size for memory operands and jump displacements. The
- assembler also supports the .d32 and .d8 mnemonic suffixes to do the same.
-* A new function attribute "tune-cpu" has been added to support -mtune like gcc.
- This allows microarchitectural optimizations to be applied independent from
- the "target-cpu" attribute or TargetMachine CPU which will be used to select
- Instruction Set. If the attribute is not present, the tune CPU will follow
- the target CPU.
+* The 'mpx' feature was removed from the backend. It had been removed from clang frontend in 10.0. Mention of the 'mpx' feature in an IR file will print a message to stderr, but IR should still compile.
+* Support for ``-march=alderlake``, ``-march=sapphirerapids``, ``-march=znver3`` and ``-march=x86-64-v[234]`` has been added.
+* The assembler now has support for {disp32} and {disp8} pseudo prefixes for controlling displacement size for memory operands and jump displacements. The assembler also supports the .d32 and .d8 mnemonic suffixes to do the same.
+* A new function attribute "tune-cpu" has been added to support -mtune like gcc. This allows microarchitectural optimizations to be applied independent from the "target-cpu" attribute or TargetMachine CPU which will be used to select Instruction Set. If the attribute is not present, the tune CPU will follow the target CPU.
* Support for ``HRESET`` instructions has been added.
* Support for ``UINTR`` instructions has been added.
* Support for ``AVXVNNI`` instructions has been added.
@@ -226,8 +178,7 @@
During this release ...
-* The new ``byref`` attribute is now the preferred method for
- representing aggregate kernel arguments.
+* The new ``byref`` attribute is now the preferred method for representing aggregate kernel arguments.
Changes to the AVR Target
-----------------------------
@@ -260,22 +211,14 @@
During this release ...
-* The DIModule metadata is extended with a field to indicate if it is a
- module declaration. This extension enables the emission of debug info
- for a Fortran 'use <external module>' statement. For more information
- on what the debug info entries should look like and how the debugger
- can use them, please see test/DebugInfo/X86/dimodule-external-fortran.ll.
+* The DIModule metadata is extended with a field to indicate if it is a module declaration. This extension enables the emission of debug info for a Fortran 'use <external module>' statement. For more information on what the debug info entries should look like and how the debugger can use them, please see test/DebugInfo/X86/dimodule-external-fortran.ll.
Changes to the LLVM tools
---------------------------------
-* llvm-readobj and llvm-readelf behavior has changed to report an error when
- executed with no input files instead of reading an input from stdin.
- Reading from stdin can still be achieved by specifying `-` as an input file.
-
-* llvm-mca supports serialization of the timeline and summary views.
- The `--json` command line option prints a JSON representation of
- these views to stdout.
+* llvm-readobj and llvm-readelf behavior has changed to report an error when executed with no input files instead of reading an input from stdin. Reading from stdin can still be achieved by specifying `-` as an input file.
+
+* llvm-mca supports serialization of the timeline and summary views. The `--json` command line option prints a JSON representation of these views to stdout.
Changes to LLDB
---------------------------------

View file

@ -48,7 +48,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 2%{?dist}
Release: 14%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@ -63,6 +63,12 @@ Source4: lit.fedora.cfg.py
%endif
Patch0: 0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch
Patch1: gcc12.patch
Patch2: typename.patch
Patch3: test-go-py-pipes.patch
Patch101: 0001-Deactivate-markdown-doc.patch
Patch102: llvm12-ReleaseNotes-sphinx-7.2.6-wrap.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@ -73,7 +79,9 @@ BuildRequires: libffi-devel
BuildRequires: ncurses-devel
BuildRequires: python3-psutil
BuildRequires: python3-sphinx
%if %{defined fedora} || 0%{?rhel} >= 10
BuildRequires: python3-recommonmark
%endif
BuildRequires: multilib-rpm-config
%if %{with gold}
BuildRequires: binutils-devel
@ -175,9 +183,14 @@ LLVM's modified googletest sources.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{llvm_srcdir} -p2
%setup -q -n %{llvm_srcdir}
%autopatch -M 99 -p2
%if %{defined el9}
%patch -P101 -p2 -b .orig
%endif
%patch -P102 -p1 -b .orig
pathfix.py -i %{__python3} -pn \
%py3_shebang_fix \
test/BugPoint/compile-custom.ll.py \
tools/opt-viewer/*.py \
utils/update_cc_test_checks.py
@ -387,6 +400,13 @@ touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
rm test/tools/llvm-readobj/ELF/dependent-libraries.test
%endif
%if %{defined el9}
%ifarch s390x
rm test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
rm test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
%endif
%endif
# non reproducible errors
rm test/tools/dsymutil/X86/swift-interface.test
@ -499,6 +519,43 @@ fi
%endif
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jan 31 2023 Jens Petersen <petersen@redhat.com> - 12.0.1-8
- Add gcc12 patch to add includes needed for GCC 12 (Jerry James)
- Add typename patch to fix test failures (Jerry James)
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Sep 5 2022 Jens Petersen <petersen@redhat.com> - 12.0.1-6
- python3-recommonmark is only in Fedora
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 12.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

18
test-go-py-pipes.patch Normal file
View file

@ -0,0 +1,18 @@
--- a/llvm-13.0.1.src/test/Bindings/Go/lit.local.cfg 2022-01-21 05:31:59.000000000 +0800
+++ b/llvm-13.0.1.src/test/Bindings/Go/lit.local.cfg 2024-07-19 21:33:42.775023065 +0800
@@ -1,5 +1,4 @@
import os
-import pipes
import shlex
import sys
@@ -56,7 +55,7 @@
except (AttributeError, OSError):
pass
- return ' '.join([pipes.quote(arg) for arg in args])
+ return ' '.join([shlex.quote(arg) for arg in args])
config.environment['CC'] = fixup_compiler_path(config.host_cc)
config.environment['CXX'] = fixup_compiler_path(config.host_cxx)

1222
typename.patch Normal file

File diff suppressed because it is too large Load diff