------- Comment #2 from Martin dot vGagern at gmx dot net  2007-01-25 11:06 
-------
As this has been unconfirmed for so long and should be relatively easy to
confirm, here are the commands to reproduce the problems above:

gcc -fPIC -fomit-frame-pointer -O2 -S ebp.c && grep DEBUG ebp.s
gcc                            -O1 -S ebp.c && grep DEBUG ebp.s
gcc -fPIC                      -O0 -S ebp.c && grep DEBUG ebp.s

In case you want to reproduce all the combinations given in the table at the
end of my source file, you can use this bash loop:

for ((i=0; i < 32; ++i)); do
  ARGS="-O$((i%4))"; 
  ARGS="$( [[ $((i&4)) -eq 0 ]] || echo "-fomit-frame-pointer ")$ARGS";
  ARGS="$( [[ $((i&8)) -eq 0 ]] || echo "-fPIC ")$ARGS";
  ARGS="$( [[ $((i&16)) -eq 0 ]] || echo "-DNBEFORE ")$ARGS";
  echo "-- $ARGS --";
  gcc $ARGS -S ebp.c && grep DEBUG ebp.s
done

It might be you can reproduce this behaviour, but are not certain it is a bug.
I can understand you might doubt a single of my three mentioned problems, but
do you really believe they are all three as things should be? If in doubt,
perhaps best concentrate on problem 1, ebp being clobbered and still used.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28686

Reply via email to