[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #26 from Murat Ursavaş --- (In reply to Richard Earnshaw from comment #21) > (In reply to Murat Ursavaş from comment #20) > > By the way, the hardware peripheral registers are aligned to 32bits. > > So why don't you define your

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #25 from Murat Ursavaş --- (In reply to Eric Gallager from comment #24) > (In reply to Murat Ursavaş from comment #6) > > Hi Jonathan, > > > > I just wanted a dramatic entrance :) (There was a discussion about GCC > > bugzilla on

[Bug rtl-optimization/41299] code size regression (from 4.3) with -Os and -mregparm=3

2018-09-21 Thread postmas...@aybabtu-com.bounceio.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41299 --- Comment #6 from postmas...@aybabtu-com.bounceio.net --- Your email was bounced... - ... because something went wrong between you and your recipient. Oh no! What to do next?

[Bug c++/37949] static initialisation through pointer deferred until run time

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37949 Eric Gallager changed: What|Removed |Added Status|WAITING |SUSPENDED --- Comment #6 from Eric

[Bug target/46524] Code size regression due to not reusing immediate operands of moves

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46524 Eric Gallager changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug rtl-optimization/41299] code size regression (from 4.3) with -Os and -mregparm=3

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41299 Eric Gallager changed: What|Removed |Added Status|WAITING |NEW Last reconfirmed|2009-09-09

[Bug lto/41767] assertion in tree-sra.c

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41767 Eric Gallager changed: What|Removed |Added Status|WAITING |SUSPENDED --- Comment #13 from Eric

[Bug c++/69697] incorrect runtime initialization of static flexible array members

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69697 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug tree-optimization/81809] missing -Wuninitialized due to alias analysis limitation

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81809 Eric Gallager changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #3

[Bug c++/80681] missing -Wuninitialized for const or reference member of a private base class

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80681 Eric Gallager changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #2

[Bug c++/78157] Incorrect diagnostic for variable template declaration

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78157 Eric Gallager changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,

[Bug target/87358] ICE when -mtune=thunderx2t99 applied

2018-09-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87358 --- Comment #2 from Andrew Pinski --- Here is a reduced testcase: void f(unsigned char timestamp, unsigned char * a) { while (1) { int check = (timestamp && *a); if (__builtin_expect((check == 0),1)) continue; } } CUT ---

[Bug other/29842] [meta-bug] outstanding patches / issues from STMicroelectronics

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29842 Bug 29842 depends on bug 29931, which changed state. Bug 29931 Summary: following argv[0] symlink in process_command breaks symlinked-together toolchain https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29931 What|Removed

[Bug driver/29931] following argv[0] symlink in process_command breaks symlinked-together toolchain

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29931 Eric Gallager changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/87389] if constexpr not working properly with static_assert

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 --- Comment #2 from Jonathan Wakely --- Specifically, the not-taken branch of an if constexpr is only discarded when inside a template. In a non-template both branches are compiled as normal, and so both static assertions get compiled. Since

[Bug c++/87389] if constexpr not working properly with static_assert

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/87386] [8/9 Regression] Error message for static_assert show wrong range

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 --- Comment #5 from Jonathan Wakely --- It would be better to highlight the whole condition: 87386.cc:4:15: error: static assertion failed: eee 4 | static_assert(foo::test::value, "eee"); | ^ Which is what

[Bug c++/87386] [8/9 Regression] Error message for static_assert show wrong range

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 Jonathan Wakely changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org ---

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #27 from Jürgen Reuter --- Interesting: when I run with checking flags, I get the following error: At line 532 of file evt_nlo.f90 Fortran runtime error: Array bound mismatch for dimension 1 of array 'event_deps' (0/2) However, I

[Bug c++/87386] [8/9 Regression] Error message for static_assert show wrong range

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/87386] [8/9 Regression] Error message for static_assert show wrong range

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Known to work|

[Bug fortran/87270] "FINAL" subroutine is called when compiled with "gfortran -O1", but not "gfortran -O0"

2018-09-21 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87270 --- Comment #4 from janus at gcc dot gnu.org --- (In reply to Paul Thomas from comment #3) > It seems that finalization has never occurred with any branch for this case, I don't fully agree with this statement. Apart from the fact that gfortran

[Bug bootstrap/87030] GCC fails to build with Xcode 10, attempting an impossible multilib build

2018-09-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87030 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/87135] [C++17] unordered containers violate iterator validity requirements

2018-09-21 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87135 --- Comment #4 from François Dumont --- Author: fdumont Date: Fri Sep 21 20:39:07 2018 New Revision: 264494 URL: https://gcc.gnu.org/viewcvs?rev=264494=gcc=rev Log: 2018-09-21 François Dumont PR libstdc++/87135 *

[Bug c++/87389] New: if constexpr not working properly with static_assert

