David O'Brien wrote: >>>If someone could find the small segment of code where the optimizer >>>screws up, and write a small program to demonstrate the problem, we >>>would have a good chance of it getting fixed. >> >>Er, someone (Dan Lukes) has already done this. See PR 40209. > > > It looks like this PR is against the system GCC 3.1. As such it isn't a > very interesting bug report. Someone needs to test to see if this bug > exists when using the gcc31 (gcc 3.1.1 release) port.
df seems to be a rather nice & quick testcase (thanks perky). Compiling libc with -O2, then compiling df with it yields output like this: Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 252M <5M :7M 54% / devfs 1.0K 1.0K 0B :0% /dev /dev/da0s1f 3.2G 2.2G 757M 75% /usr /dev/da0s1e 252M 28M 204M <% /var procfs 4.0K 4.0K 0B :0% /proc linprocfs 4.0K 4.0K 0B :0% The system gcc3 and all versions of gcc3 in our ports do this. gcc295 does not. Regards, -- Michael Nottebrock "And the reasons? There are no reasons."
msg41726/pgp00000.pgp
Description: PGP signature