This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi Ralf,
> extern unsigned char volatile TCW;
>
> inline Watchdog()
> {
> TCW = 0;
> }
>
> void testcase_1(void)
> {
> TCW = 0;
> }
>
> void testcase_2(void)
> {
> Watchdog();
> }
>
> The h8 assembler source (compiled with -Os -fomit-frame-pointer):
>
> testcase_1: sub r2l, r2l
> mov.b r2l, TCW
> rts
>
> testcase_2: sub r2l, r2l
> mov.b r2l, TCW
> mov.b TCW, r2l ; <-- ????
> rts
This sounds serious. I am using the latest gcc from the cvs, but this
problem did not happen. Does your version actually output TCW, not @_TCW?
Have you applied any patches that are not in the cvs?
Kazu Hirata
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |