SPARC config files cleanup 2/n

Eric Botcazou ebotcazou@libertysurf.fr
Fri Jan 21 16:01:00 GMT 2005


> There are  a couple of missing undef's which need to be added to
> avoid warnings lots of warnings when build.  The patch for those
> is below my signature.

Thanks.  I already killed them locally though.

> The build finally fails here:
>
> gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -Wno-variadic-macros -Wold-style-definition -fno-common
> -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
> -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
> ../../gcc/gcc/tree-inline.c -o tree-inline.o
> ../../gcc/gcc/config/sparc/sparc.c:504: error:
> 'solaris_insert_attributes' undeclared here (not in a function)
>
> How do we get around this?

By waiting for the fix for PR bootstrap/19364 to be commited. :-)  This patch 
is only a preliminary cleanup.  I want to remove as many useless macros as I 
can before the big one.

> sparc/liteelf.h twiddles some defines that are not twiddled in the
> rtemself.h file.  Should we be setting any of those?
>
>    - TARGET_VERSION - ok without setting I think
>    - TARGET_DEFAULT - I don't know if we should match
>    - US_SOFTWARE_GOFAST - we don't use the GOFAST software we are OK
>    - STARTFILE_SPEC - We also use crti/begin, do we need this also
>    - undef of INIT_SECTION_ASM_OP and FINI_SECTION_ASM_OP is not
>      needed for RTEMS.  We use init/fini.

I'll provide default values in the new sparc-elf configuration file.  You 
should not have to change anything in rtemself.h.

> RTEMS is an easy one.  Switch to the best format and let us know which
> gdb version matches it.  We have to compile everthing from ground up
> with each gcc version so don't worry about binary issues.

OK, thanks.  And any GDB version should work, DWARF-2 on SPARC 32-bit has 
been supported for ages.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list