I confirm this to be a bug in gcc-4.1.  On the same machine, it
compiles the same program differently in an i386 chroot and in an
amd64 chroot.  Here is the program, conftest.c:

int
main ()
{
  return 0;
}

In the i386 chroot:

$ gnatgcc -c -Wno-overlength-strings conftest.c
$ echo $?
0

In the amd64 chroot:

$ gnatgcc -c -Wno-overlength-strings conftest.c
cc1: error: unrecognized command line option "-Wno-overlength-strings"
$ echo $?
1

Furthermore, in the i386 chroot, it seems I can get the error message
if and only if another, unrelated error message is necessary.  For
example:


int
main ()
{
  return 2 << 1000;
}

$ gnatgcc -c -Wno-overlength-strings conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: left shift count >= width of type
At top level:
cc1: error: unrecognized command line option "-Wno-overlength-strings"
$ echo $?
1

-- 
Ludovic Brenta.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to