* B.A.f.H. [2009-05-11 15:29 +0200]:
> 
> now I have build a new toolchain. The people especially Ruud Vlaming
> from the avr-gcc mailing list supported me. The toolchain consists
> of avr-binutils-2.19, avr-gcc-4.3.3 and avr-libc-1.6.4 with patches,
> for details look at the install_toolchain script from FemtoOS.
[...]
> But compiling for example the Blink app for the iris or the micaz
> plattform break with internal compiler error. See the attachement.
> Also compiling the app.c file break with the same internal compiler error.
[...]
> Does anybody knows the problem? Is there a solution for the problem?

I think I do.  One of the problems here appears to be that nescc adds
__attribute__(interrupt) to _both_ function declaration and definition.
The documentation of recent gcc versions states that function attributes
are only allowed at function declaration.  The other problem is that
gcc does not handle this in a more graceful manner.

You can work around this by applying the attached patch to your nescc.


bye
--- nesc-1.3.0/src/unparse.c	2008-06-03 23:20:21.000000000 +0200
+++ mynesc/src/unparse.c	2009-04-24 15:17:47.000000000 +0200
@@ -819,7 +819,8 @@
       prt_diff_info(d->ddecl);
       prt_prefix(d->location, d->ddecl, d->modifiers);
       /* gcc wants the attributes here */
-      prt_type_elements(CAST(type_element, d->attributes), 0);
+      /* newer gccs don't */
+      /* prt_type_elements(CAST(type_element, d->attributes), 0); */
 
       if (ret)
 	{
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to