File: librsb_gcc11.cocci

package info (click to toggle)
librsb 1.3.0.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,792 kB
  • sloc: ansic: 274,405; f90: 108,468; cpp: 16,934; sh: 6,761; makefile: 1,679; objc: 692; awk: 22; sed: 1
file content (14 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// usage: spatch --local-includes --sp-file librsb_gcc11.cocci rsb_krnl_bcss_spmv_u.c > librsb_gcc11.patch && patch  < librsb_gcc11.patch
// description: apply coccinelle rule to insert corrective GCC pragmas
// Patch for a https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103995 workaround.
@pragma_inject@
identifier i =~ "rsb__BCSR_spmv_sasa_double_complex_[CH]__t[NTC]_r1_c1_uu_s[HS]_dE_uG";
type T;
@@
+ #pragma GCC push_options
+ #pragma GCC optimize "-O3", "-fno-tree-loop-vectorize"
T i(...)
{
 ...
}
+ #pragma GCC pop_options