Skip to contentSkip to conversation

d74b9a1 breaks ARM build (gcc 4.6)

DISCUSSION Leif Lindholm 2 participants 3 messages Dec 2, 2013 – Dec 4, 2013

lore
Share & tools
lore
#0 lore raw

Commit d74b9a1, "Ensure that -mno-unaligned-access or some equivalent option is used.", breaks the configure step on my Debian Jessie, with a default 4.6.4 toolchain:
"configure: error: couldnt instruct compiler not to use unaligned access"

Where -mno-unalignes-access is not supported by gcc, it does not generate unaligned instructions. Was this inserted for llvm? If so, what was the fault this was fixing?

/
Leif

#1 lore raw
Quoted 9 lines · Leif Lindholm

Commit d74b9a1, "Ensure that -mno-unaligned-access or some equivalent option is used.", breaks the configure step on my Debian Jessie, with a default 4.6.4 toolchain:
"configure: error: couldnt instruct compiler not to use unaligned access"

Where -mno-unalignes-access is not supported by gcc, it does not generate unaligned instructions. Was this inserted for llvm? If so, what was the fault this was fixing?

The reason to force to have some version of this argument is following excerpt from gcc manual:
" By default unaligned access is disabled for all pre-ARMv6 and all ARMv6-M architectures, and enabled for all other architectures." Clearly not what we want.
Perhaps we should instead check that __ARM_FEATURE_UNALIGNED is not defined.

Quoted 8 lines

/
Leif

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
In reply to Leif Lindholm

Fixed.

Quoted 17 lines · Leif Lindholm

Commit d74b9a1, "Ensure that -mno-unaligned-access or some equivalent option is used.", breaks the configure step on my Debian Jessie, with a default 4.6.4 toolchain:
"configure: error: couldnt instruct compiler not to use unaligned access"

Where -mno-unalignes-access is not supported by gcc, it does not generate unaligned instructions. Was this inserted for llvm? If so, what was the fault this was fixing?

/
Leif

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel