public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66097] New: Program fails to run with -O1 but runs with individual settings.
@ 2015-05-10 20:52 gcc-bugs at hussar dot demon.co.uk
  2015-05-10 21:37 ` [Bug c++/66097] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: gcc-bugs at hussar dot demon.co.uk @ 2015-05-10 20:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66097
           Summary: Program fails to run with -O1 but runs with individual
                    settings.
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugs at hussar dot demon.co.uk
  Target Milestone: ---

When I compile my program with -O1 it fails, but using the options in [1] it
succeeds. Does the web site need updating with the options gcc v5.10 enables at
-O1? Or is there some other issue? (Note that the same program has no issues
with gcc v.4.8.4.) If the website is correct then I'll do more investigation
and upload more details.


[1] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html


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

* [Bug c++/66097] Program fails to run with -O1 but runs with individual settings.
  2015-05-10 20:52 [Bug c++/66097] New: Program fails to run with -O1 but runs with individual settings gcc-bugs at hussar dot demon.co.uk
@ 2015-05-10 21:37 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-05-10 21:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-10
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Not all optimizations are controlled directly by a flag.
> Only optimizations that have a flag are listed in this section.

> Most optimizations are only enabled if an -O level is set on the command line.

So we need the testcase which fails for you when compiled with -O1 compared to
-O0.


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

end of thread, other threads:[~2015-05-10 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-10 20:52 [Bug c++/66097] New: Program fails to run with -O1 but runs with individual settings gcc-bugs at hussar dot demon.co.uk
2015-05-10 21:37 ` [Bug c++/66097] " pinskia 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).