[Bug target/85401] segfault building code for VAX

2018-04-25 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85401 --- Comment #3 from Martin Husemann --- Indeed. Digging a bit with gdb (but in our local 6.4 version) shows: #0 0x009fa7be in allocno_copy_cost_saving (allocno=0x7f7ff679a178, hard_regno=11) at /usr/src/tools/gcc/../../external/gpl3

[Bug target/85401] segfault building code for VAX

2018-04-25 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85401 --- Comment #4 from Martin Husemann --- The costs are missing for various modes: (gdb) p (default_target_ira_int->x_ira_register_move_cost) $6 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x7f7ff7b8c8b0, 0x7f7ff7b8c8b0, 0x0 } (that is: only HImode and SImode co

[Bug c/71051] New: incorrect sparc64 code generated, inevitable jump to null function pointer

2016-05-10 Thread martin at netbsd dot org
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Target Milestone: --- Created attachment 38464 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38464&action=edit striped down example

[Bug c/71051] incorrect sparc64 code generated, inevitable jump to null function pointer

2016-05-10 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71051 --- Comment #1 from Martin Husemann --- Created attachment 38465 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38465&action=edit generated asm code

[Bug target/71695] New: m68k: long long multiplication broken

2016-06-29 Thread martin at netbsd dot org
Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Target Milestone: --- Created attachment 38787 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38787&action=edit source code demonstrating the bug Calculating the nth power of ten in below

[Bug target/71695] m68k: long long multiplication broken

2016-06-29 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71695 Martin Husemann changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/71695] m68k: long long multiplication broken

2016-07-03 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71695 Martin Husemann changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Bug c++/79466] New: strange varargs warnings on superflous paranthesises

2017-02-11 Thread martin at netbsd dot org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Target Milestone: --- Created attachment 40719 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40719&action=edit Simple example triggering the warning When compiled with g++ -std=

[Bug target/71695] m68k: long long multiplication broken

2017-02-24 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71695 Martin Husemann changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug c/18473] New: unrecognizable insn compiling various sources

2004-11-14 Thread martin at netbsd dot org
y: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at netbsd dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc64--netbsd GCC host triplet: sparc64--netbsd GCC target triplet: hppa--netbsd http://gcc.gn

[Bug c/18473] unrecognizable insn compiling various sources

2004-11-14 Thread martin at netbsd dot org
--- Additional Comments From martin at netbsd dot org 2004-11-14 10:06 --- Created an attachment (id=7543) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7543&action=view) nd6.i - preproccessed source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18473

[Bug target/18473] unrecognizable insn compiling various sources

2004-11-14 Thread martin at netbsd dot org
--- Additional Comments From martin at netbsd dot org 2004-11-14 19:56 --- Forgot to mention (and did not try myself): I've been told this same stuff compiles just fine for NetBSD/hppa on a i386 host. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18473

[Bug c/89312] New: snprintf warning is unparsable and not confusing