2018-09-21 Thread tobias.bruell at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 Bug ID: 87389 Summary: if constexpr not working properly with static_assert Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/87388] New: Feature request: header-only -Wc++-compat

2018-09-21 Thread lennox at cs dot columbia.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87388 Bug ID: 87388 Summary: Feature request: header-only -Wc++-compat Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug middle-end/81035] noreturn leads to worse code due to lack of sibcall optimization

2018-09-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81035 Florian Weimer changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/87387] New: runk/gcc/builtins.c:585:7: warning: explicitly assigning value of variable of type 'tree' (aka 'tree_node *') to itself [-Wself-assign]

2018-09-21 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387 Bug ID: 87387 Summary: runk/gcc/builtins.c:585:7: warning: explicitly assigning value of variable of type 'tree' (aka 'tree_node *') to itself [-Wself-assign] Product: gcc

[Bug jit/64089] libgccjit.so.0.0.1 linkage failure on darwin

2018-09-21 Thread mrs at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089 --- Comment #21 from mrs at gcc dot gnu.org --- I'm fine with Backporting for affected branches.

[Bug c++/87386] Error message for static_assert show wrong range

2018-09-21 Thread trashyankes at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 --- Comment #1 from trashyankes at wp dot pl --- btw how reduce "Importance" of this bug? Right now it have same level as bug that could break my code.

[Bug middle-end/81035] noreturn leads to worse code due to lack of sibcall optimization

2018-09-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81035 --- Comment #3 from Florian Weimer --- Author: fw Date: Fri Sep 21 19:49:36 2018 New Revision: 264490 URL: https://gcc.gnu.org/viewcvs?rev=264490=gcc=rev Log: Document that attribute noreturn inhibits tail call optimization PR

[Bug c++/87386] New: Error message for static_assert show wrong range

2018-09-21 Thread trashyankes at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87386 Bug ID: 87386 Summary: Error message for static_assert show wrong range Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c/87385] New: -Wmisleading-indentation shouldn't warn for labels

2018-09-21 Thread lennox at cs dot columbia.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87385 Bug ID: 87385 Summary: -Wmisleading-indentation shouldn't warn for labels Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/87384] Likely syntax error not reported as such

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87384 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/87384] New: Likely syntax error not reported as such

2018-09-21 Thread jengelh at inai dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87384 Bug ID: 87384 Summary: Likely syntax error not reported as such Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 --- Comment #6 from Iain Sandoe --- hmm... Linux: $ more lib.s .file "lib.cc" .text .weak _ZN1AIiE6memberE .section .bss._ZN1AIiE6memberE,"awG",@nobits,_ZN1AIiE6memberE,comdat .align 4

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread paul.richard.thomas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #26 from paul.richard.thomas at gmail dot com --- Jeurgen, We are extremely pleased that you do follow developments on trunk. It really helps to catch regressions early, while the changes are fresh in mind :-) Sometime, I would

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Fri Sep 21 18:45:59 2018 New Revision: 264489 URL: https://gcc.gnu.org/viewcvs?rev=264489=gcc=rev Log: PR c++/87372 - __func__ constexpr evaluation. * constexpr.c

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #25 from Jürgen Reuter --- This is the part from the test-suite.log for the 4 failures, they are all in one particular feature of our code, so I am pretty sure that this is only one remaining open issue: | Starting simulation for

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #24 from Jürgen Reuter --- Paul, enjoy your time in Wales. Maybe this other issue wasn't caused by r263916 but by something else (though it must have been also in the past 2-3 weeks). What our functional tests do: they call a code

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #23 from Paul Thomas --- (In reply to Jürgen Reuter from comment #21) > In our functional test suite, the tests nlo_4, nlo_5, fks_res_1 and another > test are still failing, they lead to segmentation faults. This will be > really

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #22 from Paul Thomas --- (In reply to Jürgen Reuter from comment #20) > Paul, thanks for the fix, our code test suite is still running, most of the > problems are solved, the unit test suite is completely good now, but there > are

[Bug c/87379] Warn about function pointer casts which differ in variadic-ness

2018-09-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87379 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #21 from Jürgen Reuter --- In our functional test suite, the tests nlo_4, nlo_5, fks_res_1 and another test are still failing, they lead to segmentation faults. This will be really difficult to isolate, but maybe this is a different

[Bug c++/87381] clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 --- Comment #5 from eric-bugs at omnifarious dot org --- Here is the problem, reduced to the simplest expression I could make: - template struct test_template { static int size() { return x; } }; constexpr int ce_strlen(char const *s)

[Bug tree-optimization/87383] New: improve text and detail in -Wstringop-truncation warnings

2018-09-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87383 Bug ID: 87383 Summary: improve text and detail in -Wstringop-truncation warnings Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug c++/87322] [8/9 Regression] GCC fails to parse captured lambda of 2nd inner lambda if the captured lambda has "," (having 2 arguments)

2018-09-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87322 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/87382] New: warn for strncpy with a bound greater than the size of source array

2018-09-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87382 Bug ID: 87382 Summary: warn for strncpy with a bound greater than the size of source array Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 Jürgen Reuter changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/87364] Pretty print of enumerator never prints the id, always falls back to C-style cast output

2018-09-21 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87364 --- Comment #2 from Will Wray --- Created attachment 44735 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44735=edit Test for enumerator id pretty print patch pp_enum_test auto_name returns std::array, splitting the

[Bug fortran/77325] ICE in gimplify_var_or_parm_decl, at gimplify.c:1933

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77325 --- Comment #4 from Paul Thomas --- Author: pault Date: Fri Sep 21 17:33:29 2018 New Revision: 264486 URL: https://gcc.gnu.org/viewcvs?rev=264486=gcc=rev Log: 2018-09-21 Paul Thomas PR fortran/77325 * trans-array.c

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/87381] clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 --- Comment #4 from eric-bugs at omnifarious dot org --- Given the new way of looking at things prompted by the correction of my erroneous idea, I've rethought how to simplify this, and the simplification does work in gcc 8.2, and I think is

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #18 from Paul Thomas --- Hi Juergen, Thanks for doing the reduction of the problem and thanks to Dominique for testing the patch. Fixed. Paul

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #17 from Paul Thomas --- Author: pault Date: Fri Sep 21 17:26:23 2018 New Revision: 264485 URL: https://gcc.gnu.org/viewcvs?rev=264485=gcc=rev Log: 2018-09-21 Paul Thomas PR fortran/87359 * trans-stmt.c

[Bug c++/87381] clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 --- Comment #3 from eric-bugs at omnifarious dot org --- Ahh, I guess that does make sense. Oh, well. I guess I'm stuck using template arguments in place of function arguments in some cases.

[Bug driver/29931] following argv[0] symlink in process_command breaks symlinked-together toolchain

2018-09-21 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29931 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/87381] clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 --- Comment #2 from Jonathan Wakely --- (In reply to eric-bugs from comment #1) > Godbolt link: https://godbolt.org/z/gHnb-G > > Also, my attempt to simplify this failed because clang will not consider > arguments to constexpr functions to be

[Bug c++/87364] Pretty print of enumerator never prints the id, always falls back to C-style cast output

2018-09-21 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87364 --- Comment #1 from Will Wray --- Created attachment 44734 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44734=edit Fix to pretty-print enumerator ids c-pretty-print.c c_pretty_printer::constant(tree) Remove fall through from

[Bug c++/87381] clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 --- Comment #1 from eric-bugs at omnifarious dot org --- Godbolt link: https://godbolt.org/z/gHnb-G Also, my attempt to simplify this failed because clang will not consider arguments to constexpr functions to be constexpr. Which, IMHO, is wrong.

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread paul.richard.thomas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #16 from paul.richard.thomas at gmail dot com --- Hi Dominique, Many thanks for coming back so promptly. I will package it up for a commit this evening. Best regards Paul On 21 September 2018 at 17:12, dominiq at lps dot ens.fr

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 --- Comment #5 from Iain Sandoe --- fudging the static member to be weak, and rebuilding the lib - the test completes w/out throwing.

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/87381] New: clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not.

2018-09-21 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87381 Bug ID: 87381 Summary: clang 6.0 will compile this constexpr construct, but gcc 8.2.1 will not. Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity:

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 --- Comment #3 from Jonathan Wakely --- On GNU/Linux the symbol in the shared library is a global unique symbol: $ nm --defined-only -g liblib.so | grep member 0020101c u _ZN1AIiE6memberE It seems that we need to make it weak to

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 --- Comment #2 from Jonathan Wakely --- The following should run and exit successfully: $ cat lib.h template struct A { static T member; }; template T A::member; bool match(int*); $ cat lib.cc #include "lib.h" template class A; bool

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #15 from Dominique d'Humieres --- > Could you please test the attached patch? The patch fixes both the reduced and the original tests.

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 --- Comment #5 from Marek Polacek --- (In reply to eric-bugs from comment #4) > Should I file a new bug with my new comment in it? I should probably test > against a trunk with your change in it first. Please open a separate PR for the issue in

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c/87379] Warn about function pointer casts which differ in variadic-ness

2018-09-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87379 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 Paul Thomas changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org ---

[Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172 --- Comment #29 from Jonathan Wakely --- I've opened Bug 87380

[Bug c++/87380] Explicit instantations should use weak symbols on darwin

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 --- Comment #1 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > The response from Apple quoted in 82172 comment 26 says that explicit That should have said Bug 82172 comment 26. The problem only arises when a template

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #23 from Richard Earnshaw --- (In reply to Richard Earnshaw from comment #22) > Or > #pragma pack(push, 1) > > struct TestStructType > { > volatile unsigned one; > unsigned char two; > unsigned short three; > }

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #22 from Richard Earnshaw --- Or #pragma pack(push, 1) struct TestStructType { volatile unsigned one; unsigned char two; unsigned short three; } __attribute__((aligned(32))); #pragma pack(pop)

[Bug c++/87380] New: Explicit instantations should use weak symbols on darwin

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87380 Bug ID: 87380 Summary: Explicit instantations should use weak symbols on darwin Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ABI Severity:

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #21 from Richard Earnshaw --- (In reply to Murat Ursavaş from comment #20) > By the way, the hardware peripheral registers are aligned to 32bits. So why don't you define your struct as struct TestStructType { volatile unsigned

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #20 from Murat Ursavaş --- By the way, the hardware peripheral registers are aligned to 32bits.

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #19 from Murat Ursavaş --- Hi Richard, This source code had been designed to see word by word access and may create expected results. I'm not sure about that. Let me use latest stable and see what happens. It wasn't plug and play

[Bug c/87379] New: Warn about function pointer casts which differ in variadic-ness

2018-09-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87379 Bug ID: 87379 Summary: Warn about function pointer casts which differ in variadic-ness Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic

[Bug c++/87378] False -Wredundant-move (derived vs. base)

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87378 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic

[Bug tree-optimization/87309] [9 Regression] Spurious note: messages when building with -fopt-info-vec-optimized

2018-09-21 Thread iii at linux dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87309 --- Comment #7 from Ilya Leoshkevich --- Thanks!

[Bug tree-optimization/87309] [9 Regression] Spurious note: messages when building with -fopt-info-vec-optimized

2018-09-21 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87309 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #18 from Stephan Bergmann --- (In reply to Jonathan Wakely from comment #17) > Yes please. bug 87378

[Bug c++/87378] New: False -Wredundant-move (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87378 Bug ID: 87378 Summary: False -Wredundant-move (derived vs. base) Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug tree-optimization/87309] [9 Regression] Spurious note: messages when building with -fopt-info-vec-optimized

2018-09-21 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87309 --- Comment #5 from David Malcolm --- Author: dmalcolm Date: Fri Sep 21 14:17:07 2018 New Revision: 264481 URL: https://gcc.gnu.org/viewcvs?rev=264481=gcc=rev Log: dumpfile.c: fix stray dump_loc output (PR tree-optimization/87309) In r262891 I

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #18 from Richard Earnshaw --- BTW, are you really trying to say that your hardware has a register that isn't naturally aligned? That's really weird if so. If not, there are much easier ways to handle this sort of stuff.

[Bug target/87374] [8/9 Regression] ICE in extract_insn, at recog.c:2305

2018-09-21 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87374 ktkachov at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #17 from Richard Earnshaw --- (In reply to Murat Ursavaş from comment #16) > OK I understand conservative action and not wait for word by word access. > But the resulting value is not 0x401 on the test case, but it should be. Is not

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #17 from Jonathan Wakely --- Yes please.

[Bug c++/87377] New: error with generic lambda accessing static field through argument within return type

2018-09-21 Thread comexk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87377 Bug ID: 87377 Summary: error with generic lambda accessing static field through argument within return type Product: gcc Version: 9.0 Status: UNCONFIRMED

[Bug sanitizer/82501] AddressSanitizer does not handle negative offset for first global variable

2018-09-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82501 --- Comment #7 from Martin Liška --- I started working on this, but it's not easy to register dummy global variables. If I see correctly, global vars are emitted into assembly here: #0 assemble_variable (decl=, top_level=0, at_end=1,

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #16 from Murat Ursavaş --- OK I understand conservative action and not wait for word by word access. But the resulting value is not 0x401 on the test case, but it should be. In my original case this was effecting a USART peripheral

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #15 from Richard Earnshaw --- (In reply to Murat Ursavaş from comment #12) > Richard, > > Ok I remembered things with reading the old posts on launchpad. The compiler > was generating normal code if I use the struct variable

[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-21 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 --- Comment #14 from Richard Earnshaw --- (In reply to Murat Ursavaş from comment #13) > Richard, > > Also as far as I remember GNU manual was indeed saying something on this > case. It was saying that "if the struct is not packed, it would

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #16 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #15) > I see that with the fix from comment 13 included, the slightly changed source > > #include > struct S1 { S1(S1 &&); }; > struct S2: S1 {}; > S1

[Bug target/87376] New: [avr] Miscompilation with __memx and long long addition

2018-09-21 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87376 Bug ID: 87376 Summary: [avr] Miscompilation with __memx and long long addition Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/87054] misaligned asm output is turned into dereferenced pointer-to-aligned

2018-09-21 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87054 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org --- Comment #5 from

  1   2   >