[Bug target/65109] [5 Regression] r220674 causes FAIL: gcc.target/powerpc/ppc64-abi-1.c execution test

2015-02-19 Thread msebor at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65109 --- Comment #4 from Martin Sebor msebor at gmail dot com --- There's the following comment in the test: /* Testcase could break on future gcc's, if parameter regs are changed before this asm. */ Moving the locals out

[Bug target/65109] [5 Regression] r220674 causes FAIL: gcc.target/powerpc/ppc64-abi-1.c execution test

2015-02-19 Thread msebor at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65109 --- Comment #5 from Martin Sebor msebor at gmail dot com --- Created attachment 34809 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34809action=edit Test patch to let it pass.

[Bug libstdc++/65114] New: char_traits::copy violates memcpy constraints, own postcondition

2015-02-18 Thread msebor at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com The precondition on char_traits::copy(s, p, n), namely that p not be in the range [s, s + n), is weaker than the precondition on a call to memcpy(s, p, n

[Bug libstdc++/65113] New: string::copy violates traits requirements

2015-02-18 Thread msebor at gmail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com libstdc++ string goes to quite a bit of trouble to avoid self-modifying calls that could potentially corrupt the controlled sequence but there is at least one case that has escaped this treatment

[Bug c/65029] New: aggregate copy invokes memcpy on overlapping regions

2015-02-11 Thread msebor at gmail dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com According to 7.24.2.1 of C11, If copying takes place between objects that overlap, the behavior [of memcpy] is undefined. The script below shows that GCC generates code with undefined behavior

[Bug c++/61882] New: attribute weak ignored for function templates

2014-07-22 Thread msebor at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com In GCC 4.5 and later, and at -O and above, attribute weak (but not weak alias) is silently ignored on declarations of function templates and calls to specializations of such templates are inlined

[Bug c/60488] New: missing -Wmaybe-uninitialized on a conditional with goto

2014-03-10 Thread msebor at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com The -Wmaybe-uninitialized option is documented like so: For an automatic variable, if there exists a path from the function entry to a use of the variable that is initialized

[Bug c/60294] New: missing diagnostic with -Wmaybe-uninitialized

2014-02-20 Thread msebor at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com The documentation for the -Wmaybe-uninitialized option includes an example similar to the one below to demonstrate the conditions under which GCC is expected to issue a diagnostic. However, GCC fails

[Bug c++/60063] New: -Wunused-local-typedefs warning despite attribute used in a template

2014-02-04 Thread msebor at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com GCC 4.8.2 issues the following bogus warning on the defintion of Y in bar despite attribute used. The same definition in an ordinary function emits no warning

[Bug c++/60067] New: bogus error default template arguments may not be used in function templates

2014-02-04 Thread msebor at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com GCC 4.8.2 issues the bogus error below on the following valid C++ '98 program. Instantiating C (or the whole definition of foo) isn't necessary

[Bug c++/60068] New: missing diagnostic on array with negative bounds in template

2014-02-04 Thread msebor at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com GCC 4.8.2 and all versions prior to it fail to diagnose the following ill-formed C++ '98 program: $ cat u.cpp g++ -Wall -Wextra -Werror -pedantic -c -o/dev/null u.cpp

[Bug c++/60063] -Wunused-local-typedefs warning despite attribute used in a template

2014-02-04 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60063 --- Comment #1 from Martin Sebor msebor at gmail dot com --- I confused attribute used with unused in the test case. With the latter, the warning is not emitted as one would expect. Attribute used isn't documented for types, so it's not completely

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-22 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 --- Comment #4 from Martin Sebor msebor at gmail dot com --- I understand. The current semantics of __builtin__xxx_chk are to: a) check the constraints of the xxx function at compile time, and b) diagnose constraint violations detected

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-21 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 --- Comment #2 from Martin Sebor msebor at gmail dot com --- I'm suggesting that when -fno-builtin is used, __builtin___memcpy_chk (and other __bultin_xxx_chk) invocations that are determined not to exceed the size of the buffer boundaries expand

[Bug c/59219] New: ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-20 Thread msebor at gmail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com The __builtin___xxx_chk intrinsics are useful in detecting buffer overflows via the Object Size Checking feature. But in a freestanding/embeeded environment with its own implementation of function xxx

[Bug c/59220] New: bogus warning: packed attribute is unnecessary on an overaligned char

2013-11-20 Thread msebor at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gmail dot com GCC 4.8.2 and prior incorrectly issue a warning for one-byte struct members declared with the packed attribute when the member is of an over-aligned type

[Bug c/49535] New: __builtin_object_size incorrect for array arguments

2011-06-26 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49535 Summary: __builtin_object_size incorrect for array arguments Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo:

[Bug c/41138] Inconsistent (incorrect?) overflow in implicit constant conversion warning

2011-06-10 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41138 --- Comment #3 from Martin Sebor msebor at gmail dot com 2011-06-10 17:44:47 UTC --- Here's another test case, one that does involve slicing and where a consistent but differently phrased warning would, IMO, be useful. Perhaps something like

[Bug c/41138] Inconsistent (incorrect?) overflow in implicit constant conversion warning

2011-06-09 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41138 Martin Sebor msebor at gmail dot com changed: What|Removed |Added CC||msebor at gmail dot

[Bug c/48985] New: bogus buffer overflow warning and abort on static flexible array member

2011-05-12 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48985 Summary: bogus buffer overflow warning and abort on static flexible array member Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/47931] New: missing -Waddress warning for comparison with NULL

