[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2015-06-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 Richard Biener changed: What|Removed |Added Target Milestone|4.8.3 |---

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-05-31 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 Jakub Jelinek changed: What|Removed |Added Target Milestone|4.8.1 |4.8.2 --- Comment #26 from Jakub Jelinek

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-03-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 Jakub Jelinek changed: What|Removed |Added Target Milestone|4.8.0 |4.8.1 --- Comment #25 from Jaku

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-02-05 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #24 from Jakub Jelinek 2013-02-05 15:55:41 UTC --- Author: jakub Date: Tue Feb 5 15:55:31 2013 New Revision: 195761 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195761 Log: PR sanitizer/55374 * config/gn

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-02-05 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #23 from Eric Botcazou 2013-02-05 09:08:19 UTC --- Author: ebotcazou Date: Tue Feb 5 09:08:09 2013 New Revision: 195749 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195749 Log: PR sanitizer/55374 * confi

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #22 from Jakub Jelinek 2013-01-30 18:06:09 UTC --- Author: jakub Date: Wed Jan 30 18:05:53 2013 New Revision: 195585 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195585 Log: PR sanitizer/55374 * gcc.c (LI

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #21 from Kostya Serebryany 2013-01-29 09:44:22 UTC --- > we could similarly error for > -static-libstdc++ -fsanitize=address combination. Maybe. Generally this works (in clang at least) and no one complained yet. The bug ht

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #20 from Jakub Jelinek 2013-01-29 09:29:39 UTC --- Ah, you're right. My patch is mostly to fix -static-libasan or even non-static-libasan - to make sure it comes early and thus override what it thinks it actually overrides. F

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #19 from Kostya Serebryany 2013-01-29 09:18:49 UTC --- > > As with the patch for this PR -lasan is linked before -lstdc++, the wrapper > should kick in. But the patch is still unreviewed. How? If we are linking both libra

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #18 from Jakub Jelinek 2013-01-29 09:13:27 UTC --- (In reply to comment #17) > Note that there is at least one known bug in asan with -static-libstdc++ > https://code.google.com/p/address-sanitizer/issues/detail?id=147 As wi

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #17 from Kostya Serebryany 2013-01-29 09:10:24 UTC --- Note that there is at least one known bug in asan with -static-libstdc++ https://code.google.com/p/address-sanitizer/issues/detail?id=147

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-29 Thread david.abdurachmanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 David Abdurachmanov changed: What|Removed |Added CC||david.abdurachmanov at

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #15 from Jakub Jelinek 2013-01-22 13:35:28 UTC --- Created attachment 29249 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29249 gcc48-pr55374.patch Untested fix. If -static-libasan is missing, it just moves -lasan ear

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #14 from Jakub Jelinek 2013-01-22 10:52:55 UTC --- One way out of this would be for libasan.a to be an *.o object rather than *.a archive: mv libasan.a libasan_a.a gcc -Wl,-r -nostdlib -o libasan.a -Wl,--whole-archive libasan_

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2013-01-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #13 from Jakub Jelinek 2013-01-22 10:33:53 UTC --- The patch isn't sufficient. For both -static-libasan -fsanitize=address and just -fsanitize=address, we want -Bstatic -lasan -Bdynamic resp. -lasan to go before all occurrence

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread howarth at nitro dot med.uc.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 Jack Howarth changed: What|Removed |Added CC||howarth at nitro dot

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #11 from Joost VandeVondele 2012-12-20 20:43:28 UTC --- (In reply to comment #10) > cd obj*/x86_64*/libgfortran; make clean; \ > make CFLAGS="-std=gnu99 -g -O2 -fsanitize=address " \ > FCFLAGS="-g -O2 -fsanitize=address" LDF

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #10 from Jakub Jelinek 2012-12-20 20:11:55 UTC --- cd obj*/x86_64*/libgfortran; make clean; \ make CFLAGS="-std=gnu99 -g -O2 -fsanitize=address " \ FCFLAGS="-g -O2 -fsanitize=address" LDFLAGS="-B `pwd`/../libsanitizer/asan/.

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #9 from Joost VandeVondele 2012-12-20 20:05:05 UTC --- (In reply to comment #8) > (In reply to comment #7) > bootstrap-asan is for bootstrapping GCC with -fsanitize=address. > It is orthogonal from compiling target run-time li

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #8 from H.J. Lu 2012-12-20 19:58:44 UTC --- (In reply to comment #7) > Thanks now bootstrap completes. > > It seems to me that libgfortran is not built with -fsanitize=address despite > --with-build-config=bootstrap-asan

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #7 from Joost VandeVondele 2012-12-20 19:55:32 UTC --- Thanks now bootstrap completes. It seems to me that libgfortran is not built with -fsanitize=address despite --with-build-config=bootstrap-asan Is there a way to mak

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 --- Comment #6 from H.J. Lu 2012-12-20 19:24:49 UTC --- (In reply to comment #5) > After applying your patch, I now get to the errors below any known > workaround ? > > ../../gcc/libiberty/regex.c:4497: error: undefined reference to

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-20 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 Joost VandeVondele changed: What|Removed |Added CC||Joost.VandeVondele at mat

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-08 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW URL|

[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work

2012-12-08 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374 H.J. Lu changed: What|Removed |Added Target Milestone|--- |4.8.0 Summary|[asan] Wrong