Is this a bug?
Kuo Yu Chuang
Sun Jan 30 16:44:00 GMT 2000
Good days, and sorry for the inconvenience I made ^_^
I don't know if this is a bug, or just a misunderstanding :-P
I am currently using the GCC as a corss-compiler which
target is VAX machine. The host is i386 arch with linux.
Here is the test program I wrote:
unsigned int a, b;
a = 10;
b = 5;
a = a % b;
In the VAX-assembly, it calls "umodsi3" to achieve mod of
the two unsigned integer. However, in libgcc1.c, the umodsi3
is also implemented in following statements:
#define perform_umodsi3(a, b) return a % b
__umodsi3 (a, b)
unsigned nongcc_SI_type a, b;
perform_umodsi3 (a, b);
As a result, we can't use this compiler to compile
libgcc1.c in order to provide the unsigned integer mod.
This situation becames to a self-calling recurrsive.
Some other machine is containing this umodsi3 in
".md" file but Vax is not. Should we patch this one
to vax.md or in libgcc1?
(to emulate umodsi3 with signed integer?)
Thank you in advance :-)
Kuo-Yu Slayer Chuang
Computer & Communications Research Laboratories
Industrial Technology Research Institute, Taiwan.
More information about the Gcc-bugs