[Bug libgomp/28468] New: OpenMP-parallelized program crashes when OMP_NUM_THREADS > 1

2006-07-24 Thread bruno at clisp dot org
> 1 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: i686-suse-linu

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #3 from bruno at clisp dot org 2008-03-28 22:46 --- > you are entering a scope that has objects constructed. Can you point out the sections in the ISO C++ standard that say that an 'if' statement can create the scope for some objects? -- http://gcc.gnu

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #4 from bruno at clisp dot org 2008-03-28 22:48 --- The bug also occurs with g++ 4.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708

[Bug fortran/36161] gfc_error formats are not marked gcc-internal-format in po file

2009-03-29 Thread bruno at clisp dot org
--- Comment #7 from bruno at clisp dot org 2009-03-29 16:55 --- (In reply to comment #4) > The Fortran front-end diagnostic strings have a specific format, that is an > extension of the C printf format. It is not the same as the > gcc-internal-format. Thus, if you want

[Bug c/78155] missing warning on invalid isalpha et al.

2020-05-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78155 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #6

[Bug c/96527] New: __builtin_va_arg_pack_len produces error in documented sample code

2020-08-07 Thread bruno at clisp dot org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 49024 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49024&action=edit Test case The only documented exa

[Bug c/96527] __builtin_va_arg_pack_len produces error in documented sample code

2020-08-07 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96527 --- Comment #2 from Bruno Haible --- Created attachment 49026 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49026&action=edit Corrected test case I see. A corrected test case is attached. I wanted to avoid __gnu_inline__ because that's a

[Bug middle-end/93644] [10/11 Regression] spurious -Wreturn-local-addr with PHI of PHI

2020-08-17 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #9

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-05 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #7

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-05 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #8 from Bruno Haible --- (In reply to Andrew Pinski from comment #6) > a?-1:0 is transformed into -1 before we figure out that a is always true; an > ordering difference. Fortunately the GCC optimization affects only the return value

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-06 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #10 from Bruno Haible --- (In reply to Jakub Jelinek from comment #9) > So the only thing we should take from the above for the compiler is optimize > in ccp that x*x has the second least significant bit clear. If a compiler understa

[Bug target/40411] -std=c99 does not enable c99 mode in Solaris C library

2010-12-26 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411 bruno at clisp dot org changed: What|Removed |Added CC||bruno at clisp dot org

[Bug c/50154] New: attribute printf and scanf should imply attribute nonnull

2011-08-22 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50154 Bug #: 50154 Summary: attribute printf and scanf should imply attribute nonnull Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED

[Bug c/50154] attribute printf and scanf should imply attribute nonnull

2011-08-22 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50154 bruno at clisp dot org changed: What|Removed |Added Attachment #25076|0 |1 is obsolete

[Bug tree-optimization/50021] -Wsuggest-attribute=pure makes obviously-incorrect suggestion

2012-03-24 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50021 bruno at clisp dot org changed: What|Removed |Added CC||bruno at clisp dot org

[Bug target/51793] New: pragma GCC optimize wrapv leads to invalid code on Solaris

2012-01-08 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793 Bug #: 51793 Summary: pragma GCC optimize wrapv leads to invalid code on Solaris Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED

[Bug target/52023] _Alignof (double) yields wrong value on x86

2012-01-27 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023 bruno at clisp dot org changed: What|Removed |Added CC||bruno at clisp dot org

[Bug target/52023] _Alignof (double) yields wrong value on x86

2012-01-27 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023 --- Comment #9 from bruno at clisp dot org 2012-01-27 22:39:01 UTC --- (In reply to comment #7) > What happens if you have the attribute packed on the structure? Attribute 'packed' is outside the scope of ISO C11. We're

[Bug target/40411] -std=c99 does not enable c99 mode in Solaris C library

2018-01-12 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411 --- Comment #37 from Bruno Haible --- (In reply to Rainer Orth from comment #35) > Fixed for GCC 8.1. Please consider comment 17: The behaviour of a shared library also depends on whether the executable is linked with or without values-xpg6.o. T

