public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'
       [not found] <bug-83143-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-27 21:23 ` giulio.benetti at benettiengineering dot com
  2021-08-27 21:33 ` glaubitz at physik dot fu-berlin.de
  2021-08-27 22:22 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 3+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-27 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
This bug still shows up in gcc version 9.x and 11.x. But not on version 10.x
I've found the simple work-around to disable the optimization(override CFLAGS
with -O0) and it works.

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

* [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'
       [not found] <bug-83143-4@http.gcc.gnu.org/bugzilla/>
  2021-08-27 21:23 ` [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-' giulio.benetti at benettiengineering dot com
@ 2021-08-27 21:33 ` glaubitz at physik dot fu-berlin.de
  2021-08-27 22:22 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 3+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2021-08-27 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Giulio Benetti from comment #14)
> This bug still shows up in gcc version 9.x and 11.x. But not on version 10.x
> I've found the simple work-around to disable the optimization(override
> CFLAGS with -O0) and it works.

That removes too many optimizations. As explained in comment 5 [1], it should
be enough to add "-freorder-blocks-algorithm=simple" instead of just removing
all optimizations.

> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143#c5

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

* [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'
       [not found] <bug-83143-4@http.gcc.gnu.org/bugzilla/>
  2021-08-27 21:23 ` [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-' giulio.benetti at benettiengineering dot com
  2021-08-27 21:33 ` glaubitz at physik dot fu-berlin.de
@ 2021-08-27 22:22 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 3+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-27 22:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Thank you. Yes I've just tested "-freorder-blocks-algorithm=simple" solution of
gcc 9.x and 11.x with -Os enabled and it works perfectly.

By the way, is it useful for you if I provide .i and .s file with -save-temps?

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

end of thread, other threads:[~2021-08-27 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-83143-4@http.gcc.gnu.org/bugzilla/>
2021-08-27 21:23 ` [Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-' giulio.benetti at benettiengineering dot com
2021-08-27 21:33 ` glaubitz at physik dot fu-berlin.de
2021-08-27 22:22 ` giulio.benetti at benettiengineering dot com

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).