Red Hat Bugzilla – Bug 169843
"short" accessed as a 32-bit word with -O1
Last modified: 2007-11-30 17:07:08 EST
Description of problem:
The attached test case (derived from doset () in sh.set.c from tcsh)
should read "val = *ptr" using a 16-bit read, but it uses a 32-bit read.
When *ptr is located at end of a page, this can cause a SIGSEGV.
Version-Release number of selected component (if applicable):
gcc -S -O1 foo2.c && less foo2.s
Steps to Reproduce:
Created attachment 119593 [details]
Oops, sorry about the dupes.
*** This bug has been marked as a duplicate of 169845 ***