2011-02-28 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47931 Summary: missing -Waddress warning for comparison with NULL Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo:

[Bug c/47931] missing -Waddress warning for comparison with NULL

2011-02-28 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47931 --- Comment #1 from Martin Sebor msebor at gmail dot com 2011-02-28 19:38:15 UTC --- To add a suggested solution to my report: Since many (most?) comparisons will be against NULL which can be defined as either 0 or (void*)0 I think it would

[Bug c/47932] New: __typeof__ prevents VLA from being evaluated

2011-02-28 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47932 Summary: __typeof__ prevents VLA from being evaluated Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo:

[Bug c++/44648] New: missing -Wunused warning on a const variable in if statement

2010-06-23 Thread msebor at gmail dot com
Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com GCC build triplet: all GCC host triplet: all

[Bug c++/44486] New: missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace

2010-06-09 Thread msebor at gmail dot com
: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44486

[Bug middle-end/17308] nonnull attribute not as useful as it could

2010-02-15 Thread msebor at gmail dot com
--- Comment #5 from msebor at gmail dot com 2010-02-15 20:51 --- I second Ulrich's request. Besides nonnull, this enhancement would be useful in attribute printf as well. For example, in the program below, both calls to printf() have undefined behavior in C99 and should be diagnosed

[Bug c++/42000] New: missing -Wuninitialized warning on a user-defined class ctor

2009-11-10 Thread msebor at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42000

[Bug c++/41825] New: useless -Wshadow warning on function argument in local class

2009-10-25 Thread msebor at gmail dot com
at gmail dot com GCC build triplet: all GCC host triplet: all GCC target triplet: all http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41825

[Bug c++/41672] New: missing diagnostic on an ill-formed rvalue reference initialization

2009-10-10 Thread msebor at gmail dot com
dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41672

[Bug c++/41561] warning on a large hex literal in C++ 0x mode

2009-10-04 Thread msebor at gmail dot com
--- Comment #2 from msebor at gmail dot com 2009-10-04 16:08 --- I'm not positive which stage issues the warning but the preprocessor does not warn on large integer literals in preprocessor directives involving integer arithmetic (e.g., #if 0x123456789abcd LONG_MAX). Strictly speaking

[Bug c++/41561] New: warning on a large hex literal in C++ 0x mode

2009-10-03 Thread msebor at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41561

[Bug preprocessor/41540] -dM -E doesn't #define __FILE__

2009-10-02 Thread msebor at gmail dot com
--- Comment #2 from msebor at gmail dot com 2009-10-02 16:39 --- I don't have a strong objection to not including __FILE__ and the rest of standard predefined macros (e.g., __LINE__, __DATE__ and __TIME__) in the output if that's by design but I would expect the documentation to mention

[Bug preprocessor/41540] -dM -E doesn't #define __FILE__

2009-10-02 Thread msebor at gmail dot com
--- Comment #4 from msebor at gmail dot com 2009-10-02 18:00 --- I understand that the values of __FILE__ and __LINE__ change within the same translation unit and thus may not be meaningful in the output of -dM -E. But the values of __DATE__ and __TIME__ do not change within

[Bug preprocessor/41540] New: -dM -E doesn't #define __FILE__

2009-10-01 Thread msebor at gmail dot com
Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41540

[Bug c++/41423] New: missing warning for an uncallable function template

2009-09-20 Thread msebor at gmail dot com
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41423

[Bug c++/41423] missing warning for an uncallable function template

2009-09-20 Thread msebor at gmail dot com
-- msebor at gmail dot com changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41423

[Bug middle-end/38126] suboptimal code for (a b || !a !b)

2009-09-12 Thread msebor at gmail dot com
--- Comment #1 from msebor at gmail dot com 2009-09-12 23:33 --- Code involving bool variables is similarly suboptimal: $ cat t.cpp gcc -O2 -S t.cpp cat t.s bool foo (bool a, bool b) { return a b || !a !b; } bool bar (bool a, bool b) { return a == b; } .file

[Bug c++/40261] New: confusing diagnostic on ill-formed template definition

2009-05-26 Thread msebor at gmail dot com
Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: msebor at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40261