[Bug c/448] -related issues (C99 issues)

2017-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=448 --- Comment #31 from joseph at codesourcery dot com --- The following targets still appear to be missing this type information in GCC: some NetBSD targets (netbsd-stdint.h only used for x86 / x86_64), VxWorks, SymbianOS, LynxOS, QNX, TPF

[Bug c/79216] Feature request: byte order attributes

2017-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216 --- Comment #2 from joseph at codesourcery dot com --- Does the scalar_storage_order attribute added in GCC 6 help for at least some of this?

[Bug c/448] -related issues (C99 issues)

2017-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=448 --- Comment #33 from joseph at codesourcery dot com --- I think it's appropriate for this bug to track the missing pieces, whether directly or through dependencies on a series of bugs for each target OS.

[Bug target/79277] lies about alignment of DFmode

2017-01-30 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79277 --- Comment #1 from joseph at codesourcery dot com --- Note that for compatibility you don't want to change either __alignof__ (double) (preferred alignment, 8) or _Alignof (double) (required alignment, 4).

[Bug c/79358] gcc.dg/c99-stdint-1.c fails with excess error

2017-02-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79358 --- Comment #5 from joseph at codesourcery dot com --- On Fri, 3 Feb 2017, vogt at linux dot vnet.ibm.com wrote: > void > foo (void) > { > __typeof__((4294967295U)) a; > __typeof__((long unsigned int)0 + 0) *b = &a;

[Bug target/79366] wrong result in cast to unsigned int

2017-02-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79366 --- Comment #5 from joseph at codesourcery dot com --- Annex F makes it an unspecified value (i.e. each execution that occurs in the abstract machine has to act as if it produces some definite value representable in the resulting type, but

[Bug translation/79332] Several bugs related to translation in gcc 7.1-b20170101

2017-02-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79332 --- Comment #4 from joseph at codesourcery dot com --- That would be the %e / %n extraction intended for spec strings. In this case, I think splitting the string constant between the % and the n should avoid the %n extraction without

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

2017-02-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479 --- Comment #10 from joseph at codesourcery dot com --- This is arguably the same as or similar to bug 4210 and its duplicates.

[Bug c/79528] DFP double rounding bug

2017-02-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79528 --- Comment #2 from joseph at codesourcery dot com --- On Wed, 15 Feb 2017, jakub at gcc dot gnu.org wrote: > It seems besides conversion from integer to decimal{32,64} also all the > arithmetics e.g. in real_arithmetics are perfor

[Bug fortran/79602] translation: globally replace '%s' with %qs

2017-02-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79602 --- Comment #1 from joseph at codesourcery dot com --- We only ever download translations from the TP site and use them unmodified; we don't make any local changes to the translations in GCC.

[Bug c/79677] Weird handling of -Werror=

2017-02-22 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #1 from joseph at codesourcery dot com --- For the theory of how I think this should behave, see <https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00419.html> (referring back to <https://gcc.gnu.org/ml/gcc-bugs/2012-04/msg0

[Bug tree-optimization/79699] small memory leak in MPFR

2017-02-23 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79699 --- Comment #2 from joseph at codesourcery dot com --- The only mpfr_free_cache call I see in GCC is in the Fortran front end. Without such a call on exit, leaks in MPFR need not be meaningful.

[Bug middle-end/79756] [5/6/7 Regression] ICE in execute_todo, at passes.c:2011

2017-03-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79756 --- Comment #5 from joseph at codesourcery dot com --- On Wed, 1 Mar 2017, rguenth at gcc dot gnu.org wrote: > but note that convert_vector_to_array_for_subscript will return > VIEW_CONVERT_EXPR (MAYBE_CONST (...)) then. Maybe

[Bug fortran/79596] translation: argument to gfc_internal_error should not be translated

2017-03-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79596 --- Comment #3 from joseph at codesourcery dot com --- On Fri, 3 Mar 2017, roland.illig at gmx dot de wrote: > I assume that somewhere there is some list of functions that take translatable > strings, since xgettext has to decide which of

[Bug target/79846] s390: untranslatable diagnostic in s390.c

2017-03-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79846 --- Comment #1 from joseph at codesourcery dot com --- The correct way to print HOST_WIDE_INT is with %wu etc. formats.

[Bug target/79871] i18n: document placeholders for translators

