[Bug other/55274] New: gcc build hangs on HP-UX 11.11

2012-11-11 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55274 Bug #: 55274 Summary: gcc build hangs on HP-UX 11.11 Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: major

[Bug c/54454] New: gcc violates c99 specification w.r.t. flexible arrays

2012-09-01 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54454 Bug #: 54454 Summary: gcc violates c99 specification w.r.t. flexible arrays Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: minor

[Bug c/54454] gcc violates c99 specification w.r.t. flexible arrays

2012-09-01 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54454 --- Comment #1 from mikulas at artax dot karlin.mff.cuni.cz 2012-09-02 01:52:54 UTC --- Another specification violation: section 6.7.2.1 paragraph 20 says that assignment of a structure with flexible array member doesn't copy any of the array

[Bug lto/54705] New: Building gcc with ADA and LTO results in an internal error

2012-09-25 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54705 Bug #: 54705 Summary: Building gcc with ADA and LTO results in an internal error Classification: Unclassified Product: gcc Version: 4.7.2 Status:

[Bug lto/54705] ICE during custom LTO bootstrap with Ada enabled

2012-09-26 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54705 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz 2012-09-26 23:12:18 UTC --- My script doesn't have -g, but it is somehow added by gcc build scripts. I can see lines like this that have -g. /usr/src/gcc-4.7.2-build-5.1/./prev

[Bug lto/54705] ICE during custom LTO bootstrap with Ada enabled

2012-09-26 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54705 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz 2012-09-26 23:16:04 UTC --- Created attachment 28289 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28289 a full log of failed compiletion

[Bug lto/54737] New: ICE on PA-RISC with LTO and -ftrapv

2012-09-28 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54737 Bug #: 54737 Summary: ICE on PA-RISC with LTO and -ftrapv Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug middle-end/54846] New: -ftrapv doesn't work in 64-bit mode

2012-10-07 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54846 Bug #: 54846 Summary: -ftrapv doesn't work in 64-bit mode Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug middle-end/54848] New: -ftrapv doesn't work when assigning to an integer with smaller size

2012-10-07 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54848 Bug #: 54848 Summary: -ftrapv doesn't work when assigning to an integer with smaller size Classification: Unclassified Product: gcc Version: 4.7.2 Status:

[Bug target/57708] New: function clobbers callee saved register on ARM

2013-06-25 Thread mikulas at artax dot karlin.mff.cuni.cz
: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Compile the attached code with -O3 -mcpu=cortex-a15 -marm on ARM EABI (the bug happens with hardfp or without). The functions html_h3, html_h4, html_h5, html_h6 clobber the register r5

[Bug target/57708] function clobbers callee saved register on ARM

2013-06-25 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57708 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added CC||mikulas at artax

[Bug target/57708] function clobbers callee saved register on ARM

2013-06-25 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57708 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- Created attachment 30362 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30362action=edit another reproduction code The code in the first attachment actually did some out

[Bug other/58238] New: cc1 crashes when built for ms-dos cross-compiling

2013-08-24 Thread mikulas at artax dot karlin.mff.cuni.cz
: other Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: i586-pc-msdosdjgpp Build: x86_64-unknown-linux-gnu Configure gcc-4.7.3 with these options: ../gcc-4.7.3

[Bug target/58496] New: bug in win64 calling standard

2013-09-21 Thread mikulas at artax dot karlin.mff.cuni.cz
Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-pc-cygwin Target: x86_64-pc-cygwin Build: x86_64-pc-cygwin Windows on x86-64 uses a different calling standard than Linux. On Windows x64 ABI

[Bug c/61925] New: internal error when using vectorization on CPU without SSE

2014-07-26 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu Created attachment

[Bug target/62253] New: gcc incorrectly mixes direct atomic instructions with calls to atomic library

2014-08-24 Thread mikulas at artax dot karlin.mff.cuni.cz
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux

[Bug target/63228] New: -m16 doesn't work if gcc is compiled for x32

