-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [adding bug-autoconf]
According to Bruno Haible on 10/28/2008 8:18 PM: >> The problem is located in file gettext-0.17/gettext-tools/src/msgmerge.c >> where #pragma directives are used with a space between '#' and 'pragma'. >> > 1) spaces between '#' and preprocessor directives are allowed since ANSI C, > that is, 18 years ago, and Sun Workshop 6.2 is "only" 7 years old, > > Oh, with an option for OpenMP, I can reproduce it, finally: > > $ cc -xopenmp foo.c > cc: Warning: Optimizer level changed from 0 to 3 to support parallelized code. > "foo.c", line 3: invalid source character: '#' Does this bug affect all preprocessor directives when using -xopenmp, or only #pragma? I fear that it may have some big ramifications to existing code bases if this bug plagues things like '# include' or '# define', which occur liberally in gnulib and other open source projects. Has Sun been notified of their bug? I'm wondering how best to document this portability issue in the autoconf manual, and whether the AC_OPENMP macro should be taught to recognize this bug. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkH2JIACgkQ84KuGfSFAYDknACdFOGK4QiNxVSMG/U23UCZkfg9 JagAoI+0DoNDThqi7zX8CixoKm2XfMzt =8w0o -----END PGP SIGNATURE-----