2017-03-05 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79871 --- Comment #1 from joseph at codesourcery dot com --- %K means to extract a location from a statement, including inlining context. See tree-pretty-print.c:percent_K_format. As such, the absence of a space is correct.

[Bug other/79874] symtab_node::verify_base: replace error with internal_error

2017-03-05 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79874 --- Comment #1 from joseph at codesourcery dot com --- Without reference to whether it is the case for this particular error, there are some cases where the code structure is: * Make consistency checks, possibly reporting diagnostics from them

[Bug translation/80001] diagnostics: untranslateable %s placeholders in omp-offload.c

2017-03-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80001 --- Comment #2 from joseph at codesourcery dot com --- On Sat, 11 Mar 2017, roland.illig at gmx dot de wrote: > error_at (loop->loc, loop->routine > ? "routine call uses same OpenACC parallelism a

[Bug tree-optimization/80006] loss of range information after widening conversion

2017-03-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80006 --- Comment #2 from joseph at codesourcery dot com --- The premature promotion probably comes from targetm.calls.promote_prototypes, which currently takes effect in the front ends (affecting the IR generated for both caller and callee). I

[Bug preprocessor/80071] __LINE__ is expanded incorrectly

2017-03-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80071 --- Comment #6 from joseph at codesourcery dot com --- Note that there are two different proposals regarding __LINE__ for Markham. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2115.htm http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2129

[Bug sanitizer/80114] asan-stack=1 with -fsanitize-address-use-after-scope and stack arrays multiplies code size

2017-03-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80114 --- Comment #7 from joseph at codesourcery dot com --- "String literals, and compound literals with const-qualified types, need not designate distinct objects.". (This is different from named variables, which can't be merged

[Bug middle-end/80131] powerpc: 1U << (31 - x) doesn't generate optimised code

2017-03-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80131 --- Comment #3 from joseph at codesourcery dot com --- On Tue, 21 Mar 2017, segher at gcc dot gnu.org wrote: > If we have d = a << (b - c); and a << b does not truncate in the > original mode, write it as d := (a <<

[Bug middle-end/80131] powerpc: 1U << (31 - x) doesn't generate optimised code

2017-03-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80131 --- Comment #5 from joseph at codesourcery dot com --- And even with unsigned c, a shift by (30 - 0xU) is perfectly valid in C; that shift count evaluates to 31U. Whereas a shift by 0xU is not valid C.

[Bug middle-end/80208] DJGPP max object file alignment regression

2017-03-27 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208 --- Comment #2 from joseph at codesourcery dot com --- The patch submission was <https://gcc.gnu.org/ml/gcc-patches/2013-11/msg02187.html>. The rationale there stands, both that as a standard requirement this must be an error or a p

[Bug testsuite/82390] gcc.dg/torture tests run with same optimization level

2017-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390 --- Comment #5 from joseph at codesourcery dot com --- dg-options is absolutely fine in torture directories, as long as the options specified are not among the -O options that the test should be looping over. For example, it's fine

[Bug tree-optimization/82429] strcpy to stpcpy transformation disabled in strict mode

2017-10-04 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82429 --- Comment #2 from joseph at codesourcery dot com --- Strictly, that a program declares stpcpy should be irrelevant if the declaration is outside system headers, because it could declare and define it for some other purpose (even if the

[Bug c/82435] new __attribute__((alias)) warning gets in the way

2017-10-05 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435 --- Comment #2 from joseph at codesourcery dot com --- In my view, a separate option for this warning rather than -Wincompatible-pointer-types would be best (as it's much more likely people will want to disable this warning than that they

[Bug libgcc/59714] complex division is surprising on targets with FMA (was: on aarch64)

2017-10-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59714 --- Comment #8 from joseph at codesourcery dot com --- The algorithm isn't expecting to use FMA; it's just treating floating-point numbers as approximate real numbers. I'm not sure why multiplication has TRUNC, but my gues

[Bug c/82542] -fdump-lang-raw (formerly -fdump-translation-unit) no longer available for C

2017-10-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82542 --- Comment #6 from joseph at codesourcery dot com --- glibc does not use this option. ABI checking in glibc works on binaries via objdump -T. linknamespace tests do use -aux-info to list functions exported by a header, and would find it

