ChangeLog 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650
  1. 2022-04-07 Mark Harmstone <mark@harmstone.com>
  2. * config/tc-i386.c (pe_directive_secidx): New function.
  3. (md_pseudo_table): Add support for secidx.
  4. (x86_cons_fix_new): Likewise.
  5. (tc_gen_reloc): Likewise.
  6. * expr.c (op_rank): Add O_secidx.
  7. * expr.h (operatorT): Likewise.
  8. * symbols.c (resolve_symbol_value): Add support for O_secidx.
  9. * testsuite/gas/i386/secidx.s: New test source file.
  10. * testsuite/gas/i386/secidx.d: New test driver file.
  11. * testsuite/gas/i386/i386.exp: Run new test.
  12. 2022-04-07 Andreas Krebbel <krebbel@linux.ibm.com>
  13. * config/tc-s390.c (s390_parse_cpu): Add z16 as alternate CPU
  14. name.
  15. * doc/as.texi: Add z16 and arch14 to CPU string list.
  16. * doc/c-s390.texi: Add z16 to CPU string list.
  17. 2022-04-06 Nick Clifton <nickc@redhat.com>
  18. PR 28981
  19. * testsuite/gas/elf/dwarf-5-irp.d: Update expected output.
  20. 2022-03-21 Nick Clifton <nickc@redhat.com>
  21. PR 28791
  22. * config/tc-z80.c (emit_data_val): Do not warn about overlarge
  23. constants generated by bit manipulation operators.
  24. * testsuite/gas/z80/pr28791.s: New test source file.
  25. * testsuite/gas/z80/pr28791.d: New test driver file.
  26. 2022-01-28 Nick Clifton <nickc@redhat.com>
  27. * po/fr.po: Updated French translation.
  28. 2022-01-24 Nick Clifton <nickc@redhat.com>
  29. * po/uk.po: Updated Ukranian translation.
  30. 2022-01-22 Nick Clifton <nickc@redhat.com>
  31. * configure: Regenerate.
  32. * po/gas.pot: Regenerate.
  33. 2022-01-22 Nick Clifton <nickc@redhat.com>
  34. * 2.38 release branch created.
  35. 2022-01-17 Nick Clifton <nickc@redhat.com>
  36. * Makefile.in: Regenerate.
  37. * po/gas.pot: Regenerate.
  38. 2022-01-17 Sergey Belyashov <sergey.belyashov@gmail.com>
  39. PR 28762
  40. * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'.
  41. 2021-12-16 Nick Clifton <nickc@redhat.com>
  42. PR 28686
  43. * config/tc-avr.h (tc_fix_adjustable): Define.
  44. * config/tc-avr.c (avr_fix_adjustable): New function.
  45. * testsuite/gas/all/gas.exp: Skip tests that need adjustable fixups.
  46. * testsuite/gas/elf/elf.exp: Likewise.
  47. * testsuite/gas/avr/diffreloc_withrelax.d: Adjust expected output.
  48. * testsuite/gas/avr/pc-relative-reloc.d: Adjust expected output.
  49. 2021-11-26 Tom de Vries <tdevries@suse.de>
  50. PR 28629
  51. * dwarf2dbg.c (out_dir_and_file_list): When copying file 1 to file 0,
  52. also copy dir and md5 fields.
  53. * testsuite/gas/i386/dwarf5-line-4.d: Adjust expected output.
  54. 2021-11-18 Nick Clifton <nickc@redhat.com>
  55. * as.c (parse_args): Add support for --multibyte-handling.
  56. * as.h (multibyte_handling): Declare.
  57. * app.c (scan_for_multibyte_characters): New function.
  58. (do_scrub_chars): Call the new function if multibyte warning is
  59. enabled.
  60. * input-scrub,c (input_scrub_next_buffer): Call the multibyte
  61. scanning function if multibyte warnings are enabled.
  62. * symbols.c (struct symbol_flags): Add multibyte_warned bit.
  63. (symbol_init): Call the multibyte scanning function if multibyte
  64. symbol warnings are enabled.
  65. (S_SET_SEGMENT): Likewise.
  66. * NEWS: Mention the new feature.
  67. * doc/as.texi: Document the new feature.
  68. * testsuite/gas/all/multibyte.s: New test source file.
  69. * testsuite/gas/all/multibyte1.d: New test driver file.
  70. * testsuite/gas/all/multibyte1.l: New test expected output.
  71. * testsuite/gas/all/multibyte2.d: New test driver file.
  72. * testsuite/gas/all/multibyte2.l: New test expected output.
  73. * testsuite/gas/all/gas.exp: Run the new tests.
  74. 2021-11-15 Eric Botcazou <ebotcazou@adacore.com>
  75. * doc/as.texi (File): Update description of .file 0 directive.
  76. * dwarf2dbg.c (get_directory_table_entry): Remove obsolete comment
  77. and pass file0_dirname in recursive call.
  78. (allocate_filename_to_slot): Deal with a full path in the file name
  79. if the index number is 0.
  80. * testsuite/gas/elf/dwarf-5-file0.d: Fix pasto.
  81. * testsuite/gas/elf/dwarf-5-file0-2.d: Likewise.
  82. * testsuite/gas/elf/dwarf-5-file0-3.d: New file.
  83. * testsuite/gas/elf/dwarf-5-file0-3.s: Likewise.
  84. * testsuite/gas/elf/elf.exp: Run dwarf-5-file0-3.
  85. 2021-10-28 Markus Klein <markus.klein@sma.de>
  86. PR 28436
  87. * config/tc-arm.c (do_vfp_nsyn_push_pop_check): New function.
  88. (do_vfp_nsyn_pop): Use the new function.
  89. (do_vfp_nsyn_push): Use the new function.
  90. * testsuite/gas/arm/v8_1m-mve.s: Add new instructions.
  91. * testsuite/gas/arm/v8_1m-mve.d: Updated expected disassembly.
  92. 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
  93. * configure: Regenerate.
  94. 2021-09-25 Peter Bergner <bergner@linux.ibm.com>
  95. * testsuite/gas/ppc/power5.s: New test.
  96. * testsuite/gas/ppc/power5.d: Likewise.
  97. * testsuite/gas/ppc/ppc.exp: Run it.
  98. * testsuite/gas/ppc/power7.s: Remove tests for mfppr, mfppr32, mtppr
  99. and mtppr32.
  100. * testsuite/gas/ppc/power7.d: Likewise.
  101. 2021-09-13 Jan Beulich <jbeulich@suse.com>
  102. * config/tc-ia64.c (cross_section): Use obj_elf_section_name to
  103. parse the section name.
  104. * config/tc-mips.c (s_change_section): Likewise.
  105. 2021-09-02 Nick Clifton <nickc@redhat.com>
  106. PR 28292
  107. * config/tc-v850.c (handle_lo16): Also accept
  108. BFD_RELOC_V850_LO16_SPLIT_OFFSET.
  109. * testsuite/gas/v850/split-lo16.s: Add extra line.
  110. * testsuite/gas/v850/split-lo16.d: Update expected disassembly.
  111. 2021-08-11 Darius Galis <darius.galis@cyberthorstudios.com>
  112. * config/rx-parse.y (DECNT): Fixed typo.
  113. * testsuite/gas/rx/dpopm.sm (DECNT): Fixed typo.
  114. * testsuite/gas/rx/dpushm.sm (DECNT): Fixed typo.
  115. * testsuite/gas/rx/macros.inc (DECNT): Fixed typo.
  116. 2021-08-11 Nick Clifton <nickc@redhat.com>
  117. PR 28215
  118. * config/tc-csky.c (md_apply_fix): Correctly handle a fixup that
  119. involves an overlarge constant.
  120. 2021-08-11 Matt Jacobson <mhjacobson@me.com>
  121. * config/tc-avr.c (enum options): Add option flag.
  122. (struct option): Add option -mno-dollar-line-separator.
  123. (md_parse_option): Adjust treatment of $ when option is present.
  124. (usage): Mention the new option.
  125. * config/tc-avr.h: Use avr_line_separator_chars.
  126. * doc/c-avr.texi: Document the new option.
  127. 2021-08-11 Nick Clifton <nickc@redhat.com>
  128. * config/tc-tic4x.c (tic4x_gen_to_words): Fix typo.
  129. 2021-08-10 Nick Clifton <nickc@redhat.com>
  130. * po/ru.po: Updated Russian translation.
  131. 2021-08-09 Nick Clifton <nickc@redhat.com>
  132. * dwarf2dbg.c (get_directory_table_entry): Ensure that dir[0]
  133. contains current working directory.
  134. (out_dir_and_file_list): Likewise.
  135. * testsuite/gas/elf/dwarf-5-dir0.s: New test source file.
  136. * testsuite/gas/elf/dwarf-5-dir0.d: New test driver.
  137. * testsuite/gas/elf/elf.exp: Run the new test.
  138. * testsuite/gas/elf/dwarf-5-file0.d: Adjust expected output.
  139. * testsuite/gas/i386/dwarf5-line-1.d: Likewise.
  140. * testsuite/gas/i386/dwarf5-line-2.d: Likewise.
  141. 2021-07-14 Alan Modra <amodra@gmail.com>
  142. * write.c (TC_VALIDATE_FIX_SUB): Default to 0.
  143. * config/tc-hppa.h (TC_VALIDATE_FIX_SUB): Define.
  144. * config/tc-microblaze.h (TC_VALIDATE_FIX_SUB): Define.
  145. * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define for ECOFF.
  146. * config/tc-ppc.h (TC_VALIDATE_FIX_SUB): Don't define for ELF.
  147. Do define for XCOFF.
  148. 2021-07-14 Clément Chigot <clement.chigot@atos.net>
  149. * config/tc-ppc.c (ppc_change_debug_section): Update to
  150. match new name's field.
  151. 2021-07-12 Tucker <tuckkern@sourceware@gmail.com>
  152. PR 28054
  153. * config/obj-elf.c (obj_elf_change_section): Set the
  154. SEF_ELF_OCTETS flag on debug sections.
  155. 2021-06-07 Andreas Krebbel <krebbel@linux.ibm.com>
  156. * testsuite/gas/s390/zarch-arch14.d: Add qpaci.
  157. * testsuite/gas/s390/zarch-arch14.s: Add qpaci.
  158. 2021-07-07 Nick Clifton <nickc@redhat.com>
  159. PR 28051
  160. * config/tc-i386.c (offset_in_range): Reformat error messages in
  161. order to fix problems when translating.
  162. (md_assemble): Likewise.
  163. * messages.c (as_internal_value_out_of_range): Likewise.
  164. * read.c (emit_expr_with_reloc): Likewise.
  165. * testsuite/gas/all/overflow.l Change expected output format.
  166. * po/gas.pot: Regenerate.
  167. 2021-07-03 Nick Clifton <nickc@redhat.com>
  168. * configure: Regenerate.
  169. * po/gas.pot: Regenerate.
  170. 2021-07-03 Nick Clifton <nickc@redhat.com>
  171. * 2.37 release branch created.
  172. 2021-07-02 Alan Modra <amodra@gmail.com>
  173. * config/tc-nds32.c (nds32_keyword_gpr): Don't declare.
  174. (md_begin): Constify k.
  175. 2021-07-02 Nick Clifton <nickc@redhat.com>
  176. * config/tc-nds32.c: Change all references of keyword_gpr to
  177. nds32_keyword_gpr.
  178. 2021-07-01 Mike Frysinger <vapier@gentoo.org>
  179. * config/tc-microblaze.c (md_begin): Make opcode const. Rename
  180. opcodes to microblaze_opcodes.
  181. 2021-07-01 Mike Frysinger <vapier@gentoo.org>
  182. * config/tc-aarch64.c (struct templates): Make opcode const.
  183. (md_assemble): Likewise.
  184. (fill_instruction_hash_table): Likewise.
  185. 2021-06-24 Clément Chigot <clement.chigot@atos.net>
  186. * config/tc-ppc.c (md_assemble): Update ppc_current_csect
  187. alignment when finding prefixed instructions.
  188. 2021-06-22 Alan Modra <amodra@gmail.com>
  189. * config/tc-pj.c (md_apply_fix): Apply PJ_CODE_REL32 relocs.
  190. * testsuite/gas/pj/ops.s: Update jsr, ret, getstatic,
  191. putstatic, getfield, putfield, invokevirtual, invokespecial,
  192. invokestatic, invokeinterface, goto_w, jsr_w assembly. Delete
  193. version 1 picojava opcodes.
  194. * testsuite/gas/pj/ops.d: Match expected output.
  195. 2021-06-19 Alan Modra <amodra@gmail.com>
  196. * config/tc-z80.c (signed_overflow, unsigned_overflow): Avoid UB.
  197. 2021-06-19 Alan Modra <amodra@gmail.com>
  198. * testsuite/gas/ppc/raw.s: Use 0 as pli constant.
  199. * testsuite/gas/ppc/raw.d: Update to suit.
  200. 2021-06-18 Jan Beulich <jbeulich@suse.com>
  201. * expr.c (symbol_lookup_or_make): New.
  202. (operand): Use it.
  203. * testsuite/gas/elf/startof.s, testsuite/gas/elf/startof.d: New.
  204. * testsuite/gas/elf/elf.exp: Run new test.
  205. 2021-06-17 Nick Clifton <nickc@redhat.com>
  206. PR 27904
  207. * config/tc-aarch64.c (ldst_lo12_determine_real_reloc_type):
  208. Generate a syntax error message if the reloc qualifier does not
  209. match the instruction's size.
  210. 2021-06-17 Clément Chigot <clement.chigot@atos.net>
  211. * config/tc-ppc.c (md_begin): Create bss section with dummy
  212. symbol.
  213. (ppc_frob_symbol): Output XTY_CM for bss csects.
  214. (ppc_fix_adjustable): Adjust condition to avoid bss csects.
  215. 2021-06-17 Clément Chigot <clement.chigot@atos.net>
  216. * config/tc-ppc.c (md_apply_fix): Adjust addend to nullify
  217. section contents for BFD_RELOC_PPC_TLSM or
  218. BFD_RELOC_PPC64_TLSM.
  219. * testsuite/gas/ppc/xcoff-tlsm-32.d: New test.
  220. * testsuite/gas/ppc/xcoff-tlsm-64.d: New test.
  221. * testsuite/gas/ppc/xcoff-tlsm.s: New test.
  222. * testsuite/gas/ppc/aix.exp: Run new tests.
  223. 2021-06-16 Jan Beulich <jbeulich@suse.com>
  224. * read.c (parse_one_float): New.
  225. (s_float_space, float_cons): Use it.
  226. * testsuite/gas/all/float.s: Add .dc.*, .dcb.*, and .ds.* cases.
  227. 2021-06-16 Jan Beulich <jbeulich@suse.com>
  228. * read.c (emit_expr_with_reloc): Adjust overflow check. Drop
  229. hibit local variable.
  230. * write.c (fixup_segment): Differentiate signed and non-signed
  231. relocs in overflow check.
  232. * testsuite/gas/all/overflow.s,
  233. testsuite/gas/all/overflow.l: New.
  234. * testsuite/gas/all/gas.exp: Run new test.
  235. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  236. * config/tc-i386.c (md_show_usage): Split ELF and PE/COFF parts
  237. of object format controlling option. Add Mach-O to the latter.
  238. * testsuite/gas/i386/i386.exp (gas_bfd64_check): Adjust
  239. accordingly.
  240. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  241. * config/tc-i386.c (disp16, disp32, disp32s): Delete.
  242. (optimize_disp, i386_finalize_displacement): Use
  243. operand_type_and_not.
  244. (build_modrm_byte): Likewise. Eliminate local variable newdisp.
  245. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  246. * config/tc-i386.c (offset_in_range): Bail early when mask would
  247. cover all bits anyway.
  248. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  249. * config/tc-i386.c (optimize_disp): Generalize disp32 part of
  250. the BFD64-only logic to also apply to non-64-bit code.
  251. (i386_finalize_displacement): Use extend_to_32bit_address for
  252. non-64-bit code. Drop now redundant O_constant checks.
  253. * testsuite/gas/i386/disp-imm-32.s,
  254. testsuite/gas/i386/disp-imm-32.d: New.
  255. * testsuite/gas/i386/i386.exp: Run new test.
  256. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  257. * config/tc-i386.c (offset_in_range): Replace uses of
  258. bfd_sprintf_vma.
  259. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  260. * config/tc-i386.c (offset_in_range): Adjust conditional.
  261. * testsuite/gas/i386/disp-imm-16.s,
  262. testsuite/gas/i386/disp-imm-16.l,
  263. testsuite/gas/i386/disp-imm-64.s,
  264. testsuite/gas/i386/disp-imm-64.l: New.
  265. * testsuite/gas/i386/i386.exp: Run new tests.
  266. 2021-06-15 Jan Beulich <jbeulich@suse.com>
  267. * config/tc-i386.c (i386_att_operand): Re-introduce (now
  268. properly named) parens_not_balanced.
  269. * testsuite/gas/i386/sib.s: Add more cases.
  270. * testsuite/gas/i386/sib.d, testsuite/gas/i386/sib-intel.d:
  271. Adjust expectations.
  272. 2021-06-14 Jan Beulich <jbeulich@suse.com>
  273. * read.c (emit_expr_with_reloc): Fold three as_warn().
  274. 2021-06-14 Jan Beulich <jbeulich@suse.com>
  275. * doc/internals.texi (TC_ADDRESS_BYTES): Mention generic default.
  276. * read.c (potable, cons_worker): Drop TC_ADDRESS_BYTES
  277. conditional.
  278. 2021-06-11 H.J. Lu <hongjiu.lu@intel.com>
  279. * config/tc-i386.c (x86_cons): Handle GOT/PLT relocations only
  280. if needed.
  281. * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Always define.
  282. 2021-06-11 Nelson Chu <nelson.chu@sifive.com>
  283. * config/tc-riscv.c (riscv_set_arch): Call riscv_set_rvc
  284. and riscv_set_rve both for -march and elf attributes.
  285. (riscv_after_parse_args): Likewise.
  286. 2021-06-10 Jan Beulich <jbeulich@suse.com>
  287. * config/tc-arm.c (do_bfloat_vfma): Rename index to idx.
  288. (do_vusdot): Likewise.
  289. (do_vsudot): Likewise.
  290. (check_cde_operand): Likewise.
  291. (do_vdot): Likewise.
  292. 2021-06-10 Jan Beulich <jbeulich@suse.com>
  293. * config/tc-arm.c (reg_expected_msgs): Add REG_TYPE_ZR entry.
  294. 2021-06-10 Jan Beulich <jbeulich@suse.com>
  295. * config/tc-i386.c (optimize_encoding): Suppress LEA conversion
  296. when it would grow code size in 16-bit mode.
  297. * testsuite/gas/i386/lea16-optimize.d: Adjust expectations.
  298. * testsuite/gas/i386/lea16-optimize2.d: New.
  299. * testsuite/gas/i386/i386.exp: Run new test.
  300. 2021-06-08 Jan Beulich <jbeulich@suse.com>
  301. * testsuite/gas/i386/quoted.d, testsuite/gas/i386/wrap32-text.d:
  302. Adjust expectations.
  303. * testsuite/gas/i386/wrap32-data.d: Likewise. Correct name.
  304. 2021-06-08 Jan Beulich <jbeulich@suse.com>
  305. * config/tc-i386.c (optimize_imm): Use fits_in_unsigned_word
  306. and fits_in_unsigned_long.
  307. 2021-06-08 Jan Beulich <jbeulich@suse.com>
  308. * config/tc-i386.c (optimize_disp): Use fits_in_unsigned_word
  309. and fits_in_unsigned_long. Combine if()s.
  310. 2021-06-08 Jan Beulich <jbeulich@suse.com>
  311. * config/tc-i386.c (optimize_disp): Write back updated value.
  312. * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea64.s: New
  313. cases.
  314. * testsuite/gas/i386/lea16-optimize.d,
  315. testsuite/gas/i386/lea64.d, testsuite/gas/i386/lea64-optimize.d:
  316. Adjust expectations.
  317. * testsuite/gas/i386/lea16.d: New.
  318. * testsuite/gas/i386/i386.exp: Run new test.
  319. 2021-06-08 Jan Beulich <jbeulich@suse.com>
  320. * config/tc-i386.c (optimize_disp): Drop redundant masking.
  321. Re-order.
  322. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  323. * config/tc-i386.c (i386_att_operand): Re-write handling of
  324. vector operations operand suffix.
  325. * testsuite/gas/i386/unary.s: Add more cases.
  326. * testsuite/gas/i386/unary.d: Adjust expectations.
  327. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  328. * config/tc-i386.c (parse_operands): Reduce scope of
  329. paren_not_balanced, to match the new in_quotes. Skip over quoted
  330. regions of operands.
  331. (i386_att_operand): Remove (mis-named) parens_balanced. Respect
  332. double quote.
  333. * testsuite/gas/i386/unary.s: Add more cases.
  334. * testsuite/gas/i386/unary.d: Adjust expectations.
  335. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  336. * config/tc-i386.c (digit_chars, is_digit_char): Delete.
  337. (md_begin): Fold digit and lower-case letter handling.
  338. (starts_memory_operand): Permit more characters.
  339. * testsuite/gas/i386/unary.s, testsuite/gas/i386/unary.d: New.
  340. * testsuite/gas/i386/i386.exp: Run new test.
  341. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  342. * config/tc-i386.c (starts_memory_operand): New.
  343. (i386_att_operand): Use it.
  344. * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New.
  345. * testsuite/gas/i386/i386.exp: Run new test.
  346. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  347. * config/tc-i386.c (i386_att_operand): Flip checking for '*' and
  348. start-of-expression. Don't permit '*' when one was already seen.
  349. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  350. * config/tc-i386.c (parse_operands): Don't check for matched
  351. square brackets.
  352. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  353. * config/tc-i386.c (check_VecOperations): Remove 2nd parameter.
  354. (i386_att_operand): Adjust calls to check_VecOperations.
  355. * config/tc-i386-intel.c (i386_intel_operand): Likewise.
  356. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  357. * config/tc-i386.c (i386_immediate): Don't call check_VecOperations.
  358. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  359. * config/tc-i386.c (extend_to_32bit_address): New.
  360. (x86_cons, i386_finalize_immediate, md_apply_fix): Use it.
  361. (signed_cons): Use object_64bit.
  362. * testsuite/gas/i386/wrap32.s, testsuite/gas/i386/wrap32-data.d,
  363. testsuite/gas/i386/wrap32-text.d: New.
  364. * testsuite/gas/i386/i386.exp: Run new tests.
  365. 2021-06-03 Alan Modra <amodra@gmail.com>
  366. PR 1202
  367. * testsuite/gas/mcore/allinsn.d: Correct loopt expected output.
  368. 2021-05-29 Alan Modra <amodra@gmail.com>
  369. * testsuite/gas/ppc/raw.s,
  370. * testsuite/gas/ppc/raw.d: New test.
  371. * testsuite/gas/ppc/ppc.exp: Run it.
  372. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  373. * testsuite/gas/mips/c0.d: New test.
  374. * testsuite/gas/mips/mips1@c0.d: New test.
  375. * testsuite/gas/mips/mips2@c0.d: New test.
  376. * testsuite/gas/mips/mips3@c0.d: New test.
  377. * testsuite/gas/mips/mips4@c0.d: New test.
  378. * testsuite/gas/mips/mips5@c0.d: New test.
  379. * testsuite/gas/mips/mips32@c0.d: New test.
  380. * testsuite/gas/mips/mips64@c0.d: New test.
  381. * testsuite/gas/mips/r3000@c0.d: New test.
  382. * testsuite/gas/mips/r3900@c0.d: New test.
  383. * testsuite/gas/mips/r4000@c0.d: New test.
  384. * testsuite/gas/mips/vr5400@c0.d: New test.
  385. * testsuite/gas/mips/r5900@c0.d: New test.
  386. * testsuite/gas/mips/sb1@c0.d: New test.
  387. * testsuite/gas/mips/interaptiv-mr2@c0.d: New test.
  388. * testsuite/gas/mips/octeon@c0.d: New test.
  389. * testsuite/gas/mips/xlr@c0.d: New test.
  390. * testsuite/gas/mips/c1.d: New test.
  391. * testsuite/gas/mips/mips1@c1.d: New test.
  392. * testsuite/gas/mips/mips2@c1.d: New test.
  393. * testsuite/gas/mips/mips3@c1.d: New test.
  394. * testsuite/gas/mips/mips4@c1.d: New test.
  395. * testsuite/gas/mips/mips5@c1.d: New test.
  396. * testsuite/gas/mips/mips32@c1.d: New test.
  397. * testsuite/gas/mips/mips64@c1.d: New test.
  398. * testsuite/gas/mips/mipsr6@c1.d: New test.
  399. * testsuite/gas/mips/r3000@c1.d: New test.
  400. * testsuite/gas/mips/r3900@c1.d: New test.
  401. * testsuite/gas/mips/r4000@c1.d: New test.
  402. * testsuite/gas/mips/vr5400@c1.d: New test.
  403. * testsuite/gas/mips/r5900@c1.d: New test.
  404. * testsuite/gas/mips/sb1@c1.d: New test.
  405. * testsuite/gas/mips/interaptiv-mr2@c1.d: New test.
  406. * testsuite/gas/mips/octeon@c1.d: New test.
  407. * testsuite/gas/mips/xlr@c1.d: New test.
  408. * testsuite/gas/mips/c2.d: New test.
  409. * testsuite/gas/mips/vr5400@c2.d: New test.
  410. * testsuite/gas/mips/r5900@c2.d: New test.
  411. * testsuite/gas/mips/octeon@c2.d: New test.
  412. * testsuite/gas/mips/c3.d: New test.
  413. * testsuite/gas/mips/mips1@c3.d: New test.
  414. * testsuite/gas/mips/mips2@c3.d: New test.
  415. * testsuite/gas/mips/mips32@c3.d: New test.
  416. * testsuite/gas/mips/r3000@c3.d: New test.
  417. * testsuite/gas/mips/r3900@c3.d: New test.
  418. * testsuite/gas/mips/c0.l: New test stderr output.
  419. * testsuite/gas/mips/c2.l: New test stderr output.
  420. * testsuite/gas/mips/c3.l: New test stderr output.
  421. * testsuite/gas/mips/c0.s: New test source.
  422. * testsuite/gas/mips/c1.s: New test source.
  423. * testsuite/gas/mips/c2.s: New test source.
  424. * testsuite/gas/mips/c3.s: New test source.
  425. * testsuite/gas/mips/mips.exp: Run the new tests.
  426. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  427. * testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
  428. * testsuite/gas/mips/rfe.d: Update for ISA exclusions.
  429. * testsuite/gas/mips/mips1@rfe.d: New test.
  430. * testsuite/gas/mips/mips2@rfe.d: New test.
  431. * testsuite/gas/mips/r3000@rfe.d: New test.
  432. * testsuite/gas/mips/r3900@rfe.d: New test.
  433. * testsuite/gas/mips/rfe.l: New test stderr output.
  434. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  435. * testsuite/gas/mips/mips.exp: Run coprocessor tests across all
  436. ISAs.
  437. * testsuite/gas/mips/cp0b.d: Update for ISA exclusions.
  438. * testsuite/gas/mips/cp0bl.d: Update for ISA exclusions.
  439. * testsuite/gas/mips/cp0c.d: Update for ISA exclusions.
  440. * testsuite/gas/mips/cp0m.d: Update for ISA exclusions.
  441. * testsuite/gas/mips/cp3.d: Update for ISA exclusions.
  442. * testsuite/gas/mips/cp3b.d: Update for ISA exclusions.
  443. * testsuite/gas/mips/cp3bl.d: Update for ISA exclusions.
  444. * testsuite/gas/mips/cp3m.d: Update for ISA exclusions.
  445. * testsuite/gas/mips/cp3d.d: Update for ISA exclusions.
  446. * testsuite/gas/mips/mips1@cp0b.d: New test.
  447. * testsuite/gas/mips/mips2@cp0b.d: New test.
  448. * testsuite/gas/mips/mips3@cp0b.d: New test.
  449. * testsuite/gas/mips/r3000@cp0b.d: New test.
  450. * testsuite/gas/mips/r3900@cp0b.d: New test.
  451. * testsuite/gas/mips/r4000@cp0b.d: New test.
  452. * testsuite/gas/mips/r5900@cp0b.d: New test.
  453. * testsuite/gas/mips/mips2@cp0bl.d: New test.
  454. * testsuite/gas/mips/mips3@cp0bl.d: New test.
  455. * testsuite/gas/mips/r3900@cp0bl.d: New test.
  456. * testsuite/gas/mips/r4000@cp0bl.d: New test.
  457. * testsuite/gas/mips/r5900@cp0bl.d: New test.
  458. * testsuite/gas/mips/mips1@cp0c.d: New test.
  459. * testsuite/gas/mips/mips2@cp0c.d: New test.
  460. * testsuite/gas/mips/mips3@cp0c.d: New test.
  461. * testsuite/gas/mips/mips4@cp0c.d: New test.
  462. * testsuite/gas/mips/mips5@cp0c.d: New test.
  463. * testsuite/gas/mips/r3000@cp0c.d: New test.
  464. * testsuite/gas/mips/r3900@cp0c.d: New test.
  465. * testsuite/gas/mips/r4000@cp0c.d: New test.
  466. * testsuite/gas/mips/vr5400@cp0c.d: New test.
  467. * testsuite/gas/mips/r5900@cp0c.d: New test.
  468. * testsuite/gas/mips/mips1@cp0m.d: New test.
  469. * testsuite/gas/mips/r3000@cp0m.d: New test.
  470. * testsuite/gas/mips/octeon@cp2.d: New test.
  471. * testsuite/gas/mips/mipsr6@cp2b.d: New test.
  472. * testsuite/gas/mips/vr5400@cp2b.d: New test.
  473. * testsuite/gas/mips/octeon@cp2b.d: New test.
  474. * testsuite/gas/mips/mips1@cp2bl.d: New test.
  475. * testsuite/gas/mips/mipsr6@cp2bl.d: New test.
  476. * testsuite/gas/mips/r3000@cp2bl.d: New test.
  477. * testsuite/gas/mips/vr5400@cp2bl.d: New test.
  478. * testsuite/gas/mips/octeon@cp2bl.d: New test.
  479. * testsuite/gas/mips/vr5400@cp2m.d: New test.
  480. * testsuite/gas/mips/r5900@cp2m.d: New test.
  481. * testsuite/gas/mips/octeon@cp2m.d: New test.
  482. * testsuite/gas/mips/mips1@cp2d.d: New test.
  483. * testsuite/gas/mips/r3000@cp2d.d: New test.
  484. * testsuite/gas/mips/r3900@cp2d.d: New test.
  485. * testsuite/gas/mips/vr5400@cp2d.d: New test.
  486. * testsuite/gas/mips/r5900@cp2d.d: New test.
  487. * testsuite/gas/mips/octeon@cp2d.d: New test.
  488. * testsuite/gas/mips/mips1@cp2-64.d: New test.
  489. * testsuite/gas/mips/mips2@cp2-64.d: New test.
  490. * testsuite/gas/mips/mips32@cp2-64.d: New test.
  491. * testsuite/gas/mips/mips32r2@cp2-64.d: New test.
  492. * testsuite/gas/mips/mips32r3@cp2-64.d: New test.
  493. * testsuite/gas/mips/mips32r5@cp2-64.d: New test.
  494. * testsuite/gas/mips/mips32r6@cp2-64.d: New test.
  495. * testsuite/gas/mips/r3000@cp2-64.d: New test.
  496. * testsuite/gas/mips/r3900@cp2-64.d: New test.
  497. * testsuite/gas/mips/interaptiv-mr2@cp2-64.d: New test.
  498. * testsuite/gas/mips/mips1@cp3.d: New test.
  499. * testsuite/gas/mips/mips2@cp3.d: New test.
  500. * testsuite/gas/mips/mips32@cp3.d: New test.
  501. * testsuite/gas/mips/r3000@cp3.d: New test.
  502. * testsuite/gas/mips/r3900@cp3.d: New test.
  503. * testsuite/gas/mips/mips1@cp3b.d: New test.
  504. * testsuite/gas/mips/mips2@cp3b.d: New test.
  505. * testsuite/gas/mips/mips32@cp3b.d: New test.
  506. * testsuite/gas/mips/r3000@cp3b.d: New test.
  507. * testsuite/gas/mips/r3900@cp3b.d: New test.
  508. * testsuite/gas/mips/mips2@cp3bl.d: New test.
  509. * testsuite/gas/mips/mips32@cp3bl.d: New test.
  510. * testsuite/gas/mips/r3900@cp3bl.d: New test.
  511. * testsuite/gas/mips/mips1@cp3m.d: New test.
  512. * testsuite/gas/mips/mips2@cp3m.d: New test.
  513. * testsuite/gas/mips/r3000@cp3m.d: New test.
  514. * testsuite/gas/mips/r3900@cp3m.d: New test.
  515. * testsuite/gas/mips/mips2@cp3d.d: New test.
  516. * testsuite/gas/mips/cp0b.l: New test stderr output.
  517. * testsuite/gas/mips/cp0bl.l: New test stderr output.
  518. * testsuite/gas/mips/cp0c.l: New test stderr output.
  519. * testsuite/gas/mips/cp0m.l: New test stderr output.
  520. * testsuite/gas/mips/cp2.l: New test stderr output.
  521. * testsuite/gas/mips/cp2-64.l: New test stderr output.
  522. * testsuite/gas/mips/cp2b.l: New test stderr output.
  523. * testsuite/gas/mips/cp2bl.l: New test stderr output.
  524. * testsuite/gas/mips/cp2m.l: New test stderr output.
  525. * testsuite/gas/mips/cp2d.l: New test stderr output.
  526. * testsuite/gas/mips/cp3.l: New test stderr output.
  527. * testsuite/gas/mips/cp3b.l: New test stderr output.
  528. * testsuite/gas/mips/cp3bl.l: New test stderr output.
  529. * testsuite/gas/mips/cp3m.l: New test stderr output.
  530. * testsuite/gas/mips/cp3d.l: New test stderr output.
  531. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  532. * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
  533. instruction removal.
  534. * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
  535. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  536. * testsuite/gas/mips/cp0b.d: New test.
  537. * testsuite/gas/mips/cp0bl.d: New test.
  538. * testsuite/gas/mips/cp2b.d: New test.
  539. * testsuite/gas/mips/micromips@cp2b.d: New test.
  540. * testsuite/gas/mips/cp2bl.d: New test.
  541. * testsuite/gas/mips/micromips@cp2bl.d: New test.
  542. * testsuite/gas/mips/cp3b.d: New test.
  543. * testsuite/gas/mips/cp3bl.d: New test.
  544. * testsuite/gas/mips/cp0b.s: New test source.
  545. * testsuite/gas/mips/cp0bl.s: New test source.
  546. * testsuite/gas/mips/cp2b.s: New test source.
  547. * testsuite/gas/mips/cp2bl.s: New test source.
  548. * testsuite/gas/mips/cp3b.s: New test source.
  549. * testsuite/gas/mips/cp3bl.s: New test source.
  550. * testsuite/gas/mips/mips.exp: Run the new tests.
  551. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  552. * testsuite/gas/mips/rfe.d: New test.
  553. * testsuite/gas/mips/rfe.s: New test source.
  554. * testsuite/gas/mips/mips.exp: Run the new test.
  555. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  556. * testsuite/gas/mips/cp1-names-r3900.d: New test.
  557. * testsuite/gas/mips/mips.exp: Run the new test.
  558. * testsuite/gas/mips/branch-misc-3.d: Update disassembly
  559. according to changes to opcodes.
  560. * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
  561. * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
  562. * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
  563. * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
  564. * testsuite/gas/mips/trunc.d: Likewise.
  565. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  566. * testsuite/gas/mips/cp0c.d: New test.
  567. * testsuite/gas/mips/cp0m.d: New test.
  568. * testsuite/gas/mips/r3900@cp0m.d: New test.
  569. * testsuite/gas/mips/cp2.d: New test.
  570. * testsuite/gas/mips/micromips@cp2.d: New test.
  571. * testsuite/gas/mips/cp2m.d: New test.
  572. * testsuite/gas/mips/mipsr6@cp2m.d: New test.
  573. * testsuite/gas/mips/micromips@cp2m.d: New test.
  574. * testsuite/gas/mips/cp2d.d: New test.
  575. * testsuite/gas/mips/mipsr6@cp2d.d: New test.
  576. * testsuite/gas/mips/micromips@cp2d.d: New test.
  577. * testsuite/gas/mips/cp2-64.d: New test.
  578. * testsuite/gas/mips/micromips@cp2-64.d: New test.
  579. * testsuite/gas/mips/cp3.d: New test.
  580. * testsuite/gas/mips/cp3m.d: New test.
  581. * testsuite/gas/mips/cp3d.d: New test.
  582. * testsuite/gas/mips/cp0c.s: New test source.
  583. * testsuite/gas/mips/cp0m.s: New test source.
  584. * testsuite/gas/mips/cp2.s: New test source.
  585. * testsuite/gas/mips/cp2m.s: New test source.
  586. * testsuite/gas/mips/cp2d.s: New test source.
  587. * testsuite/gas/mips/cp2-64.s: New test source.
  588. * testsuite/gas/mips/cp3.s: New test source.
  589. * testsuite/gas/mips/cp3m.s: New test source.
  590. * testsuite/gas/mips/cp3d.s: New test source.
  591. * testsuite/gas/mips/mips.exp: Run the new tests.
  592. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  593. * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
  594. (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
  595. operand code.
  596. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  597. * testsuite/gas/mips/cp0-names-r3900.d: New test.
  598. * testsuite/gas/mips/mips.exp: Run it.
  599. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  600. * testsuite/gas/mips/micromips.d: Update disassembly according
  601. to "dmtc1" entry fix with opcodes.
  602. * testsuite/gas/mips/micromips-compact.d: Likewise.
  603. * testsuite/gas/mips/micromips-insn32.d: Likewise.
  604. * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
  605. * testsuite/gas/mips/micromips-trap.d: Likewise.
  606. * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
  607. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  608. * config/tc-mips.c (FCSR): New macro.
  609. (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
  610. 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
  611. PR ld/27905
  612. * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
  613. (set_16bit_gcc_code_flag): Likewise.
  614. (x86_cleanup): Likewise.
  615. * testsuite/gas/i386/code16-2.d: Updated.
  616. * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
  617. 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
  618. * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
  619. * testsuite/gas/ppc/vsx.s: Likewise.
  620. 2021-05-27 Alan Modra <amodra@gmail.com>
  621. * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
  622. (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
  623. error.
  624. 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
  625. PR ld/27905
  626. * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
  627. with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
  628. object.
  629. (set_16bit_gcc_code_flag): Likewise.
  630. (x86_cleanup): Always generate the GNU property note if
  631. x86_feature_2_used isn't 0.
  632. * testsuite/gas/i386/code16-2.d: New file.
  633. * testsuite/gas/i386/code16-2.s: Likewise.
  634. * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
  635. * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
  636. 2021-05-26 Sebastien Villemot <sebastien@debian.org>
  637. PR gas/27906
  638. * doc/c-i386.texi: Replace movsb with movsxb as an alias for
  639. movsbq.
  640. 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
  641. * config/tc-riscv.c (riscv_set_arch): Set
  642. check_unknown_prefixed_ext to true for assembler.
  643. 2021-05-25 Tamar Christina <tamar.christina@arm.com>
  644. PR gas/25235
  645. * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
  646. (relax_adr): Thumb symbols 4 bytes.
  647. * testsuite/gas/arm/pr25235.d: New test.
  648. * testsuite/gas/arm/pr25235.s: New test.
  649. 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
  650. PR 25212
  651. * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
  652. will choose ilp32e abi for rv32e. Besides, report errors for the
  653. invalid march and mabi combinations.
  654. * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
  655. ilp32e abi for rve extension.
  656. * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
  657. * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
  658. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
  659. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
  660. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
  661. * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
  662. Renamed all mabi testcases to their march-mabi settings.
  663. 2021-05-22 Alan Modra <amodra@gmail.com>
  664. PR 25599
  665. * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
  666. adjustment. Add assertion.
  667. * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
  668. for PCREL60B.
  669. 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
  670. * config/tc-z80.c (emit_data_val): Warn on constant overflow.
  671. (signed_overflow): New function.
  672. (unsigned_overflow): New function.
  673. (is_overflow): Use new functions.
  674. (md_apply_fix): Use signed_overflow.
  675. * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
  676. * testsuite/gas/z80/ez80_isuf.s: Likewise.
  677. * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
  678. 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
  679. PR 27888
  680. * Makefile.am (ZLIB): Define.
  681. (as_new_LDADD): Add it.
  682. * Makefile.in: Regenerate.
  683. 2021-05-17 Alex Coplan <alex.coplan@arm.com>
  684. * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
  685. into the same GPR twice.
  686. * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
  687. * testsuite/gas/arm/mve-vmov-3.d: New test.
  688. * testsuite/gas/arm/mve-vmov-3.s: New test.
  689. 2021-05-12 Alan Modra <amodra@gmail.com>
  690. * testsuite/gas/elf/dwarf-5-file0.d: Update.
  691. * testsuite/gas/i386/dwarf5-line-1.d: Update.
  692. 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
  693. PR 27823
  694. * config/tc-z80.c (emit_ld_r_m): Report an illegal load
  695. instruction.
  696. * testsuite/gas/z80/ill_ops.s: New test source file.
  697. * testsuite/gas/z80/ill_ops.d: New test driver.
  698. * testsuite/gas/z80/ill_ops.l: New test error output.
  699. 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
  700. PR 27415
  701. * config/tc-z80.c (emit_data_val): Add support for 8-bit and
  702. 24-bit shifts.
  703. * testsuite/gas/z80/z80_reloc.a: Update tests.
  704. * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
  705. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  706. * doc/Makefile.am (html-local, as/index.html): New targets.
  707. * doc/Makefile.in: Regenerate.
  708. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  709. * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
  710. * doc/Makefile.in: Regenerate.
  711. 2021-05-07 Nick Clifton <nickc@redhat.com>
  712. PR 3136
  713. * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
  714. (obj_elf_bss): New function. Change to the .bss section.
  715. Support an optional subsection number.
  716. (obj_elf_change_section): Call obj_elf_section_change_hook.
  717. (obj_elf_section): Likewise.
  718. (obj_elf_data): Likewise.
  719. (obj_elf_text): Likewise.
  720. (obj_elf_struct): Likewise.
  721. (obj_elf_subsection): Likewise.
  722. (obj_elf_previous): Likewise.
  723. * config/obj-elf.h (obj_elf_bss): Prototype.
  724. * doc/as.texi (Bss): New node.
  725. 2021-05-07 Clément Chigot <clement.chigot@atos.net>
  726. * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
  727. (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
  728. (coff_frob_section): Likewise.
  729. * config/obj-coff.h (SA_GET_SECT_SCNLEN,
  730. SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
  731. SA_SET_SECT_NRELOC) New defines.
  732. (SET_SECTION_RELOCS): Adjust for C_DWARF.
  733. * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
  734. (ppc_adjust_symtab): Reorder C_DWARF symbols.
  735. * testsuite/gas/ppc/aix.exp: New tests.
  736. * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
  737. * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
  738. * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
  739. * config/tc-ppc.c (ppc_function): Update comment for
  740. fifth argument.
  741. (ppc_frob_symbol): Remove ppc_last_function check.
  742. Make sure coff_last_function is reset.
  743. Correctly set fsize when not provided in .function.
  744. * testsuite/gas/ppc/aix.exp: New tests.
  745. * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
  746. * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
  747. * testsuite/gas/ppc/xcoff-function-1.s: New test.
  748. 2021-05-07 Jan Beulich <jbeulich@suse.com>
  749. * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
  750. * testsuite/gas/i386/i386.exp: Run new test.
  751. 2021-05-07 Jan Beulich <jbeulich@suse.com>
  752. * config/tc-i386.c (output_disp): Use disps field instead of
  753. imms one.
  754. 2021-05-07 Jan Beulich <jbeulich@suse.com>
  755. * config/tc-i386.c (i386_finalize_immediate): Move register
  756. check ...
  757. (i386_immediate): ... here.
  758. 2021-05-07 Jan Beulich <jbeulich@suse.com>
  759. * config/tc-i386.c (optimize_imm): Drop redundant masking.
  760. Re-arrange operand type accumulation.
  761. 2021-05-06 Stafford Horne <shorne@gmail.com>
  762. PR 21464
  763. * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
  764. * testsuite/gas/or1k/reloc-1.d: Add test result for new
  765. relocation.
  766. 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
  767. PR 27764
  768. * testsuite/gas/riscv/a-ext-64.d: New testcase.
  769. * testsuite/gas/riscv/a-ext-64.s: Likewise.
  770. * testsuite/gas/riscv/a-ext.d: Likewise.
  771. * testsuite/gas/riscv/a-ext.s: Likewise.
  772. 2021-05-03 Jan Beulich <jbeulich@suse.com>
  773. * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
  774. #if.
  775. * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
  776. Add two further .long and an .equ.
  777. * testsuite/gas/i386/secrel.d: Adjust expecations.
  778. 2021-05-03 Jan Beulich <jbeulich@suse.com>
  779. * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
  780. Convert Windows to UNIX EOL.
  781. 2021-05-03 Jan Beulich <jbeulich@suse.com>
  782. * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
  783. variant into ELF one.
  784. 2021-05-03 Alan Modra <amodra@gmail.com>
  785. * testsuite/gas/elf/section25.s: Don't start directives in first
  786. column.
  787. * testsuite/gas/elf/section26.s: Likewise.
  788. 2021-04-29 Jan Beulich <jbeulich@suse.com>
  789. * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
  790. * testsuite/gas/i386/lea64.d,
  791. testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
  792. * testsuite/gas/i386/x86-64-rip-inval-1.s,
  793. testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
  794. 2021-04-29 Jan Beulich <jbeulich@suse.com>
  795. * config/tc-i386.c (i386_validate_fix): Change return type to
  796. int. Short-circuit BFD_RELOC_SIZE* handling.
  797. (tc_gen_reloc): New local variable sym. Extend logic when
  798. processing BFD_RELOC_SIZE*.
  799. * config/tc-i386.f (i386_validate_fix): Change return type to
  800. int.
  801. (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
  802. returns zero.
  803. * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
  804. testsuite/gas/i386/size-5b.d: New.
  805. * testsuite/gas/i386/i386.exp: Run new tests.
  806. 2021-04-29 Jan Beulich <jbeulich@suse.com>
  807. * config/tc-i386.c (tc_gen_reloc): Use section size for section
  808. symbols when resolving BFD_RELOC_SIZE*.
  809. * testsuite/gas/i386/size-2.s: Add section size cases.
  810. * testsuite/gas/i386/size-2.d,
  811. testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
  812. 2021-04-28 Jan Beulich <jbeulich@suse.com>
  813. H.J. Lu <hjl.tools@gmail.com>
  814. PR gas/27763
  815. * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
  816. signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
  817. (output_disp): Also mark 4-byte relocs as signed for 64-bit.
  818. (md_estimate_size_before_relax): Move local variable fixP. Set
  819. it from fix_new() return values. Mark 4-byte relocs as signed
  820. for 64-bit.
  821. * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
  822. * testsuite/gas/i386/x86-64-rip-2.s,
  823. * testsuite/gas/i386/x86-64-rip-2.d,
  824. * testsuite/gas/i386/x86-64-rip-inval-1.s,
  825. * testsuite/gas/i386/x86-64-rip-inval-1.l,
  826. * testsuite/gas/i386/x86-64-rip-inval-2.s,
  827. * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
  828. * testsuite/gas/i386/i386.exp: Run new tests.
  829. 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
  830. * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
  831. 2021-04-26 Jan Beulich <jbeulich@suse.com>
  832. * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
  833. BFD_RELOC_SIZE*.
  834. 2021-04-26 Jan Beulich <jbeulich@suse.com>
  835. * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
  836. overflow check to 64-bit objects.
  837. 2021-04-26 Jan Beulich <jbeulich@suse.com>
  838. * config/tc-i386.c (want_disp32): Also check for SIZE32.
  839. (optimize_encoding): Handle LEA.
  840. * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
  841. testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
  842. Add many more forms.
  843. * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
  844. testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
  845. testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
  846. New.
  847. * testsuite/gas/i386/i386.exp: Run new tests.
  848. 2021-04-26 Jan Beulich <jbeulich@suse.com>
  849. * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
  850. signed.
  851. * testsuite/gas/i386/x86-64-addr32-bad.s,
  852. testsuite/gas/i386/x86-64-addr32-bad.l: New.
  853. * testsuite/gas/i386/i386.exp: Run new test.
  854. 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
  855. * testsuite/gas/elf/section25.d: Run it everywhere.
  856. * testsuite/gas/elf/section26.d: Likewise.
  857. * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
  858. 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
  859. * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
  860. optional "code" argument.
  861. 2021-04-23 Jan Beulich <jbeulich@suse.com>
  862. * config/tc-i386.c (want_disp32): New.
  863. (md_assemble): Use it.
  864. (optimize_disp): Likewise.
  865. (build_modrm_byte): Likewise.
  866. 2021-04-23 Jan Beulich <jbeulich@suse.com>
  867. * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
  868. check ...
  869. (md_assemble): ... here.
  870. 2021-04-23 Jan Beulich <jbeulich@suse.com>
  871. * config/tc-i386.c (optimize_disp): Move down BFD64 section.
  872. Move up setting of disp32.
  873. 2021-04-23 Jan Beulich <jbeulich@suse.com>
  874. * config/tc-i386.c (pe): Don't truncate expression value.
  875. (i386_finalize_displacement): Likewise.
  876. 2021-04-21 Nick Clifton <nickc@redhat.com>
  877. * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
  878. for named section symbols.
  879. * testsuite/gas/arm/thumbver.d: Likewise.
  880. * testsuite/gas/bfin/loop_temps.d: Likewise.
  881. * testsuite/gas/elf/section2.e-arc: Likewise.
  882. * testsuite/gas/elf/section2.e-arm: Likewise.
  883. * testsuite/gas/elf/section2.e-csky: Likewise.
  884. * testsuite/gas/elf/section2.e-m32r: Likewise.
  885. * testsuite/gas/elf/section2.e-mips: Likewise.
  886. * testsuite/gas/elf/section2.e-msp430: Likewise.
  887. * testsuite/gas/elf/section2.e-riscv: Likewise.
  888. * testsuite/gas/elf/section2.e-rl78: Likewise.
  889. * testsuite/gas/elf/section2.e-rx: Likewise.
  890. * testsuite/gas/elf/section2.e-score: Likewise.
  891. * testsuite/gas/elf/section2.e-tic6x: Likewise.
  892. * testsuite/gas/elf/section2.e-unused: Likewise.
  893. * testsuite/gas/elf/section2.e-v850: Likewise.
  894. * testsuite/gas/elf/section2.e-xtensa: Likewise.
  895. * testsuite/gas/ia64/alias-ilp32.d: Likewise.
  896. * testsuite/gas/ia64/alias.d: Likewise.
  897. * testsuite/gas/ia64/global.d: Likewise.
  898. * testsuite/gas/microblaze/relax_size.elf: Likewise.
  899. * testsuite/gas/microblaze/relax_size2.elf: Likewise.
  900. * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
  901. * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
  902. * testsuite/gas/mmix/bspec-1.d: Likewise.
  903. * testsuite/gas/mmix/byte-1.d: Likewise.
  904. * testsuite/gas/mmix/comment-1.d: Likewise.
  905. * testsuite/gas/mmix/loc-1.d: Likewise.
  906. * testsuite/gas/mmix/loc-2.d: Likewise.
  907. * testsuite/gas/mmix/loc-3.d: Likewise.
  908. * testsuite/gas/mmix/loc-4.d: Likewise.
  909. * testsuite/gas/mmix/loc-5.d: Likewise.
  910. * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
  911. 2021-04-20 Clément Chigot <clement.chigot@atos.net>
  912. PR binutils/21700
  913. * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
  914. (ppc_fix_adjustable): Manage fx_subsy part.
  915. (tc_gen_reloc): Create second relocation when both
  916. fx_addsy and fx_subsy are provided.
  917. * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
  918. (MAX_RELOC_EXPANSION): Likewise.
  919. (TC_FORCE_RELOCATION_SUB_SAME): Likewise
  920. (UNDEFINED_DIFFERENCE_OK): Likewise
  921. * testsuite/gas/all/gas.exp: Skip difference between two
  922. undefined symbols test.
  923. 2021-04-19 Nick Clifton <nickc@redhat.com>
  924. * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
  925. targets which should skip the undefined symbols test.
  926. 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
  927. * NEWS: Update news.
  928. * testsuite/gas/aarch64/rme.d: Update test.
  929. * testsuite/gas/aarch64/rme.s: Update test.
  930. 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
  931. * testsuite/gas/aarch64/rme.d: Update test.
  932. * testsuite/gas/aarch64/rme.s: Update test.
  933. 2021-04-19 Jan Beulich <jbeulich@suse.com>
  934. * as.h (sprint_value): Delete.
  935. * messages.c (sprint_value): Likewise.
  936. * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
  937. place of sprint_value.
  938. * config/tc-s390.c (s390_insert_operand): Likewise.
  939. * doc/internals.texi (sprint_value): Delete section.
  940. * write.c (fixup_segment): Likewise.
  941. (relax_segment): Likewise.
  942. 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
  943. * testsuite/gas/aarch64/rme-invalid.d: New test.
  944. * testsuite/gas/aarch64/rme-invalid.l: New test.
  945. * testsuite/gas/aarch64/rme-invalid.s: New test.
  946. * testsuite/gas/aarch64/rme.d: New test.
  947. * testsuite/gas/aarch64/rme.s: New test.
  948. 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
  949. PR 27436
  950. * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
  951. * testsuite/gas/riscv/shamt-32.d: New testcase.
  952. * testsuite/gas/riscv/shamt-32.l: Likewise.
  953. * testsuite/gas/riscv/shamt-32.s: Likewise.
  954. * testsuite/gas/riscv/shamt-64.d: Likewise.
  955. * testsuite/gas/riscv/shamt-64.l: Likewise.
  956. * testsuite/gas/riscv/shamt-64.s: Likewise.
  957. 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
  958. * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
  959. c.mv a4,a4.
  960. * testsuite/gas/riscv/c-zero-imm.s: Likewise.
  961. 2021-04-14 Alan Modra <amodra@gmail.com>
  962. PR 27723
  963. * dw2gencfi.c (initial_cie_insn): New function, extracted from..
  964. (select_cie_for_fde): ..here. Simplify.
  965. 2021-04-14 Alan Modra <amodra@gmail.com>
  966. PR 27723
  967. * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
  968. DW_CFA_GNU_window_save and DW_CFA_restore_state.
  969. 2021-04-13 Alan Modra <amodra@gmail.com>
  970. * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
  971. write to $srcdir. Use gas_host_run and read output file rather
  972. than gas_start/gas_finish.
  973. 2021-04-12 Alan Modra <amodra@gmail.com>
  974. * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
  975. (md_assemble): Likewise. Handle bignum operands.
  976. (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
  977. check.
  978. * expr.c: Delete unnecessary forward declarations.
  979. (generic_bignum_to_int32): Return uint32_t.
  980. (generic_bignum_to_int64): Return uint64_t. Compile always.
  981. (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
  982. clear X_extrabit for unary '!'.
  983. * expr.h (generic_bignum_to_int32): Declare.
  984. (generic_bignum_to_int64): Declare.
  985. * testsuite/gas/ppc/prefix-pcrel.s,
  986. * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
  987. 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
  988. * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
  989. march-fail-porder-x-std.d.
  990. * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
  991. march-fail-porder-z-std.d.
  992. * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
  993. march-fail-porder-x-z.d.
  994. * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
  995. march-fail-porder.l.
  996. * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
  997. * testsuite/gas/riscv/march-fail-order-x.l: Updated.
  998. * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
  999. * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
  1000. march-fail-single-char-h.d.
  1001. * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
  1002. march-fail-single-char-s.d.
  1003. * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
  1004. march-fail-single-char-x.d.
  1005. * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
  1006. march-fail-single-char-z.d.
  1007. * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
  1008. * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
  1009. march-fail-single-prefix.l.
  1010. * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
  1011. * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
  1012. * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
  1013. 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
  1014. * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
  1015. diagnostic messages for LD/ST Exclusive instructions.
  1016. * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
  1017. * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
  1018. clean-up.
  1019. 2021-04-09 Alan Modra <amodra@gmail.com>
  1020. * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
  1021. * testsuite/gas/ppc/prefix-reloc.d: Likewise.
  1022. * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
  1023. 2021-04-08 Alan Modra <amodra@gmail.com>
  1024. * testsuite/gas/ppc/pr27676.d,
  1025. * testsuite/gas/ppc/pr27676.s: New test.
  1026. * testsuite/gas/ppc/ppc.exp: Run it.
  1027. * testsuite/gas/ppc/dcbt.d: Update.
  1028. * testsuite/gas/ppc/power4_32.d: Update.
  1029. 2021-04-07 Alan Modra <amodra@gmail.com>
  1030. PR 27217
  1031. * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
  1032. 2021-04-06 Nick Clifton <nickc@redhat.com>
  1033. PR 27217
  1034. * config/tc-aarch64.c (my_get_expression): Rename to
  1035. aarch64_get_expression. Add a fifth argument to enable deferring
  1036. of expression resolution.
  1037. (parse_typed_reg): Update calls to my_get_expression.
  1038. (parse_vector_reg_list): Likewise.
  1039. (parse_immediate_expression): Likewise.
  1040. (parse_big_immediate): Likewise.
  1041. (parse_shift): Likewise.
  1042. (parse_shifter_operand_imm): Likewise.
  1043. (parse_operands): Likewise.
  1044. (parse_shifter_operand_reloc): Update calls to my_get_expression
  1045. and call aarch64_force_reloc to determine the value of the new
  1046. fifth argument.
  1047. (parse_address_main): Likewise.
  1048. (parse_half): Likewise.
  1049. (parse_adrp): Likewise.
  1050. (aarch64_force_reloc): New function. Contains code extracted from...
  1051. (aarch64_force_relocation): ... here.
  1052. * testsuite/gas/aarch64/pr27217.s: New test case.
  1053. * testsuite/gas/aarch64/pr27217.d: New test driver.
  1054. 2021-04-06 Jan Beulich <jbeulich@suse.com>
  1055. * write.c (fixup_segment): Move add_symbol_segment declaration
  1056. into main loop.
  1057. 2021-04-05 Alan Modra <amodra@gmail.com>
  1058. * configure.ac: Don't check for string.h, strings.h, stdlib.h,
  1059. errno.h, limits.h, locale.h or time.h. Don't check for unlink,
  1060. remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
  1061. Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
  1062. strstr, or vsnprintf declarations.
  1063. (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
  1064. * as.h: Don't include alloca-conf.h, include config.h instead.
  1065. Include string.h, stdlib.h, errno.h unconditionally. Remove
  1066. various fallback declarations.
  1067. * asintl.h: Don't test HAVE_LOCALE_H.
  1068. * as.c: Don't test HAVE_SETLOCALE.
  1069. * dwarf2dbg.c: Include limits.h unconditionally.
  1070. * expr.c: Likewise.
  1071. * sb.c: Likewise.
  1072. * symbols.c: Likewise.
  1073. * config/tc-cr16.c: Likewise.
  1074. * config/tc-d30v.c: Likewise.
  1075. * config/tc-i386.c: Likewise.
  1076. * config/tc-ia64.c: Likewise.
  1077. * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
  1078. * config.in: Regenerate.
  1079. * configure: Regenerate.
  1080. * Makefile.in: Regenerate.
  1081. * doc/Makefile.in: Regenerate.
  1082. 2021-04-01 Martin Liska <mliska@suse.cz>
  1083. * config/obj-coff.c (strneq): Remove strneq and use startswith.
  1084. (weak_is_altname): Likewise.
  1085. (obj_coff_section): Likewise.
  1086. * config/tc-cr16.c (process_label_constant): Likewise.
  1087. * config/tc-crx.c (strneq): Likewise.
  1088. 2021-04-01 Martin Liska <mliska@suse.cz>
  1089. * as.c (select_emulation_mode): Use startswith.
  1090. * config/m68k-parse.y: Likewise.
  1091. * config/obj-aout.c (obj_aout_type): Likewise.
  1092. * config/obj-elf.c (elf_common_parse): Likewise.
  1093. (obj_elf_section_type): Likewise.
  1094. (obj_elf_section_word): Likewise.
  1095. (obj_elf_section): Likewise.
  1096. (obj_elf_symver): Likewise.
  1097. (adjust_stab_sections): Likewise.
  1098. * config/obj-evax.c (evax_shorten_name): Likewise.
  1099. * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
  1100. * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
  1101. (aarch64_parse_features): Likewise.
  1102. (create_register_alias): Likewise.
  1103. (aarch64_data_in_code): Likewise.
  1104. (md_parse_option): Likewise.
  1105. * config/tc-alpha.c (s_alpha_section_word): Likewise.
  1106. (s_alpha_pdesc): Likewise.
  1107. * config/tc-arc.c (tokenize_extregister): Likewise.
  1108. * config/tc-arm.c (create_register_alias): Likewise.
  1109. (create_neon_reg_alias): Likewise.
  1110. (parse_ifimm_zero): Likewise.
  1111. (parse_qfloat_immediate): Likewise.
  1112. (arm_elf_section_type): Likewise.
  1113. (arm_parse_extension): Likewise.
  1114. (aeabi_set_public_attributes): Likewise.
  1115. (s_arm_arch_extension): Likewise.
  1116. (arm_data_in_code): Likewise.
  1117. (start_unwind_section): Likewise.
  1118. * config/tc-avr.c (avr_ldi_expression): Likewise.
  1119. * config/tc-csky.c (is_freglist_legal): Likewise.
  1120. (csky_s_section): Likewise.
  1121. * config/tc-d30v.c (do_assemble): Likewise.
  1122. * config/tc-dlx.c (parse_operand): Likewise.
  1123. * config/tc-epiphany.c (md_assemble): Likewise.
  1124. * config/tc-h8300.c (h8300_elf_section): Likewise.
  1125. (get_operand): Likewise.
  1126. * config/tc-hppa.c (pa_ip): Likewise.
  1127. (pa_level): Likewise.
  1128. (pa_space): Likewise.
  1129. * config/tc-i386.c (i386_mach): Likewise.
  1130. (md_assemble): Likewise.
  1131. (check_VecOperations): Likewise.
  1132. (i386_target_format): Likewise.
  1133. (i386_elf_section_type): Likewise.
  1134. * config/tc-ia64.c (start_unwind_section): Likewise.
  1135. (md_parse_option): Likewise.
  1136. (is_taken_branch): Likewise.
  1137. (idesc->name,): Likewise.
  1138. (note_register_values): Likewise.
  1139. (do_alias): Likewise.
  1140. * config/tc-m32c.c (insn_to_subtype): Likewise.
  1141. * config/tc-m68hc11.c (get_operand): Likewise.
  1142. (md_assemble): Likewise.
  1143. * config/tc-m68k.c (m68k_ip): Likewise.
  1144. (m68k_elf_suffix): Likewise.
  1145. * config/tc-mcore.c (mcore_s_section): Likewise.
  1146. * config/tc-metag.c (parse_get_set): Likewise.
  1147. (md_parse_option): Likewise.
  1148. * config/tc-microblaze.c (parse_imm): Likewise.
  1149. (check_got): Likewise.
  1150. (md_apply_fix): Likewise.
  1151. * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
  1152. (md_begin): Likewise.
  1153. (s_is_linkonce): Likewise.
  1154. (check_regno): Likewise.
  1155. (match_float_constant): Likewise.
  1156. (classify_vr4120_insn): Likewise.
  1157. (match_insn): Likewise.
  1158. (mips_after_parse_args): Likewise.
  1159. (s_change_sec): Likewise.
  1160. (s_option): Likewise.
  1161. (parse_code_option): Likewise.
  1162. (md_section_align): Likewise.
  1163. (nopic_need_relax): Likewise.
  1164. * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
  1165. * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
  1166. (mn10300_end_of_match): Likewise.
  1167. * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
  1168. * config/tc-nds32.c (nds32_parse_option): Likewise.
  1169. * config/tc-nds32.h (md_do_align): Likewise.
  1170. * config/tc-nios2.c (strprefix): Likewise.
  1171. (nios2_special_relocation_p): Likewise.
  1172. (nios2_parse_base_register): Likewise.
  1173. (nios2_cons): Likewise.
  1174. * config/tc-ns32k.c (addr_mode): Likewise.
  1175. * config/tc-pdp11.c (set_option): Likewise.
  1176. (parse_reg): Likewise.
  1177. (parse_ac5): Likewise.
  1178. (parse_op_no_deferred): Likewise.
  1179. (set_cpu_model): Likewise.
  1180. (set_machine_model): Likewise.
  1181. * config/tc-pj.c (md_operand): Likewise.
  1182. * config/tc-ppc.c (ppc_set_cpu): Likewise.
  1183. (ppc_arch): Likewise.
  1184. (ppc_section_type): Likewise.
  1185. * config/tc-s12z.c (tb_reg_rel): Likewise.
  1186. (tb_opr_rel): Likewise.
  1187. * config/tc-s390.c (s390_parse_cpu): Likewise.
  1188. (md_parse_option): Likewise.
  1189. * config/tc-score.c (s3_nopic_need_relax): Likewise.
  1190. (s3_pic_need_relax): Likewise.
  1191. * config/tc-score7.c (s7_nopic_need_relax): Likewise.
  1192. (s7_pic_need_relax): Likewise.
  1193. * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
  1194. * config/tc-sparc.c (md_parse_option): Likewise.
  1195. (sparc_ip): Likewise.
  1196. (s_reserve): Likewise.
  1197. (s_common): Likewise.
  1198. (s_seg): Likewise.
  1199. (sparc_cons): Likewise.
  1200. * config/tc-tic54x.c (stag_add_field): Likewise.
  1201. (tic54x_endstruct): Likewise.
  1202. * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
  1203. * config/tc-v850.c (v850_comm): Likewise.
  1204. (md_begin): Likewise.
  1205. (md_assemble): Likewise.
  1206. * config/tc-vax.c (vax_cons): Likewise.
  1207. * config/tc-wasm32.c (wasm32_leb128): Likewise.
  1208. * config/tc-xstormy16.c (md_operand): Likewise.
  1209. * config/tc-xtensa.c (get_directive): Likewise.
  1210. (xg_instruction_matches_option_term): Likewise.
  1211. (is_unaligned_label): Likewise.
  1212. (cache_literal_section): Likewise.
  1213. * config/xtensa-relax.c (parse_precond): Likewise.
  1214. (parse_option_cond): Likewise.
  1215. (transition_applies): Likewise.
  1216. (wide_branch_opcode): Likewise.
  1217. * dw2gencfi.c: Likewise.
  1218. * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
  1219. * ehopt.c (get_cie_info): Likewise.
  1220. * input-file.c (input_file_open): Likewise.
  1221. * listing.c (listing_newline): Likewise.
  1222. (debugging_pseudo): Likewise.
  1223. * read.c (read_a_source_file): Likewise.
  1224. * write.c (adjust_reloc_syms): Likewise.
  1225. (compress_debug): Likewise.
  1226. (maybe_generate_build_notes): Likewise.
  1227. 2021-03-31 Alan Modra <amodra@gmail.com>
  1228. * itbl-lex-wrapper.c: Include as.h not sysdep.h.
  1229. * config/bfin-lex-wrapper.c: Likewise.
  1230. * itbl-lex.l: Don't include as.h.
  1231. * config/bfin-lex.l: Likewise.
  1232. 2021-03-31 Alan Modra <amodra@gmail.com>
  1233. * as.h (POISON_BFD_BOOLEAN): Define.
  1234. * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
  1235. * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
  1236. * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
  1237. * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
  1238. * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
  1239. * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
  1240. * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
  1241. * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
  1242. * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
  1243. * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
  1244. * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
  1245. * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
  1246. * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
  1247. * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
  1248. * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
  1249. * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
  1250. * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
  1251. * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
  1252. * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
  1253. * config/tc-metag.c, * config/tc-metag.h,
  1254. * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
  1255. * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
  1256. * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
  1257. * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
  1258. * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
  1259. * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
  1260. * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
  1261. * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
  1262. * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
  1263. * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
  1264. * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
  1265. * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
  1266. * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
  1267. * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
  1268. * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
  1269. * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
  1270. * config/tc-xstormy16.c, * config/tc-xstormy16.h,
  1271. * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
  1272. * config/tc-z8k.c, * config/xtensa-istack.h,
  1273. * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
  1274. * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
  1275. * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
  1276. * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
  1277. with bool, FALSE with false, and TRUE with true.
  1278. 2021-03-31 Alan Modra <amodra@gmail.com>
  1279. * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
  1280. * config/tc-crx.c: Likewise.
  1281. * config/tc-nds32.h: Likewise.
  1282. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1283. * config/tc-i386.c (build_modrm_byte): Change return type.
  1284. Change type of "default_seg". Use NULL. Adjust setting of
  1285. "default_seg".
  1286. (reg_ds, reg_es, reg_ss): New.
  1287. (struct _i386_insn): Change type of seg[].
  1288. (md_begin): Initialize reg_ds, reg_es, and reg_ss.
  1289. (swap_operands): Change type of "temp_seg".
  1290. (check_string): Adjust %es check.
  1291. (process_operands): Change type of "default_seg". Use NULL.
  1292. Adjust segment override processing..
  1293. (i386_att_operand): Adjust segment override handling.
  1294. * config/tc-i386-intel.c (i386_intel_operand): Likewise.
  1295. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1296. * config/tc-i386.c (reg_eax): New.
  1297. (md_begin): Initialize reg_eax.
  1298. * config/tc-i386-intel.c (i386_intel_simplify_register): Use
  1299. reg_eax.
  1300. (i386_intel_simplify): Likewise.
  1301. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1302. * config/tc-i386.c (reg_st0): New.
  1303. (md_begin): Convert to switch(). Initialize reg_st0. Don't
  1304. insert other st(N).
  1305. (parse_real_register): Adjust st(N) processing.
  1306. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1307. * config/tc-i386.c (rc_op): Delete.
  1308. (struct Rounding_Operation): Move ...
  1309. (struct _i386_insn): ... here. Change field "rounding".
  1310. (build_evex_prefix): Adjust rounding processing.
  1311. (swap_2_operands): Likewise.
  1312. (check_VecOperands): Likewise.
  1313. (RC_SAE_immediate): Likewise.
  1314. (optimize_encoding): Adjust check for rounding.
  1315. (build_modrm_byte): Likewise.
  1316. (output_imm): Likewise.
  1317. (md_assemble): Initialize rounding type.
  1318. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1319. * config/tc-i386.c (broadcast_op): Delete.
  1320. (struct Broadcast_Operation): Move ...
  1321. (struct _i386_insn): ... here. Change field "broadcast".
  1322. (match_mem_size): Adjust check for broadcast.
  1323. (optimize_encoding): Likewise.
  1324. (process_suffix): Likewise.
  1325. (build_evex_prefix): Adjust broadcast processing.
  1326. (swap_2_operands): Likewise.
  1327. (check_VecOperations): Likewise.
  1328. (match_template): Likewise.
  1329. (check_VecOperands): Likewise.
  1330. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1331. * config/tc-i386.c (reg_k0): New.
  1332. (mask_op): Delete.
  1333. (struct Mask_Operation): Move ...
  1334. (struct _i386_insn): ... here. Change field "mask".
  1335. (md_begin): Initialize reg_k0.
  1336. (build_evex_prefix): Adjust mask processing.
  1337. (swap_2_operands): Likewise.
  1338. (check_VecOperands): Likewise.
  1339. (check_VecOperations): Likewise.
  1340. (optimize_encoding): Adjust checks for masking.
  1341. (output_insn): Likewise.
  1342. 2021-03-30 Jan Beulich <jbeulich@suse.com>
  1343. * config/tc-i386.c (swap_2_operands): Switch parameters to
  1344. unsigned.
  1345. (struct RC_Operation): Switch operand field to unsigned.
  1346. (struct Mask_Operation): Likewise.
  1347. (struct Broadcast_Operation): Likewise.
  1348. (build_evex_prefix): Drop cast.
  1349. (check_VecOperands): Likewise.
  1350. (build_modrm_byte): Likewise.
  1351. (output_imm): Likewise.
  1352. (check_VecOperations): Add casts to unsigned.
  1353. 2021-03-29 Jan Beulich <jbeulich@suse.com>
  1354. * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
  1355. * testsuite/gas/i386/x86-64-avx-swap-2.d.
  1356. testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
  1357. 2021-03-29 Jan Beulich <jbeulich@suse.com>
  1358. * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
  1359. checks by opcodespace ones.
  1360. (insert_lfence_before): Likewise.
  1361. (maybe_fused_with_jcc_p): Likewise.
  1362. (add_branch_padding_frag_p): Likewise.
  1363. (output_disp): Likewise.
  1364. (load_insn_p): Re-arrange checks to key applicable ones off of
  1365. an opcodespace check.
  1366. (md_assemble): Adjust opcode checks.
  1367. (check_byte_reg): Likewise.
  1368. (process_operands): Likewise.
  1369. (i386_index_check): Likewise.
  1370. (process_suffix): Likewise. New local variable is_movx. Adjust
  1371. movsx/movzx and crc32 handling.
  1372. (output_insn): Adjust opcode checks. Drop no longer reachable
  1373. case labels. Output legacy encoding prefixes in addition to the
  1374. base_opcode byte(s). Rework counting of prefixes for extended
  1375. opcode maps.
  1376. * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
  1377. opcode checks.
  1378. 2021-03-29 Alan Modra <amodra@gmail.com>
  1379. * atof-generic.c (FALSE, TRUE): Don't define.
  1380. * config/obj-elf.h (FALSE, TRUE): Don't define.
  1381. * config/obj-som.h (FALSE, TRUE): Don't define.
  1382. * config/tc-hppa.h (FALSE, TRUE): Don't define.
  1383. * config/tc-pdp11.c (FALSE, TRUE): Don't define.
  1384. * config/tc-iq2000.h (obj_fix_adjustable): Delete.
  1385. * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
  1386. * config/tc-mt.h (obj_fix_adjustable): Delete.
  1387. * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
  1388. * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
  1389. (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
  1390. (tokenize_extregister): Likewise.
  1391. * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
  1392. (parse_operands_op, parse_operands, md_assemble): Likewise.
  1393. * config/tc-d10v.c (build_insn): Likewise.
  1394. * config/tc-score.c (s3_gen_insn_frag): Likewise.
  1395. * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
  1396. * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
  1397. * config/tc-z80.c (emit_byte): Likewise.
  1398. 2021-03-29 Alan Modra <amodra@gmail.com>
  1399. * config/tc-arm.c (struct arm_long_option_table <func>): Return
  1400. bfd_boolean.
  1401. * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
  1402. * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
  1403. with bfd_boolean.
  1404. (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
  1405. (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
  1406. (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
  1407. logical expressions.
  1408. (struct metag_long_option <func>): Return bfd_boolean.
  1409. (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
  1410. * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
  1411. * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
  1412. (no_operands, lex_force_match, lex_reg_list): Likewise.
  1413. (size_from_suffix): Return int.
  1414. (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
  1415. * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
  1416. 2021-03-26 Jan Beulich <jbeulich@suse.com>
  1417. * testsuite/gas/i386/x86-64-nosse2.s,
  1418. testsuite/gas/i386/x86-64-nosse2.l: New.
  1419. * testsuite/gas/i386/i386.exp: Run new test.
  1420. 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
  1421. * testsuite/gas/nios2/brn.d: New.
  1422. * testsuite/gas/nios2/brn.d: New.
  1423. 2021-03-25 Jan Beulich <jbeulich@suse.com>
  1424. * config/tc-i386.c (match_template): Use t instead of i.tm.
  1425. 2021-03-25 Jan Beulich <jbeulich@suse.com>
  1426. * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
  1427. * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
  1428. colliding registers in the upper half of the space.
  1429. * testsuite/gas/i386/avx512f-nondef.d,
  1430. testsuite/gas/i386/vgather-check.d,
  1431. testsuite/gas/i386/x86-64-vgather-check.d,
  1432. testsuite/gas/i386/x86-64-vgather-check-error.l,
  1433. testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
  1434. expecations.
  1435. * testsuite/gas/i386/vgather-check-none.d,
  1436. testsuite/gas/i386/vgather-check-warn.d,
  1437. testsuite/gas/i386/x86-64-vgather-check-none.d,
  1438. testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
  1439. tests for expected dump output.
  1440. 2021-03-25 Jan Beulich <jbeulich@suse.com>
  1441. * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
  1442. without mask register.
  1443. * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
  1444. 2021-03-25 Jan Beulich <jbeulich@suse.com>
  1445. * config/tc-i386.c (md_assemble): Widen set of insns to avoid
  1446. swapping operands for.
  1447. * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
  1448. syntax tests.
  1449. * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
  1450. well as Intel syntax tests.
  1451. * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
  1452. expectations.
  1453. * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
  1454. Likewise. Drop passing --def-sym to as.
  1455. 2021-03-25 Jan Beulich <jbeulich@suse.com>
  1456. PR/gas 27419
  1457. * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
  1458. conversion to x32 mode.
  1459. * testsuite/gas/i386/ilp32/enqcmd.s,
  1460. testsuite/gas/i386/ilp32/enqcmd.d,
  1461. testsuite/gas/i386/ilp32/movdir.s,
  1462. testsuite/gas/i386/ilp32/movdir.d: New.
  1463. * testsuite/gas/i386/x86-64-enqcmd.s,
  1464. testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
  1465. cases.
  1466. * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
  1467. (%eip) cases.
  1468. * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
  1469. * testsuite/gas/i386/x86-64-enqcmd.d,
  1470. testsuite/gas/i386/x86-64-enqcmd-intel.d,
  1471. testsuite/gas/i386/x86-64-enqcmd-inval.l,
  1472. testsuite/gas/i386/x86-64-movdir.d,
  1473. testsuite/gas/i386/x86-64-movdir-intel.d,
  1474. testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
  1475. 2021-03-25 Alan Modra <amodra@gmail.com>
  1476. PR 27647
  1477. * testsuite/gas/ppc/a2.d: Update expected output.
  1478. * testsuite/gas/ppc/power8.d: Likewise.
  1479. 2021-03-24 Jan Beulich <jbeulich@suse.com>
  1480. * config/tc-i386.c (struct _i386_insn): New field
  1481. opcode_length.
  1482. (md_begin): Drop assertion.
  1483. (install_template): New.
  1484. (build_vex_prefix): Call install_template.
  1485. (match_template): Likewise.
  1486. (process_operands): Use new opcode_length field.
  1487. (output_jump): Likewise.
  1488. (output_insn): Likewise. Adjust psedo prefix check.
  1489. 2021-03-24 Jan Beulich <jbeulich@suse.com>
  1490. * config/tc-i386.c (md_begin): Add assertion.
  1491. (build_vex_prefix): Drop implied prefix calculation.
  1492. (build_evex_prefix): Likewise.
  1493. (optimize_encoding): Adjust opcode checks.
  1494. (load_insn_p): Also check opcodeprefix.
  1495. (match_template): Also check opcodespace.
  1496. (process_suffix): Likewise.
  1497. (process_operands): Likewise.
  1498. (output_insn): Likewise. Also check isprefix when discaring
  1499. standalone LOCK.
  1500. * config/tc-i386-intel.c (i386_intel_operand): Also check
  1501. opcodespace.
  1502. 2021-03-24 Jan Beulich <jbeulich@suse.com>
  1503. * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
  1504. base_opcode and extension_opcode.
  1505. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1506. * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
  1507. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1508. * config/tc-i386.c (output_i386_opcode): Invoke
  1509. process_i386_cpu_flag() slightly later.
  1510. (process_i386_opcodes): Likewise.
  1511. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1512. * config/tc-i386.c (pte): Print prefix and encoding space.
  1513. (build_vex_prefix): Check opcodespace instead of opcodeprefix.
  1514. (build_evex_prefix): Likewise.
  1515. (load_insn_p): Likewise.
  1516. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1517. * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
  1518. if()-s.
  1519. (match_template, output_insn): Use PREFIX_NONE.
  1520. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1521. * config/tc-i386.c (i386_index_check): New local variable t.
  1522. Correct MPX insn check.
  1523. * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
  1524. MPX insn check.
  1525. * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
  1526. index scaling by other than 1.
  1527. * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
  1528. 2021-03-22 Martin Liska <mliska@suse.cz>
  1529. * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
  1530. (x86_64_section_word): Likewise.
  1531. * config/tc-sparc.c (md_parse_option): Likewise.
  1532. 2021-03-19 Alan Modra <amodra@gmail.com>
  1533. * app.c (do_scrub_chars): Don't lose spaces before a slash.
  1534. 2021-03-18 Christian Groessler <chris@groessler.org>
  1535. * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
  1536. Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
  1537. 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
  1538. * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
  1539. (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
  1540. * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
  1541. * testsuite/gas/riscv/b-ext-64.d: Likewise.
  1542. * testsuite/gas/riscv/b-ext.s: Likewise.
  1543. * testsuite/gas/riscv/b-ext.d: Likewise.
  1544. 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
  1545. * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
  1546. * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
  1547. * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
  1548. * testsuite/gas/aarch64/sysreg-7.d: New test.
  1549. * testsuite/gas/aarch64/sysreg-7.s: New test.
  1550. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1551. * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
  1552. (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
  1553. (ppc_xcoff_tbss_section): New variables.
  1554. (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
  1555. (ppc_data_csects): Removed.
  1556. (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
  1557. ppc_xcoff_parse_cons): New functions.
  1558. (md_being): Initialize XCOFF sections.
  1559. (ppc_xcoff_suffix): Add support for TLS relocations
  1560. (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
  1561. (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
  1562. to .bss section. Handle new XCOFF section variables.
  1563. (ppc_comm): Likewise.
  1564. (ppc_toc): Likewise.
  1565. (ppc_symbol_new_hook): Likewise.
  1566. (ppc_frob_symbol): Likewise.
  1567. (ppc_fix_adjustable): Add tbss support.
  1568. * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
  1569. (ppc_xcoff_parse_cons): Add prototype.
  1570. (struct ppc_xcoff_section): New structure.
  1571. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1572. * config/tc-ppc.c (ppc_xcoff_suffix): New function.
  1573. (MAP, MAP32, MAP64): New macros for XCOFF.
  1574. (ppc_xcoff_fixup_addis): New function.
  1575. (ppc_is_toc_sym): Handle XMC_TE.
  1576. (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
  1577. BFD_RELOC_PPC_TOC16_LO.
  1578. (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
  1579. (ppc_change_csect): Handle XMC_TE.
  1580. (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
  1581. storage class.
  1582. (ppc_symbol_new_hook): Handle XMC_TE.
  1583. (ppc_frob_symbol): Likewise.
  1584. (ppc_fix_adjustable): Likewise.
  1585. (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
  1586. BFD_RELOC_PPC_TOC16_LO.
  1587. 2021-03-10 Jan Beulich <jbeulich@suse.com>
  1588. * testsuite/gas/i386/avx512f-intel.d,
  1589. testsuite/gas/i386/avx512f_vl-intel.d,
  1590. testsuite/gas/i386/avx512pf-intel.d,
  1591. testsuite/gas/i386/x86-64-avx512f-intel.d,
  1592. testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
  1593. testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
  1594. 2021-03-10 Jan Beulich <jbeulich@suse.com>
  1595. * testsuite/gas/i386/prefetch.d,
  1596. testsuite/gas/i386/prefetch-intel.d,
  1597. testsuite/gas/i386/x86-64-prefetch.d,
  1598. testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
  1599. * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
  1600. * testsuite/gas/i386/i386.exp: Run new test.
  1601. 2021-03-09 Jan Beulich <jbeulich@suse.com>
  1602. * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
  1603. (md_assemble): Replace use of repprefixok, islockable, and
  1604. notrackprefixok.
  1605. (i386_index_check): Replace use of repprefixok.
  1606. 2021-03-09 Jan Beulich <jbeulich@suse.com>
  1607. * testsuite/gas/i386/noreg64.s: Add sysexit.
  1608. * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
  1609. sysexitl and sysexitq.
  1610. * testsuite/gas/i386/noreg-intel64.l,
  1611. testsuite/gas/i386/noreg64-data16.d,
  1612. testsuite/gas/i386/noreg64-data16.e,
  1613. testsuite/gas/i386/noreg64-rex64.d,
  1614. testsuite/gas/i386/noreg64.d,
  1615. testsuite/gas/i386/noreg64.l,
  1616. testsuite/gas/i386/x86-64-sysenter-amd.d,
  1617. testsuite/gas/i386/x86-64-sysenter-amd.l,
  1618. testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
  1619. 2021-02-26 Nick Clifton <nickc@redhat.com>
  1620. PR 27411
  1621. * config/tc-arm.c (do_t_add_sub): Correct error message.
  1622. * testsuite/gas/arm/pr27411.s: New test.
  1623. * testsuite/gas/arm/pr27411.d: New test driver.
  1624. * testsuite/gas/arm/pr27411.l: Expected error output for new test.
  1625. 2021-02-24 Alan Modra <amodra@gmail.com>
  1626. PR 23691
  1627. * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
  1628. (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
  1629. (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
  1630. and use alongside TARGET_CPU_CFILES.
  1631. (EXTRA_DIST): Update location of generated .c files.
  1632. (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
  1633. (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
  1634. (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
  1635. (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
  1636. dependencies.
  1637. (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
  1638. (itbl-parse.c, itbl-parse.h): Tidy.
  1639. * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
  1640. * config/bfin-lex.l: Include config/bfin-parse.h.
  1641. * configure.ac (extra_objects): Move object files corresponding
  1642. to .y and .l files now in config/ to config/.
  1643. * Makefile.in: Regenerate.
  1644. * configure: Regenerate.
  1645. * po/POTFILES.in: Regenerate.
  1646. 2021-02-19 Nick Clifton <nickc@redhat.com>
  1647. * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
  1648. misleading indentation.
  1649. 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
  1650. PR 27158
  1651. * config/tc-riscv.c (riscv_ip): Updated encoding macros.
  1652. (md_apply_fix): Likewise.
  1653. (md_convert_frag_branch): Likewise.
  1654. (validate_riscv_insn): Likewise. Also arranged operands, including
  1655. added C5 and C6 operands, and removed unused Ci and C< operands.
  1656. * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
  1657. * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
  1658. * testsuite/gas/riscv/insn.s: Likewise.
  1659. 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
  1660. * config/tc-riscv.c: Included cpu-riscv.h.
  1661. (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
  1662. (struct riscv_csr_extra): Likewise.
  1663. (struct riscv_ext_version): Likewise.
  1664. (ext_version_table): Moved from opcodes/riscv-opc.c.
  1665. (default_isa_spec): Updated type to riscv_spec_class.
  1666. (default_priv_spec): Likewise.
  1667. (riscv_set_default_isa_spec): Updated.
  1668. (init_ext_version_hash): Likewise.
  1669. (riscv_init_csr_hash): Likewise, also fixed indent.
  1670. 2021-02-17 Alan Modra <amodra@gmail.com>
  1671. * testsuite/gas/elf/section28.d: xfail h8300.
  1672. 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
  1673. PR gas/27412
  1674. * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
  1675. when checking incorrect section attributes.
  1676. * testsuite/gas/elf/elf.exp: Run section28 and section29.
  1677. * testsuite/gas/elf/section28.d: New file.
  1678. * testsuite/gas/elf/section28.s: Likewise.
  1679. * testsuite/gas/elf/section29.d: Likewise.
  1680. * testsuite/gas/elf/section29.s: Likewise.
  1681. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1682. * testsuite/gas/i386/sse-check.s,
  1683. testsuite/gas/i386/sse2avx.s,
  1684. testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
  1685. * testsuite/gas/i386/sse-check-error.l,
  1686. testsuite/gas/i386/sse-check-warn.e,
  1687. testsuite/gas/i386/sse-check.d,
  1688. testsuite/gas/i386/sse2avx.d,
  1689. testsuite/gas/i386/x86-64-sse-check-error.l,
  1690. testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
  1691. * testsuite/gas/i386/property-cvtpi2pd.s,
  1692. testsuite/gas/i386/property-cvtpi2pd.d,
  1693. testsuite/gas/i386/property-cvtpi2ps.s,
  1694. testsuite/gas/i386/property-cvtpi2ps.d: New.
  1695. * testsuite/gas/i386/i386.exp: Run new tests.
  1696. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1697. * config/tc-i386.c (md_assemble): Use template rather than
  1698. actuals when updating i.xstate.
  1699. * testsuite/gas/i386/property-4.d,
  1700. testsuite/gas/i386/property-5.d,
  1701. testsuite/gas/i386/property-12.d: Adjust expectations.
  1702. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1703. * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
  1704. vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
  1705. * testsuite/gas/i386/property-ldmxcsr.s,
  1706. testsuite/gas/i386/property-ldmxcsr.d,
  1707. testsuite/gas/i386/property-vldmxcsr.s,
  1708. testsuite/gas/i386/property-vldmxcsr.d,
  1709. testsuite/gas/i386/property-vzeroall.s,
  1710. testsuite/gas/i386/property-vzeroall.d: New.
  1711. * testsuite/gas/i386/i386.exp: Run new tests.
  1712. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1713. * testsuite/gas/i386/i386.exp: Move bitness-independent property
  1714. tests to bitness independent section.
  1715. * testsuite/gas/i386/x86-64-property-2.d,
  1716. testsuite/gas/i386/x86-64-property-3.d,
  1717. testsuite/gas/i386/x86-64-property-4.d,
  1718. testsuite/gas/i386/x86-64-property-5.d,
  1719. testsuite/gas/i386/x86-64-property-6.d,
  1720. testsuite/gas/i386/x86-64-property-10.d,
  1721. testsuite/gas/i386/x86-64-property-11.d,
  1722. testsuite/gas/i386/x86-64-property-12.d,
  1723. testsuite/gas/i386/x86-64-property-13.d: Delete.
  1724. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1725. * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
  1726. movdir.s.
  1727. * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
  1728. 2021-02-16 Alan Modra <amodra@gmail.com>
  1729. PR 27426
  1730. * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
  1731. in another place.
  1732. 2021-02-16 Alan Modra <amodra@gmail.com>
  1733. * read.c (demand_copy_C_string): Really check for embedded zeros.
  1734. 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
  1735. * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
  1736. * doc/c-s390.texi: Document arch14 march option.
  1737. * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
  1738. * testsuite/gas/s390/zarch-arch14.d: New test.
  1739. * testsuite/gas/s390/zarch-arch14.s: New test.
  1740. 2021-02-12 Nick Clifton <nickc@redhat.com>
  1741. * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
  1742. following.
  1743. * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
  1744. 2021-02-12 Alan Modra <amodra@gmail.com>
  1745. * testsuite/gas/all/pr27381.err: Don't match source file name.
  1746. * testsuite/gas/all/pr27381.s: Don't start directive in first column.
  1747. * testsuite/gas/all/pr27384.err: Don't match source file name.
  1748. Adjust line number.
  1749. * testsuite/gas/all/pr27384.s: Add ".text" directive.
  1750. * testsuite/gas/elf/pr27355.err: Don't match source file name.
  1751. 2021-02-11 Alan Modra <amodra@gmail.com>
  1752. * NEWS: Mention arm-symbianelf removal.
  1753. 2021-02-10 Nick Clifton <nickc@redhat.com>
  1754. * listing.c (buffer_line): Remove debugging code accidentally
  1755. included with the fix for PR 27384.
  1756. 2021-02-09 Nick Clifton <nickc@redhat.com>
  1757. PR 27381
  1758. * read.c (s_incbin): Check that the file to be included is a
  1759. regular, non-directory file.
  1760. * testsuite/gas/all/pr27381.s: New test source file.
  1761. * testsuite/gas/all/pr27381.d: New test control file.
  1762. * testsuite/gas/all/pr27381.err: Expected error output for the new test.
  1763. * testsuite/gas/all/gas.exp: Run the new test.
  1764. 2021-02-09 Alan Modra <amodra@gmail.com>
  1765. * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
  1766. * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
  1767. support.
  1768. * config/te-symbian.h: Delete.
  1769. * configure.tgt: Remove arm-*-symbianelf*.
  1770. * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
  1771. target selection.
  1772. * testsuite/gas/arm/arch4t.d: Likewise.
  1773. * testsuite/gas/arm/got_prel.d: Likewise.
  1774. * testsuite/gas/arm/mapdir.d: Likewise.
  1775. * testsuite/gas/arm/mapmisc.d: Likewise.
  1776. * testsuite/gas/arm/mapsecs.d: Likewise.
  1777. * testsuite/gas/arm/mapshort-eabi.d: Likewise.
  1778. * testsuite/gas/arm/thumb-eabi.d: Likewise.
  1779. * testsuite/gas/arm/thumb.d: Likewise.
  1780. * testsuite/gas/arm/thumbrel.d: Likewise.
  1781. * Makefile.in: Regenerate.
  1782. * po/POTFILES.in: Regenerate.
  1783. 2021-02-09 Nick Clifton <nickc@redhat.com>
  1784. PR 27384
  1785. * listing.c (listing_psize): Check the result of the width
  1786. expression before assigning it to paper_width.
  1787. * testsuite/gas/all/pr27384.s: New test source file.
  1788. * testsuite/gas/all/pr27384.d: New test control file.
  1789. * testsuite/gas/all/pr27384.err: Expected errors from new test.
  1790. * testsuite/gas/all/gas.exp: Run the new test.
  1791. 2021-02-09 Nick Clifton <nickc@redhat.com>
  1792. PR 27355
  1793. * testsuite/gas/elf/pr27355.s: New test source file.
  1794. * testsuite/gas/elf/pr27355.d: New test control file.
  1795. * testsuite/gas/elf/pr27355.err: Expected errors from new test.
  1796. * testsuite/gas/elf/elf.exp: Run the new test.
  1797. 2021-02-08 Mike Frysinger <vapier@gentoo.org>
  1798. * config/tc-tic54x (tic54x_mmregs): Rename to ...
  1799. (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
  1800. (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
  1801. (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
  1802. cc2_codes, cc3_codes, status_bits, and misc_symbols.
  1803. 2021-02-08 Nick Clifton <nickc@redhat.com>
  1804. PR 27355
  1805. * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
  1806. if it has not already been created.
  1807. 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
  1808. * config/tc-riscv.c (riscv_multi_subset_supports): Removed
  1809. INSN_CLASS_ZB*.
  1810. * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
  1811. * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
  1812. * testsuite/gas/riscv/bitmanip-insns.s: Removed.
  1813. 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
  1814. * doc/c-s390.texi: Document vector instruction formats.
  1815. 2021-02-01 Emery Hemingway <ehmry@posteo.net>
  1816. * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
  1817. 2021-02-01 Alan Modra <amodra@gmail.com>
  1818. PR 27283
  1819. * config/tc-alpha.c (insert_operand): Delete dead code.
  1820. 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
  1821. PR gas/27243
  1822. * config/tc-nios2.c (md_begin): Don't disable relaxation with
  1823. --gdwarf-N.
  1824. * testsuite/gas/nios2/relax.d: New file.
  1825. * testsuite/gas/nios2/relax.s: Likewise.
  1826. 2021-01-26 Alan Modra <amodra@gmail.com>
  1827. * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
  1828. notarget all except hppa. Comment.
  1829. * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
  1830. * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
  1831. * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
  1832. * testsuite/gas/all/sleb128-7.d: Likewise.
  1833. * testsuite/gas/all/sleb128-9.d: Likewise.
  1834. * testsuite/gas/elf/bignums.d: Likewise.
  1835. * testsuite/gas/elf/group0c.d: Likewise.
  1836. * testsuite/gas/elf/group1a.d: Likewise.
  1837. * testsuite/gas/elf/section-symbol-redef.d: Likewise.
  1838. * testsuite/gas/elf/section15.d: Likewise.
  1839. * testsuite/gas/elf/section4.d: Likewise.
  1840. * testsuite/gas/elf/section7.d: Likewise.
  1841. * testsuite/gas/macros/irp.d: Likewise.
  1842. * testsuite/gas/macros/repeat.d: Likewise.
  1843. * testsuite/gas/macros/rept.d: Likewise.
  1844. * testsuite/gas/macros/test2.d: Likewise.
  1845. * testsuite/gas/macros/vararg.d: Likewise.
  1846. * testsuite/gas/all/string.d: Use xfail rather than skip.
  1847. * testsuite/gas/elf/missing-build-notes.d: Likewise.
  1848. * testsuite/gas/elf/section0.d: Likewise.
  1849. * testsuite/gas/elf/section1.d: Likewise.
  1850. * testsuite/gas/elf/section10.d: Likewise.
  1851. * testsuite/gas/elf/section11.d: Likewise.
  1852. * testsuite/gas/elf/section6.d: Likewise.
  1853. * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
  1854. * testsuite/gas/elf/symtab.s: Don't start directives in first column.
  1855. * testsuite/gas/macros/test3.d: Don't notarget nds32.
  1856. 2021-01-26 Alan Modra <amodra@gmail.com>
  1857. * testsuite/gas/all/byte.d,
  1858. * testsuite/gas/all/byte.l,
  1859. * testsuite/gas/all/byte.s: Delete.
  1860. * testsuite/gas/all/gas.exp: Don't run byte test.
  1861. 2021-01-26 Alan Modra <amodra@gmail.com>
  1862. PR 27282
  1863. * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
  1864. * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
  1865. 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
  1866. PR gas/27228
  1867. * testsuite/gas/elf/elf.exp: Run pr27228.
  1868. * testsuite/gas/elf/pr27228.d: New file.
  1869. * testsuite/gas/elf/pr27228.s: Likewise.
  1870. 2021-01-24 Alan Modra <amodra@gmail.com>
  1871. PR 27228
  1872. * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
  1873. is defined.
  1874. 2021-01-21 Alan Modra <amodra@gmail.com>
  1875. PR 27221
  1876. * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
  1877. line number info when gas is generating it.
  1878. * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
  1879. * testsuite/gas/m68hc11/indexed12.d: Likewise.
  1880. * testsuite/gas/elf/elf.exp: Don't run warn-2.
  1881. * gas/testsuite/gas/elf/warn-2.s: Delete.
  1882. 2021-01-21 Alan Modra <amodra@gmail.com>
  1883. PR 27218
  1884. * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
  1885. (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
  1886. error for negative file numbers.
  1887. 2021-01-20 Alan Modra <amodra@gmail.com>
  1888. * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
  1889. * testsuite/gas/ppc/test1elf32.d: Likewise.
  1890. * testsuite/gas/ppc/test1elf64.d: Likewise.
  1891. 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
  1892. PR gas/27195
  1893. * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
  1894. needed.
  1895. (dwarf2_directive_filename): Likewise.
  1896. (dwarf2_directive_loc): Likewise.
  1897. * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
  1898. * testsuite/gas/lns/lns-diag-1.l: Remove the
  1899. "Error: file number less than one" errors.
  1900. 2021-01-18 Alan Modra <amodra@gmail.com>
  1901. PR 27198
  1902. * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
  1903. * testsuite/gas/i386/pr27198.d,
  1904. * gas/testsuite/gas/i386/pr27198.err,
  1905. * gas/testsuite/gas/i386/pr27198.s: New test.
  1906. * gas/testsuite/gas/i386/i386.exp: Run it.
  1907. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1908. * config/tc-riscv.c: Indent and GNU coding standards tidy,
  1909. also aligned the code.
  1910. * config/tc-riscv.h: Likewise.
  1911. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1912. * config/tc-riscv.c: Error and warning messages tidy.
  1913. * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
  1914. * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
  1915. * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
  1916. * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
  1917. * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
  1918. * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
  1919. * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
  1920. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1921. * config/tc-riscv.c: Comments tidy and improvement. Also update
  1922. comment "fallthru" to "Fall through" that end with a period and
  1923. two spaces.
  1924. 2021-01-14 Mike Frysinger <vapier@gentoo.org>
  1925. * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
  1926. Delete warning that these are only available with ELF targets.
  1927. * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
  1928. * read.c (potable): ... here.
  1929. 2021-01-14 Mike Frysinger <vapier@gentoo.org>
  1930. * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
  1931. * Makefile.in: Regenerated.
  1932. 2021-01-14 Mike Frysinger <vapier@gentoo.org>
  1933. * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
  1934. (parse_int): Mark char_bag const.
  1935. 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
  1936. PR gas/27178
  1937. * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
  1938. Don't generate GOT_symbol for PLT relocations.
  1939. * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
  1940. * testsuite/gas/i386/no-got.d: New file.
  1941. * testsuite/gas/i386/no-got.s: Likewise.
  1942. * testsuite/gas/i386/x86-64-no-got.d: Likewise.
  1943. * testsuite/gas/i386/x86-64-no-got.s: Likewise.
  1944. 2021-01-13 Alan Modra <amodra@gmail.com>
  1945. * Makefile.in: Regenerate.
  1946. * Makefile.in: Regenerate.
  1947. 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
  1948. PR binutils/26792
  1949. * configure.ac: Use GNU_MAKE_JOBSERVER.
  1950. * aclocal.m4: Regenerated.
  1951. * configure: Likewise.
  1952. 2021-01-12 Nick Clifton <nickc@redhat.com>
  1953. * po/fr.po: Updated French translation.
  1954. 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
  1955. PR ld/27173
  1956. * configure: Regenerated.
  1957. 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
  1958. * NEWS: Remove CSRE.
  1959. * config/tc-aarch64.c (parse_csr_operand): Delete.
  1960. (parse_operands): Delete handling of
  1961. AARCH64_OPND_CSRE_CSR.
  1962. (aarch64_features): Remove csre.
  1963. * doc/c-aarch64.texi: Remove CSRE.
  1964. * testsuite/gas/aarch64/csre.d: Delete.
  1965. * testsuite/gas/aarch64/csre-invalid.s: Likewise.
  1966. * testsuite/gas/aarch64/csre-invalid.d: Likewise.
  1967. * testsuite/gas/aarch64/csre_csr.s: Likewise.
  1968. * testsuite/gas/aarch64/csre_csr.d: Likewise.
  1969. * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
  1970. * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
  1971. * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
  1972. 2021-01-11 Nick Clifton <nickc@redhat.com>
  1973. * po/uk.po: Updated Ukranian translation.
  1974. 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
  1975. * configure: Regenerated.
  1976. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1977. * configure: Regenerate.
  1978. * po/gas.pot: Regenerate.
  1979. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1980. * 2.36 release branch crated.
  1981. 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
  1982. * testsuite/gas/ppc/rop-checks.d,
  1983. * testsuite/gas/ppc/rop-checks.l,
  1984. * testsuite/gas/ppc/rop-checks.s,
  1985. * testsuite/gas/ppc/rop.d,
  1986. * testsuite/gas/ppc/rop.s: New tests.
  1987. * testsuite/gas/ppc/ppc.exp: Run them.
  1988. 2021-01-09 Alan Modra <amodra@gmail.com>
  1989. * configure: Regenerate.
  1990. 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
  1991. * configure: Regenerate.
  1992. 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
  1993. PR 27109
  1994. * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
  1995. section symbol.
  1996. * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
  1997. * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
  1998. on the section symbol.
  1999. (set_symtab): Don't generate unused section symbols.
  2000. (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
  2001. on the section symbol.
  2002. * config/obj-elf.c (elf_adjust_symtab): Call
  2003. symbol_mark_used_in_reloc on the group signature symbol.
  2004. * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
  2005. from expected output.
  2006. * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
  2007. is_elf_unused_section_symbols.
  2008. * testsuite/gas/elf/section2.e: Updated.
  2009. * testsuite/gas/elf/section2.e-unused: New file.
  2010. * testsuite/gas/elf/symver.d: Remove unused section symbols.
  2011. * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
  2012. * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
  2013. * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
  2014. * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
  2015. * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
  2016. * testsuite/gas/i386/size-1.d: Likewise.
  2017. * testsuite/gas/i386/size-3.d: Likewise.
  2018. * testsuite/gas/i386/svr4.d: Likewise.
  2019. * testsuite/gas/i386/x86-64-size-1.d: Likewise.
  2020. * testsuite/gas/i386/x86-64-size-3.d: Likewise.
  2021. * testsuite/gas/i386/x86-64-size-5.d: Likewise.
  2022. * testsuite/gas/i386/x86-64-unwind.d: Likewise.
  2023. 2021-01-07 Philipp Tomsich <prt@gnu.org>
  2024. * config/tc-riscv.c (riscv_multi_subset_supports): Added
  2025. INSN_CLASS_ZIHINTPAUSE.
  2026. * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
  2027. the pause hint instruction.
  2028. * testsuite/gas/riscv/pause.s: Likewise.
  2029. 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
  2030. Jim Wilson <jimw@sifive.com>
  2031. Andrew Waterman <andrew@sifive.com>
  2032. Maxim Blinov <maxim.blinov@embecosm.com>
  2033. Kito Cheng <kito.cheng@sifive.com>
  2034. Nelson Chu <nelson.chu@sifive.com>
  2035. * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
  2036. (riscv_get_default_ext_version): Do not check the default_isa_spec when
  2037. the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
  2038. * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
  2039. * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
  2040. * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
  2041. 2021-01-06 Alan Modra <amodra@gmail.com>
  2042. * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
  2043. 2021-01-06 Alan Modra <amodra@gmail.com>
  2044. * testsuite/gas/macros/app1.d: xfail tic30.
  2045. * testsuite/gas/macros/app2.d: Likewise.
  2046. * testsuite/gas/macros/app3.d: Likewise.
  2047. * testsuite/gas/macros/app4.d: Likewise.
  2048. 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
  2049. * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
  2050. * doc/c-riscv.texi: Likewise.
  2051. 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
  2052. * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
  2053. to littleriscv.
  2054. * testsuite/gas/riscv/li64.d: Likewise.
  2055. * testsuite/gas/riscv/lla32.d: Likewise.
  2056. * testsuite/gas/riscv/lla64.d: Likewise.
  2057. * testsuite/gas/riscv/march-ok-g2.d: Likewise.
  2058. * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
  2059. * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
  2060. * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
  2061. * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
  2062. * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
  2063. * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
  2064. 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
  2065. * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
  2066. elf32-bigriscv.
  2067. (install_insn): Always write instructions as little endian.
  2068. (riscv_make_nops): Likewise.
  2069. (md_convert_frag_branch): Likewise.
  2070. (md_number_to_chars): Write data in target endianness.
  2071. (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
  2072. (md_parse_option): Handle the endian options.
  2073. * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
  2074. already defined.
  2075. * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
  2076. 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
  2077. PR ld/26256
  2078. * config/obj-elf.c (obj_elf_change_section): Also filter out
  2079. SHF_LINK_ORDER.
  2080. 2021-01-04 Alan Modra <amodra@gmail.com>
  2081. PR 27102
  2082. * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
  2083. message and register symbol error message.
  2084. 2021-01-04 Alan Modra <amodra@gmail.com>
  2085. PR 27101
  2086. * read.c (s_align): Use a large enough type for "align" to hold
  2087. the result of get_absolute_expression.
  2088. 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
  2089. * config/tc-i386.c: Correct comment spelling.
  2090. * config/tc-riscv.c: Likewise.
  2091. * config/tc-s390.c: Correct comment grammar.
  2092. * doc/c-i386.texi: Correct spelling.
  2093. * doc/c-s390.texi: Correct grammar.
  2094. 2021-01-01 Alan Modra <amodra@gmail.com>
  2095. Update year range in copyright notice of all files.
  2096. 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
  2097. * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
  2098. For older changes see ChangeLog-2020
  2099. Copyright (C) 2021-2022 Free Software Foundation, Inc.
  2100. Copying and distribution of this file, with or without modification,
  2101. are permitted in any medium without royalty provided the copyright
  2102. notice and this notice are preserved.
  2103. Local Variables:
  2104. mode: change-log
  2105. left-margin: 8
  2106. fill-column: 74
  2107. version-control: never
  2108. End: