[Bug rtl-optimization/89575] LRA for msp430 - Max. number of generated reload insns - frame pointer subreg simplification

2019-03-04 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89575 --- Comment #2 from Jozef Lawrynowicz --- Created attachment 45883 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45883=edit reload dump

[Bug rtl-optimization/89575] LRA for msp430 - Max. number of generated reload insns - frame pointer subreg simplification

2019-03-04 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89575 --- Comment #1 from Jozef Lawrynowicz --- Created attachment 45882 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45882=edit ira dump

[Bug rtl-optimization/89575] New: LRA for msp430 - Max. number of generated reload insns - frame pointer subreg simplification

2019-03-04 Thread jozef.l at mittosystems dot com
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Created attachment 45881 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45881=e

[Bug testsuite/89258] [9 Regression] verify_gimple failed in gimple test pr80887 for 16-bit target

2019-02-08 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89258 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug testsuite/89258] New: [9 Regression] verify_gimple failed in gimple test pr80887 for 16-bit target

2019-02-08 Thread jozef.l at mittosystems dot com
: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Created attachment 45649 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45649=edit pr80887.c gcc.dg/tree-

[Bug target/78554] Internal Compiler Error in msp430 target with -mlarge, -O{s123}

2019-02-05 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78554 Jozef Lawrynowicz changed: What|Removed |Added CC||jozef.l at mittosystems dot com

[Bug target/78838] msp430 option -mcode-region=either, -ffunction-sections, and interrupt function attributes cause incorrect section to be created

2019-02-05 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78838 Jozef Lawrynowicz changed: What|Removed |Added CC||jozef.l at mittosystems dot com

[Bug target/78849] ICE on initialization of global struct containing __int20 array at varasm.c:4968

2018-11-28 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78849 Jozef Lawrynowicz changed: What|Removed |Added CC||jozef.l at mittosystems dot com

[Bug c/88237] __extension__ in function declaration argument list causes error

2018-11-28 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88237 --- Comment #1 from Jozef Lawrynowicz --- For C++ the errors are: > g++ -S tester.c > > tester.c:11:10: error: variable or field 'foo' declared void >11 | void foo (__extension__ int a); > | ^ > tester.c:11:25: error:

[Bug c/88237] New: __extension__ in function declaration argument list causes error

2018-11-28 Thread jozef.l at mittosystems dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- The following code errors on trunk: void foo (__extension__ int a); > gcc -S tester.c > > tester.c:11:11: error: expected de

[Bug target/87883] [ARM] ICE: Segmentation fault in arm_regno_class

2018-11-23 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87883 --- Comment #2 from Jozef Lawrynowicz --- Created attachment 45074 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45074=edit reg class checking patch Hi Mihail, Thanks for the info. I fixed a bug for msp430-elf caused by REGNO_REG_CLASS

[Bug libstdc++/88111] libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88111 --- Comment #9 from Jozef Lawrynowicz --- Created attachment 45069 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45069=edit mlarge memory_resource tests libstdc++.log

[Bug libstdc++/88111] libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88111 --- Comment #8 from Jozef Lawrynowicz --- Created attachment 45068 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45068=edit testsuite_abi.cc __int20 hack

[Bug libstdc++/88111] libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88111 --- Comment #7 from Jozef Lawrynowicz --- (In reply to Jonathan Wakely from comment #6) > This should be fixed now. > > If you're able to run the tests for these components that would be very much > appreciated. To run just the tests, run the

[Bug libstdc++/88111] libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-21 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88111 --- Comment #3 from Jozef Lawrynowicz --- (In reply to Jonathan Wakely from comment #2) > Does it even make sense to have pools for objects of 1024 bytes on a 16-bit > target? Is anybody really going to dynamically-allocate lots of 1kb objects?

[Bug libstdc++/88113] New: Woverflow warning in memory_resource.cc (struct bitset), for 16-bit size_t

2018-11-20 Thread jozef.l at mittosystems dot com
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- In the definition of struct bitset in libstdc++-v3/src/c++17/memory_resource.cc, "size_type" (usin

[Bug libstdc++/88111] libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-20 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88111 --- Comment #1 from Jozef Lawrynowicz --- Created attachment 45043 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45043=edit patch untested fix

[Bug libstdc++/88111] New: libstdc++-v3 FTB for 16-bit int: memory_resource.cc pool_sizes expects >16-bit int/size_t

2018-11-20 Thread jozef.l at mittosystems dot com
MED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Building libstdc++-v3 for msp430-elf (16-bit int/size_t) results in the following errors/warni

[Bug target/87927] ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge

2018-11-20 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87927 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-11-20 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/87854] [9 Regression] gcc.c-torture/compile/pr46534.c ICE for 16-bit size_t