[Bug target/82626] -msse and -mfpmath=sse Causes __FLT_EVAL_METHOD__ to be -1

2017-10-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82626 --- Comment #2 from joseph at codesourcery dot com --- I think a value of 0 should be correct with -mfpmath=sse.

[Bug target/82626] -msse and -mfpmath=sse Causes __FLT_EVAL_METHOD__ to be -1

2017-10-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82626 --- Comment #13 from joseph at codesourcery dot com --- Strictly, all x86 excess precision cases are indeterminable (semantics of -1) except for the case where -fexcess-precision=standard is used (requires front-end support, present for C only

[Bug c/82679] Uses of typedefs of arrays of _Atomic-qualified types are rejected

2017-10-23 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82679 --- Comment #5 from joseph at codesourcery dot com --- Probably in grokdeclarator the test for _Atomic-qualified array types should check declspecs->atomic_p rather than atomicp. (The check in the parser in the case of _Atomic (type-name)

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #28 from joseph at codesourcery dot com --- Well, I also think the existing choice is the more natural choice for the value of __LINE__ in this case (#line is mainly for use by code generators, which can always count lines and

[Bug other/82708] libmpx fails to compile due to PATH_MAX

2017-10-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82708 --- Comment #1 from joseph at codesourcery dot com --- If you have correctly configured GCC so that it can find the system headers at configure time, include-fixed/limits.h should be constructed as a concatentation of limitx.h, glimits.h and

[Bug other/82708] libmpx fails to compile due to PATH_MAX

2017-10-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82708 --- Comment #3 from joseph at codesourcery dot com --- That's not the test I'm talking about. The relevant one is gcc/Makefile.in's LIMITS_H_TEST, run during a build stage rather than a configure stage, so you need to look at

[Bug other/82708] libmpx fails to compile due to PATH_MAX

2017-10-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82708 --- Comment #5 from joseph at codesourcery dot com --- The expectation for bootstrapping such a cross toolchain is that GCC is configured and built twice. The first build is static-only, C-only, inhibit-libc, disables lots of libraries such

[Bug other/82708] libmpx fails to compile due to PATH_MAX

2017-10-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82708 --- Comment #7 from joseph at codesourcery dot com --- On Wed, 25 Oct 2017, keno at juliacomputing dot com wrote: > First, the build process looking for the headers in /sys-include rather > than /include where glibc installs them. Leads

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #30 from joseph at codesourcery dot com --- An option to use just the file's basename in __FILE__ is bug 82176. I think that's a much more reasonable feature than straining the interpretation of what counts as the line

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #32 from joseph at codesourcery dot com --- The evidence from the DR discussion is that it's the *less* portable interpretation - that none of the implementations tested behaved as you suggest.

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-26 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #34 from joseph at codesourcery dot com --- None of the other preprocessor maintainers have commented on this bug in the past four years to disagree with my view of the natural identification of the current line for this __LINE__

[Bug c/78829] bit-rotten "C99 mode" references in GCC manual

2017-10-31 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78829 --- Comment #4 from joseph at codesourcery dot com --- _Alignof is alignment requirement (in all contexts), __alignof__ is preferred alignment (so on 32-bit x86, for long long they are 4 and 8 respectively, because a long long in a structure

[Bug target/40503] DEC_EVAL_METHOD not match operators

2017-11-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40503 --- Comment #7 from joseph at codesourcery dot com --- As far as I understand the general state of DFP support in GCC: the basic functionality generally works without needing much maintenance, but no-one is actively fixing DFP bugs or updating

[Bug c++/82861] 'long double sqrtf128(long double)' conflicts with built-in declaration 'long double sqrtf128(long double)' [-Wbuiltin-declaration-mismatch]

2017-11-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82861 --- Comment #1 from joseph at codesourcery dot com --- Should already have been fixed by r254277.

[Bug c/82272] RFE: request a warning for ( == ) etc.

2017-11-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82272 --- Comment #4 from joseph at codesourcery dot com --- I should point out that expanding to the tokens 0 and 1 for C does not in any way prevent warning (it's a perfectly reasonable optional style warning); you could for example hav

[Bug c/82909] Scope of type defined by offsetof() macro

2017-11-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82909 --- Comment #1 from joseph at codesourcery dot com --- On Wed, 8 Nov 2017, tydeman at tybor dot com wrote: > /* > * C standard appears to be unclear on scope of new type defined in > * offsetof() macro. Some compilers accept; so

