[Bug c/88718] Strange inconsistency between old style and new style definitions of inline functions.

2019-01-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88718 --- Comment #2 from joseph at codesourcery dot com --- Note that there are also such cases as static int x; struct s { int a[sizeof(x)]; } inline *f (void) { return 0; } where the reference to x is part of the return type (still syntactically

[Bug c/88766] [9 Regression] Rejects valid? C code since r259641

2019-01-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88766 --- Comment #2 from joseph at codesourcery dot com --- Yes, I think that (a) a statement expression is not an lvalue and (b) if it were (or if the code were changed to move the unary '&' inside the statement expression), the

[Bug c/88769] Call to sin() optimized away, disregarding possible side-effect (errno)

2019-01-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88769 --- Comment #4 from joseph at codesourcery dot com --- Errors for infinite arguments to math.h functions are generally documented in Annex F; 7.12.1 just says "an implementation may define additional domain errors, provided that such e

[Bug c/88766] [9 Regression] Rejects valid? C code since r259641

2019-01-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88766 --- Comment #5 from joseph at codesourcery dot com --- On Wed, 9 Jan 2019, msebor at gcc dot gnu.org wrote: > I don't disagree with the conclusion about the validity of this test case but > there are examples where GCC does treat

[Bug c/88774] Qualification of parameters does not change a function type: Bug or standard defect?

2019-01-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88774 --- Comment #1 from joseph at codesourcery dot com --- Although the wording is different in the two cases (and the rule for return types is newer), I think qualifiers on function parameters should be considered as not part of the type just as

[Bug c/88822] Strange inconsistency between types of qualified rvalues.

2019-01-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88822 --- Comment #1 from joseph at codesourcery dot com --- If an rvalue's type (or, for that matter, an lvalue's type) is observed with _Generic, the qualifiers should be consistently dropped. If a type is observed with typeof, qualifie

[Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy

2019-01-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892 --- Comment #10 from joseph at codesourcery dot com --- Use of stfs on a double-precision value without frsp first is worse than simply using the wrong rounding mode; in the case of overflow it does a bitwise defined operation which is pretty

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2019-01-21 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38182 --- Comment #20 from joseph at codesourcery dot com --- r261797 removed all references to _ANSI_H_ from stddef.h, so this issue can't be relevant after then.

[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)

2019-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #4 from joseph at codesourcery dot com --- On Thu, 24 Jan 2019, msebor at gcc dot gnu.org wrote: > The CHANGE HISTORY section for stpcpy says the function was first released in > Issue 1 and derived from Issue 1 of the SVID:

[Bug middle-end/89052] excessive data segment size causes a hang

2019-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89052 --- Comment #2 from joseph at codesourcery dot com --- I'd say it's a bug for GCC to need to allocate memory for the trailing zero-initialized part of such an object at all; it should only need to allocate memory for the initia

[Bug c/89061] GCC 9 introduces false positive in -Wjump-misses-init

2019-01-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89061 --- Comment #1 from joseph at codesourcery dot com --- Guessing this might be another issue from pushdecl being called for compound literals (r259641). (Technically of course it's true that the jump misses the initialization of the anon

[Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register

2019-01-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093 --- Comment #8 from joseph at codesourcery dot com --- The Arm rule is that the EH machinery needs to avoid using VFP (or other non-core) registers so that the unwinder can save them on-demand only. See <http://infocenter.arm.com/help/to

[Bug target/88343] [7/8 Regression] R31 is unconditionally saved/restored on powerpc-darwin even when it's not necessary.

2019-01-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88343 --- Comment #22 from joseph at codesourcery dot com --- A large proportion of the glibc libm tests still segfault for powerpc-linux-gnu soft-float with that patch applied to GCC trunk. (Although I don't see nextafter tests among those fa

[Bug c/39985] Type qualifiers not actually ignored on function return type

2019-01-30 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39985 --- Comment #7 from joseph at codesourcery dot com --- On Wed, 30 Jan 2019, egallager at gcc dot gnu.org wrote: > So can this be closed then? A change *in C11 mode* has nothing to do with possible imprecision of the wording of a diagnos

[Bug tree-optimization/43565] Missed address comparison folding of DECL_COMMONs

2019-02-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43565 --- Comment #10 from joseph at codesourcery dot com --- My interpretation of that footnote is that it's observing that there is no way within the standard to *create* linkage between different identifiers - not that it constrains how

[Bug target/89175] gcc's conversion code from double to unsigned int handles overflows incorrectly on x86-64

2019-02-04 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89175 --- Comment #3 from joseph at codesourcery dot com --- See bug 27682.

[Bug c++/69560] x86_64: alignof(uint64_t) produces incorrect results with -m32

2018-04-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560 --- Comment #20 from joseph at codesourcery dot com --- I consider it part of the ABI that long long __attribute__((__aligned__(__alignof__(long long, as in the definition of max_align_t (and similarly in gnulib's max_align_t defin

[Bug c/10360] __alignof__(double) answer 8

2018-04-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10360 --- Comment #12 from joseph at codesourcery dot com --- On Wed, 11 Apr 2018, jason at gcc dot gnu.org wrote: > The quoted passage in the documentation now reads > > --- > Some machines never actually require alignment; they allow

[Bug c/85361] Variable length array allowed in c89/90

2018-04-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85361 --- Comment #3 from joseph at codesourcery dot com --- See the documentation of -std=, regarding base standards. # The compiler can accept several base standards, such as @samp{c90} or # @samp{c++98}, and GNU dialects of those standards, such

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

2018-04-23 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892 --- Comment #39 from joseph at codesourcery dot com --- On Thu, 19 Apr 2018, jameskuyper at verizon dot net wrote: > Code which relies upon this feature to implement a C-style approximation to > inheritance has been fairly common, wh

[Bug c++/85518] ICE mangling _FloatN types

2018-04-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85518 --- Comment #2 from joseph at codesourcery dot com --- You still need some of the built-in functions for use with __float128 in C++ when that has a different format from long double. It's the built-in functions for types with the same f

[Bug target/84829] -mieee-fp causes to link with -lieee but that is no longer available

2018-04-30 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84829 --- Comment #14 from joseph at codesourcery dot com --- As I said in comment#10, I think the solution is to remove the specs making -mieee-fp imply -lieee. (Principally the spec in gnu-user.h. I don't think this should depend on what li

[Bug tree-optimization/85585] switch to select a string based on an enum can profitably optimize away the table of pointers/offsets into fixed-length char[] blocks. Or use byte offsets into a string

2018-05-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85585 --- Comment #2 from joseph at codesourcery dot com --- On Tue, 1 May 2018, peter at cordes dot ca wrote: > The current strings + pointer-table implementation doesn't merge string > literals where one string is a suffix of anoth

[Bug middle-end/38960] Wrong floating point reorder

2018-05-04 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38960 --- Comment #5 from joseph at codesourcery dot com --- Since any non-const function can examine floating-point state, I'd expect significant effects on code generation. (Whether this also applies to asms depends on the architecture;

[Bug target/85665] Multiple typos in diagnostics

2018-05-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85665 --- Comment #8 from joseph at codesourcery dot com --- On Sun, 6 May 2018, roland.illig at gmx dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85665 > > --- Comment #3 from Roland Illig --- > (In reply to Jonathan

[Bug target/85733] ARM -mbe8 behaviour doesn't match documentation

2018-05-10 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85733 --- Comment #1 from joseph at codesourcery dot com --- Sounds like a regression if this is the case, since bpabi.h in GCC 7 does include march=armv8-a in BE8_LINK_SPEC.

[Bug c/85810] gcc incorrectly handles declarations inside parameter lists of function declarators.

2018-05-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85810 --- Comment #1 from joseph at codesourcery dot com --- This is an obviously perverse interpretation of the standard that is inconsistent with the intent expressed explicitly if non-normatively in 6.7.6.3#18 ("The identifiers x and

[Bug c/85810] gcc incorrectly handles declarations inside parameter lists of function declarators.

2018-05-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85810 --- Comment #3 from joseph at codesourcery dot com --- On Wed, 16 May 2018, cookevillain at yahoo dot com wrote: > The Standard is supposed to be a formal specification of the language, so if No, it isn't. It's for humans

[Bug web/85917] GCC 8 Changes page fails to mention change of default mode for C

2018-05-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85917 --- Comment #1 from joseph at codesourcery dot com --- The difference between -std=gnu11 and -std=gnu17 is not meant to be significant, since apart from the __STDC_VERSION__ change C17 is purely a bug-fix version and so there are no other

[Bug bootstrap/85921] /gcc/c-family/c-warn.c fails to build

2018-05-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85921 --- Comment #14 from joseph at codesourcery dot com --- On Fri, 25 May 2018, gcc at mailinator dot com wrote: > https://gcc.gnu.org/install/ doesn't say anything about make headers_install. That's because it's not part of in

[Bug bootstrap/85921] /gcc/c-family/c-warn.c fails to build

2018-05-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85921 --- Comment #16 from joseph at codesourcery dot com --- On Fri, 25 May 2018, msebor at gcc dot gnu.org wrote: > Beyond that, #defining macros that match known attributes to something else > seems like asking for trouble. It even came up

[Bug c/85957] i686: Integers appear to be different, but compare as equal

2018-05-31 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85957 --- Comment #11 from joseph at codesourcery dot com --- On Mon, 28 May 2018, vincent-gcc at vinc17 dot net wrote: > floating-point expression: Once a floating-point number has been converted > into > an integer type, the value of thi

[Bug c/85995] GCC defines __STDC__ and __STDC_VERSION__ even when used with options that break C conformance

2018-06-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85995 --- Comment #3 from joseph at codesourcery dot com --- See trouble.texi, "Non-bugs" / "Certain Changes We Don't Want to Make", "Undefining @code{__STDC__} when @option{-ansi} is not used." (and the descripti

[Bug c/85997] Bogus -Wvla warning from function array argument with size expression

2018-06-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997 --- Comment #1 from joseph at codesourcery dot com --- Well, that's a VLA before the decay to pointer type, and thus violates the C90 constraint referenced in the diagnostic. So a diagnostic is obviously required with -std=c90 -pedant

[Bug c/85997] Bogus -Wvla warning from function array argument with size expression

2018-06-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997 --- Comment #3 from joseph at codesourcery dot com --- The requirements on array declarators apply before parameter arrays decay to pointers; see DR#047 (which concerns the case of an incomplete element type - not itself a constraint violation

[Bug c/85995] GCC defines __STDC__ and __STDC_VERSION__ even when used with options that break C conformance

2018-06-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85995 --- Comment #5 from joseph at codesourcery dot com --- On Fri, 1 Jun 2018, vincent-gcc at vinc17 dot net wrote: > Programmers normally use conditionals on '__STDC__' to ask whether > it is safe to use certain feature

[Bug c/86137] ubsan runtime error in c-format.c

2018-06-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86137 --- Comment #1 from joseph at codesourcery dot com --- Yes, this code needs to be fixed to avoid undefined overflow (if argnum > INT_MAX / 10 || (argnum == INT_MAX / 10 && *fcp - '0' > INT_MAX % 10), record that overflo

[Bug c/86134] earlier diagnostic causes followup diagnostic about unknown -Wno-* options

2018-06-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86134 --- Comment #10 from joseph at codesourcery dot com --- On Fri, 15 Jun 2018, rguenth at gcc dot gnu.org wrote: > Joseph, do you agree that the following shouldn't fail the compilation? > > > echo 'int main(){}'

[Bug target/85961] scratch register rsi used after function call

2018-06-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85961 --- Comment #6 from joseph at codesourcery dot com --- On Fri, 15 Jun 2018, rguenth at gcc dot gnu.org wrote: > So - all process_options () option post-processing should go away and be moved > to finish_options ()? I think reducing the

[Bug c/86221] _Generic not match function return that has _Atomic

2018-06-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86221 --- Comment #1 from joseph at codesourcery dot com --- The C17 specification for function return types says "function returning the unqualified version of T", not "function returning the unqualified, non-atomic version of T&q

[Bug tree-optimization/86259] [8/9 Regression] min(4, strlen(s)) optimized to strlen(s) with -flto

2018-06-22 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86259 --- Comment #13 from joseph at codesourcery dot com --- Well, C90 TC1 adds (to the informative Annex listing undefined behavior) the case of array subscripts being out of range even if they wouldn't be simply based on the top-level o

[Bug tree-optimization/86367] FRE1 tree pass deletes code in gcc.target/powerpc/nan128-1.c when long double is IEEE 128

2018-06-30 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86367 --- Comment #7 from joseph at codesourcery dot com --- If you use __builtin_nansf128 (which returns _Float128) but __float128 is long double, it's possible the implicit conversion from storing the result of __builtin_nansq in y.value re

[Bug c/54192] -fno-trapping-math by default?

2019-08-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54192 --- Comment #4 from joseph at codesourcery dot com --- On Mon, 24 Jun 2019, rguenth at gcc dot gnu.org wrote: > so I guess it differs from -frounding-math also in a way that it doesn't > guard FENV access of the exception state (I&#x

[Bug target/90993] simd integer division not optimized

2019-08-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90993 --- Comment #2 from joseph at codesourcery dot com --- Note that this is only valid with -fno-trapping-math (since integer division is not permitted to raise the "inexact" exception flag). (With AVX-512 there are instruction var

[Bug target/91323] LTGT rtx produces UCOMISS instead of COMISS

2019-08-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91323 --- Comment #12 from joseph at codesourcery dot com --- On Thu, 1 Aug 2019, ubizjak at gmail dot com wrote: > It also means that __builtin_islessgreater is confusingly named. No, __builtin_islessgreater corresponds to the ISO C islessgrea

[Bug c/91046] missing warning about empty translation unit

2019-08-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91046 --- Comment #3 from joseph at codesourcery dot com --- There can't be any debug info issues specific to empty translation units, given that _Static_assert (1, ""); is valid as a translation unit in ISO C, and doesn't d

[Bug c/78736] enum warnings in GCC (request for -Wenum-conversion to be added)

2019-08-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78736 --- Comment #11 from joseph at codesourcery dot com --- Discussions of the change continued into Aug / Sep 2017. In particular, there were issues with warnings this introduced in the GCC build (of target libraries), and questions about

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148 --- Comment #13 from joseph at codesourcery dot com --- As I noted in bug 40883 comment 8, you can detect such issues in target-specific code by building a cross compiler using a native compiler from the same trunk version, and configuring

[Bug target/91130] [9/10 Regression] -MF clashes with -flto on aarch64

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91130 --- Comment #32 from joseph at codesourcery dot com --- I concur that passing CL_DRIVER instead of CL_LANG_ALL is correct here.

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 --- Comment #3 from joseph at codesourcery dot com --- There is a known ambiguity in the standard requirements where the argument has the correct promoted type but not the expected type before promotion. I wrote up some notes on this some

[Bug middle-end/91226] wrong propagation of non-canonical _Decimal64 constant

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91226 --- Comment #1 from joseph at codesourcery dot com --- This appears to be a bug in libdecnumber/bid/bid2dpd_dpd2bid.c. _bid_to_dpd32 checks for a too-large significand, but _bid_to_dpd64 does not. Furthermore, _bid_to_dpd128 has the same bug

[Bug c/67224] UTF-8 support for identifier names in GCC

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224 --- Comment #28 from joseph at codesourcery dot com --- On Mon, 22 Jul 2019, lhyatt at gmail dot com wrote: > I am interested in helping out with this if there is still interest to support > this feature. (Full disclosure, I don'

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #16 from joseph at codesourcery dot com --- I think the most likely case for code using such comparisons is not a mistake, but code doing something like memmove - code that checks whether two arrays overlap, and which one comes

[Bug c/91285] _Pragma does not work in a useful fashion

2019-08-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285 --- Comment #4 from joseph at codesourcery dot com --- Note that all the standard C pragmas are even more restricted than GCC's statement-like pragmas - the standard pragmas (which aren't implemented in GCC) are defined by the C stan

[Bug c/88451] No rounding in fixed-point arithmetic (Decimal to fixed-point conversion, multiplication)

2019-08-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88451 --- Comment #6 from joseph at codesourcery dot com --- I don't think anyone has really been maintaining the fixed-point support for a very long time.

[Bug c/67224] UTF-8 support for identifier names in GCC

2019-08-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224 --- Comment #30 from joseph at codesourcery dot com --- https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future is the form to complete and send to ass...@gnu.org (to do an assignment covering past and future

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #18 from joseph at codesourcery dot com --- I don't expect people to do such comparisons with addresses of local variables directly. It is plausible that they have a memmove-like function, and once it gets inlined the compile

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 --- Comment #5 from joseph at codesourcery dot com --- It's *accessible objects* whose value on second return from setjmp is the same as when longjmp is called (unless non-volatile, automatic storage duration and changed between setjm

[Bug c/91398] Possible missed optimization: Can a pointer be passed as hidden pointer in x86-64 System V ABI

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91398 --- Comment #1 from joseph at codesourcery dot com --- ABI question: is a function that returns a value through such a hidden pointer required not to write anything to the storage pointed to until it knows that it will definitely be returning

[Bug target/48595] score-elf fails to build with --enable-werror-always

2019-08-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48595 --- Comment #3 from joseph at codesourcery dot com --- The score port was removed in 2014. All open bugs for it should have been closed at that time.

[Bug tree-optimization/91425] Ordered compares aren't optimised

2019-08-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91425 --- Comment #8 from joseph at codesourcery dot com --- A more general representation would facilitate implementing __builtin_iseqsig (bug 77928). (As noted in previous discussions, some processors, e.g. MIPS, actually have a general

[Bug c/91526] Unnecessary SSE and other instructions generated when compiling in C mode (vs. C++ mode)

2019-08-23 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91526 --- Comment #7 from joseph at codesourcery dot com --- There's more or less the same ABI question as in bug 91398 about whether there is any constraint on the called function writing to the return value slot in cases where it does not r

[Bug lto/41731] The linker plugin should support translations

2019-08-27 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41731 --- Comment #2 from joseph at codesourcery dot com --- https://gcc.gnu.org/ml/gcc-patches/2009-10/msg01016.html

[Bug target/90175] ambiguous wording "critical attribute" in diagnostic

2019-08-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90175 --- Comment #2 from joseph at codesourcery dot com --- On Wed, 28 Aug 2019, jozefl.gcc at gmail dot com wrote: > As far as I understand, strings which get passed to warning() or error() or > other functions with arguments ending in gmsgid

[Bug middle-end/66462] GCC isinf/isnan/... builtins cause sNaN exceptions

2019-09-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66462 --- Comment #13 from joseph at codesourcery dot com --- These functions have to be expanded inline, unconditionally; there are no library functions they can reliably fall back on in general.

[Bug middle-end/66462] GCC isinf/isnan/... builtins cause sNaN exceptions

2019-09-04 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66462 --- Comment #18 from joseph at codesourcery dot com --- On Wed, 4 Sep 2019, tnfchris at gcc dot gnu.org wrote: > As far as I am aware, the final version of the patch had no regressions for > any > target, including PowerPC which I use

[Bug c/78736] enum warnings in GCC (request for -Wenum-conversion to be added)

2019-09-04 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78736 --- Comment #16 from joseph at codesourcery dot com --- Could you give the testcase you expect to be diagnosed with this option with C++ that isn't diagnosed by default?

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #2 from joseph at codesourcery dot com --- If the result of multiplying by 1.5 is outside the range of the integer type, the version with multiplication is required to raise the FE_INVALID exception for the out-of-range conversion

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-10 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #4 from joseph at codesourcery dot com --- See the C17 standard, Annex F.4 "Floating to integer conversion": "Otherwise, if the floating value is infinite or NaN or if the integral part of the floating value excee

[Bug driver/81358] libatomic not automatically linked with C11 code

2019-09-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358 --- Comment #9 from joseph at codesourcery dot com --- I should also note the testsuite point I mentioned in the BoF, and related points about building target libraries, which mean this is more complicated than just the driver specs change

[Bug preprocessor/49973] Column numbers count multibyte characters as multiple columns

2019-09-16 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973 --- Comment #14 from joseph at codesourcery dot com --- On Sun, 15 Sep 2019, lhyatt at gmail dot com wrote: > I feel like the most portable solution is just to use directly the necessary > code (from glibc or gnulib or from scratch or wh

[Bug preprocessor/49973] Column numbers count multibyte characters as multiple columns

2019-09-17 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973 --- Comment #17 from joseph at codesourcery dot com --- On Tue, 17 Sep 2019, lhyatt at gmail dot com wrote: > In any case, the underlying source of wcwidth() could easily be changed as a > drop-in replacement so I guess it can also be d

[Bug c/91815] questionable error on type definition at file scope

2019-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91815 --- Comment #1 from joseph at codesourcery dot com --- Yes, that looks like a plausible fix (given testcase added to the testsuite and regression testing).

[Bug c/91820] missing error diagnosis of '&' in initialization

2019-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820 --- Comment #5 from joseph at codesourcery dot com --- This is probably a duplicate of other bugs for cases that are not required in the standard to be constant expressions but are permitted as additional implementation-defined kinds of

[Bug c/91815] questionable error on type definition at file scope

2019-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91815 --- Comment #5 from joseph at codesourcery dot com --- Either gcc.dg or gcc.c-torture/compile would be fine for this test.

[Bug fortran/91828] gcc/fortran/check.c requires mpfr_set_z_2exp from MPFR 3.0.0, unavailable in mpfr-2.4.2

2019-09-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91828 --- Comment #2 from joseph at codesourcery dot com --- My view is as stated in <https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01602.html> and <https://gcc.gnu.org/ml/gcc-patches/2016-04/msg01544.html>: * Update the minimum to

[Bug other/91879] --with-build-sysroot doesn't work as expected

2019-09-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #11 from joseph at codesourcery dot com --- Those -isystem paths are the *non-sysroot* kind of paths for headers for a cross compiler. There is no support for building a *non-sysroot* cross toolchain when its libc is installed in

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

2019-09-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82542 --- Comment #14 from joseph at codesourcery dot com --- On Wed, 25 Sep 2019, nsz at gcc dot gnu.org wrote: > e.g. currently there is now way to tell what _FloatN > variants gcc understands, even though -fdump-translation-unit > with

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 --- Comment #5 from joseph at codesourcery dot com --- Note that you can use -fmerge-all-constants to tell the compiler to allow merging named constant objects (I haven't checked if that helps in this case, however).

[Bug other/91879] --with-build-sysroot doesn't work as expected

2019-09-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #13 from joseph at codesourcery dot com --- On Wed, 25 Sep 2019, stsp at users dot sourceforge.net wrote: > Unfortunately I wasn't able to fully understand the > idea you explain. You mention "sysroot" and &

[Bug c/91918] Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91918 --- Comment #5 from joseph at codesourcery dot com --- In general this sort of thing is undefined behavior under 7.1.4. It's valid to give an error in this case (as the types are wrong), but it's liable to be hard to do so in all

[Bug c/91961] __has_attribute expands macro argument

2019-10-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91961 --- Comment #2 from joseph at codesourcery dot com --- There's bug 80005 for expansion of __has_include arguments.

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #18 from joseph at codesourcery dot com --- No, --with-build-time-tools definitely should not override newly built tools. For example, in some bootstrap configurations you have to build GCC more than once. If you're

[Bug target/91970] arm: 64bit int to double conversion does not respect rounding mode

2019-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91970 --- Comment #4 from joseph at codesourcery dot com --- The libgcc2.c functions for conversions that get used by default on most architectures should respect the rounding mode if the underlying single-word-to-floating-point instruction does so

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #20 from joseph at codesourcery dot com --- The only case where the newly built GCC should be overridden is the Canadian cross case, and while that does use a pre-installed tool from the PATH, it's best to use "make al

[Bug c/91973] gcc failed for Multiple level macro expansion

2019-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91973 --- Comment #3 from joseph at codesourcery dot com --- Macro replacement for function-like macros is defined in C17 6.10.3. Note in paragraph 10 the words "the function-like macro name followed by a ( as the next preprocessing token&

[Bug c/91973] gcc failed for Multiple level macro expansion

2019-10-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91973 --- Comment #5 from joseph at codesourcery dot com --- We're talking about the sequence of pp-tokens in the expansion of bar(foo, addr), which is (foo) (addr), where foo is followed by ), not about the definition. Please take any fu

[Bug target/91970] arm: 64bit int to double conversion does not respect rounding mode

2019-10-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91970 --- Comment #6 from joseph at codesourcery dot com --- Arm only uses soft-fp for Thumb-1; otherwise it uses Arm-specific assembly code. A natural fix might be, for these particular functions, in the hard-float case, to use the libgcc2.c

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #22 from joseph at codesourcery dot com --- On Thu, 3 Oct 2019, stsp at users dot sourceforge.net wrote: > - The stage2 compiler is built with --prefix=/usr and > installed with the DESTDIR set to the build dir. As the &g

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #24 from joseph at codesourcery dot com --- On Thu, 3 Oct 2019, stsp at users dot sourceforge.net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 > > --- Comment #23 from Stas Sergeev --- > (In

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #26 from joseph at codesourcery dot com --- On Thu, 3 Oct 2019, stsp at users dot sourceforge.net wrote: > Ah, I am starting to understand. > So basically you mean something like this: > --with-sysroot=$prefix/$target --w

[Bug target/91970] arm: 64bit int to double conversion does not respect rounding mode

2019-10-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91970 --- Comment #8 from joseph at codesourcery dot com --- The code snippet you posted looks like exactly what libgcc2.c would typically do for __floatundidf. Given that, I'd prefer building the relevant function from libgcc2.c rather than h

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #29 from joseph at codesourcery dot com --- On Mon, 7 Oct 2019, stsp at users dot sourceforge.net wrote: > Is there any way to convince the build system that the > resulting compiler is alien and cannot be used? I think A

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #33 from joseph at codesourcery dot com --- It can be useful to have the fully-prefixed host tools (but you don't need to, you can also make your build system set all the variables such as CC and CXX that are needed for the host).

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #35 from joseph at codesourcery dot com --- On Tue, 8 Oct 2019, stsp at users dot sourceforge.net wrote: > As well as AS, LD and all the rest? > But that defeats the entire purpose of configure. > I need it to work on

[Bug other/91879] --with-build-time-tools doesn't work as expected

2019-10-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 --- Comment #37 from joseph at codesourcery dot com --- On Wed, 9 Oct 2019, stsp at users dot sourceforge.net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 > > --- Comment #36 from Stas Sergeev --- > (In

[Bug target/92083] -mlong-double-64 strange results

2019-10-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92083 --- Comment #2 from joseph at codesourcery dot com --- Note also that glibc does not support being built with a different long double ABI from the default one. On architectures where more than one long double format is supported by glibc

[Bug middle-end/92088] aggregates with VLAs and nested functions are broken

2019-10-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92088 --- Comment #1 from joseph at codesourcery dot com --- There are various existing bug reports for ICEs involving VLAs and nested functions (e.g. 59711, 60085, 69193, 70418). I don't know which might be related to this one (and even if

[Bug c/83397] void f() { } has zero arguments

2017-12-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83397 --- Comment #3 from joseph at codesourcery dot com --- DR#317 explicitly confirms that () is not a prototype in a function definition. It's not valid in ISO C to call a variadic function without a prototype in scope. To the extent tha

[Bug bootstrap/83396] [8 Regression] Bootstrap failures with Statement Frontiers

2017-12-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83396 --- Comment #12 from joseph at codesourcery dot com --- https://sourceware.org/ml/libc-testresults/2017-q4/msg00460.html shows GCC build failures on alpha, hppa, ia64, m68k, microblaze, sh, tilegx, tilepro. (The cases where the GCC build

<    3   4   5   6   7   8   9   10   11   12   >