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]

gcc 2.8.1 bug? or ...


Hello,

I hope I'm not posting to the wrong list ... but I seem to be having a
parculiar problem with gcc 2.8.1 (and egcs 1.1.3). It would seem that,
when the attached program (testconf) is compiled it produces the following
output (compiled with 2.8.1):
-------------------------------
host=""
port="test"
username="user"
passwd="test"
database="dbname"
table="test"
debug="dbname"

This output is not what is expected, ... but the following correct output
occurs when the 
program is compiled with gcc 2.7.2.3 (on a different pc):

-------------------------------
host=""
port=""
username="user"
passwd=""
database="dbname"
table="test"
debug="1"

I do not really have an idea as to what might be wrong. Could this be a
gcc 2.8.1 bug?
Or maybe it is a libc5 bug(feature?)? I have tried compiling the program
on a pc with slackware 3.6 + gcc 2.8.1 + libc5, mandrake 6.0 + egcs
1.1.3/pgcc + glibc2.1 and a pc with slackware 3.6 + gcc 2.7.2.3 + libc5.
The latter is the only one that produces the desired output.

Please Advise,
Omar Kilani

testconf program source


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]