[Bug c/49467] Enhancement: Intrinsic to read CARRY and OVERFLOW flags (where applicable)

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49467 Martin von Gagern changed: What|Removed |Added CC||Martin.vGagern at gmx dot net --- Co

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Martin von Gagern changed: What|Removed |Added CC||Martin.vGagern at gmx dot net --- Co

[Bug middle-end/48580] missed optimization: integer overflow checks

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48580 --- Comment #21 from Martin von Gagern --- (In reply to myself from comment #15) > (In reply to comment #7) > > […] built-in operations where you can just say "multiply two > > (signed) values, check whether the result fits in 31-bit unsigned an

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #8 from Andrew Pinski --- I rather not have builtins as you can write portable C code that detects overflow just fine. GCC could have internal functions if needed which are used when converting the pattern for detecting overflow.

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #9 from Martin von Gagern --- (In reply to Andrew Pinski from comment #8) > I rather not have builtins as you can write portable C code that detects > overflow just fine. GCC could have internal functions if needed which are > used w

[Bug c++/62243] New: Non-typename template argument behaviour in loop (unsigned int)

2014-08-24 Thread bjodah at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243 Bug ID: 62243 Summary: Non-typename template argument behaviour in loop (unsigned int) Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal

[Bug middle-end/62242] ICE in expand_expr_real_1

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62242 Joost VandeVondele changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/62243] Non-typename template argument behaviour in loop (unsigned int)

2014-08-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/62243] Non-typename template argument behaviour in loop (unsigned int)

2014-08-24 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243 --- Comment #2 from Marc Glisse --- Please always compile your programs with -Wall, it would have told you what was wrong.

[Bug c++/62243] Non-typename template argument behaviour in loop (unsigned int)

2014-08-24 Thread bjodah at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243 --- Comment #3 from Bjoern Dahlgren --- Will do. Sorry for this and thank you.

[Bug c++/62244] New: Function parameter should be in scope in its own default argument

2014-08-24 Thread zeratul976 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62244 Bug ID: 62244 Summary: Function parameter should be in scope in its own default argument Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Joost VandeVondele changed: What|Removed |Added CC||Joost.VandeVondele at mat dot ethz

[Bug libstdc++/62169] map iterators under _GLIBCXX_DEBUG diverge

2014-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62169 --- Comment #6 from Jonathan Wakely --- It's not an option IMHO. See http://www​.stroustrup.com/SCARY.pdf for the benefits of the current design. Those benefits outweigh the advantage of having non-portable code diagnosed. Debug iterators can't b

[Bug libstdc++/62169] map iterators under _GLIBCXX_DEBUG diverge

2014-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62169 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > they have a pointer back to their patent container s/patent/parent/ As for solving the problem of switching containers, use a typedef for the container, or

[Bug target/61996] [SH] -musermode conflicts with -matomic-model=soft-imask

2014-08-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61996 --- Comment #5 from Oleg Endo --- Author: olegendo Date: Sun Aug 24 10:46:25 2014 New Revision: 214406 URL: https://gcc.gnu.org/viewcvs?rev=214406&root=gcc&view=rev Log: gcc/ PR target/61996 * config/sh/sh.opt (musermode): Allow negative

[Bug target/61996] [SH] -musermode conflicts with -matomic-model=soft-imask

2014-08-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61996 --- Comment #6 from Oleg Endo --- Author: olegendo Date: Sun Aug 24 10:52:58 2014 New Revision: 214407 URL: https://gcc.gnu.org/viewcvs?rev=214407&root=gcc&view=rev Log: gcc/ Backport from mainline 2014-08-24 Oleg Endo PR target/

[Bug fortran/62245] New: gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 Bug ID: 62245 Summary: gfortran miscompiles int() on mips Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug fortran/62246] New: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62246 Bug ID: 62246 Summary: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/62242] ICE in expand_expr_real_1

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62242 --- Comment #2 from Joost VandeVondele --- Further reduced: > cat bug.f90.orig module gfbug contains pure function UpperCase(string) result(upper) character(*), intent(IN) :: string character(LEN(string)) :: upper

[Bug target/61996] [SH] -musermode conflicts with -matomic-model=soft-imask