[Bug c/84190] New: [7 Regression] double arithmetic on x86 no longer rounds to nearest

2018-02-03 Thread bruno at clisp dot org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 43331 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43331&action=edit test program The attached progra

[Bug c/84190] [7 Regression] double arithmetic on x86 no longer rounds to nearest

2018-02-03 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84190 --- Comment #1 from Bruno Haible --- It works when I declare ys1, ys2, zs1, zs2 as 'volatile double' instead of 'double'. But I should not be needing to do this, because the only uses of these 4 variables is as arguments to equalfn, which takes '

[Bug other/84193] New: Document the limitations of -fcheck-pointer-bounds

2018-02-03 Thread bruno at clisp dot org
Component: other Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- The documentation of -fcheck-pointer-bounds in https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Instrumentation-Options.html says - what the option does, - what are the

[Bug c/84190] [7 Regression] double arithmetic on x86 no longer rounds to nearest

2018-02-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84190 --- Comment #5 from Bruno Haible --- (In reply to jos...@codesourcery.com from comment #4) > You need to use -fexcess-precision=standard (or -msse2 -mfpmath=sse) for > predictable results from double arithmetic on 32-bit x86. If you do that, >

[Bug tree-optimization/91029] New: missed optimization regarding value of modulo operation

2019-06-28 Thread bruno at clisp dot org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- GCC's optimizers apparently don't know that, for b an integer >= 0, a % b > 0 implies that a >= 0 and a % b <

[Bug tree-optimization/91029] missed optimization regarding value of modulo operation

2019-06-28 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91029 Bruno Haible changed: What|Removed |Added Target||x86_64-pc-linux-gnu Host|

[Bug middle-end/21161] [6/7/8 Regression] "clobbered by longjmp" warning ignores the data flow

2018-03-05 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21161 --- Comment #15 from Bruno Haible --- > I think the following test case does show what Bruno was trying to prove. Yes, the test case from comment 14 much better reflects what this bug report is about, than the one from comment 13.

[Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain

2018-03-24 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45433 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #3

[Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain

2018-03-24 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45433 --- Comment #4 from Bruno Haible --- I am having the same error, even with option -C (which does not need a -fmain=... option): $ gcj -v -C HelloWorld.java Using built-in specs. COLLECT_GCC=/arch/x86-linux/gnu-inst-gcc/4.7.3/bin/gcj Target: i68

[Bug driver/81653] New: gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

2017-08-01 Thread bruno at clisp dot org
Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 41884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41884&action=edit Test case progra

[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

2017-08-01 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81653 --- Comment #1 from Bruno Haible --- Created attachment 41885 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41885&action=edit Test case program, part 2

[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

2017-08-01 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81653 Bruno Haible changed: What|Removed |Added Target||sparc64-linux-gnu --- Comment #2 from Bru

[Bug driver/81658] New: gcc configured with --enable-default-pie on SPARC produces buggy executable from working .o files

2017-08-01 Thread bruno at clisp dot org
Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 41886 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41886&action=edit

[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

2017-08-05 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81653 --- Comment #6 from Bruno Haible --- > passing -fno-pie seems to be the agreed upon way out here. My assembly code is located in a library (think at libffcall, libffi, gmp, ...). Therefore I don't control the final linker options. So, the only

[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

2017-08-05 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81653 --- Comment #7 from Bruno Haible --- And what do you think about the fact that it produces crashing code without any warning? Is there a chance that 'as' could emit a warning when it produces R_SPARC_GOT22/R_SPARC_GOT10 relocations instead of th

[Bug c++/80495] New: attribute [[noreturn]] is accepted in function pointer declarations

2017-04-23 Thread bruno at clisp dot org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- g++ does not flag an error for use of attribute [[noreturn]] on a function pointer declaration. C++11 [dcl.attr.noreturn] says &quo

[Bug c++/80496] New: missing diagnostic regarding noreturn mismatch in function pointer initialization

2017-04-23 Thread bruno at clisp dot org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- A mismatch regarding __attribute__((__noreturn__)) in a function pointer initialization generates a warning in C mode, but

[Bug bootstrap/78984] New: [4.9 regression] bootstrap fails while creating 32-bit libgcc on 64-bit x86_64-linux

2017-01-04 Thread bruno at clisp dot org
Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- The following bootstrap procedure, to build x86 (32-bit) executables of GCC on a 64-bit (x86_64-linux-gnu) machine

[Bug bootstrap/78984] [4.9 regression] bootstrap fails while creating 32-bit libgcc on 64-bit x86_64-linux

2017-01-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78984 --- Comment #1 from bruno at clisp dot org --- The error is similar to the one in bug #63507. The differences are: - I'm not using the '--with-build-config=bootstrap-asan' option. - It fails building the "," directo

[Bug bootstrap/78984] [4.9 regression] bootstrap fails while creating 32-bit libgcc on 64-bit x86_64-linux

2017-01-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78984 --- Comment #5 from bruno at clisp dot org --- Thanks Jakub. The ld --version and "-m elf_i386 -L /usr/lib/" trick solves it! (I was already using the "as --32" trick.) Another way is to define a simpler ld32 script

[Bug bootstrap/78984] [4.9 regression] bootstrap fails while creating 32-bit libgcc on 64-bit x86_64-linux

2017-01-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78984 --- Comment #7 from bruno at clisp dot org --- (In reply to Andreas Schwab from comment #6) > Note that if you use --with-ld, -B no longer works. Thanks Andreas. In fact, I've never used the -B option (except during gcc bootstrap). Some

[Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs

2017-01-04 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415 bruno at clisp dot org changed: What|Removed |Added CC||bruno at clisp dot org

[Bug c/79479] -Woverflow false alarm in unreachable expression

2017-02-13 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479 --- Comment #3 from Bruno Haible --- (In reply to Marek Polacek from comment #2) > int > fn1 (long x) > { > if (0) > return __INT_MAX__ + 1; > > if (x || 0) > return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */ > > if

[Bug middle-end/34300] gcc 4.2.2 miscompiles code that uses global register variables

2017-03-18 Thread bruno at clisp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34300 --- Comment #10 from Bruno Haible --- I confirm. I cannot reproduce the bug (neither with -O nor -O2) in GCC versions 4.2.3 4.2.4 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.

[Bug c++/43116] New: ICE when using attributes in a function alias declaration

2010-02-18 Thread bruno at clisp dot org
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116

[Bug c++/43116] ICE when using attributes in a function alias declaration

2010-02-18 Thread bruno at clisp dot org
--- Comment #1 from bruno at clisp dot org 2010-02-18 23:21 --- Created an attachment (id=19918) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19918&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116

[Bug c++/43454] New: warning with -Wall despite __attribute__ ((__unused__))

2010-03-20 Thread bruno at clisp dot org
sion: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target tr

[Bug c++/43454] warning with -Wall despite __attribute__ ((__unused__))

2010-03-20 Thread bruno at clisp dot org
--- Comment #1 from bruno at clisp dot org 2010-03-20 13:39 --- Created an attachment (id=20145) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20145&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43454

[Bug c++/43881] New: warning attached to a function is emitted even though the function is not being called

2010-04-24 Thread bruno at clisp dot org
ity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881

[Bug c++/43881] warning attached to a function is emitted even though the function is not being called

2010-04-24 Thread bruno at clisp dot org
--- Comment #1 from bruno at clisp dot org 2010-04-24 22:49 --- Created an attachment (id=20479) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20479&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881

[Bug c++/43881] warning attached to a function is emitted even though the function is not being called

2010-04-24 Thread bruno at clisp dot org
--- Comment #3 from bruno at clisp dot org 2010-04-24 23:54 --- When the line static int (*safe_close) (int fd) = close; is changed to static int (*safe_close) (int fd) = ((void)0, close); the warning also disappears, but then the generate code is suboptimal: the variable safe_close

[Bug c++/43881] warning attached to a function is emitted even though the function is not being called

2010-04-24 Thread bruno at clisp dot org
--- Comment #4 from bruno at clisp dot org 2010-04-24 23:58 --- (In reply to comment #2) > It is called directly because safe_close's value is replaced in the > indirect call. Since safe_close is static and not changed in the code > at all, it is marked as rea

[Bug rtl-optimization/6585] Redundant store/load instruction pairs on ix86

2005-06-27 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-06-27 11:50 --- Indeed, the result is much better now, nearly optimal. As you say, the only further optimization possible is that a better register allocation could get rid of the movl%edx, %esi and movl

[Bug driver/22544] New: gcc ignores input file given on the command line

2005-07-18 Thread bruno at clisp dot org
Status: UNCONFIRMED Severity: normal Priority: P2 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host

[Bug c/23058] New: visibility attribute does not work for aliased symbols

2005-07-25 Thread bruno at clisp dot org
atus: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23058

[Bug c/49283] New: pointless warning with -Wstrict-overflow

2011-06-04 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 Summary: pointless warning with -Wstrict-overflow Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gc

[Bug middle-end/49283] pointless warning with -Wstrict-overflow

2011-06-06 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 --- Comment #3 from bruno at clisp dot org 2011-06-06 20:33:07 UTC --- (In reply to comment #2) > [GCC] optimizes [...] > moving the + 3 from the LHS and combining it with the constant offset > on the RHS. That is only valid if p + 3 doe

[Bug middle-end/34300] gcc 4.2.2 miscompiles code that uses global register variables

2007-11-30 Thread bruno at clisp dot org
--- Comment #1 from bruno at clisp dot org 2007-11-30 10:46 --- Created an attachment (id=14671) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14671&action=view) source code exhibiting the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34300

[Bug middle-end/34300] New: gcc 4.2.2 miscompiles code that uses global register variables

2007-11-30 Thread bruno at clisp dot org
popl%ebp ret ... -- Summary: gcc 4.2.2 miscompiles code that uses global register variables Product: gcc Version: 4.2.2 Status: UNCONFIRM

[Bug c/21159] New: "no effect" warning despite cast to void*

2005-04-22 Thread bruno at clisp dot org
tatus: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin7.8.0 GCC host triplet:

[Bug c/21159] "no effect" warning despite cast to void*

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 11:01 --- Created an attachment (id=8706) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8706&action=view) source file foo.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21159

[Bug c/21159] "no effect" warning despite cast to void*

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 11:01 --- Created an attachment (id=8707) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8707&action=view) source file bug.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21159

[Bug c/21160] New: how to force a variable into the stack?

2005-04-22 Thread bruno at clisp dot org
In function 'lisp_completion': bug.c:291: warning: variable 'ptr1' might be clobbered by 'longjmp' or 'vfork' -- Summary: how to force a variable into the stack? Product: gcc Version: 4.0.0 Status: U

[Bug c/21160] how to force a variable into the stack?

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 11:04 --- Created an attachment (id=8708) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8708&action=view) source file bug.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21160

[Bug c/21161] New: "clobbered by longjmp" warning ignores the data flow

2005-04-22 Thread bruno at clisp dot org
ry: "clobbered by longjmp" warning ignores the data flow Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bru

[Bug c/21161] "clobbered by longjmp" warning ignores the data flow

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 11:08 --- Created an attachment (id=8709) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8709&action=view) source file bug.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21161

[Bug c/21160] how to force a variable into the stack?

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 14:14 --- I don't understand your resolution. How can I guarantee that gcc will not put 'ptr' and 'array' into registers where, on SPARC, longjmp() will clobber them? The semantics of '

[Bug c/21160] [4.0/4.1 Regression] documentation for -Wuninitialized out of date

2005-04-22 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-04-22 17:10 --- Thanks Joseph for the hint to ISO C 7.13.2.1.(3). Indeed, in the name of portability, I'll have to use 'volatile'. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21160

[Bug c/19881] strange warning about alloca

2005-02-10 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-02-10 21:43 --- The warning is not correct because 1) The code snippet uses alloca() and variable-size arrays for their respective purpose: alloca() for storage that persists until the end of the function, and variable

[Bug c/19881] strange warning about alloca

2005-02-11 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2005-02-11 13:13 --- > the warning is not the FSF's gcc, you two should have filed it with Redhat > instead. You're right: Current gcc CVS ("gcc version 4.0.0 20050211 (experimental)") doesn't sho

[Bug rtl-optimization/6585] Redundant store/load instruction pairs on ix86

2004-10-11 Thread bruno at clisp dot org
--- Additional Comments From bruno at clisp dot org 2004-10-11 11:55 --- This result is even better: shorter than the previous ones, and there are no useless moves between registers any more. However, there are more useless moves from register to stack slot and back from stack slot

[Bug libgomp/28468] OpenMP-parallelized program crashes when OMP_NUM_THREADS > 1

2006-11-07 Thread bruno at clisp dot org
--- Comment #1 from bruno at clisp dot org 2006-11-07 14:36 --- It's still reproducible with gcc-4.2-20061031: $ export OMP_NUM_THREADS=2 $ gdb a.out GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and yo

[Bug libgomp/28468] OpenMP-parallelized program crashes when OMP_NUM_THREADS > 1

2006-11-15 Thread bruno at clisp dot org
--- Comment #3 from bruno at clisp dot org 2006-11-15 13:38 --- > Was LinuxThreads built at least --with-tls support or without? The glibc was built with LinuxThreads without TLS. (I gave --without-tls explicitly to the glibc build.) > If without and libgomp has been built w

[Bug c/29994] New: __STRICT_ANSI__ meaning incorrectly documented

2006-11-27 Thread bruno at clisp dot org
: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: x86_64-suse-linux GCC host triplet: x86_6

[Bug c/29994] __STRICT_ANSI__ meaning incorrectly documented

2006-11-27 Thread bruno at clisp dot org
--- Comment #2 from bruno at clisp dot org 2006-11-27 16:50 --- You're right, it's well documented in cpp.info. I looked only in gcc.info. -- bruno at clisp dot org changed: What|Removed

[Bug c/29999] New: preprocessor documentation is missing from gcc.info

2006-11-27 Thread bruno at clisp dot org
ned at gcc dot gnu dot org ReportedBy: bruno at clisp dot org GCC build triplet: x86_64-suse-linux GCC host triplet: x86_64-suse-linux GCC target triplet: x86_64-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2

[Bug c/30267] New: missed optimization due to bad range propagation without -fwrapv

2006-12-20 Thread bruno at clisp dot org
Summary: missed optimization due to bad range propagation without -fwrapv Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot

[Bug rtl-optimization/323] optimized code gives strange floating point results

2006-12-21 Thread bruno at clisp dot org
--- Comment #87 from bruno at clisp dot org 2006-12-21 15:08 --- The option -ffloat-store, recommended by Richard Henderson, has the effect of decreasing the performance of floating-point operations for the entire compilation unit. If you want a minimal fix that does not affect other

[Bug tree-optimization/91029] missed optimization regarding value of modulo operation

2020-11-17 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91029 --- Comment #5 from Bruno Haible --- Nice! Thank you.

[Bug tree-optimization/91029] missed optimization regarding value of modulo operation

2020-11-18 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91029 --- Comment #8 from Bruno Haible --- > what is the reason to require that b >= 0 in all of this? In the 1990ies there were portability problems with a%b, b < 0. ANSI C said that the result was machine-dependent if a < 0 or b < 0. Fortunately the

[Bug driver/98162] New: Documentation mentions non-existent option -mcet

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
: driver Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- The documentation page https://gcc.gnu.org/onlinedocs/gcc/x86-Built-in-Functions.html mentions "The following built-in functions are available when -mcet or -mshstk o

[Bug sanitizer/98165] New: Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot

[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 --- Comment #1 from Bruno Haible --- Created attachment 49691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49691&action=edit Test case

[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 Bruno Haible changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/98396] New: gcc wrongly assumes that free preserves errno

2020-12-19 Thread bruno at clisp dot org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 49808 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49808&action=edit Test case On POSIX systems, free() can clobber the value of errno. This is

[Bug c/98396] gcc wrongly assumes that free preserves errno

2020-12-19 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396 Bruno Haible changed: What|Removed |Added Known to work||4.0.4, 4.1.2, 4.2.4, 4.3.6,

[Bug middle-end/98396] gcc wrongly assumes that free preserves errno

2021-01-05 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396 --- Comment #4 from Bruno Haible --- (In reply to Richard Biener from comment #3) > But note that while free() may clobber errno the state after it is undefined > (it's not documented to set it to any specific value). So I'd argue the > check_er

[Bug target/51793] pragma GCC optimize wrapv leads to invalid code on Solaris

2021-04-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793 Bruno Haible changed: What|Removed |Added Status|NEW |RESOLVED Known to fail|

[Bug target/51793] pragma GCC optimize wrapv leads to invalid code on Solaris

2021-04-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793 --- Comment #4 from Bruno Haible --- Correction to comment #3: It works fine on - Solaris 11.4 (gcc 7.3.0): foo.s contains '.p2align 4,,15' - Solaris 11 OpenIndiana (gcc 7.2.0): likewise - Solaris 11 OmniOS (gcc 9.3.0): foo.s contains '.p2align 4

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-05-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #1

[Bug middle-end/30267] folding (~ -x) >= (-2147483647-1) to x != -2147483648

2021-06-08 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30267 Bruno Haible changed: What|Removed |Added Known to work||10.3.0, 11.1.0, 6.5.0,

[Bug c/108694] New: need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- The use of () to denote an unknown or varargs parameter list in function declarations and function types, a language feature from K&R C

[Bug c/108694] need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694 --- Comment #2 from Bruno Haible --- (In reply to Florian Weimer from comment #1) > “()” is going to be fine when matched with an empty parameter list in a > definition, or an empty argument list in a call. I don't think it's > necessary to warn

[Bug c/108694] need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694 --- Comment #4 from Bruno Haible --- (In reply to Aaron Ballman from comment #3) OK. So, except for this unlucky (*) choice of attribution in case of a conflict between function declaration and function definition, the '-Wdeprecated-non-prototyp

[Bug c++/108231] New: g++ mistakenly reports ambiguity between equivalent function declarations

2022-12-26 Thread bruno at clisp dot org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 54156 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54156&action=edit test case The attached c

[Bug other/105527] New: configure option --with-zstd is not documented

2022-05-08 Thread bruno at clisp dot org via Gcc-bugs
: other Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- A GCC 12.1.0 build of mine is failing with the error messages /usr/lib/gcc-cross/i686-linux-gnu/10/../../../../i686-linux-gnu/bin/ld: /build-loongarch64-linux/gcc-12.1.0/gcc

[Bug other/105527] configure option --with-zstd is not documented

2022-05-11 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527 --- Comment #3 from Bruno Haible --- Created attachment 52955 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52955&action=edit Patch to document also --with-zstd-include and --with-zstd-lib Hi Martin, The patch you added is pretty minima

[Bug tree-optimization/101494] -Wmaybe-uninitialized false alarm with memrchr of size 0

2021-07-18 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101494 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #1

[Bug analyzer/111289] [13 Regression] Unwarranted -Wanalyzer-va-arg-type-mismatch warning

2024-03-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111289 --- Comment #6 from Bruno Haible --- (In reply to John David Anglin from comment #5) > Don't include on hpux to avoid conflicting type declarations > for mode_t. This fixes test on houx. Why not entirely remove the '#include '? There is noth

[Bug other/111287] New: doc: "strict ISO mode" definition is not up-to-date

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
iority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- In https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html we read: "Outside strict ISO C mode (-ansi, -std=c90, -std=c99 or -std=c11) ..." Nowada

[Bug other/111288] New: formatting mistake in HTML documentation

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
: other Assignee: unassigned at gcc dot gnu.org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 55839 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55839&action=edit proposed fix In https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builti

  1   2   >