2018-11-15 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87854 --- Comment #8 from Jozef Lawrynowicz --- (In reply to Jakub Jelinek from comment #7) > For some yes. I assume not e.g. for nvptx as it has 64-bit size_t but can't > compile it for other reasons. Ok, I'll make sure to check that. The new

[Bug middle-end/87854] [9 Regression] gcc.c-torture/compile/pr46534.c ICE for 16-bit size_t

2018-11-15 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87854 --- Comment #6 from Jozef Lawrynowicz --- (In reply to Jakub Jelinek from comment #5) > Yeah, that is the goal. And you should either add msp430-*-* to dg-skip-if, > or do we have some effective targets for all targets with 16-bit size_t (or >

[Bug middle-end/87854] [9 Regression] gcc.c-torture/compile/pr46534.c ICE for 16-bit size_t

2018-11-15 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87854 --- Comment #4 from Jozef Lawrynowicz --- Thanks, the patch fixes the ICE on msp430-elf and the test now outputs: > gcc.c-torture/compile/pr46534.c:17:3: error: size of string literal is too > large

[Bug target/87927] ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge

2018-11-14 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87927 --- Comment #4 from Jozef Lawrynowicz --- Submitted patch: https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01192.html

[Bug c++/87996] [8/9 Regression] "size of array is negative" error when SIZE_MAX/2 < sizeof(array) <= SIZE_MAX

2018-11-12 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87996 Jozef Lawrynowicz changed: What|Removed |Added Attachment #44992|0 |1 is obsolete|

[Bug c++/87996] New: [8/9 Regression] "size of array is negative" error when SIZE_MAX/2 < sizeof(array) <= SIZE_MAX

2018-11-12 Thread jozef.l at mittosystems dot com
tus: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Created attachment 44992 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=4

[Bug c/87927] ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge

2018-11-07 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87927 Jozef Lawrynowicz changed: What|Removed |Added Attachment #44968|0 |1 is obsolete|

[Bug c/87927] ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge

2018-11-07 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87927 --- Comment #1 from Jozef Lawrynowicz --- Created attachment 44968 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44968=edit proposed patch In default_print_patchable_function_entry, integer_asm_op is passed POINTER_SIZE_UNITS. For

[Bug c/87927] New: ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge

2018-11-07 Thread jozef.l at mittosystems dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Use of the patchable_function_entry attribute with msp430-elf in the large memory model causes a segfault

[Bug target/87883] New: [ARM] ICE: Segmentation fault in arm_regno_class

2018-11-05 Thread jozef.l at mittosystems dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Querying REGNO_REG_CLASS, from reginfo.c init_reg_sets, with an argument > 15 causes a segfault for arm-unknown-eabi. For example, after applying the follow

[Bug middle-end/87854] New: [9 Regression] gcc.c-torture/compile/pr46534.c ICE for 16-bit size_t

2018-11-01 Thread jozef.l at mittosystems dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- The constant string in this test is 2 * (10^7) long (a 25-bit number), on these 16-bit targets, size_t is an unsigned 16

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-23 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #9 from Jozef Lawrynowicz --- Patch submitted: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01459.html

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-23 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #7 from Jozef Lawrynowicz --- (In reply to Richard Biener from comment #6) > > I think it's better to, at this place, simply allow MODE_INT or > MODE_PARTIAL_INT > for unions. Allowing MODE_INT is what we'd fall back to anyways and

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #5 from Jozef Lawrynowicz --- (In reply to Richard Biener from comment #4) Thanks for the pointers. > What happens if you make the attribute work for a MODE_INT union with a > MODE_PARTIAL_INT first field that has MODE_SIZE of the

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #3 from Jozef Lawrynowicz --- Perhaps it is sufficient to check targetm.pass_by_reference, i.e. if the struct/union with the given mode would be passed by reference, then it is ok to give the struct/union a mode outside the MODE_INT

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #2 from Jozef Lawrynowicz --- Created attachment 44880 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44880=edit transparent_union.patch