2014-08-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61996 --- Comment #7 from Oleg Endo --- Author: olegendo Date: Sun Aug 24 11:15:37 2014 New Revision: 214408 URL: https://gcc.gnu.org/viewcvs?rev=214408&root=gcc&view=rev Log: gcc/ Backport from mainline 2014-08-24 Oleg Endo PR target/

[Bug target/61996] [SH] -musermode conflicts with -matomic-model=soft-imask

2014-08-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61996 Oleg Endo changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 Joost VandeVondele changed: What|Removed |Added CC||Joost.VandeVondele at mat dot ethz

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #2 from Julian Taylor --- mips is the only architecture with this behavior, all others behave as documented. Shouldn't that be reason enough to change mips? if not please document the exception on mips.

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #3 from Joost VandeVondele --- (In reply to Julian Taylor from comment #2) > mips is the only architecture with this behavior, all others behave as > documented. > Shouldn't that be reason enough to change mips? > if not please docum

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #4 from Julian Taylor --- no x86 behaves as documented, the documentation states the sign is retained. You can debate on what largest integer means here, it could be -1 as > -2147483648 but as positive inputs give -2147483647 I think

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #5 from Julian Taylor --- oh I overlooked you put in positive input, thats strange then the documentation should be updated that its undefined behavior.

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 Joost VandeVondele changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #7 from Julian Taylor --- But the docs indicate that there is no undefined behavior. As I interpret them the result of int() is always well defined. If the documentation would not state what happens in the case of overflow it would be

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #8 from Joost VandeVondele --- (In reply to Julian Taylor from comment #7) > But the docs indicate that there is no undefined behavior. > As I interpret them the result of int() is always well defined. > If the documentation would no

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #9 from Julian Taylor --- thanks, please also clarify/remove the sentence about the sign as the result sign is not the sign of the input as indicated by the docs.

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #10 from Joost VandeVondele --- (In reply to Julian Taylor from comment #9) > thanks, please also clarify/remove the sentence about the sign as the result > sign is not the sign of the input as indicated by the docs. it will now inc

[Bug middle-end/62247] New: [5.0 Regression] FAIL: g++.dg/abi/anon3.C -std=c++98 scan-assembler .weak(_definition)

2014-08-24 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62247 Bug ID: 62247 Summary: [5.0 Regression] FAIL: g++.dg/abi/anon3.C -std=c++98 scan-assembler .weak(_definition) Product: gcc Version: 5.0 Status: UNCONFIRMED Sev

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org --- C

[Bug c++/61825] [5 regression] g++.dg/cpp0x/static_assert9.C FAILs

2014-08-24 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61825 John David Anglin changed: What|Removed |Added CC||danglin at gcc dot gnu.org --- Comme

[Bug other/62210] download_prerequisites does not download into current directory

2014-08-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62210 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug other/62248] New: Configure error with --with-fpu=fp-armv8

2014-08-24 Thread amanieu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62248 Bug ID: 62248 Summary: Configure error with --with-fpu=fp-armv8 Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other

[Bug lto/62249] New: Spurious FORTIFY_SOURCE warning with -flto, poll

2014-08-24 Thread zackw at panix dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62249 Bug ID: 62249 Summary: Spurious FORTIFY_SOURCE warning with -flto, poll Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug libfortran/62250] New: FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single

2014-08-24 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62250 Bug ID: 62250 Summary: FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: norma

[Bug testsuite/62028] Power64/Linux: FAIL: gcc.dg/sms-8.c scan-rtl-dump-times sms "SMS succeeded" 0

2014-08-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62028 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/61298] redundant compare instructions for powerpc64

2014-08-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61298 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/62251] New: [5.0 Regression] FAIL: gfortran.dg/quad_2.f90 execution test

2014-08-24 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62251 Bug ID: 62251 Summary: [5.0 Regression] FAIL: gfortran.dg/quad_2.f90 execution test Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Pri

[Bug lto/62249] Spurious FORTIFY_SOURCE warning with -flto, poll

2014-08-24 Thread zackw at panix dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62249 --- Comment #1 from Zack Weinberg --- Created attachment 33389 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33389&action=edit Delta-minimized self-contained test case Requires no headers anymore. Delta-minimization revealed something in

