This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35034] assembler errors when building gcc/unwind-*.c at -O0 or -O1 with IMA
- From: "aldot at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2008 15:11:23 -0000
- Subject: [Bug c/35034] assembler errors when building gcc/unwind-*.c at -O0 or -O1 with IMA
- References: <bug-35034-11811@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from aldot at gcc dot gnu dot org 2008-01-31 15:11 -------
(In reply to comment #2)
> I suppose the static function
>
> static const unsigned char *
> read_uleb128 (const unsigned char *p, _uleb128_t *val)
> {
>
> in unwind-pe.h should be marked 'inline', otherwise it will be emitted
> multiple times to the asm file by -combine.
unwind-pe.h as a header should provide an interface to and not implementations
of the required functions. Apart from fixing the functions in IMA, unwind-pe.h
should split it's implementations off into a e.g. unwind-pe.c that exports the
common helpers.
Does somebody know if it is really intended that dwarf2asm.c has grown (or
kept) a different impl of size_of_encoded_value() than all the rest?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35034