public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
@ 2013-11-07  9:54 schwab@linux-m68k.org
  2013-11-07 11:01 ` [Bug target/59035] [4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-11-07  9:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

            Bug ID: 59035
           Summary: FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto
                    -fno-use-linker-plugin -flto-partition=none  execution
                    test
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
            Target: ia64-*-*

Only fails with -flto.

$ gcc/xgcc -Bgcc/ ../gcc/testsuite/gcc.dg/torture/c99-contract-1.c -O2 -std=c99
-pedantic-errors
$ ./a.out
$ gcc/xgcc -Bgcc/ ../gcc/testsuite/gcc.dg/torture/c99-contract-1.c -O2 -std=c99
-pedantic-errors -flto
$ ./a.out
Aborted


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

* [Bug target/59035] [4.9 Regression] FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
  2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
@ 2013-11-07 11:01 ` rguenth at gcc dot gnu.org
  2013-11-07 13:34 ` joseph at codesourcery dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-07 11:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu.org
   Target Milestone|---                         |4.9.0
            Summary|FAIL:                       |[4.9 Regression] FAIL:
                   |gcc.dg/torture/c99-contract |gcc.dg/torture/c99-contract
                   |-1.c  -O2 -flto             |-1.c  -O2 -flto
                   |-fno-use-linker-plugin      |-fno-use-linker-plugin
                   |-flto-partition=none        |-flto-partition=none
                   |execution test              |execution test

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I wonder whether fp-contract opts are properly transfered to LTO?


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

* [Bug target/59035] [4.9 Regression] FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
  2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
  2013-11-07 11:01 ` [Bug target/59035] [4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-11-07 13:34 ` joseph at codesourcery dot com
  2013-11-19 14:52 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2013-11-07 13:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
If -ffp-contract=off is set for any object (whether explicitly, or 
implicitly by an option such as -std=c99), the safe option for LTO would 
be to set -ffp-contract=off at link time as well.


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

* [Bug target/59035] [4.9 Regression] FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
  2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
  2013-11-07 11:01 ` [Bug target/59035] [4.9 Regression] " rguenth at gcc dot gnu.org
  2013-11-07 13:34 ` joseph at codesourcery dot com
@ 2013-11-19 14:52 ` rguenth at gcc dot gnu.org
  2013-11-20 10:31 ` rguenth at gcc dot gnu.org
  2013-11-20 10:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-19 14:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-11-19
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 31249
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31249&action=edit
patch

The following should fix it.


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

* [Bug target/59035] [4.9 Regression] FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
  2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
                   ` (3 preceding siblings ...)
  2013-11-20 10:31 ` rguenth at gcc dot gnu.org
@ 2013-11-20 10:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-20 10:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Should be fixed now.


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

* [Bug target/59035] [4.9 Regression] FAIL: gcc.dg/torture/c99-contract-1.c  -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test
  2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
                   ` (2 preceding siblings ...)
  2013-11-19 14:52 ` rguenth at gcc dot gnu.org
@ 2013-11-20 10:31 ` rguenth at gcc dot gnu.org
  2013-11-20 10:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-20 10:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59035

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Nov 20 10:31:24 2013
New Revision: 205096

URL: http://gcc.gnu.org/viewcvs?rev=205096&root=gcc&view=rev
Log:
2013-11-20  Richard Biener  <rguenther@suse.de>

    PR lto/59035
    * lto-opts.c (lto_write_options): Write defaults only if
    they were not explicitely specified.  Also write
    -ffp-contract default.
    * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
    conservatively.
    (run_gcc): Pass through -ffp-contract.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-opts.c
    trunk/gcc/lto-wrapper.c


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

end of thread, other threads:[~2013-11-20 10:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-07  9:54 [Bug target/59035] New: FAIL: gcc.dg/torture/c99-contract-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test schwab@linux-m68k.org
2013-11-07 11:01 ` [Bug target/59035] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-11-07 13:34 ` joseph at codesourcery dot com
2013-11-19 14:52 ` rguenth at gcc dot gnu.org
2013-11-20 10:31 ` rguenth at gcc dot gnu.org
2013-11-20 10:31 ` rguenth 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).