[Bug tree-optimization/82946] member pointer defeats strlen optimization involving a string literal

2017-11-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82946 --- Comment #2 from joseph at codesourcery dot com --- On Sat, 11 Nov 2017, msebor at gcc dot gnu.org wrote: > other string literal) cannot be a valid representation of a pointer. (The > only > way for a conforming program to obtai

[Bug other/82997] [8 regression] gcc.dg/cpp/sysmac1.c and gcc.dg/cpp/macsyntx.c fail starting with r254707

2017-11-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82997 --- Comment #5 from joseph at codesourcery dot com --- Jakub's patch is <https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01041.html>.

[Bug c++/83060] ICE on valid C++ code: in ignore_overflows, at cp/cvt.c:583

2017-11-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83060 --- Comment #6 from joseph at codesourcery dot com --- I'd say for C it's valid to reject &a.s[-1] and &a.s[__PTRDIFF_MAX__] in static initializers, because there is no guarantee that such addresses are valid values of the

[Bug target/83133] Superflous x86 test instructions in generated assembly.

2017-11-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83133 --- Comment #5 from joseph at codesourcery dot com --- Both 32-bit and 64-bit ABIs make the values of flags in EFLAGS (other than DF) undefined on function entry and return. Thus, a function can never assume anything about the value of OF

[Bug target/83133] Superflous x86 test instructions in generated assembly.

2017-11-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83133 --- Comment #7 from joseph at codesourcery dot com --- On Fri, 24 Nov 2017, maxim.yegorushkin at gmail dot com wrote: > This code underflows a signed integer, which is undefined behaviour, if I am > not mistaken. So, this would not be a

[Bug target/83133] Superflous x86 test instructions in generated assembly.

2017-11-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83133 --- Comment #16 from joseph at codesourcery dot com --- On Fri, 24 Nov 2017, maxim.yegorushkin at gmail dot com wrote: > > It's valid to call a function in another file compiled with another > > compiler that follows the ABI,

[Bug target/83133] Superflous x86 test instructions in generated assembly.

2017-11-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83133 --- Comment #18 from joseph at codesourcery dot com --- On Fri, 24 Nov 2017, ubizjak at gmail dot com wrote: > In the testcase, there is nothing that violates ABI. It all happens in "g" > that > passes calculated result to a

[Bug tree-optimization/83194] Possibly missed simplification with strcmp(s, t) == strcmp(t, s)

2017-11-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194 --- Comment #3 from joseph at codesourcery dot com --- You definitely cannot assume strcmp (s, t) == -strcmp (t, s), only that the result has the correct sign in each case. There should be no need to preserve the exact return value (of the

[Bug c/82186] [7/8 Regression] ICE (segfault), VLA type with inlining

2017-12-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82186 --- Comment #6 from joseph at codesourcery dot com --- For C, what is supposed to happen is that every call to groktypename where there might be side effects from the type name passes a non-null EXPR argument, and then the caller arranges for

[Bug c/83294] int32_t & related definitions wrong with -funsigned-bitfields

2017-12-05 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83294 --- Comment #1 from joseph at codesourcery dot com --- I'm not aware of a standard requirement not to use plain int for int32_t (even with unsigned bit-fields), though it may well be useful to make the signedness explicit. After all, int

[Bug c/83294] int32_t & related definitions wrong with -funsigned-bitfields

2017-12-05 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83294 --- Comment #3 from joseph at codesourcery dot com --- FWIW, current glibc already uses signed int for int32_t (via using it for __int32_t which is used to define int32_t), entirely as an accident following a header refactoring, but not for

[Bug target/70216] [SH] Implement __builtin_trap

2017-12-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216 --- Comment #29 from joseph at codesourcery dot com --- I don't see the issue building glibc with build-many-glibcs.py any more, hence it no longer uses -fno-isolate-erroneous-paths-dereference -fno-isolate-erroneous-paths-attribute f

[Bug target/70216] [SH] Implement __builtin_trap

2017-12-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216 --- Comment #31 from joseph at codesourcery dot com --- On Wed, 6 Dec 2017, glaubitz at physik dot fu-berlin.de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216 > > --- Comment #30 from John Paul Adrian Glaubitz fu-

