140 Commits

Author SHA1 Message Date
openeuler-ci-bot
7e4a27a141
!337 [sync] PR-336: [SPEC] Remove installed but unpacked files
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-09-06 06:59:03 +00:00
liyancheng
956e2880a6 [SPEC] Remove installed but unpacked files
Remove installed but unpacked files

(cherry picked from commit 9172a0f24153c8ce1d31974aaf39cabe7c8647e7)
2023-09-06 09:28:20 +08:00
openeuler-ci-bot
6454920a96
!335 [sync] PR-334: [SPEC] Enable strip on gcc and %{_target_platform}-gcc
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-09-06 01:15:55 +00:00
zhenyu--zhao
05db73e18a [SPEC] Enable strip on gcc and %{_target_platform}-gcc
Enable strip on gcc and %{_target_platform}-gcc

(cherry picked from commit da577ebd493da6751eb3f870cafc9425c52181c9)
2023-09-05 23:06:23 +08:00
openeuler-ci-bot
4a678c4275
!332 [sync] PR-329: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-09-05 15:06:07 +00:00
h00564365
a52b07486c [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20230905

(cherry picked from commit 6aadb648e6a0b7aef781fd4ea47c92c34e75d3c1)
2023-09-05 20:03:39 +08:00
openeuler-ci-bot
47180897e5
!330 [sync] PR-327: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @huang-xiaoquan 
Signed-off-by: @huang-xiaoquan
2023-09-05 06:21:23 +00:00
dingguangya
124654232c [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc

(cherry picked from commit 95427adf7d16bbb61ae3ced9c64aacbaf53dce72)
2023-09-05 11:04:21 +08:00
openeuler-ci-bot
677f05d3bf
!326 [sync] PR-325: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @huang-xiaoquan 
Signed-off-by: @huang-xiaoquan
2023-08-31 12:02:33 +00:00
huang-xiaoquan
24601f9e37 [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20230829 part 2

(cherry picked from commit 609cef8ac6ca4de64bed245700975082853ad49a)
2023-08-30 09:22:08 +08:00
openeuler-ci-bot
00d8ee9c5a
!324 [sync] PR-323: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-08-30 01:21:44 +00:00
h00564365
adacc909ea [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20230829

(cherry picked from commit 5e9724992d967ef598d70c92c5c936ebbf828946)
2023-08-29 20:59:41 +08:00
openeuler-ci-bot
a8340ebb3e
!320 Backport some patches on EPOL gcc-12 to GCC-12 for openEuler.
From: @github-27907959 
Reviewed-by: @huang-xiaoquan 
Signed-off-by: @huang-xiaoquan
2023-08-17 07:59:35 +00:00
Hongyu Wang
ad4ee2e6e9 [Sync] i386: Only enable small loop unrolling in backend [PR
107692]

Followed by the discussion in pr107692, -munroll-only-small-loops
Does not turns on/off -funroll-loops, and current check in
pass_rtl_unroll_loops::gate would cause -fno-unroll-loops do not take
effect. Revert the change about targetm.loop_unroll_adjust and apply
the backend option change to strictly follow the rule that
-funroll-loops takes full control of loop unrolling, and
munroll-only-small-loops just change its behavior to unroll small size
loops.

gcc/ChangeLog:

	PR target/107692
	* common/config/i386/i386-common.cc (ix86_optimization_table):
	Enable loop unroll O2, disable -fweb and -frename-registers
	by default.
	* config/i386/i386-options.cc
	(ix86_override_options_after_change):
	Disable small loop unroll when funroll-loops enabled, reset
	cunroll_grow_size when it is not explicitly enabled.
	(ix86_option_override_internal): Call
	ix86_override_options_after_change instead of calling
	ix86_recompute_optlev_based_flags and ix86_default_align
	separately.
	* config/i386/i386.cc (ix86_loop_unroll_adjust): Adjust unroll
	factor if -munroll-only-small-loops enabled.
	* loop-init.cc (pass_rtl_unroll_loops::gate): Do not enable
	loop unrolling for -O2-speed.
	(pass_rtl_unroll_loops::execute): Rmove
	targetm.loop_unroll_adjust check.

gcc/testsuite/ChangeLog:

	PR target/107692
	* gcc.dg/guality/loop-1.c: Remove additional option for ia32.
	* gcc.target/i386/pr86270.c: Add -fno-unroll-loops.
	* gcc.target/i386/pr93002.c: Likewise.
2023-08-11 11:25:43 +08:00
Hongyu Wang
79c6c64bfe [Sync] Enable small loop unrolling for O2
Modern processors has multiple way instruction decoders
For x86, icelake/zen3 has 5 uops, so for small loop with <= 4
instructions (usually has 3 uops with a cmp/jmp pair that can be
macro-fused), the decoder would have 2 uops bubble for each iteration
and the pipeline could not be fully utilized.

Therefore, this patch enables loop unrolling for small size loop at O2
to fullfill the decoder as much as possible. It turns on rtl loop
unrolling when targetm.loop_unroll_adjust exists and O2 plus speed only.
In x86 backend the default behavior is to unroll small loops with less
than 4 insns by 1 time.

This improves 548.exchange2 by 9% on icelake and 7.4% on zen3 with
0.9% codesize increment. For other benchmarks the variants are minor
and overall codesize increased by 0.2%.

The kernel image size increased by 0.06%, and no impact on eembc.

gcc/ChangeLog:

	* common/config/i386/i386-common.cc (ix86_optimization_table):
	Enable small loop unroll at O2 by default.
	* config/i386/i386.cc (ix86_loop_unroll_adjust): Adjust unroll
	factor if -munroll-only-small-loops enabled and -funroll-loops/
	-funroll-all-loops are disabled.
	* config/i386/i386.h (struct processor_costs): Add 2 field
	small_unroll_ninsns and small_unroll_factor.
	* config/i386/i386.opt: Add -munroll-only-small-loops.
	* doc/invoke.texi: Document -munroll-only-small-loops.
	* loop-init.cc (pass_rtl_unroll_loops::gate): Enable rtl
	loop unrolling for -O2-speed and above if target hook
	loop_unroll_adjust exists.
	(pass_rtl_unroll_loops::execute): Set UAP_UNROLL flag
	when target hook loop_unroll_adjust exists.
	* config/i386/x86-tune-costs.h: Update all processor costs
	with small_unroll_ninsns = 4 and small_unroll_factor = 2.

gcc/testsuite/ChangeLog:

	* gcc.dg/guality/loop-1.c: Add additional option
	-mno-unroll-only-small-loops.
	* gcc.target/i386/pr86270.c: Add -mno-unroll-only-small-loops.
	* gcc.target/i386/pr93002.c: Likewise.
2023-08-11 11:25:18 +08:00
Cui,Lili
8cf4a6a8c3 [Sync] Add attribute hot judgement for INLINE_HINT_known_hot hint.
We set up INLINE_HINT_known_hot hint only when we have profile feedback,
now add function attribute judgement for it, when both caller and callee
have __attribute__((hot)), we will also set up INLINE_HINT_known_hot hint
for it.

With this patch applied,
ADL Multi-copy:    538.imagic_r  16.7%
ICX Multi-copy:    538.imagic_r  15.2%
CLX Multi-copy:    538.imagic_r  12.7%
Znver3 Multi-copy: 538.imagic_r  10.6%
Arm Multi-copy:    538.imagic_r  13.4%

gcc/ChangeLog

	* ipa-inline-analysis.cc (do_estimate_edge_time): Add function attribute
	judgement for INLINE_HINT_known_hot hint.

gcc/testsuite/ChangeLog:

	* gcc.dg/ipa/inlinehint-6.c: New test.
2023-08-11 11:24:59 +08:00
openeuler-ci-bot
110ceef4aa
!317 [SPEC] Enable libquadmath on kunpeng
From: @huang-xiaoquan 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-07-17 08:27:49 +00:00
huang-xiaoquan
a84864a09a [SPEC] Enable libquadmath on kunpeng 2023-07-17 09:36:54 +08:00
openeuler-ci-bot
5f6931e0f1
!316 [Sync] Enable libquadmath on kunpeng
From: @huang-xiaoquan 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-07-15 08:31:53 +00:00
huang-xiaoquan
199eae7853 [Sync] Enable libquadmath on kunpeng 2023-07-14 18:21:47 +08:00
openeuler-ci-bot
577a463f57
!315 [Init] Init GCC 12.3.0 repository
From: @huang-xiaoquan 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-07-12 01:21:06 +00:00
huang-xiaoquan
375fae7b07 [Sync] Set version to 12.3.1 2023-07-11 23:10:33 +08:00
huang-xiaoquan
6b4316197e [Init] Init GCC 12.3.0 repository
Initialize the GCC 12.3.0 repository with gcc-12.3.0.tar.xz
and the gcc.spec.
2023-07-11 20:49:28 +08:00
openeuler-ci-bot
7c8c5ad23a
!271 [Sync] Sync patch from openeuler/gcc
From: @huang-xiaoquan 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-05-23 07:03:40 +00:00
huang-xiaoquan
1e715174c3 [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20230522
2023-05-22 11:27:59 +08:00
openeuler-ci-bot
4b0cc3f915
!266 [sync] PR-265: [SPEC] Enable isl and add --with-isl
From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-04-14 03:18:23 +00:00
huang-xiaoquan
725f6d7286 [SPEC] Enable isl and add --with-isl
(cherry picked from commit 3911186fc058bc0e03d9a2de6fa58e67f3f12ffa)
2023-04-13 11:46:19 +08:00
openeuler-ci-bot
8fa171e5d1
!261 [SPEC] Enable-languages uses variables
From: @huang-xiaoquan 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-03-25 06:16:41 +00:00
huang-xiaoquan
3901d8a9c1 [SPEC] Enable-languages uses variables
In enable-languages, switch non-default languages to use variables
2023-03-25 10:33:37 +08:00
openeuler-ci-bot
876a0850fc
!258 [Revert] Revert without pie option
From: @huang-xiaoquan 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-03-25 01:43:08 +00:00
huang-xiaoquan
430515b4b4 [Revert] Revert without pie option
Revert without pie option in OPT_LDFLAGS
2023-03-24 11:11:59 +08:00
openeuler-ci-bot
e95213c039
!251 [sync] PR-250: [RPM] Add pie and delete rpath in libgfortran
From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-03-17 07:24:18 +00:00
huang-xiaoquan
3691b150f1 [RPM] Add pie and delete rpath in libgfortran
(cherry picked from commit d1eef1aca9003ee64cd3d50b9bdc566a1e3486ac)
2023-03-09 19:15:34 +08:00
openeuler-ci-bot
0f3c849db8
!247 [Backport] State --sysroot option as validated once processed
From: @huitailangzju 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-03-06 01:25:34 +00:00
huitailangzju
ff72fea4ac [Backport] State --sysroot option as validated once processed
[Reference] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=8e86086bd33134467cc9c2a75327d1238dc71df9
State --sysroot option as validated once processed
2023-02-26 21:26:07 +08:00
openeuler-ci-bot
25a7512d71
!246 [Backport] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream
From: @li-yancheng 
Reviewed-by: @benniaobufeijiushiji 
Signed-off-by: @benniaobufeijiushiji
2023-01-10 12:22:16 +00:00
liyancheng
15f0df8aa0 [Backport] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream
[Reference] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2701442d0cf6292f6624443c15813d6d1a3562fe
[sanitizer] Remove #include <linux/fs.h> to resolve
fsconfig_command/mount_attr conflict with glibc 2.36
2023-01-10 19:23:47 +08:00
openeuler-ci-bot
2727f4613d
!243 [sync] PR-239: [Sync] Sync patch from openeuler/gcc.
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-01-06 02:55:07 +00:00
xiongzhou4
1cf8937271 [Sync] Sync patch from openeuler/gcc.
(cherry picked from commit 312a836cd881325790aa341a08161bb5b7bfdd2a)
2023-01-06 10:51:31 +08:00
openeuler-ci-bot
3cc9a52f06
!242 [sync] PR-235: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-01-06 02:50:11 +00:00
benniaobufeijiushiji
3df8980f1f [Sync] Sync patch from openeuler/gcc
Bugfix for loop-distribution, semi-relayout and MULL64.

(cherry picked from commit 206c98c7c8ceca539ffc063e8c09135fb5cf1248)
2023-01-06 10:47:41 +08:00
openeuler-ci-bot
18ee7261fc
!241 [sync] PR-231: [RPM] Delete rpath in liblsan libasan libubsan libtsan
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-01-06 02:46:44 +00:00
liyancheng
ef9a21e6f1 [RPM] Delete rpath in liblsan libasan libubsan libtsan
(cherry picked from commit e21ed8e40c1f9d306aed9e8b3007fdc37b292911)
2023-01-06 10:45:56 +08:00
openeuler-ci-bot
9a577e6bdc
!240 [sync] PR-229: [Sync] Sync patch from openeuler/gcc and fix wrong date
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2023-01-06 02:43:09 +00:00
liyancheng
c5632ba4ef [Sync] Sync patch from openeuler/gcc and fix wrong date
Sync patch from openeuler/gcc - 20221208 and fix wrong date

(cherry picked from commit 95b5a6d0f08784a98daa5650f0597617aa64a27c)
2023-01-06 10:41:26 +08:00
openeuler-ci-bot
227af93f20
!227 [sync] PR-225: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2022-12-20 09:05:17 +00:00
benniaobufeijiushiji
a41360f2fb [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20221201

(cherry picked from commit 5487e8942c694fd317f2cbf1662e9eaf33f2f612)
2022-12-01 11:56:57 +08:00
openeuler-ci-bot
404b6b59b8
!210 [sync] PR-201: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2022-09-24 02:53:52 +00:00
eastb233
3c6b009f79 [Sync] Sync patch from openeuler/gcc
Sync patch from openeuler/gcc - 20220916

(cherry picked from commit cee88578d148dee16a4afc86a51e60fafbe95755)
2022-09-23 15:28:25 +08:00
openeuler-ci-bot
06e0f33f43
!198 [sync] PR-191: [Sync] Sync patch from openeuler/gcc
From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
2022-09-15 12:16:40 +00:00