Mercurial > hg > CbC > CbC_gcc
changeset 28:f2ea7e07d030
bit modify.
author | kent@teto.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 16 Nov 2009 17:22:19 +0900 |
parents | f9b1a53df341 |
children | cc07adb17855 |
files | CbC-examples/code_segment_pointer_check/Makefile gcc/config/rs6000/rs6000.md |
diffstat | 2 files changed, 27 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CbC-examples/code_segment_pointer_check/Makefile Mon Nov 16 17:22:19 2009 +0900 @@ -0,0 +1,25 @@ + +CbCC=../../../build_gcc/INSTALL_DIR/bin/gcc + +#CC=gcc +CC=../../../build_gcc/INSTALL_DIR/bin/gcc + + +# fastcall版では-O0,-O2は動作確認、-O3以上はだめ +CFLAGS=-g -O2 -fomit-frame-pointer +#CFLAGS=-g -O0 + +.SUFFIXES: .cbc .o + +all: code_segment_pointer_check2 + +.cbc.o: + $(CbCC) $(CFLAGS) -c -o $@ $< + +code_segment_pointer_check2: code_segment_pointer_check2.o + $(CC) $(CFLAGS) -o $@ $^ + + +clean: + rm -rf *.o *.s code_segment_pointer_check2 +
--- a/gcc/config/rs6000/rs6000.md Tue Nov 10 16:34:29 2009 +0900 +++ b/gcc/config/rs6000/rs6000.md Mon Nov 16 17:22:19 2009 +0900 @@ -11704,8 +11704,8 @@ return "b%T0"; } - [(set_attr "type" "branch,branch") - (set_attr "length" "4,8")]) + [(set_attr "type" "jmpreg,jmpreg,jmpreg,jmpreg") + (set_attr "length" "4,4,8,8")])