[Bug c++/77434] warn about suspicious precedence of ternary operator (?:)

2016-09-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77434 --- Comment #6 from joseph at codesourcery dot com --- On Thu, 1 Sep 2016, bernd.edlinger at hotmail dot de wrote: > + warning_at (location, 0, > + "?: expression using integer constants in boolean > co

[Bug c/77453] No builtin version of cbrtf

2016-09-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77453 --- Comment #1 from joseph at codesourcery dot com --- Most built-in versions of libm functions just optimize them for constant arguments.

[Bug tree-optimization/77450] [5/6/7 Regression] ICE: in verify_ssa, at tree-ssa.c:1016 on very simple code with vectors

2016-09-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77450 --- Comment #2 from joseph at codesourcery dot com --- On Fri, 2 Sep 2016, rguenth at gcc dot gnu.org wrote: > so it looks like COMPOUND_LITERAL_EXPR is an lvalue? Do we need to Yes. Compound literals are lvalues; they represent anonym

[Bug c/77530] optimization prevents excess precision from being removed with x86/amd64 long double and rounding to 53 bits

2016-09-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77530 --- Comment #1 from joseph at codesourcery dot com --- The x86 back end uses TARGET_96_ROUND_53_LONG_DOUBLE only for the case of 32-bit mode on DragonflyBSD and FreeBSD. From what you're saying here, it needs to do so for NetBSD as well

[Bug target/77586] [7 Regression] ia64 target fails to build due to ICE triggered by -fself-test

2016-09-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77586 --- Comment #1 from joseph at codesourcery dot com --- My offer at <https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01829.html> to provide an untested patch to always enable TFmode support in libgcc on ia64, if such an untested patch wo

[Bug c/77650] struct with a nested flexible array followed by another member accepted

2016-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77650 --- Comment #1 from joseph at codesourcery dot com --- On Mon, 19 Sep 2016, msebor at gcc dot gnu.org wrote: > While testing my patch for C++ bug 71912 and gathering material for WG14 paper > N2083 I noticed that GCC isn't completely

[Bug c/77650] struct with a nested flexible array followed by another member accepted

2016-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77650 --- Comment #3 from joseph at codesourcery dot com --- Anything based on whether things are in system headers won't work for building glibc as the headers don't look like system headers when building glibc (which uses -Wall -Werror).

gcc-bugs@gcc.gnu.org

2016-09-27 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60962 --- Comment #3 from joseph at codesourcery dot com --- On Mon, 26 Sep 2016, rguenth at gcc dot gnu.org wrote: > /* We want to canonicalize to positive real constants. Pretend > that only negative ones can be easily n

[Bug c/77754] [5/6/7 Regression] internal compiler error : tree code 'call_expr' is not supported in LTO streams

2016-09-27 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77754 --- Comment #5 from joseph at codesourcery dot com --- VLA side effects in function declarations that are not definitions should be discarded. VLA side effects in function declarations that are definitions should occur on entry to the

[Bug c++/77832] isnan() check causes signal 8 with signaling nans

2016-10-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77832 --- Comment #3 from joseph at codesourcery dot com --- See bug 66462.

[Bug c/77970] inconsistent and unhelpful -Wformat warning for %lc

2016-10-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77970 --- Comment #1 from joseph at codesourcery dot com --- I think the correct logic would be something like: if the argument is for a standard typedef, and the format doesn't correspond exactly to that typedef (or one differing only by sign

[Bug c/77992] Failures to initialize padding bytes -- causing many information leaks

2016-10-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77992 --- Comment #10 from joseph at codesourcery dot com --- If you care about information in bytes that are not part of a field with other semantic significance, you should use -Werror=padded to get errors on structs with padding and use that

[Bug c/78000] -Wimplicit-function-declaration inhibited with macro from system headers

2016-10-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78000 --- Comment #1 from joseph at codesourcery dot com --- As I've said before, we have to stop doing individual ad hoc fixes for bugs like this; there are too many of them. We have to work out the general principles for which warnings shou

[Bug c/77992] Provide feature to initialize padding bytes to avoid information leaks

2016-10-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77992 --- Comment #16 from joseph at codesourcery dot com --- Obviously any fields implicitly inserted like that must be ignored by the front ends when processing positional initializers - an initializer { 1, 2, 3 } must initialize three explicitly

