[U-Boot-Users] possible ELDK4 gcc compiler bug
Pantelis Antoniou
pantelis.antoniou at gmail.com
Thu Dec 7 17:38:05 CET 2006
On 07 Δεκ 2006, at 11:28 ΠΜ, Matthias Fuchs wrote:
> On Thursday 07 December 2006 17:21, Matthias Fuchs wrote:
>>
>> int do_fifo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>> {
>> struct pmc405v2_fpga_s *fpga = (struct pmc405v2_fpga_s *)FPGA_BA;
> Making 'fpga' static solves the problem. But why?
>
You are getting hit by the optimizer, even getting this far was lucky.
Just for kicks, try:
>> volatile struct pmc405v2_fpga_s *fpga = (volatile struct
>> pmc405v2_fpga_s *)FPGA_BA;
But you should really be using accessors...
Pantelis
> Matthias
>
> --
> ----------------------------------------------------------------------
> -
> Dipl.-Ing. Matthias Fuchs esd electronic system design
> gmbh
> http://www.esd-electronics.com Vahrenwalder Str.
> 207
> phone: +49-511-37298-0, fax: -68 30165 Hannover,
> Germany
> ----------------------------------------------------------------------
> -
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
More information about the U-Boot
mailing list