On 11/ 8/10 02:13 AM, Gabriel Dos Reis wrote:
>>
>> Unless I am mistaken, this problem is only seen with gcc.
>
> In other forums, you have lamented that C programmers don't write codes
> according to the C standard.  Well, computed gotos are not standard C.
> I'm surprised that you are advocating to keep them regardless.
> They do impose some constraints on generation of position-independent codes.
> Even though one might argue that GCC has a regression/bug compared to
> previous versions, you should know that the construct itself is non-standard.
>
> -- Gaby


Personally I would not make use of the extensions I must admit.

I don't know if this is a regression in gcc or not. It may never have worked. 
Until recently, Sage, the project I work on, was only being built 32-bit, so I 
would have been unaware of any problems with older GCC's and this position 
independent code problem. It is only when trying 64-bit builds more recently, 
that the issue arose.

Whilst the 32-bit is not position independent, it does not appear to cause any 
problems on 32-bit builds, but it does on 64-bit builds. (Of course, there may 
be problems on 32-bit builds and our test suite has never found them. But on 
64-bit builds, it causing a failure to link).

I assumed the fact the Sun compiler was compiling this without problems, that 
the code was standard C, but I take your word for the fact the bit of code is 
not. I don't actually know precisely the bit of affected code, so I was unaware 
it was not C.

dave

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to