[Bug c++/78014] -Wformat -vs- size_t

2016-10-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78014 --- Comment #2 from joseph at codesourcery dot com --- I think this is essentially the same as bug 77970 - making such warnings smarter about the case of standard typedefs. Of course an expression resulting from sizeof must be considered

[Bug other/78109] ld with -pie creates a shared library instead of an executable

2016-10-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78109 --- Comment #1 from joseph at codesourcery dot com --- That's what a PIE is: an ET_DYN that can be directly executed. There is no bug here.

[Bug testsuite/78136] gcc.dg/cpp/trad/include.c fails with newer glibc versions

2016-10-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78136 --- Comment #2 from joseph at codesourcery dot com --- This test clearly needs to use a header local to the testsuite rather than expecting system headers to work with -traditional-cpp (at which point the existing exclusion of vxworks_kernel

[Bug c/65892] gcc fails to implement N685 aliasing of union members

2016-11-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892 --- Comment #19 from joseph at codesourcery dot com --- On Tue, 1 Nov 2016, txr at alumni dot caltech.edu wrote: > Five: The answer to the question is clearly No. The example code > is very much on point to the "one special guaran

[Bug c/65892] gcc fails to implement N685 aliasing of union members

2016-11-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892 --- Comment #23 from joseph at codesourcery dot com --- On Wed, 2 Nov 2016, txr at alumni dot caltech.edu wrote: > Seven: Given that the question is now under serious debate, IMO > someone involved with gcc development should ta

[Bug tree-optimization/78386] Optimization -O2 and higher cause math inconsistency

2016-11-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78386 --- Comment #4 from joseph at codesourcery dot com --- On Wed, 16 Nov 2016, pinskia at gcc dot gnu.org wrote: > Most likely the use of fma. Which applies with current x86_64 just as it does with powerpc. It should be possible to reduce s

[Bug c/78408] C loop initial declarations generate wrong code

2016-11-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78408 --- Comment #7 from joseph at codesourcery dot com --- I can't reproduce this with recent GCC 6 branch. Possibly a duplicate of bug 72747?

[Bug target/78458] [7 Regression] LRA ICE building libgcc for powerpc-linux-gnuspe e500v2

2016-11-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78458 --- Comment #2 from joseph at codesourcery dot com --- It was r242641.

[Bug target/78458] [7 Regression] LRA ICE building libgcc for powerpc-linux-gnuspe e500v2

2016-11-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78458 --- Comment #3 from joseph at codesourcery dot com --- I still get the same ICE at r242683.

[Bug preprocessor/60570] expression in 'elif' directive mis-diagnosed as error when group will be skipped

2014-03-18 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60570 --- Comment #3 from joseph at codesourcery dot com --- http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_412.htm gives an approved change (presumably to appear in C11 TC2) to stop #elif conditionals from being evaluated when they don't ne

[Bug target/60580] aarch64 generates wrong code for __attribute__ ((optimize("no-omit-frame-pointer")))

2014-03-19 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60580 --- Comment #2 from joseph at codesourcery dot com --- I think following what i386 does is reasonable for now. I'm a bit dubious of the whole Save design - logically it would be cleaner if the gcc_options structures were saved just b

[Bug c/60809] C99 struct initialiser with embedded self assignment

2014-04-29 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60809 --- Comment #6 from joseph at codesourcery dot com --- I see nothing that says anything about the sequencing of side effects in initialization expressions with respect to the actual initialization itself, or parts thereof - either to require a

[Bug testsuite/59778] FAIL: gcc.dg/atomic/c11-atomic-exec-5.c

2014-04-29 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59778 --- Comment #3 from joseph at codesourcery dot com --- On Mon, 14 Apr 2014, danglin at gcc dot gnu.org wrote: > I tend to think the failure of this test on hppa is mainly a > testsuite issue. Specifically, the test performs operations th

[Bug other/60843] Documentation: 4.5 Integers/C99 6.3.1.3 ("reduce modulo 2^N")

2014-04-29 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60843 --- Comment #1 from joseph at codesourcery dot com --- On Tue, 15 Apr 2014, kdevel at vogtner dot de wrote: > For conversion to a type of width N, the value is reduced modulo 2^N to be > within range of the type; no signal is

