Eric, I add in console.c static void printo_debug(const char *str) __attribute__((noinline)) { print_debug(str); }
About only chang print_debug in auto.c
It said ./romcc -O2 -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E make[1]: *** [auto.inc] Segmentation fault
./romcc -O -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E make[1]: *** [auto.inc] Segmentation fault
regards
YH
-----邮件原件----- 发件人: ebiederman@lnxi.com [mailto:ebiederman@lnxi.com] 发送时间: 2004年5月28日 11:42 收件人: YhLu 抄送: LinuxBIOS 主题: Re: 答复: 答复: [COMMIT] romcc 0.63 and some fixes...
YhLu YhLu@tyan.com writes:
After I get USB boot done, I will try that and modify the auto.c.....
Ok.
A quick update.
In playing around I wrote the function:
static void printo_debug(const char *str) __attribute__((noinline)) { print_debug(str); }
And started replacing the calls to print_debug one by one. On the port I am currently working on I managed to shave off 4K pretty quickly.
So it looks like for the really commonly called functions we will need 2 names. One inline that will be inlined the other that won't.
It is not a very elegant solution but it works and is not very hard to manage.
Eric
YhLu YhLu@tyan.com writes:
Eric, I add in console.c static void printo_debug(const char *str) __attribute__((noinline)) { print_debug(str); }
About only chang print_debug in auto.c
It said ./romcc -O2 -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E make[1]: *** [auto.inc] Segmentation fault
./romcc -O -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E make[1]: *** [auto.inc] Segmentation fault
Cool, my first bug report. I knew I had touched to much code for the new release to run without a hitch.
Could you look at the core dump with gdb and give me a back trace? That should help even if I can't reproduce the problem on this end.
Eric