2014-09-11 Thread mikulas at artax dot karlin.mff.cuni.cz
: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-linux-gnux32 Target: x86_64-linux-gnux32 Build: x86_64-linux-gnux32 When gcc is configured and compiled for x32 mode (x86_64-linux

[Bug target/63264] New: Internal error due to invalid assembler register specification

2014-09-14 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-linux-gnux32 Target: x86_64-linux-gnux32 Build: x86_64-linux-gnux32 This piece of code: void f

[Bug c/63303] New: Pointer subtraction is broken when using -fsanitize=undefined

2014-09-18 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-linux-gnux32 Target: x86_64-linux-gnux32 Build: x86_64-linux-gnux32 The undefined behavior sanitizer

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2014-09-19 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- Jakub Jelinek: I know, but the problem happened in perfectly valid program. Suppose that you do: char *p = malloc(0x2000); - the allocator allocates the array at 0x7000

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2014-09-19 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #4 from mikulas at artax dot karlin.mff.cuni.cz --- ... and another related problem (try this on 32-bit system): #include stdio.h #include stdlib.h int main(void) { short *a = malloc(0x5000 * sizeof(short

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2014-09-19 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #6 from mikulas at artax dot karlin.mff.cuni.cz --- you really can't have an object bigger than half of the address space in C/C++ - where does the standard claim this? If this is true, we should change malloc so that it doesn't

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2014-09-19 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #9 from mikulas at artax dot karlin.mff.cuni.cz --- See what I wrote, any object size bigger than half of address space really isn't supportable, because then (char *) (P) - (char *) (Q) might not fit into ptrdiff_t

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2014-09-22 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #11 from mikulas at artax dot karlin.mff.cuni.cz --- Richard Biener: if the middle end tells us that one pointer is greater or equal than the other pointer, we could do unsigned subtraction and shift. But if we don't know which

[Bug target/59767] New: __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier

2014-01-10 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu

[Bug middle-end/60310] New: internal compiler error due to excessive alignment

2014-02-21 Thread mikulas at artax dot karlin.mff.cuni.cz
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: arm-linux-gnueabihf Target: arm-linux-gnueabihf Build: arm-linux-gnueabihf When compiling this piece of code with or without

[Bug target/60496] New: ffreep instruction shouldn't be generated when using i386 instruction set

2014-03-10 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-linux-gnux32 Target: x86_64-linux-gnux32 Build: x86_64-linux-gnux32 The ffreep

[Bug target/60496] ffreep instruction shouldn't be generated when using i386 instruction set

2014-03-10 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60496 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added Host|x86_64-linux-gnu|x86_64-linux

[Bug middle-end/60814] New: incorrect integer promotion when multiplying unsigned short values

2014-04-10 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu

[Bug lto/51300] New: Internal error when using -flto with -O0 in the linker

2011-11-24 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51300 Bug #: 51300 Summary: Internal error when using -flto with -O0 in the linker Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug preprocessor/51745] New: Strange symbol appears when using commandline definition without =

2012-01-03 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51745 Bug #: 51745 Summary: Strange symbol appears when using commandline definition without = Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED

[Bug ada/51814] New: only 32-bit ada library is built on 64-bit system

2012-01-10 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51814 Bug #: 51814 Summary: only 32-bit ada library is built on 64-bit system Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug preprocessor/51745] Strange symbol appears when using commandline definition without =

2012-01-10 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51745 --- Comment #4 from mikulas at artax dot karlin.mff.cuni.cz 2012-01-10 18:59:06 UTC --- If you input garbage into a compiler, it should report an error, not output garbage.

[Bug ada/51814] only 32-bit ada library is built on 64-bit system

2012-01-10 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51814 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz 2012-01-10 19:23:31 UTC --- After further testing it turns out that make install -j8 produces the invalid Ada installation and make install produces a working installation. If I install

[Bug target/49904] New: Internal error with multiplication and -msoft-float

2011-07-29 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49904 Summary: Internal error with multiplication and -msoft-float Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug lto/52778] New: gcc crashes with -flto on PA-RISC

2012-03-29 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52778 Bug #: 52778 Summary: gcc crashes with -flto on PA-RISC Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug lto/52778] gcc crashes with -flto on PA-RISC