[Bug other/60843] Documentation: 4.5 Integers/C99 6.3.1.3 ("reduce modulo 2^N")

2014-04-30 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60843 --- Comment #3 from joseph at codesourcery dot com --- On Wed, 30 Apr 2014, kdevel at vogtner dot de wrote: > The problem is the erroneous wording "reduction modulo 2^N". *Reduction* by > definition results in the least *nonnega

[Bug fortran/61126] gfortran does not enable -Wununused-parameter with -Wextra

2014-05-09 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126 --- Comment #15 from joseph at codesourcery dot com --- I think that if the order in which the handlers are executed matters, something is too fragile in those handlers.

[Bug c++/61276] warn about possible coding errors with logical not (!)

2014-05-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61276 --- Comment #6 from joseph at codesourcery dot com --- You could suggest GCC diagnostic issues to http://www.linuxfoundation.org/programs/core-infrastructure-initiative if you wish

[Bug bootstrap/61315] wide-int.cc cannot be built by darwin system compiler

2014-06-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61315 --- Comment #15 from joseph at codesourcery dot com --- On Wed, 28 May 2014, manu at gcc dot gnu.org wrote: > Is any company spending money on GCC Fortran development? That would be > awesome > if it were true! It's true for OpenACC support.

[Bug c/61447] _Alignof returns incorrect results for some types/archs

2014-06-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61447 --- Comment #1 from joseph at codesourcery dot com --- ISO C does not define _Alignof (object), only _Alignof (type).

[Bug c/61447] _Alignof returns incorrect results for some types/archs

2014-06-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61447 --- Comment #3 from joseph at codesourcery dot com --- What makes you think _Alignof depends on -std=c11 (other than for -pedantic diagnostics)? I don't see any point in requesting alignment of an object, as opposed to a type, unless you

[Bug c/61449] Statement expressions disallow storage specifiers

2014-06-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61449 --- Comment #1 from joseph at codesourcery dot com --- I don't see what this has to do with statement expressions. Standard ISO C rules for storage class specifiers are that block-scope declarations for functions need to use "ext

[Bug c/61447] _Alignof returns incorrect results for some types/archs

2014-06-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61447 --- Comment #7 from joseph at codesourcery dot com --- I think _Alignof (expr) should, for example, return the larger alignment chosen with _Alignas in the case of a declaration using _Alignas, rather than just being based on the type.

[Bug c/61502] == comparison on "one-past" pointer gives wrong result

2014-06-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61502 --- Comment #1 from joseph at codesourcery dot com --- Just because two pointers print the same and have the same bit-pattern doesn't mean they need to compare equal (see the response to DR#260, which may be presumed to apply to C11 i

[Bug c/61502] == comparison on "one-past" pointer gives wrong result

2014-06-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61502 --- Comment #3 from joseph at codesourcery dot com --- Except within a larger object, I'm not aware of any reason the cases of two objects following or not following each other in memory must be mutually exclusive. (If the implementatio

[Bug target/61563] better 387 code for float x == (int)x

2014-06-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61563 --- Comment #1 from joseph at codesourcery dot com --- Note that it's only for certain pairs of floating-point and integer type that the rounding mode doesn't matter. It's true for float and int, because the precision of float

[Bug target/42994] Status of using both -m32 and -m64 on the same command line

2010-02-07 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2010-02-07 22:58 --- Subject: Re: Status of using both -m32 and -m64 on the same command line On Sun, 7 Feb 2010, pinskia at gcc dot gnu dot org wrote: > >I think that this behavior should be unified across gcc's suppo

[Bug tree-optimization/43001] Missed vectorization on ARM NEON

2010-02-08 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2010-02-08 20:40 --- Subject: Re: Missed vectorization on ARM NEON On Mon, 8 Feb 2010, pinskia at gcc dot gnu dot org wrote: > > Try adding -mfloat-abi=softfp to make the compiler actually consider using > > NEON (needed

[Bug web/43011] Upgrade gcc.gnu.org/bugzilla to Bugzilla 3.4.5

2010-02-09 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2010-02-09 20:18 --- Subject: Re: Upgrade gcc.gnu.org/bugzilla to Bugzilla 3.4.5 I think the call for volunteers at http://gcc.gnu.org/ml/gcc/2008-03/msg00276.html still applies. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

<    7   8   9   10   11   12   13   14   15   16   >