2019-02-12 Thread martin at netbsd dot org
: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Target Milestone: --- Gcc 7 has a new warning: partman.c:1908:12: error: ' (' directive output may be truncated writing 2 bytes into a region of size between 1 and 255 [-Werror=format-

[Bug c/89312] snprintf warning is unparsable and not confusing

2019-02-12 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89312 --- Comment #2 from Martin Husemann --- Thanks for the explanation, but I see no way I could improve the code in question reasonably and (sorry to be blunt) consider it quite stupid of gcc to warn about it by default. I do want the total string

[Bug c/89312] snprintf warning is unparsable and not confusing

2019-02-12 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89312 --- Comment #4 from Martin Husemann --- This is scary. So in the future there will be valid reasons for the truncation warning, but you are not offering any way to suppress the totally useless false positives? My problem with this warning is th

[Bug target/56875] New: vax target miscompiles short negative constants for 64bit values

2013-04-08 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56875 Bug #: 56875 Summary: vax target miscompiles short negative constants for 64bit values Classification: Unclassified Product: gcc Version: unknown Status: UN

[Bug target/53219] New: inline function erroneously clobbers %i0 register on 64 bit sparc comiple of perls regcomp.c

2012-05-03 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 Bug #: 53219 Summary: inline function erroneously clobbers %i0 register on 64 bit sparc comiple of perls regcomp.c Classification: Unclassified Product: gcc Version: unknown

[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c

2012-05-03 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 --- Comment #1 from Martin Husemann 2012-05-03 21:34:13 UTC --- It occured to me that gcc would (rightfully) behave this way, if the (previous) value in %i0 should be considered dead at this point - which might be the case, hard to tell due to lo

[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c

2012-05-04 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 --- Comment #2 from Martin Husemann 2012-05-04 07:56:48 UTC --- I double checked: the sigsetjmp/siglonjmp function prototypes are properly marked as returns_twice and noreturn, so I claim this to be abug in gcc ;-)

[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c

2012-05-04 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 --- Comment #4 from Martin Husemann 2012-05-04 13:27:37 UTC --- Created attachment 27307 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27307 intermediate file when compiling regcomp.c

[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c

2012-05-04 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 --- Comment #5 from Martin Husemann 2012-05-04 13:29:45 UTC --- Using built-in specs. COLLECT_GCC=cc Target: sparc64--netbsd Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=sparc64--netbsd --enable-long-long --

[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c

2012-05-06 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219 --- Comment #7 from Martin Husemann 2012-05-06 10:59:19 UTC --- Created attachment 27324 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27324 gcc -S output for the miscompiled function The original report showed the disassembler output from

[Bug rtl-optimization/48830] [4.6 regression] unrecognized insn: storing invalid upper FP reg in SImode

2012-07-19 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48830 Martin Husemann changed: What|Removed |Added CC||martin at netbsd dot org --- Comment

[Bug target/54226] New: Executables compiled with -pie do not work on NetBSD/sparc or sparc

2012-08-11 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54226 Bug #: 54226 Summary: Executables compiled with -pie do not work on NetBSD/sparc or sparc Classification: Unclassified Product: gcc Version: 4.5.3 Status: UNCONFIRMED

[Bug target/54226] Executables compiled with -pie do not work on NetBSD/sparc or sparc

2012-08-11 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54226 Martin Husemann changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|

[Bug target/58278] New: visibility bug from #26905 still happens with the sparc64 backend

2013-08-30 Thread martin at netbsd dot org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Created attachment 30729 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30729&action=edit test for bug 26905 Compiling the test from #26905 wit

[Bug target/58278] visibility bug from #26905 still happens with the sparc64 backend

2013-08-30 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58278 --- Comment #2 from Martin Husemann --- Compare with this on amd64: > c++ -o plain.s -S conftest.cc > c++ -o shared.s -fPIC -shared -S conftest.cc > diff -u plain.s shared.s --- plain.s 2013-08-30 21:46:18.0 +0200 +++ shared.s

[Bug target/58278] visibility bug from #26905 still happens with the sparc64 backend

2013-08-31 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58278 --- Comment #4 from Martin Husemann --- (In reply to Eric Botcazou from comment #3) > So what? What happens if conftest.cc doesn't fiddle with visibility at all? Sorry, I am not quite sure I understand what you are up to. Same thing happens, s

[Bug target/58278] visibility bug from #26905 still happens with the sparc64 backend

2013-08-31 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58278 --- Comment #6 from Martin Husemann --- Ooops, my lack of x86 ABI knowledge strikes again. Indeed, visibility is properly expressed in the prologue, all is fine.

[Bug preprocessor/58370] New: pre compiled headers failure on NetBSD/sparc64

2013-09-09 Thread martin at netbsd dot org
: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Trying to configure gcc fails with an endless loop in one of the configure tests of libstc++. There are actually two errors in this: (1) a fatal error when reading a PCH file "had to rel

[Bug preprocessor/58370] pre compiled headers failure on NetBSD/sparc64

2013-09-09 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58370 --- Comment #1 from Martin Husemann --- The fatal error seems to happen because NetBSD uses the default HAVE_MMAP_FILE implementation of gt_pch_get_address and gt_pch_use_address instead of specific host hooks. Looking at the existing host hook i

[Bug preprocessor/58370] pre compiled headers failure on NetBSD/sparc64

2013-09-09 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58370 --- Comment #3 from Martin Husemann --- (In reply to Richard Biener from comment #2) > Probably because nobody submitted and tested a NetBSD implementation. You mean an evil hack to try to avoid the relocation (like all existing host hooks seem

[Bug preprocessor/58370] pre compiled headers failure on NetBSD/sparc64

2013-09-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58370 --- Comment #4 from Martin Husemann --- To avoid confusion, I'm splitting this into two separate reports - will dig further into the crash myself, since it is probably not easy to reproduce on other host platforms.

[Bug preprocessor/58379] New: default mmap based implementation (mmap_gt_pch_get_address/mmap_gt_pch_use_address) is useless

2013-09-10 Thread martin at netbsd dot org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org I may be misunderstanding the interface - but it looks to me like it lets the kernel chose an arbitrary

[Bug preprocessor/58381] New: crash in diagnostic_report_current_module when a fatal_error happens during PCH processing on NetBSD/spa64rc

2013-09-10 Thread martin at netbsd dot org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org In toplev_main variable line_table is initialized and becomes 0x417dc000, however, when

[Bug preprocessor/58379] default mmap based implementation (mmap_gt_pch_get_address/mmap_gt_pch_use_address) is useless

2013-09-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58379 --- Comment #2 from Martin Husemann --- (In reply to Richard Biener from comment #1) > If you have a system that randomizes then you have to re-define the hook. Besides ASLR there are various things out of control of the compiler that do result i

[Bug preprocessor/58381] crash in diagnostic_report_current_module when a fatal_error happens during PCH processing on NetBSD/spa64rc

2013-09-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58381 --- Comment #2 from Martin Husemann --- Created attachment 30790 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30790&action=edit Restore line_table and input_location before calling fatal_error when failing a pch load With this patch, the f

[Bug preprocessor/58381] crash in diagnostic_report_current_module when a fatal_error happens during PCH processing on NetBSD/spa64rc

2013-09-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58381 --- Comment #1 from Martin Husemann --- The global pointer "line_table" is changed to the contents of the precompiled header file in gt_pch_restore in this loop: /* Read in all the global pointers, in 6 easy loops. */ for (rt = gt_ggc_rtab;

[Bug preprocessor/58397] Please add host_hooks for NetBSD to make precompiled headers work

2013-09-11 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58397 --- Comment #1 from Martin Husemann --- Created attachment 30803 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30803&action=edit host hooks for NetBSD

[Bug preprocessor/58397] New: Please add host_hooks for NetBSD to make precompiled headers work

2013-09-11 Thread martin at netbsd dot org
Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Created attachment 30802 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30802&action=edit build glue changes As discussed in #58370 and

[Bug target/58426] New: vax fails to compile gcov.c in stage1

2013-09-15 Thread martin at netbsd dot org
Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Compilation stops with: ../../../gcc-4.8.1/libgcc/libgcov.c:827:1: internal compiler error: output_operand: invalid expression as operand (will dig into it and provide more info)

[Bug target/58426] vax fails to compile gcov.c in stage1

2013-09-15 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58426 --- Comment #1 from Martin Husemann --- The error happens here: #1 0x002d15ca in output_addr_const (file=0x7f5b79c8, x=0x7f10a250, 2136701384, 2131796560) at ../../gcc-4.8.1/gcc/final.c:3877 #2 0x002d1466 in output_addr_const (file=0x7f5b7

[Bug target/58426] vax fails to compile gcov.c in stage1

2013-09-15 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58426 --- Comment #2 from Martin Husemann --- The more interesting XEXP(x, 0) of that rtx is the one triggering the failure: $15 = {code = REG, mode = SImode, jump = 0, call = 0, unchanging = 0, volatil = 0, in_struct = 0, used = 0, frame_related =

[Bug target/58426] vax fails to compile gcov.c in stage1

2013-09-16 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58426 Martin Husemann changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/56875] vax target miscompiles short negative constants for 64bit values

2013-09-17 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56875 --- Comment #3 from Martin Husemann --- Of course I do not mind fixing gas, but the whole point of the "D" formatting code is to work around this assembler bug, and while this might be mostly irrelevant nowadays, isn't gcc supposed to work with ot

[Bug target/58442] New: bootstrapping vax crashes on NetBSD

2013-09-17 Thread martin at netbsd dot org
Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org During stage1 build of libstc++ this call dies with a segfault: Reading symbols from /usr/pkgobj/lang/gcc48/work/build/gcc/cc1plus...done. (gdb) run -quiet -nostdinc++ -v -I /usr/pkgobj/lang/gcc48/work/gcc

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-09-17 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #1 from Martin Husemann --- (gdb) x/i 0x0092cdb0 => 0x92cdb0 : movb 0x14(r0),r0 (gdb) info reg r0 0x4 4 r1 0x8 8 r2 0x0 0 r3 0xf0c308 15778568 r4 0x0

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-09-18 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #3 from Martin Husemann --- 0x92c9fc :movab 0xff60(sp),sp 0x92ca01 : movab *0xef3cfc <_GLOBAL_OFFSET_TABLE_+1548>,0xffd8(fp) 0x92ca09 : movl 0x4(ap),r0 0x92ca0d : movl 0x4(r0),0xf

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-09-19 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #4 from Martin Husemann --- I stared at the assembly a bit more (but my vax fu is weak): we are in the last line of 216 #line 781 "../../gcc-4.8.1/gcc/config/vax/vax.md" 217 ((INTVAL (operands[1]) == 8 || INTVAL (operands[1])

[Bug target/56875] vax target miscompiles short negative constants for 64bit values

2013-09-21 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56875 Martin Husemann changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-09-23 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #5 from Martin Husemann --- Just as a sanity check: I verified that the natively generated insn-recog.c is the same as one cross compiled on an amd64 host.

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-09-23 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #6 from Martin Husemann --- To verify, I instrumented get_mem_attrs: static inline struct mem_attrs * get_mem_attrs (const_rtx x) { struct mem_attrs *attrs; attrs = MEM_ATTRS (x); attrs = MEM_ATTRS (x); if (!attrs) {

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-10-21 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #7 from Martin Husemann --- I can reproduce the same crash on a different input file with a amd64 -> vax cross compiler (so we can drop the theory that a miscompiled recog_1 function causes this).

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-10-21 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #8 from Martin Husemann --- And apparently same cause: ooops, bogus rtx mem attrs: 0x4 (subreg:SI (reg/v:DI 70 [ xtime ]) 4)

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-10-23 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #9 from Martin Husemann --- Please correct me if I am wrong, but in the bitfield cotexts in vax.md there are multiple places with similar constructs like: 219&& (REG_P (operands[0]) 220|| ! mode_dependent_address_p

[Bug target/58442] bootstrapping vax crashes on NetBSD

2013-10-28 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58442 --- Comment #10 from Martin Husemann --- Matt Thomas suggested to go with the easy solution for now: protect the calls with MEM_P, i.e.: change the ! mode_dependent_address_p() in the bitfield patterns to (MEM_P(..) && ! mode_dependent_address_p

[Bug target/58901] New: vax bootstrap fails on subreg reload

2013-10-28 Thread martin at netbsd dot org
Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Trying a native bootstrap on VAX fails when compiling libdecnumber with a failed assertion here: #0 0x0085637c in fancy_abort (file=0x8dae4d "../../gcc-4.8.2/gcc/emit-rtl.c", line=2019,

[Bug target/58901] vax bootstrap fails on subreg reload

2013-10-30 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #1 from Martin Husemann --- The real question is: why does memory_address_addr_space_p() return false for this rtx. Stepping into it results in: 0x007618be in vax_legitimate_address_p (mode=HImode, x=0x7ea0fd2c, strict=20, 5, 212

[Bug target/58901] vax bootstrap fails on subreg reload

2013-10-30 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #2 from Martin Husemann --- indexable_address_p() returns false for (symbol_ref:SI ("DECPOWERS") [flags 0x40] ) because flag_pic is true and symbolic_operand (xfoo0, SImode)) returns true: /* Return true if xfoo0 and xfoo1 constitut

[Bug target/58901] vax bootstrap fails on subreg reload

2013-10-31 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #3 from Martin Husemann --- Matt asked for the instruction involved - I think it is this: (insn 245 244 246 51 (set (mem:HI (reg/v/f:SI 1 %r1 [orig:67 sup ] [67]) [2 *sup_104+0 S2 A16]) (plus:HI (subreg:HI (mem/u/c:SI (plus:SI

[Bug target/58901] vax bootstrap fails on subreg reload

2013-10-31 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #4 from Martin Husemann --- I got a quick lesson in addressing modes for vax ;-) It seems the mode = HImode passed to the upper functions in the call stack is the problem - with HImode we can only use index operands with a factor of 2,

[Bug target/58901] vax bootstrap fails on subreg reload

2013-11-22 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #5 from Martin Husemann --- Created attachment 31275 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31275&action=edit .i file from the failing compile

[Bug target/58901] vax bootstrap fails on subreg reload

2013-11-22 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58901 --- Comment #6 from Martin Husemann --- This is beyound my gcc capabilities: the rtx in question is wrong for vax, but the bug seems to be at a higher level: an indexed memory access can not be wrapped into a subreg with offset in the same stateme

[Bug preprocessor/58397] Please add host_hooks for NetBSD to make precompiled headers work

2015-08-06 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58397 Martin Husemann changed: What|Removed |Added Attachment #30803|0 |1 is obsolete|

[Bug preprocessor/58397] Please add host_hooks for NetBSD to make precompiled headers work

2015-08-06 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58397 Martin Husemann changed: What|Removed |Added Version|4.8.1 |5.2.0 --- Comment #3 from Martin Husem

[Bug preprocessor/58381] crash in diagnostic_report_current_module when a fatal_error happens during PCH processing on NetBSD/spa64rc

2015-08-06 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58381 Martin Husemann changed: What|Removed |Added Version|4.8.1 |5.2.0 --- Comment #3 from Martin Husem

[Bug c/59749] unused warning not emited for unused static struct unles -save-temps is used

2014-03-19 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59749 --- Comment #4 from Martin Husemann --- Yes - I'm still trying to reduce it to a reasonable test case, but in general it works - so I am confused big time. Also Julio (the ATF author) claims the same test works on FreeBSD with a very similar compi

[Bug c++/60807] internal compiler error (basic_string.tcc)

2014-04-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60807 --- Comment #4 from Martin Husemann --- Neither can I on NetBSD/amd64 - will check with Thomas for differences on his system

[Bug c++/60807] internal compiler error (basic_string.tcc)

2014-04-11 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60807 --- Comment #5 from Martin Husemann --- Thomas and I compared environments and found the difference: it is gcc compiled by clang that misbehaves. I could reproduce and verify it - but past bootstrapping it is something that will never happen to na

[Bug target/60941] New: gcc 4.8.3/sparc64 miscompiles firefox javascript interpreter

2014-04-23 Thread martin at netbsd dot org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org System: NetBSD/sparc64; NetBSD in-tree version of gcc: > gcc -v Using built-in specs. COLLECT_GCC=gcc Target: sparc64--netbsd Configured with: /usr/src6/tools/

[Bug target/60941] gcc 4.8.3/sparc64 miscompiles firefox javascript interpreter

2014-04-23 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941 --- Comment #1 from Martin Husemann --- Here is a small test program: ---8<--- #include #include int main(int argc, char **argv) { unsigned long v[2], *p; int a, b; for (int i = 0; i < 2 && i < argc; i++) {

[Bug driver/61651] New: Cross compiler will use host as eroneously

2014-06-29 Thread martin at netbsd dot org
: driver Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org With a gcc configured like this: > mipsel--netbsd-gcc -v Using built-in specs. COLLECT_GCC=mipsel--netbsd-gcc COLLECT_LTO_WRAPPER=/usr/pkg/libexec/gcc/mipsel--netbsd/4.9.0/lto-wrapper Target: mip

[Bug driver/61651] Cross compiler will use host as eroneously

2014-07-02 Thread martin at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61651 --- Comment #1 from Martin Husemann --- Passing AS_FOR_TARGET (and friends) in the configure environment does not help, but explicitly adding --with-as=.. does fix the issue. So this looks like a pure configure bug.

[Bug c/59749] New: unused warning not emited for unused static struct unles -save-temps is used

2014-01-10 Thread martin at netbsd dot org
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Created attachment 31793 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31793&action=edit original source file exhibiting the problem I

[Bug c/59749] unused warning not emited for unused static struct unles -save-temps is used

2014-01-10 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59749 --- Comment #1 from Martin Husemann --- Created attachment 31794 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31794&action=edit unused_test.i file from -save-temps

[Bug c/59750] New: stack protector does not catch 1 byte overwrite of char[10] array

2014-01-10 Thread martin at netbsd dot org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org This test program correctly dies when compiled with gcc 4.5.4: #include int main(int argc, char **argv) { char b[10]; strcpy(b, &q

[Bug c/59749] unused warning not emited for unused static struct unles -save-temps is used

2014-01-14 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59749 --- Comment #2 from Martin Husemann --- Unfortunately I can not reproduce the issue with the .i file generated with -save-temps (but still with the original .c file).

[Bug c/59674] On m68k and vax variables stack variables with > MAX_STACK_ALIGNMENT make ssp fail

2014-01-23 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59674 Martin Husemann changed: What|Removed |Added CC||martin at netbsd dot org --- Comment

[Bug c/59958] New: alpha does not deal with non-aligned returns from malloc() when doing byte wise access

2014-01-27 Thread martin at netbsd dot org
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at netbsd dot org Created attachment 31962 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31962&action=edit generated assembler code (cc -O2 -S test

[Bug c/59958] alpha does not deal with non-aligned returns from malloc() when doing byte wise access

2014-01-28 Thread martin at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59958 --- Comment #2 from Martin Husemann --- Is the alignment expected from malloc() configurable in gcc and/or different from the standard stack alignment? A small test program along the lines of if ((uintptr_t)malloc(1) & mask) printf("yes\n") el

[Bug target/110592] [SPARC] GCC should default to TSO memory model when compiling for sparc32

2023-07-09 Thread martin at netbsd dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110592 Martin Husemann changed: What|Removed |Added CC||martin at netbsd dot org --- Comment