2012-03-29 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52778 --- Comment #1 from mikulas at artax dot karlin.mff.cuni.cz 2012-03-29 18:25:43 UTC --- I couldn't attach the file, so I placed in on http://jikos.cz/~mikulas/gcc-crash-files.tar.bz2 . Download the archive, change CC in the Makefile to point

[Bug lto/52778] gcc crashes with -flto on PA-RISC

2012-03-29 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52778 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz 2012-03-29 18:29:34 UTC --- Created attachment 27038 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27038 gdb session analyzing the core file This is the gdb session analyzing

[Bug lto/52778] gcc crashes with -flto on PA-RISC

2012-03-29 Thread mikulas at artax dot karlin.mff.cuni.cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52778 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz 2012-03-29 18:46:17 UTC --- BTW. I found that there is another bug #52776 with -flto crash at the same place.

[Bug sanitizer/64888] New: ubsan doesn't work with openmp

2015-01-31 Thread mikulas at artax dot karlin.mff.cuni.cz
Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Undefined behavior sanitizer and openmp don't work

[Bug middle-end/64545] failed gcc build: internal compiler error: in inline_small_functions, at ipa-inline.c:1693

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64545 --- Comment #1 from mikulas at artax dot karlin.mff.cuni.cz --- It is caused by profiledbootstrap, when I change it to boostrap, the build succeeds.

[Bug middle-end/64545] New: failed gcc build: internal compiler error: in inline_small_functions, at ipa-inline.c:1693

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
Severity: major Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64

[Bug lto/64543] gcc fails to build due to undefined references to functions in libiberty

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64543 --- Comment #1 from mikulas at artax dot karlin.mff.cuni.cz --- Created attachment 34406 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34406action=edit failed build log

[Bug lto/64543] New: gcc fails to build due to undefined references to functions in libiberty

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu

[Bug middle-end/64544] New: ../../gcc-svn/gcc/cgraphunit.c:2183:1: internal compiler error: in check_probability, at basic-block.h:581

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Host: x86_64-unknown-linux-gnu Target: x86_64-unknown

[Bug middle-end/64544] ../../gcc-svn/gcc/cgraphunit.c:2183:1: internal compiler error: in check_probability, at basic-block.h:581

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64544 --- Comment #1 from mikulas at artax dot karlin.mff.cuni.cz --- Created attachment 34407 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34407action=edit The failed build log

[Bug middle-end/64544] ../../gcc-svn/gcc/cgraphunit.c:2183:1: internal compiler error: in check_probability, at basic-block.h:581

2015-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64544 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added Severity|normal |major

[Bug target/59767] __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier

2015-07-06 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59767 --- Comment #5 from mikulas at artax dot karlin.mff.cuni.cz --- So, please pinpoint specific parahraph(s) in the standard that specify that this behavior is acceptable.

[Bug target/59767] __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier

2015-07-06 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59767 --- Comment #7 from mikulas at artax dot karlin.mff.cuni.cz --- #include stdatomic.h atomic_int a = ATOMIC_VAR_INIT(0); atomic_int b = ATOMIC_VAR_INIT(0); atomic_int p = ATOMIC_VAR_INIT(0); int thread_1(void) { atomic_store_explicit(b

[Bug target/59767] __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier

2015-07-06 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59767 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz --- The problem here is that we don't really know what does the standard specify. People often suggest the Batty's paper Mathematizing C++ Concurrency ( http://www.cl.cam.ac.uk/~pes20

[Bug sanitizer/64888] ubsan doesn't work with openmp

2015-09-23 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64888 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz --- I think you should treat these artifical variables as private, not shared. If you treated them as shared, threads would race with each other when accessing them.

[Bug bootstrap/72848] New: profiledbootstrap: internal compiler error: in streamer_write_gcov_count_stream, at data-streamer-out.c:366

2016-08-08 Thread mikulas at artax dot karlin.mff.cuni.cz
Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: sparc64-unknown-linux-gnu

[Bug bootstrap/72848] profiledbootstrap: internal compiler error: in streamer_write_gcov_count_stream, at data-streamer-out.c:366

2016-08-09 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72848 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- gcc/hwint.h always defines HOST_WIDE_INT as 64-bit value. How could it be 32-bit?

[Bug target/63264] Internal error due to invalid assembler register specification

2017-02-03 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63264 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added Version|4.9.1 |6.3.0

[Bug lto/64543] gcc fails to build due to undefined references to functions in libiberty

2017-02-03 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64543 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug target/77330] New: __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment

