public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets
@ 2021-04-03  8:25 zmin1 at avic dot com
  2021-04-03  8:30 ` [Bug target/99890] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zmin1 at avic dot com @ 2021-04-03  8:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99890

            Bug ID: 99890
           Summary: The -mstrict-aglign doesn't support the ARM targets
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zmin1 at avic dot com
  Target Milestone: ---

When I use the PowerPC targets, the -mstrict-align options is very useful, it
can force the structs and datas to align with 4bytes rules。
But why the ARM targets doesn't support this options?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/99890] The -mstrict-aglign doesn't support the ARM targets
  2021-04-03  8:25 [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets zmin1 at avic dot com
@ 2021-04-03  8:30 ` pinskia at gcc dot gnu.org
  2021-04-04  3:18 ` zmin1 at avic dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-04-03  8:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99890

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Because it is a target specific option.
What exactly are you trying to do?

most instructions in ARMv7+ support unaligned data.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/99890] The -mstrict-aglign doesn't support the ARM targets
  2021-04-03  8:25 [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets zmin1 at avic dot com
  2021-04-03  8:30 ` [Bug target/99890] " pinskia at gcc dot gnu.org
@ 2021-04-04  3:18 ` zmin1 at avic dot com
  2021-04-04  5:04 ` pinskia at gcc dot gnu.org
  2021-04-06  9:34 ` [Bug target/99890] The -mstrict-align " rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: zmin1 at avic dot com @ 2021-04-04  3:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99890

--- Comment #2 from ZhangMin <zmin1 at avic dot com> ---
(In reply to Andrew Pinski from comment #1)
> Because it is a target specific option.
> What exactly are you trying to do?
> 
> most instructions in ARMv7+ support unaligned data.

Although armv7 + supports non aligned data access, our application requires
data aligned access.
On PowerPC, we can achieve the goal well by using - mstrict align option, but
not on arm.
Is there any other way to solve this problem?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/99890] The -mstrict-aglign doesn't support the ARM targets
  2021-04-03  8:25 [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets zmin1 at avic dot com
  2021-04-03  8:30 ` [Bug target/99890] " pinskia at gcc dot gnu.org
  2021-04-04  3:18 ` zmin1 at avic dot com
@ 2021-04-04  5:04 ` pinskia at gcc dot gnu.org
  2021-04-06  9:34 ` [Bug target/99890] The -mstrict-align " rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-04-04  5:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99890

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2021-04-04

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What exactly are you looking for? What does the code look like and what exact
target are you using?

Also GCC 4.8.1 is over 6 years old, can you try a newer GCC?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/99890] The -mstrict-align doesn't support the ARM targets
  2021-04-03  8:25 [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets zmin1 at avic dot com
                   ` (2 preceding siblings ...)
  2021-04-04  5:04 ` pinskia at gcc dot gnu.org
@ 2021-04-06  9:34 ` rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2021-04-06  9:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99890

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Try -mno-unaligned-access

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-06  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-03  8:25 [Bug c/99890] New: The -mstrict-aglign doesn't support the ARM targets zmin1 at avic dot com
2021-04-03  8:30 ` [Bug target/99890] " pinskia at gcc dot gnu.org
2021-04-04  3:18 ` zmin1 at avic dot com
2021-04-04  5:04 ` pinskia at gcc dot gnu.org
2021-04-06  9:34 ` [Bug target/99890] The -mstrict-align " rearnsha at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).