[Bug ada/23836] [4.0 Regression] Invalid code generated when accessing packed arrays

2005-09-12 Thread james at recherche dot enac dot fr
--- Additional Comments From james at recherche dot enac dot fr 2005-09-12 20:05 --- Works perfectly well with -O1 and -O2 with gcc-3.4 There is no language trick here. The overlay A_I (which is the only tricky part) is never used, it is only declared. Moreover, declaring Bit as an uns

[Bug ada/23836] [4.0 Regression] Invalid code generated when accessing packed arrays

2005-09-12 Thread laurent at guerby dot net
--- Additional Comments From laurent at guerby dot net 2005-09-12 19:31 --- >From a language point of view I doubt this construct is guaranteed to work, >I'll let someone more knowledgeable say if GCC should support this or not. In particular at -O1 or -O2 the program fail with 4.1. Co

[Bug ada/23836] [4.0 Regression] Invalid code generated when accessing packed arrays

2005-09-12 Thread laurent at guerby dot net
--- Additional Comments From laurent at guerby dot net 2005-09-12 19:26 --- Works on 4.1.0 20050908, confirm problem on 4.0.1 (don't have 3.4 handy). [EMAIL PROTECTED]:~/tmp> gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /home/guerby/work/gcc/version-head/confi