2016-08-22 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu

[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment

2016-08-23 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77330 --- Comment #5 from mikulas at artax dot karlin.mff.cuni.cz --- And if you add a new type __float256 with 32-byte alignment - does it mean that glibc suddenly starts being buggy, because it couldn't anticipate what types with what alignment

[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment

2016-08-23 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77330 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- Glibc doesn't support types __float128 and decimal float. Only GCC does. Glibc can't be responsible for decisions made by the GCC developers. Glibc has been aliging allocated memory

[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment

2016-08-23 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77330 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz --- BTW. gcc thinks that with -m32, allocated memory is aligned to 4 bytes and with -m64 and -mx32, allocated memory is aligned to 16 bytes. You can try to compile this program

[Bug bootstrap/80476] GCC 7 can't be compiled with bootstrap-O3

2017-04-20 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80476 mikulas at artax dot karlin.mff.cuni.cz changed: What|Removed |Added CC||mikulas

[Bug bootstrap/80476] New: GCC 7 can't be compiled with bootstrap-O3

2017-04-20 Thread mikulas at artax dot karlin.mff.cuni.cz
: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu When compiling GCC 7 with -O3 (using

[Bug target/81333] Bad alignment of global variables on Alpha

2017-07-05 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81333 --- Comment #3 from mikulas at artax dot karlin.mff.cuni.cz --- > Only C11 and above. C99 and C98 does not have any requirements like that :) Accessing any variable with the char pointer is allowed in C89 and newer standards. Thread

[Bug target/81333] New: Bad alignment of global variables on Alpha

2017-07-05 Thread mikulas at artax dot karlin.mff.cuni.cz
: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: alpha-linux-gnu Target: alpha-linux-gnu Build: alpha-linux-gnu Created attachment 41690 --> https://gcc.gnu.

[Bug target/81333] Bad alignment of global variables on Alpha

2017-07-05 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81333 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- Created attachment 41691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41691=edit another testcase Another testcase - note that even if we have two static variables in

[Bug tree-optimization/82374] New: #pragma GCC optimize is not applied to openmp-generated functions

2017-09-30 Thread mikulas at artax dot karlin.mff.cuni.cz
-optimization, openmp Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target

[Bug target/83253] -ftree-slsr causes performance regression

2017-12-15 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83253 --- Comment #15 from mikulas at artax dot karlin.mff.cuni.cz --- > Well, in theory multiplication by 3 isn't that expensive on i?86/x86_64, > because lea can do that. But multiplication by 4 should be still cheaper or as > cheap as, beca

[Bug tree-optimization/83253] New: -ftree-slsr causes performance regression

2017-12-01 Thread mikulas at artax dot karlin.mff.cuni.cz
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- The straight-line strength reduce optimization causes code size increase and performance degradation in some cases. I reduced it to this simple function

[Bug rtl-optimization/83628] New: performance regression when accessing arrays on alpha

2017-12-30 Thread mikulas at artax dot karlin.mff.cuni.cz
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- The alpha architecture has instructions s4add, s8add, s4sub and s8sub. These instructions shift the first argument left by 4 or 8 bits and add

[Bug target/83638] New: atomic_is_lock_free should return false on pa-risc

2017-12-31 Thread mikulas at artax dot karlin.mff.cuni.cz
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- The pa-risc architecture doesn't have atomic instructions, all atomic writes or modifications require taking a lock. These locks are generated properly

[Bug target/83712] New: "Unable to find a register to spill" when compiling for thumb1

2018-01-06 Thread mikulas at artax dot karlin.mff.cuni.cz
ty: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Created attachment 43050 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43050=edit a reduced testcase f

[Bug target/83712] "Unable to find a register to spill" when compiling for thumb1

2018-01-08 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83712 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- I can reproduce it with gcc-4.8.4 on Ubuntu 14.04 on native armhf (it doesn't reproduce with gcc-4.9 on the same machine) arm-linux-gnueabi-gcc-6 cross-compiler on Debian Stretch arm

[Bug middle-end/84251] New: Performance regression in gcc 8 when comparing floating point numbers

2018-02-06 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- See this simple function and compile it with -O2 on x86-64: #include #include int cmp(double a, double b

[Bug tree-optimization/84407] New: incorrect constant propagation with -frounding-math

2018-02-15 Thread mikulas at artax dot karlin.mff.cuni.cz
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- With -frounding-math, gcc should not do optimizations if the result is affected by the rounding mode. But it still does some of them

[Bug target/83638] atomic_is_lock_free should return false on pa-risc

2018-03-26 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83638 --- Comment #2 from mikulas at artax dot karlin.mff.cuni.cz --- >From performance point of view it doesn't matter if the lock is taken inside the kernel or inside the gcc library. If the userspace wants to optimize different code pa

[Bug target/89835] New: The RISC-V target uses amoswap.w for relaxed stores

2019-03-26 Thread mikulas at artax dot karlin.mff.cuni.cz
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Stores with memory_order_relaxed can be implemented as simple store instructions. For the RISC-V target, gcc generates less efficient atomic instruction

[Bug target/90346] New: gcc generates the "lfence" instruction on CPUs that don't support it

2019-05-04 Thread mikulas at artax dot karlin.mff.cuni.cz
ty: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_6

[Bug target/90346] gcc generates the "lfence" instruction on CPUs that don't support it

2019-08-01 Thread mikulas at artax dot karlin.mff.cuni.cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90346 --- Comment #5 from mikulas at artax dot karlin.mff.cuni.cz --- On non-SSE2 CPUs, it should generate "lock; addl $0,(%esp)" That provides barrier equivalent to "mfence"

[Bug go/95059] New: GCCGO cannot be compiled for ARM64 ILP32 ABI

2020-05-11 Thread mikulas at artax dot karlin.mff.cuni.cz
Assignee: ian at airs dot com Reporter: mikulas at artax dot karlin.mff.cuni.cz CC: cmang at google dot com Target Milestone: --- Compiling gcc on ARM64 with these options fails. It worked on gcc 9. #!/bin/sh set -e MAKEFLAGS=-j4 export MAKEFLAGS ../gcc

[Bug target/96649] New: parisc: very slow compilation when multiplying by a large constatnt

2020-08-17 Thread mikulas at artax dot karlin.mff.cuni.cz
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- This simple program takes 34 seconds to compile on 1GHz parisc machine. #define GR_64 0x61C886f680B583EBULL

[Bug target/104261] New: gcc uses fildq and fistpq on unaligned addesss for atomic accesses

2022-01-27 Thread mikulas at artax dot karlin.mff.cuni.cz via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- GCC uses the instructions fildq and fistpq to read and write atomic 8-byte quantities. According to Intel

[Bug target/111593] New: wrong code for 128-bit multiplication on MIPS64R6

2023-09-25 Thread mikulas at artax dot karlin.mff.cuni.cz via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- MIPS64R6 has new instructions for multiplication and division. GCC uses them, however it miscompiles 128-bit multiplication. When you compile and run

[Bug target/105955] New: ICE when using __attribute__((__sysv_abi__)) on Cygwin

2022-06-13 Thread mikulas at artax dot karlin.mff.cuni.cz via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- Compile this piece of code on 64-bit Cygwin distribution with gcc 11.3.0 with or without optimizations. The result is: during RTL pass

[Bug middle-end/114824] New: gcc doesn't respect __attribute__((zero_call_used_regs("used"))) when performing a tail call optimization

2024-04-23 Thread mikulas at artax dot karlin.mff.cuni.cz via Gcc-bugs
sion: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- If a function has the attribute __a