Hi!
Just tried to compiled gpc.
Used http://www.gnu-pascal.de/alpha/gpc-20050331-minimal.tar.bz2
and http://www.gnu-pascal.de/alpha/gcc-core-3.4.4.tar.bz2
Using:
paul@jacko:~/gpc-build$ gcc --version
gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0
And got:
[...]
In file included from ../../gpc/gcc-3.4.4/gcc/p/declarations.c:29:
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘pushdecl_import’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1062:3: note: in expansion of macro ‘gcc_assert’
1062 | gcc_assert (!PASCAL_DECL_WEAK (x));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1076:30: warning: comparison between ‘enum tree_code’ and ‘enum pascal_tree_code’ [-Wenum-compare]
1076 | if (old && TREE_CODE (old) == OPERATOR_DECL && TREE_CODE (x) == OPERATOR_DECL)
| ^~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1076:64: warning: comparison between ‘enum tree_code’ and ‘enum pascal_tree_code’ [-Wenum-compare]
1076 | if (old && TREE_CODE (old) == OPERATOR_DECL && TREE_CODE (x) == OPERATOR_DECL)
| ^~
In file included from ../../gpc/gcc-3.4.4/gcc/p/declarations.c:29:
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘declare_label’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1142:3: note: in expansion of macro ‘gcc_assert’
1142 | gcc_assert (!EM (label));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘lookup_name’:
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1324:31: warning: comparison between ‘enum tree_code’ and ‘enum pascal_tree_code’ [-Wenum-compare]
1324 | if (t && (TREE_CODE (t) == OPERATOR_DECL && PASCAL_BUILTIN_OPERATOR (t)))
| ^~
In file included from ../../gpc/gcc-3.4.4/gcc/p/declarations.c:29:
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘get_unique_identifier’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1490:3: note: in expansion of macro ‘gcc_assert’
1490 | gcc_assert (*template >= 'a' && *template <= 'z');
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘check_identifier’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1557:7: note: in expansion of macro ‘gcc_assert’
1557 | gcc_assert (DECL_INITIAL (decl));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘lookup_c_type’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:70:71: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
70 | #define gcc_unreachable() (assert_fail ("unreachable code", __FILE__, __PRETTY_FUNCTION__, __LINE__))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1625:3: note: in expansion of macro ‘gcc_unreachable’
1625 | gcc_unreachable ();
| ^~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘make_real’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1636:3: note: in expansion of macro ‘gcc_assert’
1636 | gcc_assert (r > 0);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1638:3: note: in expansion of macro ‘gcc_assert’
1638 | gcc_assert (TREE_TYPE (res) == double_type_node);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘init_decl_processing’:
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1816:3: error: ‘set_word_size’ undeclared (first use in this function); did you mean ‘set_mem_size’?
1816 | set_word_size = set_alignment = TYPE_PRECISION (long_unsigned_type_node);
| ^~~~~~~~~~~~~
| set_mem_size
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1816:3: note: each undeclared identifier is reported only once for each function it appears in
../../gpc/gcc-3.4.4/gcc/p/declarations.c:1817:3: error: ‘set_words_big_endian’ undeclared (first use in this function)
1817 | set_words_big_endian = 0;
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../../gpc/gcc-3.4.4/gcc/p/declarations.c:29:
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘find_duplicate_fields’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2082:9: note: in expansion of macro ‘gcc_assert’
2082 | gcc_assert (dup);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘declare_routine’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2419:3: note: in expansion of macro ‘gcc_assert’
2419 | gcc_assert (!EM (d));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘build_operator_heading’:
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2530:34: warning: implicit conversion from ‘enum pascal_tree_code’ to ‘enum tree_code’ [-Wenum-conversion]
2530 | placeholder_decl = build_decl (OPERATOR_DECL, name, void_type_node);
| ^~~~~~~~~~~~~
In file included from ../../gpc/gcc-3.4.4/gcc/p/declarations.c:29:
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘start_routine’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2714:9: note: in expansion of macro ‘gcc_assert’
2714 | gcc_assert (IDENTIFIER_IS_BUILT_IN (TREE_VALUE (dir), p_attribute));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2753:3: note: in expansion of macro ‘gcc_assert’
2753 | gcc_assert (!EM (decl));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2798:7: note: in expansion of macro ‘gcc_assert’
2798 | gcc_assert (!DECL_RTL_SET_P (parm));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2824:5: note: in expansion of macro ‘gcc_assert’
2824 | gcc_assert (!resvar);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2851:11: note: in expansion of macro ‘gcc_assert’
2851 | gcc_assert (TREE_CODE (v) == COMPONENT_REF);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘finish_routine’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:74:101: warning: right-hand operand of comma expression has no effect [-Wunused-value]
74 | #define abort_confused() (error ("confused by previous errors, bailing out"), exit (FATAL_EXIT_CODE), 0)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:2952:5: note: in expansion of macro ‘abort_confused’
2952 | abort_confused ();
| ^~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘declare_types’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:3110:9: note: in expansion of macro ‘gcc_assert’
3110 | gcc_assert (!EM (decl));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘shadow_one_level’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:3129:3: note: in expansion of macro ‘gcc_assert’
3129 | gcc_assert (TYPE_SIZE (TREE_TYPE (element)) && !PASCAL_TYPE_UNDISCRIMINATED_SCHEMA (TREE_TYPE (element)));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘declare_variables’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:3451:11: note: in expansion of macro ‘gcc_assert’
3451 | gcc_assert (!init);
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:3578:7: note: in expansion of macro ‘gcc_assert’
3578 | gcc_assert (!EM (d));
| ^~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c: In function ‘new_string_by_model’:
../../gpc/gcc-3.4.4/gcc/p/gpc.h:68:68: warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]
68 | ((void) ((expression) ? 0 : (assert_fail (#expression, __FILE__, __PRETTY_FUNCTION__, __LINE__), 0)))
| ^~~~~~~~~~~~~~~~~~~
../../gpc/gcc-3.4.4/gcc/p/declarations.c:3659:7: note: in expansion of macro ‘gcc_assert’
3659 | gcc_assert (isstring);
| ^~~~~~~~~~
make[1]: *** [../../gpc/gcc-3.4.4/gcc/p/Make-lang.in:634 : p/declarations.o] Erreur 1
make[1] : on quitte le répertoire « /home/paul/gpc-build/gcc »
make: *** [Makefile:23375 : all-gcc] Erreur 2
paul@jacko:~/gpc-build$
So isstring is undefined?