This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001528] compat/posix: porting to GCC 4.6


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001528

--- Comment #4 from Jonathan Larmour <jifl@ecoscentric.com> 2012-03-13 14:26:50 GMT ---
Thanks for the disassembly.

(In reply to comment #3)
> 
> Thus, new compiler uses less registers, but, GCC 4.6 provides the same
> functionality (I tested the loop in GDB, and I got `sigbus' call at the
> end with new code). Though, you are right, a using CYGBLD_ATTRIB_UNUSED
> for the forced volatile variables would break smart things.

Well, it _could_ break things if the gcc policy was that even volatile accesses
could be eliminated for things which are both unused and explicitly marked
unused. That appears not to be the case, which is good.

> Then, maybe leave signal2 test without the changes as I tested the code
> for one CPU only? What is your verdict?

No it can go. If GCC thought it was unused and could be discarded it would
definitely get rid of it during optimisation, and that would be true on all
architectures.

So your full patch including signal2 change can go in now, thanks!

Jifl

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]