]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/c6x/gensched.sh
Update copyright years.
[thirdparty/gcc.git] / gcc / config / c6x / gensched.sh
CommitLineData
bcead286
BS
1#! /bin/sh
2# Generate c6x-sched.md from c6x-sched.md.in
3# The input file is passed as an argument.
4
7adcbafe 5# Copyright (C) 2010-2022 Free Software Foundation, Inc.
bcead286
BS
6
7#This file is part of GCC.
8
9#GCC is free software; you can redistribute it and/or modify
10#it under the terms of the GNU General Public License as published by
11#the Free Software Foundation; either version 3, or (at your option)
12#any later version.
13
14#GCC is distributed in the hope that it will be useful,
15#but WITHOUT ANY WARRANTY; without even the implied warranty of
16#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17#GNU General Public License for more details.
18
19#You should have received a copy of the GNU General Public License
20#along with GCC; see the file COPYING3. If not see
21#<http://www.gnu.org/licenses/>.
22
23echo ";; -*- buffer-read-only: t -*-"
24echo ";; Generated automatically from c6x-sched.md.in by gensched.sh"
25
26for cross in n y; do
27 for side in 1 2; do
28 tside=$side
29 case $side in
30 1) rf="a"; otherside=2 ;;
31 2) rf="b"; otherside=1 ;;
32 esac
33 case $cross in
34 y) cunit="+x$side"; tside=$otherside;;
35 n) cunit="";;
36 esac
37 echo
38 echo ";; Definitions for side $side, cross $cross"
39 echo
40 sed -e "s,_CROSS_,$cross,g" -e "s,_CUNIT_,$cunit,g" \
41 -e "s,_N_,$side,g" -e "s,_RF_,$rf,g" -e "s,_NX_,$tside,g" \
42 < $1
43 done
44done