[Bug c/87691] transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-22 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87691 --- Comment #1 from Jozef Lawrynowicz --- The issue is that the union is considered to have size of 32 bits (the in-memory size of __int20), so unless mode_for_size as called by compute_record_mode (both in stor-layout.c) is explicitly told to

[Bug c/87691] New: transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-22 Thread jozef.l at mittosystems dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- msp430-elf uses the partial int type __int20 for pointers in the large memory model. __int20 has PSImode, with bitsize of 20. A few

[Bug middle-end/87173] -Walloc-size-larger-than= silently fails for operands/size values larger than __SIZE_MAX__

2018-08-31 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87173 --- Comment #2 from Jozef Lawrynowicz --- Right, thanks. I'll just submit a patch for gcc.dg/Walloc-size-larger-than-{4,5,6,7}.c to require "size32plus" then.

[Bug middle-end/87173] New: -Walloc-size-larger-than= silently fails for operands/size values larger than __SIZE_MAX__

2018-08-31 Thread jozef.l at mittosystems dot com
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Created attachment 44640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44640=edit testcas

[Bug target/86662] [7/8/9 Regression] msp430-elf segfault with -flto and -mlarge

2018-08-26 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86662 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/86705] [7/8/9 Regression] pr45678-2.c ICE with msp430-elf -mlarge

2018-08-02 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86705 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/86705] [7/8/9 Regression] pr45678-2.c ICE with msp430-elf -mlarge

2018-07-27 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86705 --- Comment #1 from Jozef Lawrynowicz --- Untested patch diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index d6e3c38..573324a 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1258,9 +1258,12 @@ set_parm_rtl (tree parm, rtx x)

[Bug middle-end/86705] New: [7/8/9 Regression] pr45678-2.c ICE with msp430-elf -mlarge

2018-07-27 Thread jozef.l at mittosystems dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- ./build/gcc/xgcc -B./build/gcc/ -mlarge -S gcc/testsuite/gcc.dg/torture/pr45678-2.c during RTL pass: expand gcc/testsuite/gcc.dg

[Bug target/86662] [7/8/9 Regression] msp430-elf segfault with -flto and -mlarge

2018-07-27 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86662 --- Comment #2 from Jozef Lawrynowicz --- Started with r242888, observed in GCC 7, 8 and 9.

[Bug target/86662] msp430-elf segfault with -flto and -mlarge

2018-07-24 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86662 --- Comment #1 from Jozef Lawrynowicz --- Untested patch diff --git a/gcc/tree.c b/gcc/tree.c index bace9c8..54384ad 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -9802,8 +9802,7 @@ build_common_tree_nodes (bool signed_char)

[Bug target/86662] New: msp430-elf segfault with -flto and -mlarge

2018-07-24 Thread jozef.l at mittosystems dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Segfault after endless recursion in gimple_get_alias_set, caused by canonical type for __int20 being set to the unsigned variant, rather than signed variant as expected

[Bug rtl-optimization/85941] Zero extend from QI->SI lost if QI is referred to via subreg:HI

2018-05-27 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85941 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/85941] Zero extend from QI->SI lost if QI is referred to via subreg:HI

2018-05-27 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85941 --- Comment #2 from Jozef Lawrynowicz --- Created attachment 44192 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44192=edit correct assembly output

[Bug rtl-optimization/85941] Zero extend from QI->SI lost if QI is referred to via subreg:HI

2018-05-27 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85941 --- Comment #1 from Jozef Lawrynowicz --- Created attachment 44191 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44191=edit incorrect assembly output

[Bug rtl-optimization/85941] New: Zero extend from QI->SI lost if QI is referred to via subreg:HI

2018-05-27 Thread jozef.l at mittosystems dot com
mal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jozef.l at mittosystems dot com Target Milestone: --- Created attachment 44190 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44190=edit testcase In the combi

[Bug target/78818] msp430 persistent attribute is not applied correctly in some cases

2018-03-19 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78818 Jozef Lawrynowicz changed: What|Removed |Added CC||jozef.l at mittosystems dot com

[Bug target/82624] [msp430] Target must allow for NULL pointer dereferences

2018-03-19 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82624 Jozef Lawrynowicz changed: What|Removed |Added CC||jozef.l at mittosystems dot com