[Bug lto/62249] Spurious FORTIFY_SOURCE warning with -flto, poll

2014-08-24 Thread zackw at panix dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62249 --- Comment #2 from Zack Weinberg --- Incidentally, yes, the test case is based on a real program.

[Bug plugins/62252] New: a callback to event PLUGIN_FINISH_TYPE segfaults

2014-08-24 Thread klemen.jan.enova at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62252 Bug ID: 62252 Summary: a callback to event PLUGIN_FINISH_TYPE segfaults Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2014-08-24 Thread steven at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Steven Bosscher changed: What|Removed |Added Keywords||missed-optimization Status

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Manuel López-Ibáñez changed: What|Removed |Added CC||noloader at gmail dot com --- Comm

[Bug c/49467] Enhancement: Intrinsic to read CARRY and OVERFLOW flags (where applicable)

2014-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49467 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Commen

[Bug target/62253] New: gcc incorrectly mixes direct atomic instructions with calls to atomic library

2014-08-24 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62253 Bug ID: 62253 Summary: gcc incorrectly mixes direct atomic instructions with calls to atomic library Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: n

[Bug plugins/62252] a callback to event PLUGIN_FINISH_TYPE segfaults

2014-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62252 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug target/62253] gcc incorrectly mixes direct atomic instructions with calls to atomic library

2014-08-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62253 --- Comment #1 from Andrew Pinski --- Iirc lib atomic on x86 uses the atomic instructions for 32bit and not the pthread implemention. Also if you have xchng, you can do all functions using that one without using the pthread implemention.

[Bug plugins/62252] a callback to event PLUGIN_FINISH_TYPE segfaults

2014-08-24 Thread klemen.jan.enova at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62252 --- Comment #2 from klemen.jan.enova at gmail dot com --- TREE_CODE(type) returns an ERROR_MARK. So, (tree) event_data must not alias with a tree. This plugin is from https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/g%2B%2B.dg/plugin/du

[Bug fortran/60774] f951: internal compiler error: Segmentation fault: 11

2014-08-24 Thread bdavis at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60774 --- Comment #5 from Bud Davis --- Index: gcc/gcc/fortran/parse.c === --- gcc/gcc/fortran/parse.c(revision 214408) +++ gcc/gcc/fortran/parse.c(working copy) @@ -868,8 +868,6 @

[Bug plugins/62252] a callback to event PLUGIN_FINISH_TYPE segfaults

2014-08-24 Thread klemen.jan.enova at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62252 --- Comment #3 from klemen.jan.enova at gmail dot com --- It works on gcc, though. in gcc/c/c-parser.c: > if (!typespec_ok) > goto out; > invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, t.spec); > declspecs_add_t

[Bug c++/62227] Templated move not elided

2014-08-24 Thread james.dennett at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62227 James Dennett changed: What|Removed |Added CC||james.dennett at gmail dot com --- Comme

[Bug c++/62227] Templated move not elided

2014-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62227 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement --- Comment #3 from Jonath

[Bug c++/62227] Templated move not elided

2014-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62227 --- Comment #4 from Jonathan Wakely --- http://open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#535 changed that wording

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-24 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #16 from Kazumoto Kojima --- Author: kkojima Date: Mon Aug 25 00:37:51 2014 New Revision: 214413 URL: https://gcc.gnu.org/viewcvs?rev=214413&root=gcc&view=rev Log: PR target/62111 * config/sh/predicates.md (general_extend_ope

[Bug plugins/59335] Plugin doesn't build on trunk

2014-08-24 Thread terry.guo at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59335 Terry Guo changed: What|Removed |Added CC||terry.guo at arm dot com --- Comment #27 fro

[Bug plugins/59335] Plugin doesn't build on trunk

2014-08-24 Thread joey.ye at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59335 Joey Ye changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug fortran/62049] Negative count_rate when calling system_clock

2014-08-24 Thread wxcvbn789456123-nw6wda at yahoo dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62049 --- Comment #2 from Paul Martin --- Below is the output of the program given in Comment #1 , using the same version of gfortran and the same operating system (32 bits) as in Comment #0 : bash 2 : gfortran --version | head -3 GNU Fortran (GCC)